IR decoding with BPF
IR decoding with BPF
Posted Jul 10, 2018 8:58 UTC (Tue) by chris.sykes (subscriber, #54374)In reply to: IR decoding with BPF by dgm
Parent article: IR decoding with BPF
Nope, libmodbus tries to parse the RTU frames as bytes are received in order to figure out how many are still outstanding; the trouble is, it has to do this before it can check the CRC...
Posted Jul 10, 2018 14:00 UTC (Tue)
by dgm (subscriber, #49227)
[Link] (3 responses)
Posted Jul 10, 2018 15:39 UTC (Tue)
by chris.sykes (subscriber, #54374)
[Link] (2 responses)
It's difficult to do RTU frame timing properly from user-space, without RT scheduling; and you really want control over the RX FIFO interrupt thresholds in the UART as well.
I've often thought making Modbus RTU serial line discipline, that exposed a socket API (like socketCAN), would make an interesting project, but so far, haven't found the time...
Posted Jul 11, 2018 7:22 UTC (Wed)
by shiftee (subscriber, #110711)
[Link] (1 responses)
Posted Jul 11, 2018 9:44 UTC (Wed)
by Darkmere (subscriber, #53695)
[Link]
With rs485 you then want to decode traffic in multiple speeds at once to find out which traffic is modbus RTU and which is some other traffic.
IR decoding with BPF
IR decoding with BPF
IR decoding with BPF
IR decoding with BPF
(It’s common enough to have Mbus at 2400 bps and modbus at 9600 and 19200. And no. It ain’t pretty)
