Page 2
MD-109 User Manual This manual applies to the following DTU models, and the corresponding networks supported by the models are listed in the table below: Model Network MD-109T China Mobile, China Unicom and China Telecom’s 2G/3G/4G (7 kinds of network standards) MD-109W China Unicom’s WCDMA MD-109E...
7. Technical Advantages 8. Typical Usecases 1.1 Brief Introduction MD-109 is a built-in DTU produced by eTung recently. There are several types of MD-109 that support China Mobile, China Unicom and China Telecom’s 2G/3G/4G networks. MD-109 has original built-in design and has smaller size; it has more flexible interface, and makes built-in wireless applications easier for industry customers.
Page 5
MD-109 User Manual software; It supports use cases such as point to point, point to multiple points, and serial to serial port; It uses industrial components and can be used in adverse environment; It can work within -40º C~+85º C temperature range. MD-109 can be quickly embedded into user device that need wireless communication, such as appliances, meters, data terminals, RTU, or IPC.
MD-109 User Manual Figure 1-9: MD-109 switchboard dimension 2 1.5 Working Mechanism Figure 1-10: MD-109 working mechanism After configuring IP address (or domain name) and port of the data center in MD-109, it dials in 2G/3G/4G wireless network to access the internet;...
MD-109 User Manual 1.6 Specifications 1.6.1 Technical Parameters Basic Parameters Power Supply: +5~ +36V wide range voltage input Data interface: 3.81mm wire connector (RS232/RS485) Antenna: SMA female, impedance 50Ω SIM card: clamshell SIM card pedestal, support 3V/1.8V SIM card ...
Page 12
MD-109 User Manual Support SMS and ringing tone wakeup(wakeup online) Support Address-IMEI Mapping to save wireless bandwidth Stability Host CPU: 32-bit ARM processor Built-in soft/hard watch dog Built-in TCP/IP protocol stack Data Center ...
MD-109 User Manual 1.6.2 Indicator Light Description LED Indicator Color Status Description Light Online (LED1) Green Always light Connected to data center Extinguished No connection to data center Flash quickly Connecting to data center Flash slowly Dialing Sending Flash Transferring data/Standby (LED2) Turn off No data transfer...
MD-109 User Manual 1.7 Technical Advantages eTung’s MD-109 has original built-in design with smaller size and flexible interfaces, and is easier to integrate with user device to be one product. Besides, MD-109 is advanced not only from hardware industrialization, design rationality, software convenience, and usage flexibility, but also from working stability.
MD-109 User Manual 1.8 Typical Usecases Figure 1-11: MD-109 multiple points to data center Figure 1-12: MD-109 one point to multiple data centers Figure 1-13: MD-109 implements point to point via terminal mapping within mServer (serial to serial port)
Page 16
MD-109 User Manual Figure 1-14: MD-109 implements point to point with embedded data center (serial to serial port)
MD-109 User Manual 2. Device Configurations This chapter introduces how to use MD-109 and related parameters, with MD-109W as example. 1. Configurations 2. Parameters 3. Restore to default 4. Firmware Update 5. Remote Configurations 2.1 Configurations 2.1.1 Preparation MD-109 dedicated console serial line, used to connect MD-109 and PC;...
Page 18
MD-109 User Manual Figure 2-1: MD-109 connector illustration Find and run MD-109 dedicated configuration executable DTUcfg.exe either from the CD or by downloading from eTung website(http://www.etungtech.com) Click button "Settings" in the upper side of the user interface, and in the popup dialog with title "Settings", select the serial port...
Page 19
"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 20
MD-109 User Manual Figure 2-4: Configuring username Click Enter repeatedly until the prompt "Configuration complete" appears, then the configuration of MD-109 is complete: Figure 2-5: Configuration complete...
MD-109 User Manual Attention: I n reality, MD - 109 connects user devices via serial port, so serial p ort attributes and type need to be configured in order to match user device serial port. 2.2 Configuration Parameters Each configuration menu item of MD-109 includes the following items (those with * are mandatory), details are in the following: *Order number: includes digit and right bracket, for example "10)"...
Page 22
MD-109 User Manual 4) APN name () 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) Network Configure data transport protocol, either UDP or TCP. Protocol[UDP/TCP](TCP) 6) Connect mServer[Y/N](Y) Configure whether to connect...
Page 23
MD-109 User Manual Connection mode[1:always Configure connection mode. Always online/2:wakeup online/3:online online means after power on it upon request] keeps connected with data center, auto connects after disconnection; Wakeup online means it does not connects after power on, and dials and connect when receiving wakeup SMS or wakeup call(wakeup phone number and wakeup password need to...
MD-109 User Manual 17) Heart-beat interval in seconds Configure heart-beat interval in seconds. Heart-beat timeout is 3 (60) times of heart-beat interval. 18) Baud rate bps(9600) Configure baud rate on serial port when transferring data. 19) Data bits [5/6/7/8] (8) Configure data bits on serial port when transferring data.
MD-109 User Manual Figure 2-6: Restore to default 2.4 Firmware Update Ask eTung for firmware software According to the description of "Configuring MD-109", connect MD-109 with PC via dedicated console serial line, run MD-109 configuration executable, and set the serial port used to update MD-109.
Page 26
MD-109 User Manual Figure 2-7: Select file to update Click "Start to update", then power on the device quickly within 30 seconds. Figure 2-8: Firmware Update After update is complete the device will reboot automatically, then in the user interface a prompt "Update finished" will appear.
MD-109 User Manual Figure 2-9: Update complete 2.5 Remote Configurations SMS or AT commands can be used on MD-109 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-109 1) In order to use SMS to modify IP and port within MD-109, the MD-109 must be offline, because MD-109 can detect whether SMSs for configurations are received or not only...
Page 28
MD-109 User Manual Figure 2-10: Set SMS password 2. Use AT commands to remotely modify IP address and port within MD-109 1) In order to use AT commands to modify IP and port within MD-109, the MD-109 must appear online in mServer. 2) Methods: Select the device in mServer, right-click it and select "Remote Configuration", at the left part of the dialog, input the following command in "Command...
Page 29
MD-109 User Manual Figure 2-11: Remote configuration with AT commands In MD-109 2.4.0 and higher versions, some parameters such as baud rate can also be configured remotely. Details are described below: 1. Support "AT+SERPORT=baud rate,data bit,parity checking,stopping bit,flow control", to change attributes of the serial port.
Page 30
MD-109 User Manual checking,stopping bit,flow control", to change attributes of the serial port. Details are: Baud rate: 300 - 115200 Data bit: 5,6,7,8 Parity checking: N(No checking), E(Even checking), O(Odd checking), M(Mark checking), S(Spacing checking) Stopping bit: 1, 1.5, 2 Flow control: N(No), H(Hard), S(Soft) To change baud rate only, the command can be simplified to "AT+ SERPORT =baud rate", for example "AT+ SERPORT...
Page 31
MD-109 User Manual 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. AT+RESTORE Restore to default 12. AT+CSQ Check signal quality.
Page 32
MD-109 User Manual Restore to default, this is mainly used when the SMS password was changed. 2. 1234;value1;value2;value3 You can write as many items as needed. If some item does not need to change, write two continuous semi-colons, and if some item need clean, write a space.
Page 33
MD-109 User Manual Attention: Currently MD-109W/E do not support “1234;AT command(s)” SMS configuration. The AT commands supported with SMS configuration are as follows: 1. AT+SET=n,value Set the value of item with order number n 2. AT+WN=apn,user,passwd Configure parameters related to dialling, with reply OK or ERROR.
Page 34
MD-109 User Manual data_bits: data bits (5/6/7/8) parity: parity checking (N: None/E: Even/O: Odd) stop_bits: stop bits (1/2) type: serial port type, for DTU that supports RS232 and RS485 at the same time, configure this parameter to set serial port type(RS232/RS485) 6.
Page 35
MD-109 User Manual OK;IMEI;version;signal strength;net mode...
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 37
MD-109 User Manual MD-109. 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-109 connects to.
Page 38
MD-109 User Manual it to "TCP". Please make sure to set the same communication protocol in MD-109 as in mServer if you want to change it. 2) Listening port: set the port that MD-109 uses to establish connection to mServer. In case of single host accessing the internet, the port set in MD-109 is the listening port in mServer.
Page 39
MD-109 User Manual Step 3: Communication between MD-109 and mServer After configuration and reboot, MD-109 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-109 has connected to the data center.
Page 40
MD-109 User Manual Figure Appendix 1-4: Map virtual serial port...
MD-109 User Manual Appendix 2: Usecase of eYun Serial Port Testing 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 42
Attention: if the terminal is not shown in the terminal list that could be added, you need to add the terminal manually based on the description of chapter 2.1 Configuring MD-109, to configure username on the terminal, or: you can contact eTung technical support to solve the problem.
Page 43
MD-109 User Manual Figure Appendix 2-3: Add terminal Step 3: Set terminal’s serial port properties and serial port type In vircom, we can check and modify the terminal’s serial port properties and serial port type. By default, the serial port type is...
Page 44
MD-109 User Manual RS232, and if the device that connects to DTU has RS485 serial port, modify DTU’s serial port type to RS485 so that they are the same. The procedure is shown below: right click the terminal, and choose “Set DTU COM type”; the terminal’s serial port type is shown in the popped-up dialog, we can change the value upon request and then click “Set”.
Page 45
MD-109 User Manual popped-up dialog, we can change the values upon request and then click “Set”. There is no need to reboot the terminal to apply the change, it will be effective immediately. The properties that can be configured include baud rate, data bits, parity and stop bits.
Page 46
MD-109 User Manual serial port with relevant software to communicate with the devices that connect to MD-109. Figure Appendix 2-6: Map virtual serial port in vircom...
MD-109 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-109 is different as well. We briefly describe the mostly used accessing ways below. 1) Single Host Accessing internet via ADSL Figure Appendix 4-1: Single host accessing internet via ADSL Configuring IP or domain: in this case the IP address of the data center...
Page 48
MD-109 User Manual Figure Appendix 4-2: Accessing internet via ADSL+LAN Configuring IP or domain: in this case, the data center IP address to be configured in MD-109 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 49
MD-109 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-109 accordingly.
Appendix 4: 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
MD-109 User Manual 5) At last, use command “AT+EXITCFG” to exit the configuration mode, then DTU will reboot to apply the changes. For example, to modify MD-109’s data center domain (eyun.etungtech.com), port (8080) and protocol (UDP), use the following AT command list: AT+ENTERCFG\r AT+SET=1,eyun.etungtech.com\r AT+SET=2,8080\r...
MD-109 User Manual Appendix 5: DTU SMS Mode and SMS Data Format By default DTU is in 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 54
MD-109 User Manual 2) General AT command for sending short messages via serial port: AT+SMS=<target number>,<encoding format>,<data length>,<data>\r DTU will send the following reply: \r\nOK\r\n \r\nERROR\r\n Target Number:Phone number to receive the short message Encoding Format: 1: ASCII encoding, 2: 8bit encoding, 3: Unicode encoding Data Length:The actual data length behind Data: The data to be sent, each byte should be formatted to a 2-byte hexadecimal number, for instance “1234”...
Page 55
MD-109 User Manual “1234” received from 13812345678 in 8bit encoding: \r\n+SMS:13812345678,2,4,31323334\r\n “你好” received from 13812345678 in Unicode encoding: \r\n+SMS:13812345678,3,4,4F60597D\r\n If the received SMS has more than one message, the format is as below: \r\n+SMSL:<identifier>,<total>,<sequence number>,<phone number>,<encoding format>,<data length>,<data>\r\n The messages with the same identifier can be assembled into one long SMS.
Need help?
Do you have a question about the MD-109 2G DTU and is the answer not in the manual?
Questions and answers