B4J Question Raspberry pi and JSerial


Licensed User
Longtime User
Hi All

my projects modbus communication remote device, my code run on rasberry pi 2 I used jserial but I have problems (time to time )
remote device far from raspi. about 150meters I used RS485 converter point to point (there are one raspi and there ara one remote device
and baudrate 1200

a-) send query string on jerial and AsyncStreams all ok, receive time to time 5 or 6 bytes also I need 18 bytes. I thing newdata event rising first 5 or 6 bytes (some times 2 or 3 bytes)
b-) how can I pullling input stream amount to byte size ?


B4X founder
Staff member
Licensed User
Longtime User
Upvote 0