Appendix 3: Building Data Center ................... 45 Appendix 4: Data Format of GPS Packets ................48 Appendix 5: DTU’s AT Commands at Serial Port ..............50 Appendix 6: DTU SMS Mode and SMS Data Format ............54 Appendix 7: eTung RTU MODBUS Protocol Overview ............56...
7. Technical Advantages 8. Typical Usecases 1.1 Brief Introduction MD-620 is a 4G DTU produced by eTung, with positioning functionality and industry level. It integrates industrial BDS/GPS dual-module positioning module and 4G module. The 4G module supports all 2G/3G/4G network modes from China Mobile, China Telecom, and China Telecom.
MD-620 User Manual MD-620 has positioning and 4G data communication/processing functionalities. It’s small, durable, and stable; it’s easily installed. It can be widely used in industries such as construction and transportation. It is especially useful for tower crane monitoring and heavy machinery management, and can also be used in areas such as taxi operation management, transport vehicle management, special vehicle management, and vehicle lease management.
MD-620 User Manual 1.4 Dimension Figure 1-6: MD-620 dimension 1.5 Working Mechanism...
Page 8
MD-620 User Manual Figure 1-7: MD-620 working mechanism After configuring IP address (or domain name) and port of the data center in MD-620, it dials in 4G wireless network to access the internet; then it establishes connection to the preconfigured IP address and port(i.e.
DCC interface or virtual serial port, and maps to the terminal corresponding to the MODBUS channel; thus the software can send MODBUS data requests that meets with eTung’s RTU MODBUS protocol, MD-620 RTU receives requests and returns MODBUS responses.
Page 10
MD-620 User Manual 3G: UMTS/WCDMA/HDSPA/HSPA+/TD-SCDMA/ CDMA2000 EVDO 4G: TDD-LTE/FDD-LTE Frequency: TDD-LTE B38/B39/B40/B41 FDD-LTE B1/B2/B3/B4/B5/B8/B17/B20 UMTS/HSDPA/HSPA+ B1//B2/B5/B8 TD-SCDMA B34/B39 CDMA2000 1x/EVDO BC0 GSM/GPRS/EDGE 900/1800 MHz Working current: 170mA@+12V DC Standby current: 100mA@+12V DC BDS/GPS module: anti-interference GNSS navigation and position module ...
MD-620 User Manual Data Center Support domain name Compatible with various data center software Configuration Configurable via serial port Configurable via hyper terminal with menus 1.6.2 Indicator Light Description GPS light Power light Transmit light Online light Figure 1-8: MD-620 indicator light LED Indicator...
Flexible terminal interfaces support RS232 and RS485 serial port, power supply and DI/DO terminals; RS232 and RS485 can be used at the same time; Support connection with mServer, as eTung’s other DTUs; Support point-to-point and multipoint-to-point communication with 4G wireless network at both ends ...
MD-620 User Manual Support APN name auto-adaption Support eYun platform, server building not needed and plug-and-play Support chuankoutong and virtual serial port, programming not needed Support proactively uploading GPS information, and the upload time interval configurable ...
Page 14
MD-620 User Manual Figure 1-10: MD-620 implements point to point with embedded data center (serial to serial port)
MD-620 User Manual 2. Device Configurations This chapter introduces how to use MD-620 and related parameters. 1. Configurations 2. Parameters 3. Restore to default 4. Firmware Update 5. Remote Configurations 2.1 Configurations 2.1.1 Preparation 9-hole to wires serial adapter; ...
Page 16
(or press Enter to use the default value in the bracket. The default value is eTung server domain; please input your own domain or IP address if you have built your own server).
Page 17
"Data center port (8080)", input mServer's listening port "8080" (or press Enter directly to use the default value in the bracket. This port is the public port of eTung server, input your own port if you have built your own server or leased a dedicated port).
Page 18
MD-620 User Manual Figure 2-3: Configuring username Click Enter repeatedly until item 12: “Enable RS232[Y/N]”. MD-620 has RS232 and RS485 serial port, and has GPS positioning functionality and MODBUS RTU functionality. These four functionalities can configured to use separately. For example, choose RS485 serial port and GPS positioning functionality, just enable RS485 and GPS as shown below: Figure 2-4: Choose interface and functionalities...
Page 19
MD-620 User Manual Then configure self-defined register packet. The self-defined register packet need to configure when MD-620 does not connect with mServer. If MD-620 connects with mServer, then it is not required to configure self-defined register packet. Figure 2-5: Configure self-defined register packet ...
Page 20
MD-620 User Manual Figure 2-6: Configure RS232 serial parameters If RS485 is enabled, configure RS485 serial port parameters accordingly, including: baud rate, parity, data bits and stop bits. The values should be the same as the device that MD-620 connects with.
Page 21
MD-620 User Manual Figure 2-8: Configure GPS information upload interval Then click Enter continuously until the prompt "CONFIG FINISHED" appears, then the configuration of MD-620 is complete: Figure 2-9: Configuration complete...
MD-620 User Manual Attention: I n reality, MD - 620 connects user devices via serial port, so serial p ort attributes need to be configured in order to match user device serial port. 2.2 Configuration Parameters Each configuration menu item of MD-620 includes the following items (those with * are mandatory), details are in the following: *Order number: includes digit and right bracket, for example "10)"...
Page 23
MD-620 User Manual 4) APN () Configure wireless APN name, normally it is not needed, and default value is used, but users with dedicated network adapter need to configure this item. 5) PROTOCOL[UDP/TCP](TCP) Configure data transport protocol, either UDP or TCP. 6) CONNECT MSERVER[Y/N](Y) Configure whether to connect mServer, Y by...
Page 24
When the device does not MSERVER(MODBUS: connect mServer, self-define 24030500*******\X00) registration package for MODBUS channel. 20) HEARTBEAT WHEN NOT MSERVER When the device does not (ETUNG\X00) connect mServer, self-define heartbeat package. 21) RS232 BAUD RATE (bps) (9600) Configure baud rate RS232...
Page 25
MD-620 User Manual 28) RS485 STOP BITS[1/1.5/2] (1) Configure stopping bit on RS485 serial port when transferring data 29) GPS INTERVAL (S) (60) Configure the time interval of GPS information upload interval; 0 means do not proactively upload GPS information, other values mean the time interval of uploading GPS information in seconds.
Figure 2-10: Restore to default 2.4 Firmware Update Ask eTung for firmware software According to the description of "Configuring MD-620", connect MD-620 with PC via 9-hole to wires serial adapter, run MD-620 configuration executable, and set the serial port used to update MD-620.
Page 27
MD-620 User Manual Figure 2-11: Select file to update Click "Start to update", then power on the device quickly within 30 seconds. Figure 2-12: Firmware Update After update is complete the device will reboot automatically, then in the user interface a prompt "Update finished" will appear.
MD-620 User Manual Figure 2-13: Update complete 2.5 Remote Configurations SMS or AT commands can be used on MD-620 to remotely modify the IP address and port of the data center. Details are described below: 1.Use SMS to remotely modify IP address and port within MD- MD-620 1) In order to use SMS to modify IP and port within MD-620, the MD-620 must be offline, because MD-620 can detect...
Page 29
MD-620 User Manual allow only digits or characters in English or the combination of them. Figure 2-14: Set SMS password 3) Send AT commands via SMS to configure DTU remotely. Format of SMS is as below: 1234{;AT command} There can be multiple AT commands, and ";" is used between SMS and AT command, and between AT commands.
Page 30
MD-620 User Manual write two continuous colons, and if some item needs to clean, write a space. For example: AT+WN=3gnet (configure onely APN, and other parameters keep unchanged) AT+DC=,,user (the first two items keep unchanged, and change username only) AT commands that can be used via SMS are listed and described below: 1) AT+SET=n,value Set the value of item with order number n...
Page 31
MD-620 User Manual 5) AT+232SERPORT=baud,data_bits,parity,stop_bits Configure serial parameters for RS232 channel, with reply OK or ERROR baud: baud rate (2400/4800/9600/19200/38400/57600/115200) data_bits: data bits (7/8) parity: data parity (N:None/E:Even/O:Odd) stop_bits: stop bits (1/1.5/2) 6) AT+485SERPORT= baud,data_bits,parity,stop_bits Configure serial parameters for RS232 channel, with reply OK or ERROR baud: baud rate (2400/4800/9600/19200/38400/57600/115200)
Page 32
MD-620 User Manual 11) AT+UPDATEALL=url,md5 Update DTU firmware and reset to default, with reply OK. The reply OK means DTU has received the SMS with AT command, but does not mean the update is complete. DTU will first download the firmware, check MD5 and then perform the update.
Page 33
MD-620 User Manual Figure 2-15: Remote configuration with AT commands In MD-620 1.0.0 and higher versions, the AT commands supported are described below: 1. AT 2. AT+MSERVER=addr,port Set address and port of the new data center 3. AT+UPDATE=url,md5 Send command of firmware update 4.
Page 34
MD-620 User Manual automatically to 3 times of heart-beat interval. 9. AT+SET=n,value Set the value of item with order number n 10. AT+GET=n Check the value of item with order number n, n=0 means to get values of all items. 11.
Step 1: Build mServer data center 1) Find mServer installation package either from the CD or by downloading from eTung website (http://www.etungtech.com.cn), then install and run mServer in a PC that can access internet. In this usecase, the PC accesses internet via leased line, and domain is www.chuankoutong.com.
Page 36
MD-620 User Manual MD-620. In this usecase, select TCP for link mode, and 8080 for listening port, and click "OK": Figure Appendix 1-2: Configuring mServer listening port Items description in "System Settings" "DTU Connection Settings" part: used to set listening port and protocol that MD-620 connects to.
Page 37
MD-620 User Manual it to "TCP". Please make sure to set the same communication protocol in MD-620 as in mServer if you want to change it. 2) Listening port: set the port that MD-620 uses to establish connection to mServer. In case of single host accessing the internet, the port set in MD-620 is the listening port in mServer.
Page 38
MD-620 User Manual Step 3: Communication between MD-620 and mServer After configuration and reboot, MD-620 will automatically connect to mServer data center. The green indicator light will flash slowly and then quickly, and at last it will light all the time, then this means MD-620 has connected to the data center.
Page 39
MD-620 User Manual Figure Appendix 1-4: Map virtual serial port...
MD-620 User Manual Appendix 2: Usecase of Vircom Testing with eYun platform Step 1: Apply eYun account Access website http://eyun.etungtech.com, to register a vircom eYun account. Email address must be input correctly, and after registration you will receive an email with a link in it and you can click the link to activate the account.
Page 41
Attention: The terminal to be added must be online and does not belong to any user, otherwise adding terminal will fail. And if it fails to add the terminal you need to add the terminal manually or: you can contact eTung technical support to solve the problem.
Page 42
MD-620 User Manual Figure Appendix 2-3: Add terminal Step 3: Set terminal’s serial port properties In vircom, we can check and modify the terminal’s serial port properties. The procedure is shown below: right click the terminal, and choose “Set DTU COM properties”; the terminal’s serial port properties are shown in the popped-up dialog, we can change the values upon request and then click “Set”.
Page 43
MD-620 User Manual Figure Appendix 2-4: Modify terminal’s serial port properties Step 4: Map a virtual serial port on the terminal Find the device to be tested via IMEI, and click "Add Mapping" to map this device to a virtual serial port. Then open this virtual serial port with relevant software to communicate with the devices that connect to MD-620.
Page 44
MD-620 User Manual Figure Appendix 2-5: Map virtual serial port in vircom...
MD-620 User Manual Appendix 3: Building Data Center Based on the different ways of data center accessing the internet, the IP address (or domain) and port to be configured in MD-620 is different as well. We briefly describe the mostly used accessing ways below. 1) Single Host Accessing internet via ADSL Figure Appendix 3-1: Single host accessing internet via ADSL Configuring IP or domain: in this case the IP address of the data center...
Page 46
MD-620 User Manual Figure Appendix 3-2: Accessing internet via ADSL+LAN Configuring IP or domain: in this case, the data center IP address to be configured in MD-620 is the router's WAN IP address; this IP address can be checked by logging in and checking the status of the router, or by accessing http://www.ip138.com.
Page 47
MD-620 User Manual Configuring IP or domain: in this case, the data center IP address to be configured is the static private IP address. Configuring port: the default listening port in mServer is 9000, and it can be defined by yourself upon request, then configure the mServer listening port in MD-620 accordingly.
MD-620 User Manual Appendix 4: Data Format of GPS Packets Figure Appendix 4-1: GPS packets 1)$GPRMC,090756.173,V,0000.0000,N,00000.0000,E,,,120211,,,N*7F 2)$GPRMC,090758.182,A,3958.2382,N,11621.4878,E,1.06,201.56,120 211,,,A*6A The figure above shows the GPS data packets uploaded to mServer. Below we will explain GPS data format with the second packet as an example: Name Example Unit...
Page 49
MD-620 User Manual Longitude 11621.4878 dddmm.mmmm, in the example it means 116 degrees and 21.4878 minutes. East/West E means east longitude, and W Longitude means west longitude. Indication Ground speed 1.06 Mile/hour In the example it means the ground speed is 1.06 miles/hour. Ground 201.56 Degree...
Appendix 5: DTU’s AT Commands at Serial Port eTung’s DTU supports sending AT commands directly via serial port, to query status, modify parameters, send/receive SMSs, etc. The AT commands at serial port that DTU supports may be different according to different model and different version of firmware.
Page 51
Use case of AT commands at serial port —— configure DTU with customer’s serial device Normally we use “dtucfg” software provided by eTung to configure DTU, as described in “2.1 Configurations”. However, if the customer’s serial device connecting with DTU is programmable, we can also use the AT commands described above, then the device can send AT commands to configure DTU.
Page 52
RS232:[IMEI]\x00 RS485 register when not mServer RS485:[IMEI]\x00 GPS register when not mServer GPS:[IMEI]\x00 MODBUS register when not mServer MODBUS:[IMEI]\x00 Heartbeat when not mServer ETUNG\x00 RS232 baud rate(bps) 9600 RS232 data bit[5/6/7/8] RS232 parity[N/E/O/M/S] RS232 stop bit[1/1.5/2] RS485 baud rate(bps) 9600...
MD-620 User Manual Appendix 6: DTU SMS Mode and SMS Data Format By default DTU is in GPRS mode,which is the data transfer mode. It can be switched to SMS mode by sending AT command on DTU serial port. In SMS mode, it can be used to send short messages via AT commands, but it cannot transfer data in this mode.
Page 55
MD-620 User Manual AT+SMS=13812345678,1,4,31323334\r Use 8bit encoding to send “1234”to 13812345678: AT+SMS=13812345678,2,4,31323334\r Use Unicode encoding to send “你好” to 13812345678: AT+SMS=13812345678,3,4,4F60597D\r 3. The received SMS messages will be output via the serial port in the format below: \r\n+SMS:<phone number>,<encoding format>,<data length>,<data>\r\n Examples:...
Protocol Overview eTung RTU MODBUS protocol is compatible with standard MODBUS protocol. Below is an overview of RTU MODBUS protocol, and details please refer document “eTung RTU MODBUS protocol”. eTung RTU device is Modbus slave, and device id is 0x01.
Need help?
Do you have a question about the MD-620 DTU and is the answer not in the manual?
Questions and answers