Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
readserial fail (bug ?)
#1
ok, i know this a "try and miss" but i try, if anyone has any idea

i am trying to read data from serial, data is random (pure binary)
i have unexpeded fails in random times.

i have try to track it down as much as i can and i came in this
the following stream of data ALWAYS fail reading and ALWAYS fail reading the same byte "$7F$7F$FE$0C$40$00$11$62"  (hex bytes)
always miss $11 (decimal 17)

i have rewrite my code in ACE basic, and works as it should, i also have test it real amiga500/os1.2 and fails the same as in winuae
here is a screenshot side by side amiblitz/ace
image blitzbasic FAIL

the problem is in blitzbasic2.1 as well too

this is the code i use for above test

Code:
;  PROBLEMATIC STREAM TO SEND  $7F$7F$FE$0C$40$00$11$62
isserial = OpenSerial("serial.device",0,9600,0)
NPrint isserial

WriteSerial 0,55
VWait 200

For i=1 To 10
 serin.w = ReadSerial( 0)
 Print Hex$(serin)
 NPrint " - ",serin
Next

CloseSerial(0)

End
Christos
Zitieren


Nachrichten in diesem Thema
readserial fail (bug ?) - von plouf - 13.03.2025, 02:53
RE: readserial fail (bug ?) - von plouf - 13.03.2025, 10:22
RE: readserial fail (bug ?) - von hackball - 13.03.2025, 17:27
RE: readserial fail (bug ?) - von plouf - 13.03.2025, 17:28
RE: readserial fail (bug ?) - von hackball - 13.03.2025, 17:34
RE: readserial fail (bug ?) - von plouf - 13.03.2025, 17:43
RE: readserial fail (bug ?) - von hackball - 13.03.2025, 17:45
RE: readserial fail (bug ?) - von hackball - 13.03.2025, 17:44
RE: readserial fail (bug ?) - von plouf - 13.03.2025, 17:55
RE: readserial fail (bug ?) - von hackball - 13.03.2025, 18:00
RE: readserial fail (bug ?) - von plouf - 13.03.2025, 18:02
RE: readserial fail (bug ?) - von hackball - 13.03.2025, 18:23
RE: readserial fail (bug ?) - von hackball - 13.03.2025, 18:07
RE: readserial fail (bug ?) - von plouf - 13.03.2025, 18:08
RE: readserial fail (bug ?) - von hackball - 13.03.2025, 18:08

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste