Professional Documents
Culture Documents
Specification:
KIRAN ELECTRONICS 1
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
Package Includes:
Features:
• Modbus RTU/TCP (RS485/Ethernet) to MQTT (4G/WiFi/Ethernet) Gateway is Reliable, Flexible and Plug-n-
play device to fetch data Over Modbus RTU/TCP and send them to cloud using MQTT protocol over
4G/WiFI/Ethernet Network.
• Ethernet & WIFI interface’s IP/subnet/gateway and DHCP settings is configurable.
• 4G, Ethernet and WIFI interface can be enable/disable independently.
• Internet can be possible through any 4G/ethernet/WIFI network interface.
• Gateway can be configured over SMS/MQTT connection.
• Multiple Modbus RTU/TCP transactions can be configured to fetch data from variety of Modbus Slave devices
like Energy meter, Temperature scanners etc.
• Field tested with Mosquitto MQTT Broker (Most widely used MQTT broker).
• Multiple Modbus RTU slaves can be connected to same RS485 network even with different baud rates.
• Multiple Modbus TCP slave/servers can be connected to RJ45 Ethernet port using Ethernet hub/switch.
• Modbus write operation is also allowed to configure Modbus devices remotely.
• Standard JSON data format for easy parsing at server side.
• Data transmission interval can be configured.
• Data can be buffered if server is disconnected.
• Gateway module will automatically connect with MQTT Broker and remains connected. It will automatically
reconnect if required.
• Module will automatically reboot itself if required (network or server connection fails repeatedly).
• All configuration like MQTT Broker URL/IP, Port no, User Name & Password, Modbus RTU Slave Baudrate
for serial port (2400, 4800, 9600, 19200, 38400, 57600, 115200), Modbus TCP Server IP/Port settings can be
done via SMS.
• Over-The-Air (OTA) Firmware Update supported for feature update and bug fixings.
• Made in India. Can be customized as per client requirement.
KIRAN ELECTRONICS 2
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
MQTT Details:
Note: Please note that we also provided customized firmware (MoQ. required or one-time customization
charges will be applied) if your requirements are differ from below specifications.
1) All the packets generated from Gateway will contain data in JSON format. Please refer examples given below
2) Data of all the active Modbus transactions are aggregated into single "STATUS" JSON packet. It will make easy to
process the data at server end as all the required data are available in single JSON packet.
3) Max. Number of RTU transactions:25
4) Max. Number of TCP transactions:25 (over Max 10 TCP connections to Modbus TCP Servers)
5) Max. Number of Modbus registers read / transaction: 64
6) Max. Number of Modbus registers write / transactions: 10
7) Max. Number of Modbus RTU registers read: 1200
8) Max. Number of Modbus TCP registers read: 1200
MQTT topics:
1. connection/<device-ID> ==> subscribe on this topic to get device connection status. This is retained topic
so your server will get Online/Offline status immediately after subscribing to this topic.Topic name is
configurable if needed.
2. data/<device-ID> ==> subscribe on this topic to receive Modbus transaction data. This is retained topic so
your server will get last published data immediately after subscribing to this topic.Topic name is
configurable if needed.
4. config-res/<device-ID>/0 ==> subscribe on this topic to receive response of configuration RPC commands.
Topic name, except ‘+’ part, is configurable if needed.
KIRAN ELECTRONICS 3
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
KIRAN ELECTRONICS 4
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
4) From Server to Device (Configuration commands are described later in this manual)
Topic:
config-cmd/861693039912345
Data:
SET MB SCAN INTERVAL#60
KIRAN ELECTRONICS 5
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
• All configuration commands are allowed from SMS. But not all commands are allowed from MQTT.
Modbus read/write transaction configuration commands are allowed from MQTT.
1) SET ADMIN
// need be make one mobile number as “Admin” number before sending other configuration commands.
// configuration commands will only be accepted from Admin mobile number.
// you need not set Admin mobile again, if you change SIM card of Modbus Gateway device.
2) UNSET ADMIN
// if you need to change Admin mobile number, first send this command from current Admin mobile no.
// then send “Set Admin” command from new Admin Mobile no.
KIRAN ELECTRONICS 6
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
9) GET ID#<1-3>
// allowed from MQTT
// to check currently configured user ID for specific ID no.
i.e. GET ID#1
10) REBOOT
// allowed from MQTT
KIRAN ELECTRONICS 7
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
KIRAN ELECTRONICS 8
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
KIRAN ELECTRONICS 9
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
KIRAN ELECTRONICS 10
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
10) SET MB TX DELAY#<modbus transaction ID>,<pre-TX Delay microsecond>,<post-TX Delay microsecond >
// allowed from MQTT
// Tune pre and post delay in RS485 half-duplex communication, if modbus communication is not reliable
// delay in microsecond. Range [0-50000] microsecond
// default: pre-TX: 100 us, post-TX: 100 us
SET MB TX DELAY#1,10,100
KIRAN ELECTRONICS 11
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
KIRAN ELECTRONICS 12
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
KIRAN ELECTRONICS 13
424, Kalasagar Shopping Hub, Nr. Satadhar Cross Road, Ghatlodia, Ahmedanad – 380061, (GUJ)
(P): +91 7600002163 (E): ankit@EmSysTechnologies.com(W): www.EmSysTechnologies.com
KIRAN ELECTRONICS 14