Diagnose DTR/DSR and RTS/CTS issues: Difference between revisions

From Bitchin100 DocGarden
Jump to navigationJump to search
(New page: TS-DOS and TEENY depend upon at least DSR to be high during operation. TS-DOS may also depend on CTS being high during operation. If DSR is low, then these programs will refuse to operate...)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
If DSR is low, then these programs will refuse to operate.
If DSR is low, then these programs will refuse to operate.


NADSBox loops back the laptop's DTR to DSR. Also, it loops back RTS to CTS.
NADSBox has the feature that it loops back the laptop's DTR to DSR. Also, it loops back RTS to CTS.


So, if your laptop's DTR, DSR, RTS and CTS lines are working, you should have no issue communicating with NADSBox.
So, if your laptop's DTR, DSR, RTS and CTS lines are working, TS-DOS should work fine with NADSBox. If TS-DOS or TEENY refuse to operate, you may have an issue with one or more of these signals.


This program will let you detect if these outputs and inputs are working. If the values change depending on whether NADSBox is connected, then your flow control lines are working properly. If one or both do not change, then there is a problem with your flow control lines are outbound or inbound for the relevant pair (DTR+DSR, RTS+CTS).
This program detects if these outputs and inputs are working. If the values change depending on whether NADSBox is connected, then your flow control lines are working properly. If one or both do not change, then there is a problem with your flow control lines either outbound or inbound for the relevant pair (DTR+DSR, RTS+CTS).


Note that this code is for the NEC 8201A and 8300.
Note that it makes no difference whether NADSBox is on or off during the diagnostic. Also, it assumes the default in that RTS is looped back to CTS (this is configurable by the user through a jumper in NADSBox... see the manual).


You must change the "COM:9N81NN" to "COM:98N1E" for the Model 100.
== NEC 8201A, NEC 8300 Version ==


<pre>
<pre>
Line 23: Line 23:
80 LOCATE1,3:PRINT"DSR: ";DR
80 LOCATE1,3:PRINT"DSR: ";DR
90 LOCATE1,4:PRINT"CTS: ";DC
90 LOCATE1,4:PRINT"CTS: ";DC
100 GOTO 50
</pre>
== Model 100 Version ==
(untested... let me know if you try this before I do)
<pre>
10 CLS
20 DEFINT D
30 OPEN"COM:98N1E" FOR INPUT AS 1
40 OUT 186, (INP(186) AND 63)
50 DS=INP(187)
60 DR=(DS/32)AND1
70 DC=(DS/16)AND1
80 PRINT@1,"DSR: ";DR
90 PRINT@41"CTS: ";DC
100 GOTO 50
100 GOTO 50
</pre>
</pre>

Latest revision as of 21:12, 14 December 2008

TS-DOS and TEENY depend upon at least DSR to be high during operation. TS-DOS may also depend on CTS being high during operation.

If DSR is low, then these programs will refuse to operate.

NADSBox has the feature that it loops back the laptop's DTR to DSR. Also, it loops back RTS to CTS.

So, if your laptop's DTR, DSR, RTS and CTS lines are working, TS-DOS should work fine with NADSBox. If TS-DOS or TEENY refuse to operate, you may have an issue with one or more of these signals.

This program detects if these outputs and inputs are working. If the values change depending on whether NADSBox is connected, then your flow control lines are working properly. If one or both do not change, then there is a problem with your flow control lines either outbound or inbound for the relevant pair (DTR+DSR, RTS+CTS).

Note that it makes no difference whether NADSBox is on or off during the diagnostic. Also, it assumes the default in that RTS is looped back to CTS (this is configurable by the user through a jumper in NADSBox... see the manual).

NEC 8201A, NEC 8300 Version

10 CLS
20 DEFINT D
30 OPEN"COM:9N81NN" FOR INPUT AS 1
40 OUT 186, (INP(186) AND 63)
50 DS=INP(187)
60 DR=(DS/32)AND1
70 DC=(DS/16)AND1
80 LOCATE1,3:PRINT"DSR: ";DR
90 LOCATE1,4:PRINT"CTS: ";DC
100 GOTO 50

Model 100 Version

(untested... let me know if you try this before I do)

10 CLS
20 DEFINT D
30 OPEN"COM:98N1E" FOR INPUT AS 1
40 OUT 186, (INP(186) AND 63)
50 DS=INP(187)
60 DR=(DS/32)AND1
70 DC=(DS/16)AND1
80 PRINT@1,"DSR: ";DR
90 PRINT@41"CTS: ";DC
100 GOTO 50