-1

how can I sniff modbus rtu packet with vb code or there are any library for it?

I googled it but I didnt find any thing

1 Answers1

0

This is probably offtopic but I once spent quite a while looking for tools for this very purpose and I have to admit they were not easy to find.

Fortunately, there is a utility that will probably fit your needs: SerialPCAP.

It's written in C# but you should be able to port it quite easily. Together with Wireshark, on Linux you will be able to monitor real-time Modbus RTU traffic.

I'm not affiliated with the developers, I'm just a happy user.

Marcos G.
  • 3,371
  • 2
  • 8
  • 16