Skip to content

Wiren Board modbus utility using RPC

License

Notifications You must be signed in to change notification settings

wirenboard/modbus-utils-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modbus-utils-RPC

A command-line tool used for modbus RPC requests to wb-mqtt-serial. It provides abilities for sending Modbus requests to port and scan exists Modbus devices using "new-Modbus" feature.

Modbus client

Use modbus_client_rpc command to send a modbus request to the port. Arguments of command are fully compatible with modbus_client arguments Usage example:

# modbus_client_rpc --debug -mrtu -pnone  /dev/ttyRS485-2 -a68 -t3 -r128 107
SUCCESS: read 1 elements:
    Data: 0x0044 

Modbus scanner

Use modbus_scanner_rpc for scan available devices with "new-Modbus" feature on the bus. Usage example:

# modbus_scanner_rpc /dev/ttyRS485-2
Found device with SN  fe124201 4262609409 modbus address  68

Run modbus_client_rpc and modbus_scanner_rpc with -h option for detailed parameters description.