snhobbs / ModbusSniffer

Modbus RTU packet sniffer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Performance of Modbus sniffer

MinzaGayas opened this issue · comments

Hi,

I am trying to sniff data of a client which sends requests @660ms rate. Baudrate is 9600 and serial socket timeout is 1s and I am running the Modbus sniffer on rpi CM4 (Linux 11). Using sniffer, I see only half of the requests are processed. For the rest of the requests, framer checker fails or frames are not ready. Is it because client is too fast for the sniffer to process or some timeout needs to be reduced?
sniffer_error

commented

Hello @MinzaGayas, I had the same problem and heavily modified @snhobbs code.
If you can look at my fork, it may solve your problems.
The usage is more detailed too...

https://github.com/Ekristoffe/ModbusSniffer

commented

even with the python I wrote you have the same error as the original script ?
that's weird since I don't use the same system anymore and this error isn't in the script.