MaxLong SEW832 User manual

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
2
Table of Contents
1. Introduction------------------------------------------------------------------Page3
1.1Product Views-------------------------------------------------------------Page4
1.2 Wiring Architecture------------------------------------------------------Page5
2. Configuration----------------------------------------------------------------Page6
2.1Configuration via Web---------------------------------------------------Page7
2.2 Configuration Sections------------------ -------------------------------Page7
2.2.1 System Setup------ --------------------------------------------------Page7
2.2.2 Network Setup-------------------------------------------------------Page9
2.2.3 Serial Port Setup-----------------------------------------------------Page14
2.2.4. MQTT Setup-----------------------------------------------------------Page14
2.2.5. TOPIC Setup------------------------------------------------------------Page16
2.2.6. Logger Page------------------------------------------------------------Page20
2.2.7. Data acquisition device style settings----------------------------Page21
2.2.8. MQTT Topic List--------------------------------------------------------Page22
2.2.9 Reset Button-------------------------------------------------------------Page23

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
3
1.Introduction
This SEW832 Ethernet+WiFi MQTT Gateway provides the ways of
connecting Modbus Serial and TCP devices to MQTT Broker via Ethernet
and Wireless LAN (Wi-Fi 802.11 b/g/n ). It is designed to operate serial
ports through Ethernet (10/100Mbps) and wireless (Wi-Fi 802.11 b/g/n) in
Modbus TCP and RTU/ASCII networks. As the data is transmitted via
Modbus protocol, therefore data acquisition and controlling is available to
go through Intranet and Internet.
The wireless supports 802.11 b/g/n in AP/Station mode with
WEP/WPA/WPA2 encryption for data transmission security. Ethernet
support 10/100 Mbps auto-detecting communication speeds.
There are two serial ports as one is a RS-232 and other one is RS-
422/485. Configuration is easy to operate via web page setup.
This Gateway is designed to operate 2 Serial ports (RS-232 and RS-422/485)
over wireless and Ethernet network. This device is a high performance design
composed with carefully selecting qualified components from reliable and
certified sources. This operation manual will guide you to configure functions
step by step.
This MQTT Gateway Support for MQTT protocol provides a perfect solution
to make your industrial Sensor devices connect to Industrial Internet of
Things (IIoT) system instantly via Wireless and/or Ethernet LAN. To run with
MQTT client tools on the PC/NB or mobile devices, users can simply and
effectively control/monitor remote sensors. It becomes the ideal device for
transmitting the data from your RS-232 or RS-422/485 Serial interface
devices or remote TCP making it possible for your software to access data or
control the I/O via MQTT Broker.

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
4
1.1 Product Views
Figure 1 Product Views

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
5
1.2 Wiring Architecture

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
6
2. 2.Configuration
2.1Configuration Via Web
Step1➔The first thing is to configure the Host PC’s IP address
IP :192.168.1.xx
Step2➔Open a web page of configuration http://192.168.1.100
Step3➔Default User name: “admin” and Password: “admin”
Step4➔And now you have successfully connected to this MQTT
Gateway
There are 6 setup pages as “System”, “Network”, “Serial” ,“MQTT”,
“Topic”, “Logger”.

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
7
2.2 Configuration Sections
2.2.1 System Setup
1.System: Where one can change Password, set up Auto Reset time and
modify Device Name, Description of device etc.
2. Appearance of Wireless and Ethernet setup:

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
8
3. NTP: Enable / Disable NTP function; Set up NTP server and Time
Zone.
4. Firmware update:
(1) If necessary, click “Browse” to open file manager

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
9
(2) Select the file with specified version and click “Confirm” button.
(3) When the selected file name appears on the input column, click
“Update” button.
5. Up to now, Setup is successfully configured. Please click “Save” this
page before “Save and Reboot” for permanent web pages.
。
2.2.2 Network Setup
1. Wireless section:

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
10
(1)Type: to select “INFRASTRUCTURE” or “ACCESS POINT”
(2)When selected “INFRASTRUCTURE”, go to SSID, click “Scan” will
get list of available SSID, select one to link.
(3)Input password for the AP and assign STATIC IP address
(4)In NB/PC, choose same SSID to link. NB/PC must close Ethernet in

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
11
advance
2. When selected “ACCESS POINT”, Converter acts as an Access Point
which is allowed to be connected by PC /NB /Smart Phone/ PAD. It
supports DHCP server function. Soft AP broadcasts its SSID
“CVIoT_XX_XX_XX_XX_XX_XX”. PC /NB /Smart Phone/PAD should
connect to this SSID and then open web browser with default IP for
Converter setup.
3. Password: Key in selected AP log in password

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
12
4. Encrypt
5. Mode: IP Address
(1)“DHCP”: Let AP to assign IP address to itself
(2)“STATIC”: To input assigned IP address, Subnet Mask.
6. Ethernet: select STATIC or DHCP to assign IP address.

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
13
7. Gateway and DNS: To check with MIS for right IP address.
※The Gateway must be set with correct IP enable to connect with
Internet.
8. Up to now, Setup is successfully configured. Please click “Save” this
page before permanent change of configuration.

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
14
2.2.3 Serial Port Setup
Input each parameters to match with the remote terminal units.
1.Baud Rate
2.Parity
3.Data Bits
4.Stop Bits
5.Flow Control
6.RxDelay(ms)
7.TxDelay(ms)
9. Click “Save” this page before permanent pages
2.2.4 MQTT Setup
1.Client GUID: it must be the only one in all client side. This value is a default
and not to be modified.

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
15
2.Configuration of connection with MQTT Broker.
1.1 Input Host IP and Socket Port number. Examle: test.mosqitto.org
is a free Broker for testing purpose only
2.2 If needed, may input User Name and Password.
3. SSL: Enabled or Disabled.
4 Clean session: Enabled or Disabled.
4.1 When “Clean session” set “Disabled”, it will build a permanent dialog
with MQTT Broker. The dialog will keep working and save off-line
message until the dialog to be cancelled due to overtime.

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
16
4.2 When “'Clean Session” set “Enabled”,it will build a temporary dialog
with MQTT Broker. The dialog will be terminated when client break the
connection with MQTT Broker.
2.2.5.TOPIC Setup
⚫PUBLISH a topic as per RegName to MQTT Broker: on the contrary, to
subscribe this topic must input with whole line of “cviot-48c4-9e65-f905-
a657/Register/<RegName>”
⚫SUBSCRIBE a topic as per RegName from MQTT Broker: On the
contrary, there should be a topic as per “cviot-48c4-9e65-f905-
a657/Register/set_<RegName>”was published to MQTT Broker.
5.1Section “Medias”for MQTT Client to get data from Serial Port and
TCP Remote devices.
5.1.1 Serial ports

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
17
5.1.2 Socket ports
5.2 TOPIC settings
5.2.1 No.1 ~ 16:
Gateway can set 16 topics publish to MQTT Broker.
5.2.2 RegName:
5.2.3 Input name of a topic. It composes with GUID as a completed
topic string.
For example:『CVIoT-g7327d-9c65f91e2c27/Register/T1』,
“Register” is
default and similar as a folder.

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
18
5.2.4 Media:
5.2.5 Slave: Input ID of Modbus Slave. Different Modbus Devices on
the same “ Media”must not repeat ID.
5.2.6 R.Start: Register Start address.
1 –9999 : Read/Writeable Coils (modbus function code 0x01)
10001-19999: Read only Coils (modbus function code 0x02)
30001-39999: Read only Registers (modbus function code 0x04)
40001-49999: Read/Writeable Registers (modbus function code 0x03)
* Please check Modbus device whether register start from 0 or 1.
5.2.7 Endial: Endianness
5.2.8 Format: Numeric format selections

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
19
5.2.9 Count: Length of register to read out in JSON format.
5.2.10 INT.S: Interval time (seconds) for data subscribing and
publishing.
5.2.11 QoS: MQTT quality of service.
5.2.12 etain: For “Publish”purpose, retain last value in MQTT
Broker until next
publish.

SEW832 MQTT Gateway User’s Manual
Version 1.1
This document is proprietary to MaxLong Corporation. Use or disclosure of the document, or the information
contained therein, for any purposes other than MaxLong purposes is NOT permitted without prior written
authorization by MaxLong
20
5.2.13 SUB.: Subcribe data from MQTT Broker.
5.2.14 ick “Save”before change page or click “Save and Restart”
to reboot Gateway.
2.2.6.Logger page
1. Status: to update connection status and values of subscription or
publishing.
2. Logger: to update status of payload upon subscription or
publishing.
Table of contents
Other MaxLong Gateway manuals