Pi4J / pi4j-v1

DEPRECATED Java I/O library for Raspberry Pi (GPIO, I2C, SPI, UART)
http://www.pi4j.com
Apache License 2.0
1.31k stars 448 forks source link

Serial buffer waits 100ms before letting me "read()" the bytes #552

Open GrindTel opened 2 years ago

GrindTel commented 2 years ago

i have a module transmitting onto a serial line a couple bytes every 15 ms or so. and i need to be able to parse the info, and send back some body data. The problem i'm encountering, is i don't seem to get the data coming in in real time. i get them every 100ms or so. by which time the module i'm working with has moved on with it's life. Almost like i'm getting the data in artificial clumps. I don't see a way to change this behaviour, but i can't imagine that the lower level code has this limitation on it naturally. Any help here would be appreciated.