mini modbus
 
 
 
Go to file
alexis 4b589e6d67 Allow omitting access control from build 2023-05-15 12:09:52 -06:00
inc Allow omitting access control from build 2023-05-15 12:09:52 -06:00
src Allow omitting access control from build 2023-05-15 12:09:52 -06:00
test Overhaul (#10) 2023-04-26 03:23:40 +00:00
.gitignore Here, have some code 2022-12-08 20:28:29 -07:00
README.md Remove old header from readme 2023-04-25 21:24:42 -06:00
compile_commands.json Here, have some code 2022-12-08 20:28:29 -07:00
meson.build Allow omitting access control from build 2023-05-15 12:09:52 -06:00
meson_options.txt Allow omitting access control from build 2023-05-15 12:09:52 -06:00

README.md

midbus

midbus is a middle-of-the-road modbus library for microcontrollers. It's relatively full-featured, but still small. It supports:

  • server mode
  • client mode
  • relay mode (single-endpoint server forwards other addresses through another client)
  • RTU transport
  • ASCII transport
  • Hardware driver for CH32V103 with RTU
  • Function codes supported:
    • 0x01 read coils
    • 0x02 read discrete inputs
    • 0x03 read holding registers
    • 0x04 read input registers
    • 0x05 write single coil
    • 0x06 write single register
    • 0x07 read exception status
    • 0x0F write multiple coils
    • 0x10 write multiple registers
    • 0x11 report server ID
    • 0x16 mask write register
    • Likely not to be implemented:
      • 0x08 diagnostics
      • 0x0B get comm event counter
      • 0x0C get comm event log
      • 0x0E read device identification
      • 0x17 read/write multiple registers
  • Data can be stored in noncontiguous chunks of memory