Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Info |
---|
In this example, we use FileZilla to configure the device and Modbus |
...
Doctor to read |
...
Modbus data from µWiotys |
...
Connect your gateway
First, install your gateway with proper accessories according to your model and connect it to your local network.
You should be able to ping the gateway (default address is 192.168.1.100). If this is not possible, please make sure that the necessary ports are open. (Those are listed in Description)
...
...
Configure your devices
FirstNext, you need to create the configuration file (named devices_update.json) that contain necessary informations : Reference, DevEUI, AppKey, Modbus Slave address,...
...
Once your configuration is ready make sure to rename it devices_update.json.
...
...
Push device configuration with FileZilla
...
It is now time to connect to your gateway using a FTP client (like, for instance, FileZilla)
Open Site manager
Create a new site
Configure host with the gateway's IP
Port is 2222
Use SFTP protocol
Fill Enter User and Password
You now should be able to connect to the gateway
...
Note |
---|
Warning!!! The answer time of µWiotys' FTP can be very long, especially on fixed IP. If necessary, you should extend FileZilla timeout to 60 seconds. |
To do so : Edit → Settings
...
Once connected to the FTP server, copy the devices configuration file ** devices_update.json** (previously created) into the directory: /uwiotys/update_config/
You After that, you need to reboot to process the device update.
See FTP configuration for more details.
Note |
---|
Warning The Lora LoRa device should only be started after the configuration is succesfully successfully done. µWiotys configuration must be valid before the device does a Join Request. |
...
Read with Modbus Doctor
...
Configuration
TCP/IP IP adress address is µWiotys IP adress address Numport : 502 - Timeout : 1000.
To read modbus Modbus device previously configured, select slave 5 in modbus doctor.
Get device configuration
AdressAddress | Size | Description | Type |
---|---|---|---|
0x0000 | 1 | Modbus dictionary's version | uint16 |
0x0001 | 4 | Device EUI | uint64 |
0x0005 | 1 | Device Wi6labs reference ID | uint16 |
...