Changing Modbus MBAP Header

O

Thread Starter

Oemer

Hi Guys, I need your help.

Is there a way to define the MBAP headers themselves?
I want to send:

Request: 40 02 AA BB 00 06 FF 03 00 10 00 08

Can you tell me how to illustrate it over TCP protocol. A short
description or code example would be very helpful.


μC only responds to packet if this in the MBAP header (ADU) one
owns certain value / certificate.
Ex:
Transaction ID (MBAP header) = 0x40 0x02
Protocol ID (MBAP header) = 0x20 0xAB

otherwise the package will be discarded.
How can I simulate such a package?

Best regards
Oemer Sonne
 
Top