User Manual 1. Introduction 1.1. Overview The IoT-C104 Series are network-based serial device servers that connect RS- 485 serial devices, such as PLC, meters,sensors,weigh scale, barcode scanner, card reader and serial printer directly to a TCP/IP network. Data coming from the Ethernet port is sent to the designated RS-485 port and data received from RS- 485 port is sent to the Ethernet port, allowing bidirectional communication.In the...
Page 6
User Manual ■ Modbus Ethernet-to-Serial support (Modbus/TCP, Modbus/RTU) for seamless integration of serial Modbus devices ■ Provides rich configuration access, including: Windows configuration tool, and Web Browser ■ Firmware upgrading via Web Browser and Windows configuration tool ■ Easy-to-use Windows configuration tool for auto discovery, multiple device setting and monitoring ■...
User Manual 2. Get started Since the IoT-C104 Series is connected through a TCP/IP network, you may need to know some basic facts about networking in order to connect the server correctly. Specifications and dimensions are not provided in this manual since they may differ considerably based on the hardware purchase.
User Manual ⟡ For device disassembling please power off the device and unscrew the screw on the wall about 2mm. Lift the device upward slightly, take out the device, 2.1.2. DIN-Rail mounting DIN-Rail mount kits must be purchased separately. They are not provided with the C104. If you have purchased the DIN-Rail mount kit, proceed to place the screws on the back of the device as show in Fig.2.
Page 9
User Manual Fig.3 Install DIN-Rail mounting kit ⟡ Once the DIN-Rail is seated correctly in the DIN-Rail clip, press the front of the device to rotate the device down and into the releasetab on the DIN-Rail clip. If seated correctly,the bottom of the DIN-Rail should be fully inserted in the release tab.
Page 10
DIN rail clip release tab with your finger. As the clip releases, lift the bottom of the device, as shown in the following illustration. Fig.5 Remove the DIN-Rail The IoT-C104 supports only RS-485 protocols, and adopts 3-pin 5.08mm pitch industrial terminal blocks. The serial port pin assignments are shown in Fig.6.
2.4. Ethernet RJ45 interface The 10Base-T/100Base-TX adaptive Ethernet RJ45 interface supports automatic MDI/MDIX connection, refer to Fig.8 below for the pin distribution of the RJ45 interface. IoT-C104 serial servers adopt RJ45interface with light, as shown in the picture below. Fig.8 RJ45 with light...
Receive data-(RD-) 4,5,7,8 Unused 2.5. LED indicators The IoT-C104 serial device server provides LED indicators to monitor the device working status with a comprehensive simplified troubleshooting, the function of each LED is described in the table as below. Table2 LED indicators...
User Manual 2.7.1. Hardware connection For fast networking of IoT-C104 series serial server, you need to prepare a PC, a router, a serial server, a network cable, a serial cable, and a DC12V/1A power supply. The hardware connection is shown in Fig. 9. To establish a TCP / IP network all devices must be connected to the same network either locally or via gateway connections.
Page 14
IP address of serial server is: 192.168.0.7. Set the PC's IP address as: 192.168.0.X (X is any valid value from 2 to 253 except 7). The specific Windows system operation page is shown in Fig.11. you can access the Web page of the IoT-C104 series serial server through browser as mentioned above.
3. Configuration and parameter details 3.1. Web interface(V1 version) Every IoT-C104 Industrial Serial Device Server is equipped with a built-in web server in the firmware. Therefore, the device can be accessed by using a web browser for configuring by entering the device ’s IP address in the URL field of your web browser. An authentication will be required and you will have to enter the username (Default value is“admin”) and password...
User Manual Fig.12 Authentication Required for Accessing Web Interface 3.1.1. Status After entering the correct user name and password and the authentication is successful, you will enter the main page of the Web, as shown in Fig.13. The main page can be roughly divided into three areas.
Page 17
User Manual Fig.13 The main interface of the Web server The function of the device status part is to display some specific information of the current device, including module name,firmware version, IP address, DNS, MAC address, running time and serial port status. Table4 Status list Parameter Iem...
3.1.2. IP settings You must assign a valid IP address to the IoT-C104 before it will work in your network environment. The IP address must be unique within the network. If the device is connected to the Internet and should connect to other servers over the Internet to get some services such as Network Time Protocol (NTP) server, you will need to configure the DNS server in order to be able to resolve the host name of the NTP server.
User Manual The part of the IP address corresponding to the 1 bit in the mask is the subnet address, and the other bits are the host address. The mask for class A addresses is 255.0.0.0,the mask for class B addresses is 255.255.0.0,the mask for class C addresses is 255.255.255.0.
Page 20
User Manual TCP/IP protocol to solve common serial equipment Networking problems on the Internet. The Port configuration page can configure the parameters of the serial port and socket, as shown in Fig.16. Fig.16 Serial port configuration page Details on work mode connectivity protocols and its settings of C104 series are given in Chapter 4 Operation modes, this section will only focus on the part of parameter description.
User Manual Flow control This allows you to choose how the data flow will be controlled. Choices are: (No Flow Control), RTS/CTS (Hardware Flow Control), or Xon/Xoff (Software Flow Control). Set this to match the flow control setting of the connected device. Default is None. If Xon/Xoff is selected, the Xon and Xoff characters are 0x11for Xon and 0x13for Xoff.
User Manual Fig.17 Websocket server 3.1.5. Miscellaneous settings This configuration tab includes several system level settings, such as device name, websocket, system log, user name and password. Most of these settings are optional.
Page 23
User Manual Fig.18 Miscellaneous settings Table8 Miscellaneous settings Parameter Item Description Module name The name of the device, up to 32 characters,canʼ t be null Websocket port Websocket server listen port NO. Range 1-65535 Websocket direction Click the drop-down menu to select websocket mapping direction: UART or Lg. Webserver port Web server listen port NO.
Module management ⟡ Reboot This function is used to restart the IoT-C104 series serial server by software. Before the serial server is completely restarted, the device does not work and cannot forward any data packets. This restart is different from the hardware reset of power-n restart, but the serial server system software is reset, just like the "warm restart"...
3.2. Web interface(V2 version) Every IoT-C104 Industrial Serial Device Server is equipped with a built-in web server in the firmware. Therefore, the device can be accessed by using a web browser for configuring by entering the device ’s IP address in the URL field of your web browser. An authentication will be required and you will have to enter the username (Default value is“admin”) and password...
Web, as shown in Fig.21. Fig.21 Overview Web Page of IoT-C104 (V2 version) The function of the device status part is to display some specific information of the current device, including system, network, serial port, mqtt gateway and Edge computing status.
3.2.2. IP settings You must assign a valid IP address to the IoT-C104 before it will work in your network environment. The IP address must be unique within the network. If the device is connected to the Internet and should connect to other servers over the Internet to get some services such as Network Time Protocol (NTP) server, you will need to configure the DNS server in order to be able to resolve the host name of the NTP server.
Page 28
User Manual Fig.22 Network web page Table10 Network configuration list Parameter Item Description Network protocol Click the drop-down menu to select the IP Address Setting mode: Static or DHCP. If you choose DHCP, the rest of the options will be greyed out or disabled. DNS type Click the drop-down menu to select the NS mode: auto or manual.
User Manual The configuration will save to flash memory after clicking Save button. All configurations take effect after a system reboot. 3.2.3. Serial port settings The serial port module includes: serial port parameter configuration, network parameter configuration. The main function of the serial device server is to carry out two-way transparent transmission of standard serial bus data (RS-485) and standard Ethernet data supporting TCP/IP protocol to solve common serial equipment Networking problems on the Internet.
Page 30
User Manual Fig.23 Serial port configuration web page Table11 Serial settings list Parameter Item Description Baud rate This sets the portʼ s data transfer speed. Choices are from 600—921600.Set this to match the baud rate setting of the connected device. Default is 115200. Data bits This sets the number of bits used to transmit oe character of data.
Page 31
User Manual Fig.24 Socket configuration web page Table12 Operation modes settings list Parameter Item Description Work mode IoT-C104series supports 5 different operation Modes which are TCP Server, TCP Client, and UDP,HTTP client and websocket. The operation Mode describes the role of the device and the connection between the device and other remote devices in the network which would like to communicate with serial device on C104ʼ...
User Manual Modbus exception This option is used to enable modbus exception checking. If selected, error messages (TCP exception codes) are generated if a problem (such as a message timeout) should occur during Modbus operations. SSL protocol Choose TLS/SSL data encryption protocol version Socket B Socket B supports 2 different operation Modes which are TCP Client, and UDP client, this socket is closed by default.
Page 33
User Manual Fig.26 MQTT connection profiles Table13 MQTT basic setting Parameter Item Description Enable Turns MQTT gateway on or off. Version Select the mqtt protocol version. V3.1 and V3.1.1 are supported. Client ID The client ID defined the identifier of the C104 Gateway. The IDs of the various MQTT clients have to be unique for the respective MQTT Broker.
Page 34
User Manual Fig.27 Topic to publish Table14 Publish message setting Description Parameter Item Transmission mode Transparent transmission, just as its name implies,the gateway does not process any data, forward the data directly. Topic distribution,in this mode users should define a topic ame when configuring thetopic. After receiving serial port data, the device pushes it to the associated topics based on the topic name.
User Manual Fig.28 Topic to subscribe Table15 Subscribe message setting Parameter Item Description Transmission mode The data printed to the serial port can be set whether to carry the Topic Topic string Same to Table 14 Binding port Same to Table 14 Same to Table 14 3.2.6.
Page 36
User Manual Fig.29 Edge computing enabled Fig.30 Modbus slaves and datapoints configuration Table16 Modbus RTU poll configuration Description Parameter Item Device name The Modbus slave device identifier, which is unique for the current gateway. The device name must be less than 30 characters in length, and can contain letters, digits, underscores . COM Port Which serial port the modbus slave device connected to.
Page 37
User Manual Polling interval The interval at which data is collected. Modbus is a communications protocol with half- duplex transmission. Gateways send requests to collect data from devices. Therefore, you must specify the data collection interval. The unit is millisecond. If 60 milliseconds is required to collect the data of each property, the total time required to collect the data of all properties is calculated as follows: Total required time = Time required to collect the data of each property (60 ms) ×...
The payload format. Users can custom which data points should report to the server. 3.2.7. Cloud service Please refer to“IoT-C104 Quick Start Guide with AWS IoT”for detail. 3.2.8. System setup This system setting tab includes several system level settings, such as device name, websocket,...
Page 39
User Manual Fig.32 System settings Table19 System settings list Parameter Item Description Module name The name of the device, up to 32 characters,canʼ t be null Websocket port Websocket server listen port NO. Range 1-65535 Websocket direction Click the drop-down menu to select websocket mapping direction: UART or Log. Webserver port Web server listen port NO.
Module management ➢ Restart This function is used to restart the IoT-C104 series serial server by software. Before the serial server is completely restarted, the device does not work and cannot forward any data packets. This restart is different from the hardware reset of power-on restart, but the serial server system software is reset, just like the "warm restart"...
4. Operation modes The IoT-C104 Series provides various operations: TCP Server/ Client mode, UDP mode, HTTP mode and Websocket mode. The main difference between the CP and UDP protocols is that TCP guarantees delivery of data by requiring the recipient to send an acknowledgement to the sender.
4.1.1. Properties In TCP server mode, the TCP connection is initiated from the host to the IoT-C104 Series device server. This operation mode supports a maximum of 16 simultaneous connections for each serial port on a device server from a single or multiple hosts After the connection is established between the serial device server and the remote host computer (remote TCP client) , data can be transmitted in both directions.
Page 43
IoT-C104 . Server IP is IP address of IoT-C104 , server port is local port of IoT-C104 . In this case, IP address of IoT-C104 is 172.16.14.12.
Server mode, and its IP address and port number must be configured, which can be configured in the corresponding options of the network connection. The local port number can be ignored and no configuration is required. IoT-C104 supports SSL (TLS v1.0 or v1.2) data encryption in this operating mode.
Page 45
User Manual Fig.37 TCP client work mode Please follow the following steps to configure connection settings of the work mode for PORT1 port. Click on the“Port1”tab on the menu frame on the left side of Web UI to go to Port1 page as shown in Fig.37.
User Manual 4.2.2. SSL/TLS If SSL certificate authentication is enabled on the remote server, user need to configure SSL encryption parameters on C104. User can select TLS1.0 or TLS1.2 version protocol. User can select None certificate Authentication, server certificate authentication and bidirectional certificate authentication.
When the working mode of the device is UDP server, the remote device must also work in UDP mode. You only need to specify the Local Port that IoT-C104 should listen to. In UDP server mode, serial port data is always sent to the last peer UDP device(IP and port) that communicates with the Io-C104 , and the IoT-C104 can record the IP and port number only after the peer UDP device sends data to the IoT-C104 first.
Page 48
After receiving a UDP packet, the system updates the destination IP address and port number, and sends the data back to the latest IP address and port number. In this case, IP address of IoT-C104 is 172.16.14.12, host IP address is 172.16.14.15.
User Manual 4.4. UDP Client 4.4.1. Properties When the working mode of the device is UDP client, the remote device must also work in UDP mode. C104 supports remote IP address and port verification. After verification is enabled(OFF), the C104 only communicates with the destination port of the destination IP address.
"Save & Apply" button to save all the changes that you have made. All configurations take effect after a system reboot. Fig.42 shows an example of test in this mode. In this case, IP address of IoT-C104 is 172.16.14.12, host IP address is 172.16.14.15.
Page 51
User Manual Fig.43 Iot-C104 #1 UDP multicast setting Fig.44 IoT-C104 #2 UDP multicast setting Fig.45 shows an example of test in this mode with two C104s.
User Manual Fig.45 UDP multicast transmission test 4.5. HTTP Client 4.5.1. Properties When the operation mode of this device is Httpd Client, users need to specify the remote httpd servers address, port, method and other parameters. The device will submit the serially received data to the httpd server in the form of GET or POST.
User Manual Please follow the following steps to configure connection settings of the work mode for PORT1 port. Click on the“Port1”tab on the menu frame on the left side of Web UI to go to Port1 page as shown in Fig.46. 2.
User Manual Fig.47 SSL/TLS encryption 4.6. Websocket server When the operation mode of this device is WebSocket server, the user needs to specify the main parameters such as listening port, forwarding direction. This function is that the serial server acts as a WebSocket server, and transparently transmits the data received by the serial to the WebSoket client in hexadecimal format.
Page 55
User Manual Fig.48 Websocket server setting 5. Click on the websocket to serial tab,browser will connect to the websocket server of C104 automatically. Fig.49 Browser as websocket client to connect C104 Fig.50 shows an example of test in this mode.
User Manual Fig.50 Data transmission test 5. Modbus TCP/RTU gateway Modbus is one of the most popular automation protocols in the world, supporting traditional RS-485 devices and recetly developed Ethernet devices. Many industrial deices, such as PLCs, DCSs, HMIs, instruments, and meters, use Modbus as their communication standard. In industrial applications, the most common protocol conversion is Modbus RTU to Modbus TCP conversion, and it is usually required when legacy devices such as meters, mostly using Modbus RTU, need to be integrated with SCADA systems, mostly using Modbus TCP.
Page 57
The device supports multiple hosts to query data from the slave in q&A mode. Please select modbus polling function as shown in Fig.52. When IoT-C104 Series serial device server does not receive a response from the serial port after a response timeout, the device replies with an acknowledgement and then processes the next host request.
Page 58
Fig.52 Modbus TCP master settings Open the Modbus Poll and Modbus Slave software, go to "Connect" -> "Connect", and the connection parameters are configured as follows, in this case, IP address of IoT-C104 is 172.16.14.12. Fig.53 Modbus emulator settings(Ethernet master and serial slave) 5.2.
Page 59
Modbus TCP slave settings Open the Modbus Poll and Modbus Slave software, go to "Connect" -> "Connect", and the connection parameters are configured as follows, in this case, IP address of IoT-C104 is 172.1614.12, host IP address is 172.16.14.15. Fig.56...
If there are more than one serial masters in RS485 network, users should select modbus poll function and configure response timeout in Fig.57. please refer to section 6.5 for bus collision detection. Fig.57 Modbus RTU master settings(IoT-C104 ) Fig.58 Modbus RTU slave settings(IoT-C104 2,3,4...)
Page 61
User Manual Fig.59 Modbus emulator settings(serial master and serial slave) 5.4. Modbus poll with serial heartbeat packet When the C104 is Modbus RTU Master, the serial device work in Modbus RTU Slave mode, the Modbus TCP function must be disabled. C104 works in TCP server mode t supports up to 16 TCP connections.
Serial to Network Packet Delimiter: Packet delimiter is a way of packing data in the serial communication. It is designed to keep packets intact. IoT-C104 provides two types of delimiter: Time Delimiter, Maximum Bytes Delimiter. Note that the following delimiters (time, length) when they are selected are programmed in the OR logic.
Page 63
Packet length: IoT-C104 will transmit the serial data in its buffer when the specified length in the unit of bytes has reached. If you would like IoT-C104 to queue the data until it reaches a specific length,the data length can be configured for 1 to 1460 bytes. If the data length (in bytes) matches the configured value, the data will be forced out.
User Manual 6.2. Heartbeat packet Network heartbeat packet: The serial device server sends a heartbeat packet regularly to notify the server that it is active and maintains a normal network connection with the server. This function is only allowed when the working mode is UDP and TCP Client. Serial heartbeat packet: The serial device server notifies the serial device it is active via packet, and this packet can also be used to actively capture sensor data.
User Manual Fig.65 Network heartbeat packets 6.3. Registration packet This function is only allowed when the working mode is UDP and TCP Client. The content of the registration packet can be up to 40 bytes long. Users can choose to display this content in hexadecimal format or ASCII format.
User Manual Fig.67 Registration packet method 6.4. Socket B Socket B supports TCP Client and UDP Client. Socket B and Socket A share the registration packet and heartbeat packet. When Socket B initiates a connection, it uses a random local port number to connect o the target server.
Serial Printer option in the (COM) Ports dialog box. This option allows the associated TCP port to be identified as a serial printer connection. The connection does not consume a user license, is restricted to output only, and filters out the end-of-document marker correctly. In this case, IP address of IoT-C104 is 172.16.14.12.
Page 68
User Manual Fig.70 Serial printer option Fig.71 Serial printer setting wizard 1...
Page 69
User Manual Fig.72 Serial printer setting wizard 1 Fig.73 Serial printer setting wizard 1...
User Manual Fig.74 Serial printer setting wizard 1 6.7. NTP If device is connected to the internet or to a local NTP server, te Date/time can be set automatically by enable NTP function. If this option is chosen, the default value“cn.ntp.org.cn”should be shown in the NTP server field.
User Manual Fig.75 NTP settings 6.8. SNMP The Simple Network Management Protocol (SNMP) is used by network management software to monitor devices in a network, to retrieve network status information of the devices, and to configure network parameters of the devices. To make the device’s information available for public viewing/editing, you can enable the SNMP function by checking the Enable box.
User Manual Fig.77 SNMP test 7. MQTT gateway Although the MQTT protocol has been around for nearly three decades, the design of the protocol makes it ideal for IIoT (Industrial Internet of Things) applications, the latest trend in automation engineering. This is particularly true for applications that stress“active notification, ”in which devices provide data only when needed, as opposed to“...
Page 73
User Manual Fig.78 MQTT broker setting If your broker has enabled user authentication,you can fill in the information of Username and Password in the configuration item. Fig.79 User credential When you need to enable SSL/TLS authentication, you need to set the SSL/TLS configuration item.
Page 74
User Manual ⟡ Uploads a Certificate Authority (CA) file. A Certificate Authority (CA) is an entity that issues digital certificates. A digital certificate certifies the ownership of a public key by the named subject of the certificate. ⟡ Uploads a client certificate (cert) file. A certificate file is a type of digital certificate that is used by client systems to make authenticated requests to a remote server.
Page 75
User Manual You can configure the Will Message. The values of Last-Will-QoS and Last-Will-Retain are filled with 0 and False by default. When you enter the vaues of Last-Will-Topic and Last-Will- Payload, you can complete the configuration of Will Message. Fig.82 Lastwill message After finishing configuring the basic settings, please scroll down to the bottom of the page and...
User Manual To view the status of the device, choose Status>Overview, the device is in the CONNECTED state, the connection to IoT Hub is successful, and publishing and subscribing operations can be performed. Fig.84 MQTT connection status 7.2. Publishing a message 7.2.1.
Page 77
User Manual Fig.85 MQTT.fx main page First, the MQTT client and Broker need to establish a connection to communicate. Click the configuration icon on the right side of the input box in the connection address bar to enter the specific connection configuration. Select the Profile Type as MQTT Broker. Fill in broker.emqx.io for Broker Address and 1883 for Broker Port, as shown in the figure below: Fig.86 Connection Profiles...
User Manual Click OK to confirm the configuration, return to the main interface, and click Connect. It can be seen that the indicator on the right side turns to green, indicating that the current connection is successful, as shown in the following figure: Fig.87 Successful connection 7.2.2.
Page 79
User Manual Fig.88 Add Publish topic Click to enter the Subscribe Tab to enter /PubTopic1 in the topic box. Then, select a QoS level, click the Subscribe button, and the list of subscribed topics will appear on the left. The current number of subscribed topics is 0, as shown in the following figure: Fig.89 Subscribe to the C104 topic...
Page 80
User Manual C104 Fig.90 Serial debug assistant setting Click send button. On the MQTT.fx page, you will receive a message from the cloud that was sent from the C104. For Payload decoded by select“JSON Pretty Format Decoder”to show the message. C104 Fig.91 Receive message from C104...
User Manual 7.2.3. Topic distribution In the Publish field, select Publish topic2, enter the topic, topic name, bind to the Port1, select Qos 0, uncheck retained message. We use the /PubTopic2 as an example to describe the process. After finishing configuring the Publish topic2, please scroll down to he bottom of the page and click on "Save &...
Page 82
User Manual Fig.93 Subscribe to the C104 topic Launch serial debug assistant on PC, and open COM Port with the C104’s serial default settings as below: C104 Fig.94 Serial debug assistant setting Enter the correct serial data format test,{"message":"hello from C104"}, Click sen button. On the MQTT.fx page, you will receive a message from the cloud that was sent from the C104.
User Manual C104 Fig.95 Receive message from C104 7.2.4. Custom mode In the Publish field, select Custom mode, bind to the Port1. Click on "Save & Apply" button to save all the changes that you have made. All configurations take effect after a system reboot. Fig.96 Custom mode Click to enter the Subscribe Tab to enter /PubTopic3 in the topic box.
Page 84
User Manual Fig.97 Subscribe to the C104 topic Launch serial debug assistant on PC, and open COM Port with the C104’s serial default settings as below: C104 Fig.98 Serial debug assistant setting...
User Manual Enter the correct serial data format /PubTopic3,0,ON,{"message":"hello from C104", Click send button. On the MQTT.fx age, you will receive a message from the cloud that was sent from the C104. C104 Fig.99 Receive message from C104 7.3. Subscribe to a topic In the Subscribe field, select Subscribe topic1, enter the topic, bind to the Port1, select Qos 0.
Page 86
User Manual Fig.100 Add subscribe topic Click to enter the Publish Tab to enter /SubTopic1 in the topic box, and enter the message of "hello world" in the message input box, select a QoS level, and click Publish to publish the message, as shown in the following figure: Fig.101 Publish message t C104...
Receive message from cloud 8. Edge computing he IoT-C104 supports Modbus RTU Master for retrieving field site data from serial meters. After collecting data, users can convert serial data to MQTT json format data, allowing users to get field site data. This two-in-one design reduces system complexity and the amount of space required in the network topology, as well as overall installation time.
Page 88
User Manual Fig.103 Enable edge computing 8.1. Add modbus slave device Connect serial device to the serial port of C104 gateway, and then configure the slave parameter on the data acquisition tab. Click add slave to add a device, click edit to configure the device.
User Manual Fig.105 Polling slave device configuration In the slave proerty, enter the device name, bind to the Port1, enter the slave address and polling interval, enable merge collection function, the description of the configuration parameters on this interface is shown in table 18. We use the temperature and humidity sensor1 as an example to describe the process.
User Manual should give the correct register address. Offsets can be represented in different ways. Sometimes as Hex values and sometime the offset will also contain the register type. For example Offsets in the Holding Register range might start with a 4 such as 411001, in the SCADA this would be entered as 11001.
Page 91
User Manual Fig.106 Add modbus data point Fig.107 Data point configuration In the data point property, enter the node name, select modbus function code, enter the register address and response timeout, select the right data type, input the calculation formula, the description of the configuration parameters on this interface is shown in table 19.
User Manual Fig.108 Sensor register reading After the correct slave and data points configuration, the modbus polling command will print on the corresponding serial port regularly, as shown in Fig.109. Fig.109 Modbus polling command 8.3. Export and import configuration There are three main reasons for using the Import and Export functions. ⟡...
Page 93
User Manual sites.You can export the configuration as a file and then import the configuration file onto other units at any time. ⟡ Backing up configurations for system recovery. The export function allows you to export configuration files that can be imported onto other gateways to restore malfunctioning systems within minutes.
User Manual Fig.111 Configuration file Once the file is saved, it can be imported into your target unit to duplicate the same settings. Select the target unit first and click the choose file button to import. Select the file you want to import, and then click the open button.
User Manual 8.4.1. Communication channel Users can select TCP/UDP/HTTP in socket A of each serial port, MQTT Gateway, or AWS IOT service as the communication channel. When select MQTT or AWS IOT channel, user need configure the MQTT broker parameters in MQTT Gateway tab or Cloud service tab at first, and setting the report topic in the Fig.113.
User Manual Fig.114 Report on change Fig.115 Interval and timer report 8.4.3. Payload-Json template A JSON object contains zero, one, or more key-value pairs, also called properties. The object is surrounded by curly braces {}. Every key-value pair is separated by a comma. The order of the key-vale pair is irrelevant.
Page 97
User Manual string(surrounded by quotation marks (" ")),number,float,array(JSON array),object(JSON object (can be nested)),boolean(true or false),empty Example 1 { "sensor1": { "temperature": "temperature1", "humidity": "humidity1", "user_define": "bedroom" "sensor2": { "temperature": "temperature2", "humidity": "humidity2", "user_define": "living room" "time": "sys_net_time" } Example 2 "service":[{ "sensor1": { "temperature": "temperature1", humidity": "umidity1", "user_define": "bedroom"...
Page 98
User Manual Fig.116 Json formatter Paste the message in the Json template on the page and click on "Save&Apply" button to save all the changes that you have made. All configurations take effect after a system reboot. Fig.117 Json template setting There are three type data point, user define, system,and register value in a Json template.
User Manual sys_dev_name Product name ys_dev_name Product running time sys_net_time GMT time sys_unix_time Unix time sys_ip Local IP address ⟡ Modbus register value data points The node name configured in the section 8.2.3 is register value data points. ⟡ User define In addition to the above two types of data points, users can also define your own data points.
Page 100
User Manual Fig.119 Modbus slave simulation Fig.120 Data acquisition setting Fig.121 Data report setting...
User Manual Fig.122 Message reported 8.5. Data query There are three methods to actively query the data collected through the serial port from the communication channel: Json format, Modbus TCP, Modbus RTU. Firstly, user need eale the data query function. 8.5.1.
Page 102
User Manual Fig.123 JSON query type The Json content need conform to template described in section 8.4.3. Fig.124 Json query message...
Page 103
User Manual Fig.125 Json response message 8.5.2. Modbus slave address and register mapping This function is very useful in data query and only used in modbus TCP/RTU query type. When user select Modbus TCP/RTU query type to get data, the C104 gateway will be confused if there are the same slave address in different serial port or same register address in different slave devices.
User Manual Fig.126 Slave address mapping Fig.127 Slave address mapping 8.5.3. Modbus TCP When select socket channel, user need configure the socket A parameters in PORT tab at first, then select Modbus TCP query type. We use slave address mapping here for illustration.
Page 105
User Manual Fig.128 Modbus TCP query type Fig.129 Socket A parameters setting...
User Manual Fig.130 Modbus TCP simulator Fig.131 Modbus TCP response 9. AWS IoT service In order to reduce the length of this document, we have organized this section into a special document. Please refer to“IoT-C14 Quick Start Guide with AWS IoT” for detail.
Need help?
Do you have a question about the IOT-C104 and is the answer not in the manual?
Questions and answers