Hi,
Using FELusbserial to send and recieve a few bytes. I noticed that when sending a byte a random number of DataAvailable events are fired, with what looks like no data bytes.
so I send 62, 62, 64 and 54 and dataAvailable logs empty data. I'm also dropping bytes even though I'm looping in the dataAvailable routine From 0 To Buffer.length-1.
Any advise here ?
TIA
Send a byte
Receiving bytes
Using FELusbserial to send and recieve a few bytes. I noticed that when sending a byte a random number of DataAvailable events are fired, with what looks like no data bytes.
so I send 62, 62, 64 and 54 and dataAvailable logs empty data. I'm also dropping bytes even though I'm looping in the dataAvailable routine From 0 To Buffer.length-1.
Any advise here ?
TIA
Send a byte
B4X:
tx = 62
'send 0x62 thru serial port
t = bc.HexToBytes(tx)
If usbserial.IsInitialized Then
usbserial.Write(t)
Receiving bytes
B4X:
Private Sub serial_DataAvailable (Buffer() As Byte)
Log("New data: " & bc.HexFromBytes(Buffer))