felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.8k stars 585 forks source link

modbus implementation #246

Open sagar8469 opened 5 years ago

sagar8469 commented 5 years ago

Hey, i am trying to implement modbus rs485 in this. but i can't form a packet out of serial data as the serial read callback processes some random number of bytes in arg0.

can i use syncRead in this ?

felHR85 commented 5 years ago

Hi @sagar8469 You can use syncRead perfectly fine. Also please check this I am porting j2mod java library but need some testing by users before being ready for release.