Modbus TCP Client
Installing this app on a device will make the device act as a Modbus tcp client.
Hardware
- Raspberry Pi registered in RESWARM (For Detail Click Here)
- Modbus Server
Usage Instructions
It is necessary to have a Modbus server attached to the device in order to get it run. The Modbus server can be a PLC or a Raspberry Pi which simulates a Modbus server.
Install the App
To use the app on your Raspberry Pi, go to RESWARM into the devices menu of the swarm where your device is registred (How To Navigate in RESWARM). There create a group and add the device to the group and install this app to this group as well (Add a New Group). Now the device will start downloading the app. To setup the device you can also provide some parameters. To do that go to the group you created and find the app that is listed in this group. There you can click on the environment variables and you can provide the following environment variables:
Variable | Meaning | Default Value |
---|---|---|
IP_ADDRESS | IP address of the Modbus server | No default value |
PORT | Starting channel | No default value |
SLEEP_INTERVAL | Difference between reading attempts | 3 |
Publishing an app:
Click on "Publish", enter the version number/name and press "Publish App"
Available Environment Variables
IP_ADDRESS IP address of the Modbus server PORT port number of the Modbus server SLEEP_INTERVAL difference between reading attempts
Data volumes
Every app has by default a directory /data/<your_app_name>/data
volume that can
be used to persist data case the device resets or the app is restarted.
Special Volumes (For hardware capabilities)
Currently the following volumes are also available for development apps:
/dev/ttyUSB0
For GSM Mobile Huawei LTE USB-Stick/dev/ttyS0
For GPS Module/dev/snd
For Audio Module/dev/spidev0.0
For SPI (LED Matrix)/dev/spidev0.1
For SPI (LED Matrix)/dev/mem
For LED 7 Colors
LICENSE
MIT
Copyright (c) 2021 Record Evolution GmbH See license file on the source code