Page 2
No part of this manual may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or through information storage and retrieval systems, for any purpose other than for the purchaser’s personal use, without the express written permission of Shanghai ZLAN information Technology Co., Ltd.
CONTENT ......................UMMARY ......................EATURES ................ECHNICAL ARAMETERS ...................... ARDWARE ....................CONFIGURATION 5.1. Serial Port AT Instruction configuration.............. 5.2. Firmware/Profile mode....................................EVICE FUNCTION 6.1. Communication Testing..................6.2. MODBUS RTU To JSON Testing................ AT I ..................... NSTRUCTION 7.1. Login in and Configuration.................. 7.2.
Page 4
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com 1. Summary ZLAN8308 is new developed item which is high cost-effective CAT1 4G DTU, support 2G GPRS mode。 Realize RS232/485 To 4G,CAT1 4G transmission speed reaches uplink 5Mbps,downlink 10Mbps,much higher than traditional 2G GPRS DTU。...
Page 5
Web side can be realized ZLAN8308 specially designed watchdog circuit can ensure the stable operation of the 4G module for a long time. The product supports the industrial temperature range from -40 degrees to 85 degrees.
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com 2. Support TCP client, UDP mode. 3. Serial port support 300~921600 baud rate, support 5~8 data bits, support no check, odd check, even check, support 1~2 stop bit. 4. Support serial port(RS232/485)To 4G.
Q2.1 socket,Can be customized for power terminal input. supply input voltage DC9V~24V Working dial/4G When communication 50mA@12V,free 25mA@12V current Working -40 degree~85degree temperature Storage -40 degree~120 degree temperature Humidity 0~95% condensation range Device size Length×Width×Height=9.4cm×6.5cm×2.5cm 3. Hardware ZLAN8308 Picture is as Chart 3.
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 3 ZLAN8308 Front View 8308 Adopts anti-radiation metal shell, two hanging lugs on both sides, which can be fixed with screws; It can also be equipped with guide rail accessories。 Panel lights:...
Page 9
3.RJ45 interface: Leave it to later to extend the Ethernet interface. It is currently invalid。 ZLAN8308 Backside interface is as picture Chart 5.: Chart 5interface 2 4.antenna:8308 antenna interface using 50Ω/SMA (female head), external antenna must be suitable for 4G working band antenna. ZLAN can provide glue stick or...
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com suction cup antenna, the suction cup can be sucked to the metal housing of the chassis (the default suction cup antenna lead is 1.5 meters long)。 5.SIM Card installed:When installing the SIM card, ensure that the device is not powered on.
Page 11
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 6 Configure the main tool interface Chart 7 Serial port search interface...
Page 12
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 8 Serial port parameter setting After power on, wait for 15 seconds, that is, after the dial light starts flashing, select and click the "Search" serial port. At this time, the configuration tool will attempt to communicate with the device.
Page 13
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Click to enter the AT command mode, and the configuration tool will attempt to communicate with the device. After successful communication, the return information of AT command will be displayed on the right side, and the configuration mode will be shown as having entered the configuration mode, as shown in Chart 10 below:...
Page 14
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 11 Login page The main parameters of the AT instruction mode include baud rate, destination IP, destination port, and protocol. Protocol support TCP or UDP protocol. After modifying the corresponding parameters, click "Set Parameters" to set the new parameters to the device.
Page 15
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 12 Set the parameters “The "get parameters" button can get the parameters of the current device. The get parameters are obtained by sending the AT instruction. The data returned by the AT instruction is listed on the right. Refer to the other sections of this article for the AT directive.
Page 16
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com connecting to the server 7. APN:APN Name of access point。 8. APN User name 9. APN password 10. MQTT data:Used to set the parameters to access the MQTT server 11. Device remote management: it is used for devices with remote management function to access the remote server After selecting the parameters, click the "Effective Advanced Parameters"...
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 14 Set advanced parameters to return information 5.2. Firmware/profile mode After entering the Conftool interface, click the firmware/configuration file mode button, as shown in chart. 15, and jump to the firmware/configuration file interface as shown in chart.
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 19 download page 5. Device Function 6.1. Communication Test 6.1.1 Server transparent transport test Assuming the following networking structure as shown in the figure below, 8305 is configured to connect to the server***.***.***.***”s *** interface。Please use the methods in the "Serial port configuration"...
Page 21
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com SocketDlgTest, tool, server (http://www.zlmcu.com/document/tcp_debug_tools.html)。 Chart 21 Server-side tools Select the local port as 4196 (note that if you are running the ZLVircom tool, you will need to change the port) and click the "Open" button. When The 8308 device is connected to The server, it will display "The No...
Page 22
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 22 Device side serial port debugging tools 6.1.2 Modbus Protocol transformation test The configuration parameters are basically the same as the no-protocol pass-through test; you only need to change the transformation protocol to the Modbus protocol.
Page 23
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 23 Modbus Protocol transformation test 6.1.3 MQTT protocol test This test is to test the connection to Ali Cloud. Create a new subscription topic called zlan_test and a publication topic called zlan_1 on AliCloud, as shown in Chart 24.
Page 24
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 25 Ali Cloud IP and interface...
Page 25
Chart 28, and Ali Cloud server sends a message (" ALI_SEND ") through the theme of Zlan _test to the serial port of the device. As shown in Chart 29, this completes the MQTT transceiver test。...
Page 26
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 27 Ali Cloud log service Chart 28 Ali Cloud received serial port data...
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 29 Serial port received Ali cloud data 6.2. MODBUS RTU To JSON Test 6.2.1 Configure JSON uplink Through the above part: Modbus protocol transformation test, simple JSON upload template is configured. The configuration process is shown in Chart 30, Chart 31, Chart 32, and Chart 33.
Page 29
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 31 Configure the acquisition keywords, register address and acquisition interval Chart 32 Save and exit when the configuration is complete...
Page 30
Configure Modbus RTU simulation devices Modbus Slave software is used to simulate the Modebus Slave device, connect the Zlan8308 device to the computer through the serial port line, and open the connection of Modbus Slave. Configuration of Modbus Slave is shown in Chart...
Page 31
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Chart 34 Modbus SlaveFill in analog data 6.2.3 Check uplink JSON Through the AliCloud log service, we can view the JSON data sent above, and we can observe that the collected data is consistent with the data configured by Modbus Slave, which completes the simple test of converting JSON from Modbus。...
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com 6. AT Instruction 7.1. Login and configuration 7.1.1. Enter configuration mode Instruction:REQUEST CFG MODE Function:Enter the configuration mode. Send this command during the startup phase of the device. After the device is started up, the device can enter the configuration mode。...
Page 33
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com E:Odd parity 7.2.3. Obtaining data bits Instruction:ZL+DATAB?\r\n Function:Obtain digit bits Return:+DATAB:5/6/7/8\r\n 7.2.4. Set serial port parameters Instruction:ZL+BAUD=n\r\n Function:Set the baud rate, where n represents the value to set Return:+BAUD:n\r\n 7.2.5. Set Check digit Instruction:ZL+CHECKB= N/O/E \r\n...
Page 34
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com 7.3.2. Obtain the destination port Instruction:ZL+PPORT?\r\n Function:Get destination port Return:+PPORT=n\r\n 7.3.3. Obtain the operating mode of the device Instruction:ZL+PROTOCOL?\r\n Function:Get the device operating mode Return:+PROTOCOL=TCP/UDP\r\n 7.3.4. Get the IP of DNS server Instruction:ZL+PDNS?\r\n Function:Get the DNS server IP address...
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Function:Set the DNS server IP address Return:+PDNS=ip\r\n 7.4. Registration Pack and Heartbeat Pack 7.4.1. Check the contents of the registration package Instruction:ZL+ENROL?\r\n Check registry package contents (default registry package hexadecimal) Return:+ENROL:1234567890\r\n 7.4.2. Enable the registration package Check whether to enable the registration package (1 enabled 0 disabled) 返...
Page 36
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Return:+ ZL+Z_RMT_MAG:1\r\n 7.5.3 Check the IP of the remote administration server Instruction:ZL+Z_RMT_IP ?\r\n Check the remote administration server IP *********** Return:+ ZL+Z_RMT_IP =***********\r\n 7.5.4 Check the remote administration server port Instruction:ZL+ Z_RMT_PORT ?\r\n Check the remote administration server port**** Return:+ ZL+ Z_RMT_PORT =****\r\n...
Page 37
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com Return:+ ZL+ MQTT_CLIENT:**** \r\n 7.6.4 Set up the MQTT publishing topic Instruction:ZL+ MQTT_PUBLISH_TOPIC =****\r\n Set up the MQTT publishing topic Return:+ ZL+ MQTT_PUBLISH_TOPIC:**** \r\n 7.6.5 Set up MQTT subscription topics Instruction:ZL+ MQTT_SUBSCRIBE_TOPIC =****\r\n Set up the MQTT subscription topic Return:+ ZL+ MQTT_SUBSCRIBE_TOPIC:**** \r\n...
Shanghai ZLAN Information Technology Co., Ltd http://www.zlmcu.com 7. Accessories 1、 Model No.: Model No. Function Sepcifications ZLAN8308 4G to serial port No RJ45 2、 Antenna selection: The adhesive stick antenna or sucker antenna can be selected. The sucker antenna is 2M by default, and the 3M antenna can be customized。...
Need help?
Do you have a question about the ZLAN8308 and is the answer not in the manual?
Questions and answers