ModBus Arduino

From ElectroDragon Wiki
Revision as of 17:40, 9 September 2021 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Server and Client

Client send commands to control Server

Server poll to receive commands and do operations on LED

Commands from Client

  • 01 05 00 00 00 00 CD CA <- client to toggle 0x00 at address 0x00
  • 01 05 00 00 FF 00 8C 3A <- client to toggle 0xff at address 0x00
  • 01 -- = device address
  • -- 05 = modbus code
  • CD CA = 2 bytes CRC