0% found this document useful (0 votes)
22 views20 pages

Json 3.2

Uploaded by

santhosh gg
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views20 pages

Json 3.2

Uploaded by

santhosh gg
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Modbus Gateway

GPRS – 4G/LTE - LAN - WiFi

JSON - Packet Format

Version 3.2

Wiman Communication Technologies


No.1, First Floor,
Narasingapuram Main Road, Maduvankarai
Guindy, Chennai - 6000032.
Ph : +91-44 48536045

sales@[Link] | [Link]

[Link] Wiman Communication Technologies, Chennai Page : 1


Modbus Gateway – JSON Data Format Ver.3.2

Modbus Gateway – JSON Client - Server Protocol Packet Format


The software described in this manual is furnished under a license agreement and may be used only in accordance
with the terms of that agreement.

General Notice
THIS DOCUMENT CONTAINS INFORMATION ON WIMAN PRODUCTS. THE SPECIFICATIONS IN THIS
DOCUMENT ARE SUBJECT TO CHANGE WITHOUT PRIOR NOTICE. THE RECIPIENT SHALL NOT TRANSFER, COPY,
MODIFY, TRANSLATE, REVERSE ENGINEER, CREATE DERIVATIVE WORKS, DISASSEMBLE OR DECOMPILE THE
PRODUCT OR OTHERWISE USE THE PRODUCT EXCEPT AS SPECIFICALLY AUTHORIZED. THE PRODUCT AND THIS
DOCUMENT ARE PROVIDED ON AN "AS IS" BASIS ONLY AND MAY CONTAIN DEFICIENCIES OR INADEQUACIES.
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, WIMAN DISCLAIMS ALL WARRANTIES AND
LIABILITIES. THE RECIPIENT UNDERTAKES FOR AN UNLIMITED PERIOD OF TIME TO OBSERVE NON-
DISCLOSURE REQUIREMENTS REGARDING ANY INFORMATION AND DATA PROVIDED TO HIM IN THE
CONTEXT OF THE DELIVERY OF THE PRODUCT. THIS GENERAL NOTE SHALL BE GOVERNED AND CONSTRUED
ACCORDING TO FINNISH LAW.

Copyright Notice
Transmittal, reproduction, dissemination and/or editing of this document as well as utilization of its
contents and communication thereof to others without express authorization are prohibited. Offenders will
be held liable for payment of damages. All rights created by patent grant or registration of a utility model or
design patent are reserved.

Copyright ©2012 wiman.


All rights reserved.
Reproduction without permission is prohibited.

Trademark Notice
Wiman is a registered trademark of Wiman Communication Technologies. All registered
trademarks or trademarks mentioned in this document are property of their respective owners.

[Link] Wiman Communication Technologies, Chennai Page : 2


Modbus Gateway – JSON Data Format Ver.3.2

Communication Modes (*Refer User Manual for more details for Device Configuration)

 Choose the Server Connection Mode - TCP or HTTP or MQTT. – Client Mode
 Server IP or Domain Name or Http URL in the Server IP/URL block.

Server IP: [Link]


Domain Name: [Link]
HTTP URL: [Link] (For Default Port - 80 )
or [Link] (For Special Port Number)

Server IP, Domain Name – Port Number assigned from Primary Port Field

TCP Client

HTTP Url – Http Url, default Port: 80 / Special Port have to specify in url

HTTP

MQTT Broker IP Address (Similar to TCP Connection)

MQTT

[Link] Wiman Communication Technologies, Chennai Page : 3


Modbus Gateway – JSON Data Format Ver.3.2

Types of Packets

GPRS/4G LAN/WiFi Difference in Parameters

imei mac Unique ID based on GSM IMEI number and MAC (*change name)

sig GSM Signal Strength, Not available for LAN and Wifi

nw GSM Network Operator Name

First Packet – Once device ON, Complete device Information

“login” LOGIN {"msg":"login","imei":"860987053697618","model":"WT-420C","cid":"WCT",


"type":"MEP-X","hwver":"1.0","swver":"1.0.16","mdbver":"1.0","time":"20221212110837",
"sig":29,"nw":"Airtel"}

Device System Alert, Any Changes in Normal State, triggered Immediately

“sys” System Alert { "data":{ "imei":"860987053697618","uid":1,"dtm":"20221212110801","seq":0,"msg":"sys",


"alert":"DR:0","info":"Device Reset"}}

Normal Modbus Event Packet as per configured polling Interval

“modbus” Modbus Event { "data":{ "imei":"860987053697618","uid":1,"dtm":"20221212110854","seq":1,"sig":29,


"msg":"log","modbus": [{ "sid":1,"stat":0,"rcnt": 5,"reg1":0,"reg2":0,"reg3":0,"reg4":0,"reg5":0 }] }}

Inbuilt Analog and Digital IO Packet based on IO Log Interval

“io” Inbuilt io { "data":{ "imei":"860987053697618","uid":1,"dtm":"20221212110854","seq":2,"sig":29,


"msg":"log","io": { "di1":0,"di2":0,"di3":0,"di4":0,"op1":0,"a1":0.00,"a2":0.00,"s1":0.00,"p1":0},
"dev": {"sysv":12.87}}}

[Link] Wiman Communication Technologies, Chennai Page : 4


Modbus Gateway – JSON Data Format Ver.3.2

1. LOGIN Event Packet (First Packet)


Whenever the device power up or system reset, Device will send the Complete Device
information as Login Packet.

GPRS - 4G/LTE LAN - WiFi


{ {
"msg":"login", "msg":"login",
"imei":"862607058707083", "mac":"D88039979903",
"model":"WT-400M", "model":"WE-60M",
"cid":"WCT", "cid":"WCT",
"type":"WM-4G XM", "type":"PRO-E",
"hwver":"1.1", "hwver":"1.1",
"swver":"1.1.1", "swver":"1.1.2",
"mdbver":"1.0", "mdbver":"1.0",
"time":"20210415124703", "time":"20401225095345"
"sig":17, }
"nw":"IND airtel airtel",
}
Field Data Description
msg login Type of Packet “login”, “sys”, “log”, “io”

Imei / mac 862607058707083 Device IMEI Number 15 Digit / MAC Address


model WT-400M Device Model Number

cid WCT Client ID Type

type WM-4G XM Type of Hardware

hwver 1.1 Hardware Version Number

swver 1.0 Firmware Version Number

mdbver 1.0 Modbus file version number

time 20210415124703 Time Stamp (YYYYMMDDHHMMSS)

sig 17 GSM Signal Strength

nw IND airtel airtel Registered Network Operator Name

[Link] Wiman Communication Technologies, Chennai Page : 5


Modbus Gateway – JSON Data Format Ver.3.2

Example Register Mapping

[Link] Wiman Communication Technologies, Chennai Page : 6


Modbus Gateway – JSON Data Format Ver.3.2

2. Data Event Packet (Modbus)


Single Slave and Single Index Based

{
"accesstoken":"wimankey1234",
"data":{
"imei":"865263045088539",
"uid":1, Communication Error (Slave Not Connected, Slave Register, Serial Settings Fault)
"dtm":"20210415191406", {
"seq":1, "accesstoken":"0",
"sig":29, "data":{
"msg":"log", "imei":"865263045088539",
"modbus": [{ "uid":1,
"sid":1, "dtm":"20210415191406",
"stat":0, "seq":16,
"rcnt": 5, "sig":29,
"msg":"log",
"reg1":11,
"modbus": [{ Slave Communication Error
"reg2":22, "sid":1,
"reg3":33, "stat":21,
"reg4":44, “indx”:1, Index Number on Error Present
"reg5":55 "rcnt": 0,
}] }]

Sl.N o Fields Sample Data Description


1 accesstoken wimankey1234 Authenticate the packet is valid
2 imei 864547034453436 Device IMEI Number 15 Digit
3 pver 1.0 Data Format Protocol Version
4 uid 1 Device ID
5 dtm 20180218161935 Time Stamp (YYYYMMDDHHMMSS)
6 seq 23 Packet Sequence Number
7 msg log Type of Packet – Modbus Data Packet
8 modbus modbus Type of packet array – modbus, io
[{ Modbus Content Start
sid 1 Slave ID
stat 0 Modbus Communication Error Code
rcnt 05 Number of Parameter Count
reg1 11 Register 1 Data
10 modbus
reg2 22 Register 2 Data
reg3 33 Register 3 Data
reg4 44 Register 4 Data
reg5 55 Register 5 Data
}] Modbus Content End

[Link] Wiman Communication Technologies, Chennai Page : 7


Modbus Gateway – JSON Data Format Ver.3.2

Single Slave and Multiple Index Based (Same Poll Delay)

{
"accesstoken":"wimankey1234",
"data":{
"imei":"865263045088539",
"uid":1,
"dtm":"20210415191406",
"seq":1,
Same Poll Interval
"sig":29,
"msg":"log",
"modbus": [{
"sid":1,
"stat":0,
"rcnt": 10,
"reg1": 11,
"reg2": 22,
"reg3": 33,
"reg4": 44,
"reg5": 55
"reg6": 66,
"reg7": 77,
"reg8": 88,
"reg9": 99,
"reg10": 100,
}]

[Link] Fields Sample Data Description

1 accesstoken wimankey1234 Authenticate the packet is valid


2 imei 864547034453436 Device IMEI Number 15 Digit
3 pver 1.0 Data Format Protocol Version
4 uid 1 Device ID
5 dtm 20180218161935 Time Stamp (YYYYMMDDHHMMSS)
6 seq 23 Packet Sequence Number
7 msg log Type of Packet – Modbus Data Packet
8 modbus modbus Type of packet array – modbus, io
sid 1 Slave ID
stat 0 Modbus Communication Error Code
rcnt 05 Number of Parameter Count
10 modbus
sid 1 Slave ID
reg1,2,3,4,5 11 ,22,33,44,55 Index 1 Data
reg6,6,7,8,9,10 66 ,77,88,99,100 Index 2 Data

[Link] Wiman Communication Technologies, Chennai Page : 8


Modbus Gateway – JSON Data Format Ver.3.2

Single Slave and Multiple Index Based (Different Poll Delay)

Different Poll Interval

Index : 1 Poll Delay : 1 (Log Interval-1) Index : 2 Poll Delay : 2 (Log Interval-2)
{ {
"accesstoken":"wimankey1234", "accesstoken":"wimankey1234",
"data":{ "data":{
"imei":"865263045088539", "imei":"865263045088539",
"uid":1, "uid":1,
"dtm":"20210415191406", "dtm":"20210415191436",
"seq":1, "seq":1,
"sig":29, "sig":29,
"msg":"log", "msg":"log",
"modbus": [{ "modbus": [{
"sid":1, "sid":1,
"stat":0, "stat":0,
"rcnt": 5, "rcnt": 5,
"reg1":11, "reg1":66,
"reg2":22, "reg2":77,
Event Packet – Index 1 Event Packet – Index 2
"reg3":33, "reg3":88,
"reg4":44, "reg4":99,
"reg5":55 "reg5":100
}] }]

[Link] Fields Sample Data Description


1 accesstoken wimankey1234 Authenticate the packet is valid
2 imei 864547034453436 Device IMEI Number 15 Digit
3 pver 1.0 Data Format Protocol Version
4 uid 1 Device ID
5 dtm 20180218161935 Time Stamp (YYYYMMDDHHMMSS)
6 seq 23 Packet Sequence Number
7 msg log Type of Packet – Modbus Data Packet
8 modbus modbus Type of packet array – modbus, io
sid 1 Slave ID
stat 0 Modbus Communication Error Code
9 modbus rcnt 05 Number of Parameter Count
sid 1 Slave ID
reg1..5 values Modbus Register Values

[Link] Wiman Communication Technologies, Chennai Page : 9


Modbus Gateway – JSON Data Format Ver.3.2

Multiple Slave and Slave ID Based

Different Poll Interval or Same

Slave : 1 Poll Delay : 1 (Log Interval-1) Slave : 2 Poll Delay : 2 (Log Interval-1)
{ {
"accesstoken":"wimankey1234", "accesstoken":"wimankey1234",
"data":{ "data":{
"imei":"865263045088539", "imei":"865263045088539",
"uid":1, "uid":1,
"dtm":"20210415191406", "dtm":"20210415191436",
"seq":1, "seq":1,
"sig":29, "sig":29,
"msg":"log", "msg":"log",
"modbus": [{ "modbus": [{
"sid":1, "sid":2,
"stat":0, "stat":0,
"rcnt": 5, "rcnt": 5,
"reg1":11, "reg1":66,
"reg2":22, "reg2":77,
Index 1 : Slave ID 1 Index 2 : Slave ID 2
"reg3":33, "reg3":88,
"reg4":44, "reg4":99,
"reg5":55 "reg5":100
}] }]

[Link] Fields Sample Data Description


1 accesstoken wimankey1234 Authenticate the packet is valid
2 imei 864547034453436 Device IMEI Number 15 Digit
3 pver 1.0 Data Format Protocol Version
4 uid 1 Device ID
5 dtm 20180218161935 Time Stamp (YYYYMMDDHHMMSS)
6 seq 23 Packet Sequence Number
7 msg log Type of Packet – Modbus Data Packet
8 modbus modbus Type of packet array – modbus, io
sid 1 Slave ID
stat 0 Modbus Communication Error Code
9 modbus rcnt 05 Number of Parameter Count
sid 1 Slave ID
reg1..5 values Modbus Register Values

[Link] Wiman Communication Technologies, Chennai Page : 10


Modbus Gateway – JSON Data Format Ver.3.2

Multiple Slave and Combined Single Event Based

{
"accesstoken":"0",
"data":{
"imei":"865263045088539",
"uid":1,
"dtm":"20210416093410",
"seq":3, Interval Should be Same
"sig":21,
"msg":"log",
"modbus": [{
"sid":1,
"stat":0,
"rcnt": 5,
"reg1":11,
"reg2":22,
"reg3":33,
"reg4":44,
"reg5":55 },
{ "sid":2,
"stat":0,
"rcnt": 5,
"reg6":66,
"reg7":77,
"reg8":88,
"reg9":99,
"reg10":100 }]
}}
[Link] Fields Sample Data Description

1 accesstoken wimankey1234 Authenticate the packet is valid


2 imei 864547034453436 Device IMEI Number 15 Digit
3 pver 1.0 Data Format Protocol Version
4 uid 1 Device ID
5 dtm 20210416093410 Time Stamp (YYYYMMDDHHMMSS)
6 seq 23 Packet Sequence Number
7 msg log Type of Packet – Modbus Data Packet
8 modbus modbus Type of packet array – modbus, io
sid 1 Slave ID
stat 0 Modbus Communication Error Code
9 modbus rcnt 05 Number of Parameter Count
sid 1 Slave ID
reg1..5 values Modbus Register Values
sid 2 Slave ID
stat 0 Modbus Communication Error Code
9 modbus rcnt 05 Number of Parameter Count
sid 1 Slave ID
Reg6..10 values Modbus Register Values

[Link] Wiman Communication Technologies, Chennai Page : 11


Modbus Gateway – JSON Data Format Ver.3.2

3. IO Event Packet
Only io Enabled

{
"accesstoken":"0",
"data":{
"imei":"865263045088539",
"uid":1,
"dtm":"20210416115820",
Enable Log Interval
"seq":8,
"sig":31,
"msg":"log",
"io": { "di1":1,
"di2":0,
"a1":12.19,
"a2":0.00,
"s1":0.00},
"dev": {"sysv":12.21}}}
[Link] Fields Sample Data Description

1 accesstoken wimankey1234 Authenticate the packet is valid


2 imei 864547034453436 Device IMEI Number 15 Digit
3 pver 1.0 Data Format Protocol Version
4 uid 1 Device ID
5 dtm 20210416093410 Time Stamp (YYYYMMDDHHMMSS)
6 seq 23 Packet Sequence Number
7 msg log Type of Packet – Modbus Data Packet
di1 1 ADI-1 : Digital Status (0 – OFF / 1 – ON)
di2 0 ADI-2 : Digital Status (0 – OFF / 1 – ON)
9 io a1 12.26 ADI-1 : Analog Voltage Level – Max 24V DC IN
a2 14.32 ADI-2 : Analog Voltage Level – Max 24V DC IN
s1 33 4 to 20mA Analog Chanel Current in mA
10 dev sysv 12.21 Device System Voltage (Input Power)

IO Sett, Modbus IO Log Difference

{ ascesskey:wiman12345, { ascesskey:wiman12345,
"data":{ "imei":"860057064326324", "data":{ imei":"860057064326324",
"uid":1,"dtm":"20230108104024", "uid":1,"dtm":"20230108103810",
"seq":6, "seq":37,
"sig":21, "sig":23,
"msg":"io", "msg":"log",
"io": { "di1":0,"di2":0,"op1":0,"a1":0.00,"a2":0.00,"s1":0.00,"p1":0},"dev": {"sysv":12.15}}} "io": { "di1":0,"di2":0,"op1":0,"a1":0.00,"a2":0.00,"s1":0.00,"p1":0},"dev": {"sysv":12.14}}}

Cannot Combined with Modbus Event Packet Can Combined with Modbus Event

[Link] Wiman Communication Technologies, Chennai Page : 12


Modbus Gateway – JSON Data Format Ver.3.2

Enabled with Modbus – Combined Single Event


{
"accesstoken":"wimankey1234",
"data":{
"imei":"865263045088539",
"uid":1,
"dtm":"20210416115820",
"seq":8,
"sig":31,
"msg":"log",
Same Interval
"io": { "di1":1,
"di2":0,
"a1":12.19,
"a2":0.00,
"s1":0.00},
"dev": {"sysv":12.21},
"modbus": [{
"sid":1,
"stat":0,
"rcnt": 5,
"reg1":11,
"reg2":22,
"reg3":33,
"reg4":44,
"reg5":55 }]
}}
[Link] Fields Sample Data Description

1 accesstoken wimankey1234 Authenticate the packet is valid


2 imei 864547034453436 Device IMEI Number 15 Digit
3 pver 1.0 Data Format Protocol Version
4 uid 1 Device ID
5 dtm 20210416093410 Time Stamp (YYYYMMDDHHMMSS)
6 seq 23 Packet Sequence Number
7 msg log Type of Packet – Modbus Data Packet
8 io io Type of packet array – modbus, io
di 00 Digital IN 0 Status
di1 1 ADI-1 : Digital Status (0 – OFF / 1 – ON)
di2 0 ADI-2 : Digital Status (0 – OFF / 1 – ON)
9 io
a1 12.26 ADI-1 : Analog Voltage Level – Max 24V DC IN
a2 14.32 ADI-2 : Analog Voltage Level – Max 24V DC IN
s1 33 4 to 20mA Analog Chanel Current in mA
10 dev sysv 12.21 Device System Voltage (Input Power)
sid 1 Slave ID
stat 0 Modbus Communication Error Code
11 modbus rcnt 05 Number of Parameter Count
sid 1 Slave ID
reg1..5 values Modbus Register Values

[Link] Wiman Communication Technologies, Chennai Page : 13


Modbus Gateway – JSON Data Format Ver.3.2

4. System Alerts:
{
"accesstoken":" wimankey1234",
"data":{
"imei":"865263045088539",
"uid":1,
"dtm":"20210416093410",
"seq":0,
"msg":"sys",
"alert":"DR:0",
"info":"Device Reset" Check USER Manual for SMS Alerts Enable Alert Options
}}
[Link] Fields Sample Data Description

1 accesstoken wimankey1234 Authenticate the packet is valid


2 imei 864547034453436 Device IMEI Number 15 Digit
3 uid 1 Device ID
4 dtm 20210416093410 Time Stamp (YYYYMMDDHHMMSS)
5 seq 23 Packet Sequence Number
7 msg sys Type of Packet – System Alert Packet
9 alert DR Device RESET/REBOOT
10 Info Device Reset Detail Information of Alert Code

List of Alert Codes


[Link] Fields Sample Data Description
1 PU Device Power UP Device Power ON Time
2 PF Device Power Fail Device Power Fail Time
3 DR Device Reset Device Reset/Reboot Time
4 SR Schedule Reboot If Network/Server Issue – Auto Reboot
5 PR Device Power Restore If Battery Based, Main Power Restore
6 BL LOW Battery If Battery Based, Low Battery Alert
7 BS LOW Battery Shut If Battery Based, Device going to OFF
8 GR GSM Reg Network Registration Failed
9 GC GPRS Connect GPRS Connect Failed
10 IP IP Connect Server IP Connect Failed
11 SF CPIN Fail No SIM Card – SIM Read Failed
12 SM SYS-Msg System Message
13 LO Log [Link] Offline LOG Buffer Overflow
14 II INPUT Digital IN Change – State Change
15 OO OUTPUT Digital Output State Change
16 RF RTC Fail Real Time Clock Failed
17 TS RTC Time Set Real Time Clock New time SET
18 TO Trigger IO Trigger Enabled, Condition Triggered
19 CF Slave device Comm Fail Modbus Slave Device Communication Fail
20 FT File Update OTA Update Status

[Link] Wiman Communication Technologies, Chennai Page : 14


Modbus Gateway – JSON Data Format Ver.3.2

5. Modbus Exception Codes:


Note: 1 to 11 - Standard Modbus Exception codes.
21 to 24 - Custom Exception codes

Exception Code Event Description

0 Device Online

1 Illegal Function

2 Illegal Data Address

3 Illegal Data Value

4 Slave Device Failure

5 Acknowledge

6 Slave Device Busy

7 Negative Acknowledge

8 Memory Parity Error

10 Gateway Path Unavailable

11 Gateway Target Device Failed to Respond

21 No Reply from Slave Device

22 CRC Fail

23 Field Count Mismatch

24 Poll Data Error

[Link] Wiman Communication Technologies, Chennai Page : 15


Modbus Gateway – JSON Data Format Ver.3.2

6. Commands Flow

Command Type Example Command Description


Get <[Link] > Read the Current IP Address Settings from Device
Cfg <[Link]: xxxxxxxx > Configure or update System Settings in device
Cmd <[Link] > Command the device
Stat <[Link] > Read the Status of GSM or IO Information
Info <[Link] > Device the Complete Device information
DEVCMD <DEVCMD: DREGCLR > Device Command to Clear the Modbus Register Configuration

Decode Commands -> Open .cfg file in Notepad (Reply of GET Commands)

By SMS/Server Commands, We can update all System Configuration – Except Modbus Registers
Modbus Register Can Update via FTP, HFS, TCP Server Utility as a File Transfer (OTA)

.mdb file is encrypted – Non-Readable

[Link] Wiman Communication Technologies, Chennai Page : 16


Modbus Gateway – JSON Data Format Ver.3.2

7. Device Commands
Status Commands
Status Command Description

*2222#<[Link] > Read the Status of GSM Connection Status

IMEI=860057064326324 IMEI=Device IMEI Number


DT=08-01-2023 19:59:24 DT=Current Data and Time
NW=Airtel-R FDD LTE 31db NW= Network Operator Name, Network Type, Signal Strength
GPRS=1:C GPRS= Internet Attached: C = Connect / NC = Not Connect
APN=[Link] APN= APN M=Manual / A=Auto – APN Name Configured or Auto Assigned
MQT=C-OK,1 MQT= MQTT Connection C – OK = Connect / FAIL = Not Connect, Number of Retry for Connection
PRI=T:NC PRI= T=TCP / H=Http: CONT = Connected / NC = Not Connected
LOG=1 LOG= Device Internal Offline LOG Count
SMS=9 SMS= Per Day SMS LOG Count
NTP=1 NTP= Network Time Protocol – 1 = OK, 2 = Failed

*2222#<[Link] > Read the Read Hardware and Software Version Information

DM=WT-410M DM= Device Model Number


IMEI=860057064326324 IMEI= Device IMEI Number
Boot=1.0 Boot= Hardware Boot Ver
Fw=W4G LITE,HW:1.0,SW:1.0.49 Fw=Kernal Name, Hardware Ver, Software Ver
Sys=OK Sys= System Configuration Status
Mdb=MbusCfg-1 Mdb=Modbus Configuration Name
CId=WCT CId=Client ID
BOn=Nov 5 2022 16:48:05 BOn=Firmware Compiled Date and Time

*2222#<[Link] > Read the Modbus Communication Transaction Status


WT Wiman SITE WT Wiman SITE - Device Name

Cmd Max=4 Cmd Max= Number of Blocks/Index


Slave Max=3 Slave Max=Maximum Number of Slaves
BOVF=0 BOVF= Buffer Over Flow, Exceeds Packet Size
SlvId TxCnt ErrCnt Stat Tms DCnt SlvId TxCnt ErrCnt Stat Tms DCnt
-------------------- Slave ID | TX Count | Error Count | Error Status | Reply Response msec | Data - Byte length
1 1 0 0 120 11 --------------------
2 1 0 0 120 11 1 1 0 0 120 11
2 1 0 0 110 11
3 1 0 0 100 11
*2222#<[Link] > Read the Current Status of IO

WT Wiman SITE WT Wiman SITE - Device Name


SYS:12.16V SYS: System Voltage
DI1:OFF DI1: Input 1 - ON/OFF Status
DI2:OFF DI2: Input 2 - ON/OFF Status
DO1:OFF DO1: Relay ON/OFF Status
AI1:0.00 AI1: Input 1 Analog Voltage value
AI2:0.00 AI2: Input 1 Analog Voltage value
ICH1:0.0 ICH1:4 to 20mA Current Value
PUL1:0 PUL1:Pulse Counter Value – Cumulative (* Optional HW Option)

[Link] Wiman Communication Technologies, Chennai Page : 17


Modbus Gateway – JSON Data Format Ver.3.2

Control Commands
Control Command Description
*2222#<[Link] > Command to Reboot the device

*2222#<[Link]> Restore Factory Default Settings


*2222#<[Link] > Command to Clear the data Logger
*2222#<[Link] > Send Current Event Data, Used in POLL Control Query Based
*2222#<DEVCMD: DREGCLR > Clear the Modbus slave and register configuration settings
*2222#<DEVCMD: RTC=12,55,00,08,01,2023 > Set the RTC time in device Manually.

Configuration Commands
Command Description

*2222#<[Link] > Primary Server Configuration, SSL, APN Configuration

*2222#<[Link]: RMODE="2",PRI-IP="[Link]",PRI-PORT="1883",PSSL="1,2",APN="[Link]",AAS="0",USER="",PSWD="" >

*2222#<[Link] > Device information and Protection Configuration

*2222#<[Link]: ID="1",NAME="Wiman SITE",UPSWD="2222",SMS="1,0",PH1="",PH2="",PH3="">

*2222#<[Link] > Device and Server Connection Configuration

*2222<[Link]: CMODE="1,0,5,2",PING="1,180,PING",HTTP-MET="0",LOG-FRMT="1">

*2222#<[Link] > Serial Communication Configuration

*2222#<[Link]: SERIAL="1,2,0,0,0",LOG-MODE="1,512,512" >

*2222#<[Link] > Time Setting Configuration


*2222#<[Link]: GMT="+05:30",DATA-HDR="$WMBUS,$WTIO,$WTSYS",T-
SYNC="1,30",TFRMT="0",ETSMS="0,0",DAYSMS="100">

*2222#<[Link] > Modbus Data Packing Configuration

*2222#<[Link]: EDAT="2",EPAK="1",IOEN="1",ELOG="10,60,120,150,300,300,300,300",MTIM="100,10,2",ICTM="50",
PCON="0,1,06:00-07:00,0,0,1,300",POLL="30">
*2222#<[Link] > IO Enable and Interval Configuration

*2222#<[Link]: IO-SETT="0,10",I-CAL="100,1",INP1="Wiman! Pump,ON,OFF",INP2="Alert ! Valve ,ON,OFF">

*2222#<[Link] > IO Alert Configuration

*2222#<[Link]: AEN="3",PWR="1",SHT="1",INP="1",OUT="0" >

*2222#<[Link] > API Key Configuration, Post Header, JSON Event

*2222#<[Link]: XAKEY="'ascesskey':'wiman12345'",XKA="0">

*2222#<[Link] > MQTT Credential Configuration

*2222#<[Link]: MCUID="$IMEI",MAUTH="1",MUSR="user1",MPSWD="pswd1",MQOS="1" >

*2222#<[Link] > MQTT Topic Configuratiom

*2222#<[Link]: MPUB1="event",MPUB2="reply",MSUB1="command" >

[Link] Wiman Communication Technologies, Chennai Page : 18


Modbus Gateway – JSON Data Format Ver.3.2

FTP Update Commands

*2222#<[Link]: FCFG="0",SERV="[Link]",PORT="21",FUSR="user1",FPSD="pass1",PATH="/4G/",
Command
FILE="[Link]",UPDT="1" >

Field Type Value Description


SERV [Link] Server name
PORT 21 FTP port number
FUSR user1 FTP username

FPSD pass1 FTP password


PATH /4G/ File path name
FILE [Link] File name
UPDT 1 0 – Enable, 1- Enable to run ftp configuration

Free FTP Servers


[Link]
[Link]

HFS Update Commands

Command *2222#<[Link]: HURL="[Link] [Link]",UPDT="3" >

Field Type Value Description


HURL [Link] [Link] HFS File Link
UPDT 3 By Default, 3

Free HFS Servers


[Link]

All these Commands can be executed from SMS / Server IP Commands

*2222#<> / $IPCFG,<>

[Link] Wiman Communication Technologies, Chennai Page : 19


Modbus Gateway – JSON Data Format Ver.3.2

Find / Verify the Correct Value – Which Endian

Reg1 = FD71436C
Correct Value = 236.99

Correct Byte Order = CD AB

reg1 value = FD71436C

[Link]

[Link] Wiman Communication Technologies, Chennai Page : 20

You might also like