Home
HLK-M30 User Manual V1.2
Contents
1. Shenzhen Hi Link Electronic co Ltd HLK M30 User Manual Serial to WiFi Module gt A Shenzhen Hi Link Electronico Ltd Http www hlktech com im Link Tel 0755 23152658 Fax 0755 83575189 Catalog Module dosi dieere dud n duque 3 MEME qnie ms 3 112 3 1 1 3 Module Parameters 4 PAD PIC lle NR mE 5 WAG IER UU m 5 INE MEL 6 LL DIMONSION EO 8 LIS AMEMAN enagani a A AA E EE 8 IL L S b extemal Antenna Fem 8 1 1 8 2 Reference on board PCB antenna sse ener ennt nnns 9 1 1 9 General development test 9 2 ee ipieje NICE EE mE 12 12 1 ALCKR M30 ves hucud tns Dresses buts Basic earn 12 1 22 MCU 13 2 OM m 15 CNRC OMIT TIT 15 eA NORAT uv 15 2 12 WOK SOMA IOC seco 15 2 2 Work Mode Transparent 16 2 3 ZOMG MS LEIS E 17 LAFIMEN RONG UU t 17 17 ZO N WOK PROLOG 18
2. Sep Irt E Bi i 1 DC SV Powerin HLK M30 StartKit Connection of the testboard 3 1 3 Test Steps 1 PowerOn the wireless router We set the wireless parameter as below Page 21 33 Pages xz Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 Wireless name ssid HI LINK Guest Encryption WPA2 AES Key hlktech123 DHCPD 191 168 16 100 4 192 168 16 254 0 5 192 168 16 254 2 Connect the 9 of startkit with your computer s 9 then power on the wifi led will flash HLK M30 CONFIG English i 30 3 Open HLK M30_ CONFIG English ShenZhen Hi Link ElectronicTe interface as follows Software 192 155 1 9 at Hmask 255 255 255 0 STASmartC STA Manual C SoftAP Made Baud 115200 Data fe Parity NONE Stop 1 QueryConfi Transparent ResetDefauit HLK M30 CONFIG Interface 4 Chose the right COM port Kon Sent Dress the Exit Default button on the Page 22 33 Pages Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 Search starkit board and then press the button Search EUM will back Find Device at COM 115200 Found Device at 1 1152001 5 Press QueryConfig button the software will list the current parameters 6 Change the parameters We config the module parameters as below
3. Udp Control below when the module have connect to the ap Then establish udp client prot is 988 in defa ult setting you can send hlkATat GW 0 1 r the GPIOO will output high voltage 2 6 Network Protocol The serial to network have two method Transparent transmission at command 2 6 1 Transparent transmission There are 4 mode of serial to network TCP Server TCP Clinet UDP Server UDP Client TCP Server TCP Client TCP Server p d L TCP Client xU TCP Client Fig10 TCP Server In this mode HLK M30 is waiting for the TCP Client connection All TCP data is sent dir ectly to the serial port Serial data is transmitting to all TCP Clien terminal The HLK M30 support 4 tcp client TCP Client Page 18 33 Pages gt 4 Shenzhen Hi Link Electronico Http www hlktech com im Link Tel 0755 23152658 Fax 0755 83575189 TCP Server TCP Client Fig11 TCP Client In this mode the HLK M30 will connect the remote domain or ip All TCP data is sent directly to the serial port Serial data is transmitting to the tcp server Abnormal network disconnect can cause module active reconnection When enable TCP reconnection function TCP Server active disconnected module will immediately active reconne ction otherwise the module will not reconnect UDP Server UDP Client UDP Server Fig12 UDP Server In this mode Module will listen local udp port Upon recevied data from this port the dat a will
4. 45 T N C 0 fe C6 10 anann nat Q T T P3 1 05 uz HLK M30 StartKit StartK t Interface Fuction Name Item Description DB9 RS232 interface can DC5V 5V input min 3 8 max 5 5V Interface IPEX Antenna IPEX Burn firmware into the flash customs can not SPI interface P4 use Connect to the HLK M30 GPIOO GPIOO0 GPIOO0 When GPIOO at low voltage the LED will light up This can test thee GPIOO output 3 3V power led POWER POWER If this led do not light up please check the power supply Connect to the HLK M30 GPIO1 GPIOO1 GPIOO 1 When GPIO1 at low voltage the LED will light up This can test thee GPIO1 output Page 10 33 Pages Shenzhen Hi Link Electronico Ltd Http www hlktech com Tel 0755 23152658 Fax 0755 83575189 Mi LirK Teorsszstsesse recorss e257siea 9 Connect to the HLK M30 GPIO2 GPIO02 GPIO02 When 2 at low voltage the LED will light up This can test thee GPIO2 output WIFI LED indicate below Flash 2 times cycle The moduel staus STA SmartConfig Staus Flash 3 times cycle The moduel staus STA Manual Staus Extinguishing Module have connect to the wireless router No communication data WIFI LED Indicate LED Random flash when receiving or sending data broadcast data LED will flash once corresponding Fast blink When use loTManager config the module when successful
5. lt gt Clear Send As Hex Clear Send As Hex Send cycle Newline Send cycle ms New Line Essi ShenZhen Hi Link electronic co Ltd 9 the COM port type in the ip address and the 8080 port of the Connect module press connect and send data to each other you can see both have received data HLK M30 SERIAL SEND Local Port 8000 TO SEND ShenZhen Hi Link electronic Ltd Page 25 33 Pages xz Shenzhen Hi Link Electronico Ltd Htto www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 10 The serial port send HLK M30 SERIAL SEND to wifi and the wifi received the data The TCP send HLK M30 TCP SEND to serial port and the RS232 port have received the data 3 2 SmartConfig v0 9 Android SmartConfig Tool 1 Preparation work Install loTManager_v0 96 x android phone Then power on the HLK M30 Press the Exit Default button at least 6 second this will make the module return to factory setting DEMO_HLK Wifi 23151 Bnsd p 88 i BI is Manage 2 Open lol Manager type in the target wireless router s ssid and passwork observe WIFI LED blink two times out of a cycle that means the module is in smartconfig mode and then Page 26 33 Pages xz A Shenzhen Hi Link Electronico Ltd Http www hlktech com im Link Tel 0755 23152658 Fax 0755 83575189 p
6. s RST RX pin Release RST pin gt Wait for at least 50ms than release RX pin Module StartUp The time between RX and RST pin is controlled by your MCU Signal Time HLK M30 Startup sequence diagram Page 13 33 Pages gt Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 P G1 LJ WIEL LED EXIT 36 BRUN 34 33 32 3 28 2 GND 33V GND ANT HLK M30 Smallest Circuit Page 14 33 Pages gt A Shenzhen Hi Link Electronico Ltd Http www hlktech com Tel 0755 23152658 Fax 0755 83575189 2 Function 2 1Wireless 30 can be configured STA or AP mode So there are two serial to wifi mode serial to WIFI STA mode and serial to WiFi SoftAp mode Note AP The center of a wireless network node Commonly was a wireless router STA Wireless node a enddevice like notebook PDA are both STA device 2 1 1 Work At STA Mode This is the basic wireless network A ap connect all the STA device together See the below picture communication between the STA forward by AP In this mode HLK M30 work at STA mode by some proper settings the data can transfer between the serial and wifi User Device HLK M30 HLK M30 Sta Work Topology 2 1 2 Work At SoftAP Mode HLK M30 works in AP mode the PAD mobile phone computer and other equipment can directly connect to the module
7. Serial Parameters B Bandrate B Data length Checksum bit Stop bit 2 3 Config Parameters HLK M30 can config by at command Learn more you can find lt lt HLK M30 AT Command V1 2 gt gt HLK M30 also can be configed by UDP 988 port When you establish udp you can send at commad by network learn more you can see the at DP command 2 4 Firmware Update HLK M30 supprt serial port to update firmware Use tool HLK M30 update exe Steps below 1 Open HLK M30 update exe Change the name of the firmware to HLK M30 img copy it to the same directory of the HLK M30 update exe tool 2 Press C to choose update serial port 3 Press Enter to let the tool to start update 4 Connect the serial prot Press the Exit Reset Update button and then power on Wait for 1s then release the tool will load the firmware 5 When update complete the module will restart 2 5 GPIO HLK M30 supply three GPIO to use These GPIO can control by serial at command and also can be controlled by UDP HLK M30 GPIO GPIOO0 Output Input High Low Voltage Write Read by at command Page 17 33 Pages gt Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 GPIOO1 Output Input High Low Voltage Write Read by at command GPI002 Output Input High Low Voltage Write Read by at command For example At GW 0 1 0 Output High Voltage At GR 2 Query 2 Input Voltage
8. Serter SSID Frank Guest TCP Client 7 UDP Server Enc Type wPA2 AES UDP Client 8 E RemoteIP Domain 192 168 0 1 SerialParameter mm Baud 115200 Data 8080 LocalPort 7 DHCP NetWorkParameter Commit QueryConfig Transparent ResetDefauit 10 11 search module button Choose module s work mode Wireless Parameters Choose network Protocol Serial port parameters 9 Submit the configure button 10 Query the configure button 11 Enter the transparent transmission button 12 Back to factory setting button 13 Waiting to send command zone 14 Atcommand execue returns area 15 Save user parameter button Page 32 33 Pages gt A Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 Appendix Document history version Records Date Add UDP at command decription 2014 9 20 Page 33 33 Pages
9. That means the user can convenient to monitor their equipment Page 15 33 Pages xz A Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 Serial Port HLK M30 User Device HLK M30 SoftAP topology 2 2 Work Mode Transparent transmission The HLK M30 supports serial transparent transmission This has the advantage of plug a nd play serial to reduce the user s complexity Module in transparent transmission mode the user only need to configure the necessary parameters After power on module automatically c onnect to the default wireless network and server Because in this mode the module serial port always work in transparent transmission mod e so the user just use itas a virtual serial port In short the module is a wireless serial por t without any change the user s equipment can be easily add wireless data transceiver Transparent transmission mode is fully compatible with the user s own software platfor m reduce integration of wireless data transmission software development You should to cofni g the below parameters at STA Manual mode Wireless Parameters B Target AP s SSID and SSID S length B Target AP s encryption B Target AP s key and key s length TCP UDP parameters B Network Protocol B Remoto Page 16 33 Pages gt A Shenzhen Hi Link Electronico Ltd Http www hlktech com im Link Tel 0755 23152658 Fax 0755 83575189 B Port
10. 0 HLK M30 detail TOP View Note Module 16 5 X14 1 X2 25mm 118 Antenna optional According to the IEEE 802 11b g n standard requirements and HLK M30 need 2 4G antenn a you can use the 2 4G external antenna or design your own onboard antenna 1 1 8 1 External Antenna Parameter Fig 2 HLK M30 Antenna parameter Required Freqence 2 4 2 5GHz Page 8 33 Pages xz Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 return loss 10dB Max Connection type I PEX or Onboard 1 1 8 2 Reference on board PCB antenna If permit you can use the PCB onboard antenna See the Appendix PCB document of P CB antenna Below is the 2 4G PCB board recommended Note C1 C2 not need weld L1 uses 0 ohm resistor or capacitor 10pF The top and back o PCB antenna part can not be connected to GND The PCB antenna must placed on the edge of the board please do impedance matching 50 5 Omega impedance 1 1 9 General development test suit We provides the HLK M30 Startkit for the customer to quickly familiar with the product a nd in depth application development The figure below shows the general assessment of deve lopment and test suite appearance users can debug module through the RS 232 serial port b y computer and also configuration parameters Page 9 33 Pages Shenzhen Hi Link Electronico Ltd Http www hlktech com Tel 0755 23152658 0755 83575189 f Lin
11. 2 6 1 Transparent 7 5 2 dec Dos dedi esaet 18 CONN 1 EU 20 and USING m 21 Gre dee 21 PrOD AION WOK ascia arna S 21 are CONNEC E EE E A em 21 9 SIC DSS IEA 21 STA COMMU 24 CONVETSION mE TETTE 29 A COMMANA Bo dfe eie aM PT 30 PND UT 33 Page 2 33 Pages gt A Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 JB Tere gars o 0 3m PR ETT EE 39 111 Brief Introduction HLK M30 is a new low cost embedded uart wifi module developed by Shenzhen Hi Lin k Electronic co Ltd This product is an embedded module based on the universal serial interface network standard built in TCP IP protocol stack enabling the user serial port wireless network wifi interface between the conversions Through the HLK M30 module the traditional serial devices do not need to change any configuration data can be transmitted through the Internet network Provide a quick solution for the user s serial devices to transfer data via Ethernet This document as familiar with the HLK M30 module and the test suite for guidance doc ument Please refer to lt lt HLK M30 AT Command pdf gt gt and lt lt
12. HLK M30 DataSheet gt gt 1 1 2 Module Features gt Small size 14mm x 16 5mm X 2 25mm gt Low power consumption Quick start network connect quickly Pefect support 802 11b g n gt Support all wifi encryption WEPAWPA TKIPANPA AES WPA2 TKIPAWPA2 AES driver need User only need to use it as a serial port Support STA AP mode Support CP Server TCP Client UDP Server UDP Client Support DHCP DNS HTTP Support serial at command also network at command Support search module in LAN Page 3 33 Pages gt A Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 gt Support SmartLink function use app to config the module connect the wireless router CE FCC support ROHS standard support 1 1 3 Module Parameters Fig 1 HLK M30 Module parameters Wireless IEEE 802 11n IEEE 802 119 IEEE 802 116 11n up to 150Mbps Wireless Rate 11g up to 54Mbps 11b up to 11Mbps Frequency range 2 4 2 4835G Send Power 15 18 DBM Interface UART GPIO Antenna Type External antenna Distance 100 300m different situation different transmission distance WiFi mode Sta soft ap WPA PSK WPA2 PSK WPA WPA2 Others LED WIFI led operate temp 20 70 C Operate humidity 10 90 RH Environmental Store temp 40 80 C Store humidity 5 90 RH Page 4 33 Pages gt A Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 F
13. Work Mode STA Manual osid HI LINK Guest WPA2 AES KEY hlktech123 Network TCP SERVER Port 8080 Disable DHCP Choose Staic IP Page 23 33 Pages Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 1 Search 192 158 10 234 at dns 192 168 16 254 att UType 1 192 168 0 1 STA Smart STA Manual SoFLGP Mode at URPort 8080 WiFi Parameter Guest Enc WPA2_AES UDP Client Key hiktech 123 RemoteIP Domain 192 168 0 1 SerialParameter or Baud 115200 Data 255 255 255 0 attgw 192 16B 0 1 attdns 192 16B8 0 1 r 5avellserParameter Commit 7 Press Commit Commit the command will send to the module Command and respongse area will display the status of command will send and execution 3 1 4 Communication test 8 Till now the module have connect to HI LINK_Guest So we open serial and TCP UDP test tool to test the communication Serial amp TC P UDP Tool Page 24 33 Pages gt Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 NetWork Settings Protocol TCP_CLIENT Baudr 115200 Remote 192 168 16 200 DataB 8 Remote Port verify None Local Port 8000 8080 COM Recive Settings Show As Hex lt gt
14. ax 0755 83575189 1 1 4 Application The handheld device Remote control The consumer electronics IOT systems Industry systems Portable wireless communication product Medical equipment Led control Sensor network application 999999999 Wireless printer 1 1 5 Hardware E E E UN e ae gt a os SA 4 HLK M30 top HLK M30 back Page 5 33 Pages Shenzhen Hi Link Electronico Ltd Http www hlktech com m Link Tel 0755 23152658 Fax 0755 83575189 1 1 6 Pin GPIOZ ES RST LED TX ESI GMD GML GPIOL GND GPIO GND GND GND GMD GND GMD GND GMD GND VDDZ GND GND YDD1 ANT AMA HLK M30 PIN HLK M30 Pin Interface EN 8 NR NEN NS ELE Page 6 33 Pages shenzhen Hi Link Electronico Ltd Http www hlktech com m Link Tel 0755 23152658 Fax 0755 83575189 mamenn ow m eines n 9m maneran _ w m mamerne _ a 1 _ m _ 9 wwe 1 _ Note 1 The voltage of GPIO is 3 3V Page 7 33 Pages gt Shenzhen Hi Link Electronico Ltd Http www hlktech com im Link Tel 0755 23152658 Fax 0755 83575189 2 When power on the RST turn low to high voltage make surn the RX pin at leaset 1ms 1 1 7 Mechanical Dimension 14 4 16 5
15. be sent to the serial port and record the distal IP Port The module will only record the last connection remote information Serial receive data will be sent directly to the recorded di stal IP Port Page 19 33 Pages gt Shenzhen Hi Link Electronico Ltd Http www hlktech com im Link Tel 0755 23152658 Fax 0755 83575189 UDP Client UDP Server UDP Client Fig13 UDP Client In this mode serial data will be sent to the configed IP port The data recevied from the server will be sent the serial port terminal 2 6 2 AT command We provides the at command to achieve the function of sending and receiving network d ata This functionality is implemented through socket related instructions The basic process is as follows 1 Socket open 2 Socket write 3 Socket read 4 Socket list 5 Socket close Page 20 33 Pages gt Shenzhen Hi Link Electronico Ltd Http www hlktech com im Link Tel 0755 23152658 Fax 0755 83575189 3 Setting and using guide 3 1 Config by serial 3 1 1 Preparation work Hardware B HLK M30 module HLK M30 motherborad 5V power Serial cable Wireless router B Cumputer Software B 30 tool B UDP test tool 3 1 2 How to Connect Below is the general development kit for communication test Need a serial computer no serial port machine can use a USB to serial cable Connections are as follows 3
16. gt Shenzhen Hi Link Electronico Ltd Http www hlktech com Tel 0755 23152658 Fax 0755 83575189 3 3 2 Remote connection User Device Server em ALK Ma0 The HLK M30 module as STA connect to the Internet through the gateway AP Module is set to TCP Client points to the server the server is set to TCP Sever The user device is connected to HLK M30 through the serial port and its data can be sent to the server to process and storage The service can send commands to control the user s equipment 4 At command Instruction 4 1Mode conversion When HLK M30 module power on it will enter transparent transmission mode you can pull down the voltage of the ES DST pin to let the module enter AT mode Transparent transmission mode and at mode can change like this Pull down the ES RST 1 second Transparent transmission AT Command Mode at TS 1 Serail Port Work Mode Page 29 33 Pages Shenzhen Hi Link Electronico Ltd Http www hlktech com m Link Tel 0755 23152658 Fax 0755 83575189 When power on the module will check the config of the network if it can connect to the internet it will enter transparent transmission if not it will enter at command mode The method of change the transparent transmission mode to at command mode pull down the voltage of the ES RST pin more than 0 55 less than 5s it will enter at command mode f you pull down the ES RST pin more than 6s the module wil
17. it will fast blink Or there are huge Data communication Flash 4 times The module are now get DHCP RESET Reset button Press the module will reset Short press 0 5 5s Enter at command mode Exit Default Exit Default Long press More than 6s Back to factory Page 11 33 Pages Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 1 2 Typecal Application 1 2 1 HLK M30 typecal circuit 4 4 il Exit Defaut FERAE gt GND Figure 7 HLK M30 typecal circuit lt Descripiton gt Page 12 33 Pages gt A Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 MCU custom s mircrochip or serial enddevice or serial chip the interface voltage is 3 3V TTL RX TX The modules receive send pin 74LVC3157 U3 Analog switch This IC cannot be removed it wil help to boot the module RESET K2 Reset button Press it the module will restart WIFI LED Indicate LED Exit Default K1 Short Press exit transparent transmission Long press more than 6s back to default seeting IPEX P3 Antenna interface make sure the matching 50 5 Omega impedance 122 MCU Simplest circuit Below is there is mcu to control the hlk m30 s RX pin the smallest circuit In this circuit you can remove the 74LV3157 because this IC s fuction is replace by your mcu Do like this Power On Use your mcu s GPIO to pull down the voltage of hlk m30
18. l back to factrory config Send at TS 1 the module will enter transparent transmission mode 4 2 At command instruction At at command mode you can config the module by at command the at format like below at command value r There need Y otherwise it will be considered wrong at instruction According to the different command module will return a different value For 192 168 11 133 Set the remote ip address 192 168 11 133 at Ulpz W Query the remote ip address at command below Instruction is case sensitive Oo e e Page 30 33 Pages gt A Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 P Prefix data or UDPI088 executes the at command Re 000000 DR Domiramemson Note The at instruction are case sensitive at the two character is lowercase More details of AT Command you can refer to lt lt HLK M30 AT Command V1 2 gt gt HLK M30 CONFIG tool Details Page 31 33 Pages jat ULPort 8080 jat Ub 115200 jat Ud 8 jat Up 0 jat Us 1 jat WC 1 SaveUserParameter Interface description Choose Com port Remote Local port Network IP ot X XUL eS Shenzhen Hi Link Electronico Ltd Http www hlktech com Tel 0755 23152658 Fax 0755 83575189 comi Search a OpeatingMode d C STA Smart C C SoftAF Mode NetworkProtocol WiFi Parameter TCP
19. ress start will config the module connect to the wireless router when the WIFI LED is quickly flashing that mean the module have connected to the router lol Manager v0 96 SMARTCONNECTION MANAGEMENT HI LINK_Guest Show Password TN oso Mem API StopSmartConnection 3 Let you notebook also connect to the same router Open our search tool HLK M30 Discover M30 0 8 HLE M3U 1 scover Discover Press Discover button can find all the wifi modules from our below Page 27 33 Pages xz A Shenzhen Hi Link Electronico Ltd Http www hlktech com Vi Link Tel 0755 23152658 Fax 0755 83575189 192 168 16 254 44 33 4C C9 49 9A HLK RMO4V1 95 May 27 2014 192 168 16 200 48 02 2A F6 33 FA HLK M30 V2 10 Aug 7 2014 Note HLK M30 factory setting is Smart Config When power on you can use this tool to config the module 3 3 Applications 3 3 1 Wireless remote control a m 1 4 be COLILCEDEN 28 PHONE PAD PC AP HLK M30 User Device In this application the HLK M30 STA mode connect to AP the 30 serial connected to user s equipment Mobile phone PAD or computer is connected to the AP and then through the wireless network to control the user s equipment Page 28 33 Pages
Download Pdf Manuals
Related Search
Related Contents
Apple 10.5 Leapard Model Vehicle User Manual Sicherheitsanleitung ACTIVITÉS NATURE en PACA - Conservatoire d`espaces naturels dreamGEAR My Arcade 75 in 1 `PROCEDURE OPERATIVE - D.U.V.R.I.` 取扱説明書 - エフ・アール・シー WT5500 v1.3 Installation Instructions 9987011e, Manuale di istruzioni Ricevitore di Product Manual Panasonic Toughpad FZ-G1 128GB 4G Black, Grey Copyright © All rights reserved.