fb:porticula NoPaste
Nullmodemkabeltest - Server
Uploader: | AndT |
Datum/Zeit: | 03.04.2009 13:48:07 |
dim as ubyte dsignal,csignal
dim as string KEY
dim as ubyte ff = freefile
PRINT "OPEN COM"
OPEN COM "COM1:115200,N,8,2,CS,DS" FOR RANDOM AS #ff
PRINT "READY"
PRINT "SEND"
DO
dsignal = int(rnd*256)
WRITE #1,dsignal
print chr(dsignal);
input #1,csignal
if dsignal <> csignal then print "SIGNAL ERROR DETECTED"
SLEEP 1
LOOP
PRINT "DONE"
SLEEP