Some M2M Routers can support Modbus; but how to config this Modbus? Here we can check E-Lins router as an example.
Config Modbus on router Web GUI; open page ServicesàModbus.
Note: if we want to access modbus server from WAN or cell port, then it requires to config firewall to open TCP port.
- Connect terminal blocks pin TX, RX, GND to DB9, then connect to PC serial port.
- Open Modbus Slave on PC which connect to router terminal blocks.
- Click connection then config it like this:
Config it as Serial Port, RTU. Baud rate, Data Bits, Parity and Stop Bit shall be same as the configuration as Modbus page on router.
- After all setup is done, click “OK”.
- PC connect to router via ethernet cable, then open tool Modbus Poll.
- Click connection, then config it like this:
- 192.168.8.1 is router LAN IP in this case. If you want to access it via cell interface, then it shall be cell IP address. The Port is same value as TCP port at router Modbus configure page.
- After all setup is down, then click “OK”.
- Config Modbus Slave, double click address 0 then config it as auto increment.
- Check value on Modbus Poll.
- Double click Grid at Modbus Poll, set single Register value as 5.
- Check it at Modbus slave, the same register value changed accordingly.
If you have further issues or questions, just freely contact with E-Lins Tech Team.