Page 1
HF-LPC3X0 Series Wi-Fi&BLE User Manual HF-LPC3X0 Series Low Power Wi-Fi + BLE4.2 Module User Manual V 1.2 Overview of Characteristic Support Wi-Fi IEEE802.11b/g/n and BLE4.2 Wireless Standards Based on ARM9E SOC, 120MHz CPU, 256KB RAM, 2MB/2MB+8MB Flash ...
Page 2
HF-LPC3X0 Series Wi-Fi&BLE User Manual Size: ◼ HF-LPC300:23.1mm x 32.8mm x 3.5mm,SMT37 ◼ HF-LPC330:22mm x 15.6mm x 8mm,DIP10 - 2 - Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com)
HF-LPC3X0 Series Wi-Fi&BLE User Manual TABLE OF CONTENTS LIST OF FIGURES ........................... 7 LIST OF TABLES ............................ 9 HISTORY ..............................10 PRODUCT OVERVIEW ......................11 1.1. General Description .......................11 1.1.1 Key Application .........................11 1.1.2 Device Paremeters ......................12 1.2. Hardware Introduction ......................12 1.2.1.
1. PRODUCT OVERVIEW 1.1. General Description The HF-LPC3X0 series module is a fully self-contained small form-factor, single stream, 802.11b/g/n Wi-Fi + BLE4.2 module, which provide a wireless interface to any equipment with a Serial interface for data transfer.HF-LPC300 integrate MAC, baseband processor, RF transceiver with power amplifier in hardware and all Wi-Fi protocol and configuration functionality and networking stack, in embedded firmware to make a fully self-contained 802.11b/g/n Wi-Fi and BLE solution for a variety of applications.
HF-LPC3X0 Series Wi-Fi&BLE User Manual 1.2.1. HF-LPC300 Pins Definition Figure 3. HF-LPC300 Pins Map Table2. HF-LPC300 Pins Definition Describtion Net Name Signal Comments Type 1,17,18,34 Ground Power Power Input GPIO28, leave it open if not use GPIO28 GPIO28 GPIO14, leave it open if not use...
Leave it open if not use. Antenna Pin, only for HF- LPC300-2 HF-LPC300 module SOC chip integrate 2MB Flash, but it has additional postion for adding Flash, the Flash postion is as following. This flash can be used for saving data using SDK. Figure 4.
HF-LPC3X0 Series Wi-Fi&BLE User Manual 1.2.2. HF-LPC330 Pins Definition Figure 5. HF-LPC330 Pins Map Table3. HF-LPC330 Pins Definition Describtion Net Name Signal Type Comments Ground Power Power Input +3.3V Power Power Input Multi-Function nReload Detailed functions see <Notes> PWM3 GPIO9, leave it open if not use “Low”...
HF-LPC3X0 Series Wi-Fi&BLE User Manual Figure 6. HF-LPC330 Debug Pins Map Pin Describtion Net Name Signal Type Comments UART1 DEBUG_UART1_RX 3.3V TTL Debug UART1 Input UART1 DEBUG_UART1_TX 3.3V TTL Debug UART1 Output <Notes> I — Input;O — Output PU—Internal Resistor Pull Up; I/O: Digital I/O; Power—Power Supply nReload Pin (Button) function: When this pin is set to “low”...
HF-LPC3X0 Series Wi-Fi&BLE User Manual At normal mode, it’s Wi-Fi link status indicator. Output Low when STA mode connect to router AP or other STA connect to it when in AP mode. High-Flying strongly suggest customer fan out this pin to LED.
HF-LPC3X0 Series Wi-Fi&BLE User Manual 1.2.6. HF-LPC300 On-board PCB Antenna HF-LPC300 module support internal on-board PCB antenna option. When customer select internal antenna, you shall comply with following antenna design rules and module location suggestions: ➢ For customer PCB, RED color region (8.3x18.4mm) can’t put componet or paste GND net;...
1.2.8. External Antenna HF-LPC3X0 series module supports external antenna(I-PEX) option for user dedicated application. If user select external antenna,HF-LPC3X0 series Wi-Fi modules must be connected to the 2.4G antenna according to IEEE 802.11b/g/n standards. We can provide external antenna if needed.
HF-LPC3X0 Series Wi-Fi&BLE User Manual Figure 11. HF-LPC300 Order Information Figure 12. HF-LPC330 Order Information - 23 - Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com)
HF-LPC3X0 Series Wi-Fi&BLE User Manual 1.2.10. Hardware Typical Application Figure 13. HF-LPC300 Hardware Typical Application Notes: nReset- Module hardware reset signal. Input. Logics “0” effective. There is pull-up resister internal and no external pull-up required. When module power up or some issue happened, MCU need assert nRST signal “0”...
Page 25
HF-LPC3X0 Series Wi-Fi&BLE User Manual UART0_TXD/RXD- UART port data transmit and receive signal. - 25 - Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com)
HF-LPC300 module can be configured as both wireless STA and AP base on network type. Logically there are two interfaces in HF-LPC300. One is for STA, and another is for AP. When HF-LPC300 works as AP, other STA equipments are able to connect to HF-LPC300 module directly. Wireless Networking with HF-LPC300 is very flexible.
Figure 16. BLE Connection 2.3. Work Mode : Transparent Transmission Mode HF-LPC300 module support serial interface transparent transmission mode. The benefit of this mode is achieves a plug and play serial data port, and reduces user complexity furthest. In this mode, user should only configure the necessary parameters.
2.6. Firmware Update HF-LPC300 module supports multiple upgrade methods: ◼ UART upgrade ◼ Local Network upgrade 2.7. SOCKET B Function HF-LPC300 support double socket communication, the socket B function is disabled by default. - 28 - Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com)
2.8. Multi-TCP Link Connection When HF-LPC300 module SOCK A configured as TCP Server, it supports Multi-TCP link connection, and maximum 5 TCP clients permitted to connect to HF-LPC300 module. User can realize multi-TCP link connection at each work mode. Multi-TCP link connection will work as following structure: Upstream: All dates from different TCP connection or client will be transmitted to the serial port as a sequence.
HF-LPC3X0 Series Wi-Fi&BLE User Manual 3. OPERATION GUIDELINE 3.1. Configuration When first use HF-LPC3X0 series modules, user may need some configuration. User can connect to HF-LPC300 module’s wireless interface with following default setting information and configure the module through laptop.
(MID), software version, wireless work mode and related Wi-Fi parameters. Figure 20. System Web Page 3.1.3. Work Mode Page HF-LPC300 module can works at AP mode to simplify user’s configuration, can also works at STA to connect remote server through AP router. Figure 21. Work Mode Page - 31 - Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com)
HF-LPC3X0 Series Wi-Fi&BLE User Manual 3.1.4. STA Setting Page User can push “Scan” button to auto search Wi-Fi AP router nearby, and can connect with associate AP through some settings. Please note the encryption information input here must be fully same with Wi-Fi AP router’s configration, and then it can link with AP correctly.
Figure 24. AP Setting Page 3.1.6. Other Setting Page HF-LPC300 usually works at data transparent transmission mode. At this mode, the user device which connected with HF-LPC300 will connect and communicate with remote PC or server. At this page, user need setting serial port communication parameters and defines TCP related protocal parameters.
HF-LPC3X0 Series Wi-Fi&BLE User Manual 3.1.7. Account Management Page This page set web server’s user name and password. Figure 26. Account Page 3.1.8. Upgrade Software Page User can upgrade new software (firmware) version through Wi-Fi. After upgrade success, need reboot it manually before new firmware valid.
Figure 28. Restart Page 3.1.10. Restore Page After module restore factory default setting, all user configuration profile will lose. to set again, and user name and password is “admin”. HF- User can access http://10.10.100.254 LPC300 will restore to AP mode for factory default setting.
◼ Ethernet Debugging Software: TCPUDPDbg 3.2.2. Network Connection User can select two methods to connect HF-LPC300 module base on dedicated application. ➢ Use HF-LPC300 STA interface. HF-LPC300 and debug PC2 connect to a wireless AP, another PC1 (or user device) connect to HF-LPC300 module with serial port: Figure 31.
Figure 33. “CommTools” Serial Debug Tools PC2 open “TCPUDPDbg” program, and create a new connection. If HF-LPC300 configured as Server mode, “TCPUDPDbg” Tools shall create “Client “mode connection. Or otherwise, create a “Server” mode connection.
3.3.1. Wireless Control Application Figure 37. Wireless Control Application For this wireless control application, HF-LPC300 works as AP mode. Module’s serial port connects to user device. So, control agent (Smart phone for this example) can manage and control the user device through the wireless connection with HF-LPC300 module.
3.3.3. Transparent Serial Port Application For this transparent serial port application, two HF-LPC300 modules connect as below figures to build up a transparent serial port connection. One HF-LPC300 works as AP mode, another HF-LPC300 works as STA mode. Make the STA device connects to AP.
HF-LPC3X0 Series Wi-Fi&BLE User Manual 4. AT+INSTRUCTION INTRODUCTION 4.1. Configuration Mode When HF-LPC300 power up, it will default works as transparent transmission mode, then user can switch to configuration mode by serial port command. HF-LPC300 UART default parameters setting as below figure, Figure 40.
It saves the steps of changing to AT command mode. The following example, we first set AT+CMDPW=HF, then send the following data in transparent mode, and get the AT command response. This data won’t be sent to socket.
HF-LPC3X0 Series Wi-Fi&BLE User Manual Figure 42. ”AT+H” Instruction for Help 4.2.1. Instruction Syntax Format AT+Instruction protocol is based on the instruction of ASCII command style, the description of syntax format as follow. ➢ Format Description ◼ < >: Means the parts must be included ◼...
HF-LPC3X0 Series Wi-Fi&BLE User Manual Instruction Description TCPDIS Open/Close SOCKA TCP link SEND Send Data at Command Mode RECV Receive Data at Command Mode SOCKB Set/Query SOCKB parameters TCPDISB Open/Close SOCKB TCP link TCPTOB Set/Query SOCKB TCP timeout TCPLKB Query if SOCKB TCP link already build-up...
When set this value to “HF”, then can get response of “+ok=STA”(Hex: 2B 6F 6B 3D 53 54 41) for send “HFAT+WMODE\r”(Hex: 48 46 41 54 2B 57 4D 4F 44 45 0D, AT command should end with 0D or 0A).
HF-LPC3X0 Series Wi-Fi&BLE User Manual 4.2.2.4. AT+ENTM ◼ Function: Set module into transparent transmition mode; ◼ Format: AT+ENTM<CR> +ok<CR><LF><CR><LF> When operate this command, module switch from configuration mode to transparent transmission mode. 4.2.2.5. AT+TMODE ◼ Function: Set/Query module data transfer mode. Setting is valid after reset.
HF-LPC3X0 Series Wi-Fi&BLE User Manual 4.2.2.14. AT+UART ◼ Function: Set/Query serial port parameters. Setting is valid after reset. ◼ Format: ◆ Query Operation AT+UART[=uart_num]<CR> +ok=<baudrate,data_bits,stop_bit,parity,flowctrl><CR><LF><CR><LF> ◆ Set Operation AT+UART=<baudrate,data_bits,stop_bit,parity,flowctrl>[,uart_num]<CR> +ok<CR><LF><CR><LF> ◼ Parameters: ◆ uart_num:UART Channel, the default is UART0. ⚫...
HF-LPC3X0 Series Wi-Fi&BLE User Manual ◼ Parameters: ◆ data_lenth: Lenth of send data. Range: 0~1000 Byte The UART port will wait 3 seconds for input after this command is sent OK. The data received from UART port is sent to SOCKA. If the interval of two bytes is more than 10ms, the data will be sent instantly.
HF-LPC3X0 Series Wi-Fi&BLE User Manual +ok=<sta><CR><LF><CR><LF> ◆ Set Operation AT+TCPDISB =<on/off><CR> +ok<CR><LF><CR><LF> ◼ Parameters: When setting, “off” means close TCP link. After finish this command, module disconnect TCP link and not connect again. “On” means open TCP link. After finish this command, module re- connect TCP server right away.
HF-LPC3X0 Series Wi-Fi&BLE User Manual The UART port will wait 3 seconds for input after this command is sent OK. The data received from UART port is sent to SOCKB. If the interval of two bytes is more than 10ms, the data will be sent instantly.
HF-LPC3X0 Series Wi-Fi&BLE User Manual ◆ Set Operation AT+WSKEY=< auth,encry,key><CR> +ok<CR><LF><CR><LF> ◼ Parameters: ◆ auth: Authentication mode OPEN SHARED WPAPSK WPA2PSK ◆ encry:Encryption algorithm NONE: When “auth=OPEN”, effective WEP-H: When “auth=OPEN” or “SHARED”, effective, in HEX format ...
HF-LPC3X0 Series Wi-Fi&BLE User Manual AT+WSMAC=<code,mac_address,key><CR> +ok<CR><LF><CR><LF> ◼ Parameters: ◆ code: security code 8888 (default value) ◆ Mac_address: module MAC address, such as ACCF23FF1234 ◆ key: encryption key. It is not allowed to change, contach us if need to change MAC.
HF-LPC3X0 Series Wi-Fi&BLE User Manual ◼ Format: ◆ Query Operation AT+LANN<CR> +ok=<ipaddress,mask><CR><LF><CR><LF> ◆ Set Operation AT+LANN=< ipaddress,mask><CR> +ok<CR><LF><CR><LF> ◼ Parameters: ◆ ipaddress: AP’s IP address; ◆ mask: AP’s net mask; 4.2.2.38. AT+WAP ◼ Function: Set/Query AP Wi-Fi parameters. Support maximum 5 STA connection. Setting is valid after reset.
HF-LPC3X0 Series Wi-Fi&BLE User Manual ◆ Encry: include NONE: When “auth=OPEN” available; AES: When “auth=WPA2PSK” available; ◆ key: security code, ASCII code, 8~63 bytes. 4.2.2.40. AT+WADHCP ◼ Function: Set/Query AP DHCP server status; Setting is valid after reset.
HF-LPC3X0 Series Wi-Fi&BLE User Manual AT+DISPS<CR> +ok=<ret><CR><LF><CR><LF> ◆ Set Operation AT+DISPS=<mode[,time]><CR><LF><CR><LF> ◼ Parameters: ◆ ret: No: Enable power save Yes: Disable power save Auto: Auto power save mode(default), enter power saving mode after receive or send data in time seconds.
HF-LPC3X0 Series Wi-Fi&BLE User Manual 1: UART1, 921600bps, with more system information output. 4.2.2.53. AT+SMEM ◼ Function: Query the RAM malloc status. ◼ Format: ◆ Query Operation AT+SMEM<CR> +ok=<status><CR><LF><CR><LF> ◼ Parameters: ◆ status: The RAM malloc status. Ex for 1MB: current_size:47016, max_size:41696, total_size:89984, alloc_cnt:42968, alloc_fail_cnt:0 4.2.2.54.
HF-LPC3X0 Series Wi-Fi&BLE User Manual on: Enable SmartAPLink function, after enabled, use AT+SMARTAPSTART or nReload to start config. . Default. off: Disable SmartAPLink ◆ ap_prefix: module AP SSID prefix, default is hiflying_softap ◆ ap_key: module AP password, blank for no password, password length 8~20.
HF-LPC3X0 Series Wi-Fi&BLE User Manual 5. PACKAGE INFORMATION 5.1. Recommended Reflow Profile Figure 43. Reflow Soldering Profile Table9. Reflow Soldering Parameter Item Temperature (Degree) Time(Sec) Reflow Time Time of above 220 35~55 sec Peak-Temp 260 max Note: 1. Recommend to supply N2 for reflow oven.
HF-LPC3X0 Series Wi-Fi&BLE User Manual APPENDIX B: HTTP PROTOCOL TRANSFER HF-LPC300 module support http data transfer in throughput mode. If any detailed HTTP protocol, contact us and we may support customization. B.1. Sending HTTP Raw Data in Throughput Mode Step 1、 Configure HTTP server information Step 2、Configure module connecting to router AP and reboot.
Page 68
HF-LPC3X0 Series Wi-Fi&BLE User Manual APPENDIX D: CONTACT INFORMATION ------------------------------------------------------------------------------------------------------------ Address: Room 1002,Building 1,No.3000,Longdong Avenue,Pudong New Area,Shanghai,China,201203 Web: www.hi-flying.com Service Online: 400-189-3108/18616078755 Sales Contact: sales@hi-flying.com ----------------------------------------------------------------------------------------------------------- For more information about High-Flying modules, applications, and solutions, please visit our web site http://www.hi-flying.com/en/...
Need help?
Do you have a question about the HF-LPC3X0 Series and is the answer not in the manual?
Questions and answers