Read this in other languages: English, 中文.
HarnsGateway is used to connect industrial equipment.
It can be installed on embedded devices to as edge industrial gateway.
It can also be run as a service on the edge IoT platform to as soft gateway.
- Collect equipment data from south end
Supported protocol list:
- ModbusTcp ModbusRtu ModbusRtuOverTcp
- S71500
- OpcUA
- Control equipment from north end input Supported protocol list:
- ModbusTcp ModbusRtu ModbusRtuOverTcp
- S71500
- Edge computing
- git clone https://github.com/harnsFactory/harnsgateway.git
- cd harnsgateway
- make
- cd harnsgateway/_output/bin/
- QuickStart
./gateway --mqtt-broker-urls=127.0.0.1:1883 & - Systemd
example Connect Modbus device
- Started modbus simulator(ModSim32) And update some parameters: deviceId = 1,functionCode = 3,And set first address
value = 188.
stepOne
Then start service on port 502. - Create modbus( api doc )device in harnsGateway.The device id property userd in MQTT topic.
stepTow.png - Get gateway meta information( api doc ).The gateway id property used in MQTT topic.
stepThree.png - Subscript MQTT topic.
stepFour.png
Topic is 'data/{gatewayId}/v1/{deviceId}'. - Delete the Device.