Advertisement

High Flying Wi-Fi Module
This document is applicable to the following series of products. This article
uses HF-LPT230 as an example to introduce the main software functions. The
differences will be specified. For the hardware description of the product and
some software functions, please refer to the user manual.
2.4GWi-Fi
2.4GWi-Fi
+BLE
2.4G+5G
Wi-Fi
2.4G+5G
Wi-Fi
+BLE
http://www.iotworkshop.com
Operation Guide
1
HF-LPB130
HF-LPT230
HF-LPT130A
HF-LPT130B
HF-LPT330
HF-LPB135
HF-LPC300
HF-LPC330
HF-LPD100
HF-LPD130
HF-LPF100
Copyright © 2013 . All rights reserved

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HF-LPB130 and is the answer not in the manual?

Questions and answers

Summary of Contents for HF HF-LPB130

  • Page 1 Operation Guide This document is applicable to the following series of products. This article uses HF-LPT230 as an example to introduce the main software functions. The differences will be specified. For the hardware description of the product and some software functions, please refer to the user manual.
  • Page 2: Table Of Contents

    4.1. Internal Web Page Firmware Upgrade ..............23 4.2. External Configuration Web Page Firmware Upgrade ........24 4.3. HF Udate Mass Production Tool Mode Upgrade ..........24 4.4. AT+UPURL Command Mode Upgrade ..............25 4.5. Debug Information Function ....................27 Serial Port Log Information Output Enable ............
  • Page 3: Hardware Introduction

    1. HARDWARE INTRODUCTION HF-LPX30 series is a low-power, high-performance Wi-Fi module supporting the IEEE 802.11b/g/n wireless standard, with a maximum frequency of 160MHz, 352KB/384KB RAM, 1MB or 2MB Flash. High Flying provides the EVK development board for the corresponding module for functional testing and development.
  • Page 4: Serial Port Settings

    2. SERIAL PORT SETTINGS 2.1. SecureCRTSerial Port Tool SecureCRT Download address: http://www.hi-flying.com/index.php?route=download/category&path=1_4 Unzip the folder, open to find the SecureCRT executable, and click Open. Connect the development board to the computer with a micro USB cable and install the USB serial port driver: http://www.hi-flying.com/download-center-1/applications-1/driver-ft232r Click the Quick Connect button to create a connection.
  • Page 5 Right-click the Edit button function to open the tool button function, you can add the commonly used send data, here add the "+++" and "a" required to enter the command mode. http://www.iotworkshop.com Copyright © 2013 . All rights reserved...
  • Page 6 Can also edit and add commonly used AT commands with \r as the terminator. Click the corresponding button to send "+++", the module responds with "a" and then clicks to send "a". After the module returns "+ok", it enters the command mode. After entering the command mode, the module can send commands, and the data input by the main interface will be sent out immediately.
  • Page 7 The Command Window is displayed. Notes: 1、 Switching the transparent transmission mode to the command mode For detailed procedures, refer to the user manual. 2、 It is also possible to directly send the AT command in the transparent transmission mode, and use the AT+CMDPW command to enable this function. See the chip manual for details.
  • Page 8: Test Case

    3. TEST CASE The software used in this article can be obtained from the High Flying website. http://www.hi-flying.com/index.php?route=download/category&path=1_4 3.1. Transparent Transmission of UART and Wi-Fi Module in AP Mode The test topology is as follows: After power-on, the Power light is on, the Ready light is on, and the module is working properly.
  • Page 9 Open the TCP & UDP Debug software, create a TCP client, fill in the module's IP address and TCP information (default AP IP: 10.10.100.254, TCP Server, 8899 port, available AT+LANN, AT+NETP command to modify the default information), click 【Connect】establish connection. The two-way transmission and reception of data is completed as shown below.
  • Page 10 http://www.iotworkshop.com Copyright © 2013 . All rights reserved...
  • Page 11: Transparent Transmission Of Uart And Wi-Fi Module In Sta Mode

    3.2. Transparent Transmission of UART and Wi-Fi Module in STA Mode The test topology is as follows: First, you need to configure the module to connect to the router. The HF-LPT230 supports multiple ways to configure the connection router. The detailed options are as follows.
  • Page 12 After searching for the surrounding AP and selecting it, fill in the password. Note: The HF-LPX30 series has 1MB and 2MB Flash difference, and the external webpage content is different. See the user manual for details. Method 2: SmartAPLink mode AP distribution network. For details, please refer to the following link.
  • Page 13 Method 5: SmarBLELink mode Bluetooth distribution network, the operation mode is detailed in the following link data, only HF-LPC300, HF-LPC330, HF-LPF100 support, it is recommended that these modules adopt this method. http://www.hi-flying.com/download-center-1/applications-1/download-item-smartblelink When connected to the router, the Link light is on.
  • Page 14 ◆ The module TCP Server data is transmitted as follows. The IP address of the communication test fills in the IP obtained from the router (AT+WANN command query, SmartAPLink return network information, router DHCP client search or UDP broadcast packet to scan for IP information, this broadcast scan See the Wi-Fi Config tool data link below for details.
  • Page 15: Mqtt Transmission In Sta Mode

    High Flying test server address: test.server.iotworkshop.com, the server will send back the received data. TCP Port: 40432 UDP Port: 40431 The data sent from the serial input field can be seen in the receiving area to receive the same data. 3.3.
  • Page 16 ⚫ Fill in the subscription topic in the MQTTFX software, and keep the same theme as the device-side publishing topic. Open the serial port tool (SecureCRT or other serial port tools are available), send data, and see the data packets sent from the device in the tool subscription.
  • Page 17: Http Transmissio In Sta Mode

    3.4. HTTP Transmissio in STA Mode The browser accesses http://115.29.164.59:8432/iot?msg=123456788, page effect: Fill in the HTTP server parameters as follows: ➢ AT+NETP=HTTP,8432,115.29.164.59 ➢ AT+HTPTP=GET ➢ AT+HTPURL=/iot,1.1 ➢ AT+HTPHEAD=Host:115.29.164.59106:8432<CRLF><CRLF> After the setting is completed, restart, wait for the serial port output SOCKA status to indicate the connection is successful (requires AT+EVENT=on to enable this prompt information function).
  • Page 18: Heartbeat Package, Registration Package

    3.5. Heartbeat Package, Registration Package Configure the enable heartbeat packet and the registration packet function as shown below (for details of the heartbeat packet and registration package, see the product function documentation). The corresponding configuration AT command is as follows. AT+HEART=A,10,%MAC__ // Enable the heartbeat packet function and report the module's actual IMEI code once every 10 seconds...
  • Page 19: Sending At Commands In Network Mode

    Example 1: Registration code requirements: FFFFFFFFFA+MAC+0F Parameter content setting: %FF%FF%FF%FF%FA%MAC%0F Actual data: FF FF FF FF FA 38 36 38 35 37 35 30 32 36 36 31 34 0F 3.6. Sending AT Commands in Network Mode When the PC is directly connected to the AP hot spot or the PC and the module are connected to the same router, the AT command can be sent through the network.
  • Page 20 http://www.iotworkshop.com Copyright © 2013 . All rights reserved...
  • Page 21: Firmware Upgrade

    For example: HF-LPT230_HFV4.10.03 : Used only for serial port upgrade HF-LPT230_UPGRADE_HFV4.10.03: It is used for mass production tool mode, webpage mode or OTA wireless upgrade. It has more CRC check than serial port upgrade file, which is convenient for legal verification of files during remote upgrade.
  • Page 22 Command ‘B': Clear all setting parameters, including factory parameters. Command ‘S’ : Upgrade the application; upgrade the file compiled by SDK (using the serial port upgrade file) with this option, for example: HF-LPT230_HFV4.10.03. Command ‘G’ : Execute the application. Enter the command 'S' to upgrade the application, the screen displays Ready, wait for the character ‘C’...
  • Page 23: Internal Web Page Firmware Upgrade

    IP assigned to the module by the router (example: http://192.168.0.117/iweb.html), enter The internal web page of the module. 1: Upgrade Application: Load the HF-LPT230_UPGRADE_HFV4.10.03 upgrade file upgrade application. 2: Upgrade customized webpage: Upgrade corresponding web external configuration webpage, lpx30_webpage_1.0.14.bin: You can switch webpage language by AT+PLANG...
  • Page 24: External Configuration Web Page Firmware Upgrade

    IP address assigned to the module by the router (for example: http://192.168.83.131) to enter the external configuration page of the module. Note:HF-LPX30 series has 1MB and 2MB Flash difference, and the content of external web pages is different. See the user manual for details.
  • Page 25: At+Upurl Command Mode Upgrade

    Put the OTA upgrade file on the local LAN or remote server, you can simply use the AT command to complete the firmware upgrade. For example, the upgrade file in the intranet environment is stored in the following location. http://192.168.1.28:9000/HF-LPT230/MC510_UPGRADE_2MB.bin http://www.iotworkshop.com Copyright © 2013 . All rights...
  • Page 26 Send the following AT command, note that there is a comma between the path and the file in the command. AT+UPURL=http://192.168.1.28:9000/HF-LPT230/,MC510_UPGRADE_2MB.bin Prompt Update success requires a reboot to run this new firmware. http://www.iotworkshop.com Copyright © 2013 . All rights reserved...
  • Page 27: Debug Information Function

    5. DEBUG INFORMATION FUNCTION If the test encounters a problem (data communication, distribution network failure, etc.), you need to send the serial port log information to us for analysis. Please enable the module to run the log information as described below. 6.1.
  • Page 28 In this case, if the serial port is printed, the file can be automatically generated in the corresponding directory. http://www.iotworkshop.com Copyright © 2013 . All rights reserved...
  • Page 29: Module Hardware Description

    6. MODULE HARDWARE DESCRIPTION The typical wiring of the module is shown below. nLink- (optional, general debugging) Module WIFI connection indication, batch upgrade, configuration status indication, output. If the module is set to STA mode and successfully connected to the AP, the output low level can be used to determine whether the module is in a networked state.
  • Page 30 ◆ Resistor divider (low cost solution) If the RX pin of the user equipment considers 3.3V to be high, it can be directly connected. http://www.iotworkshop.com Copyright © 2013 . All rights reserved...
  • Page 31 ◆ Diode buck If the RX pin of the user equipment considers 3.3V to be high, R1, R3, and D2 can be removed. ◆ MOS tube compression The most stable version of the hardware supports high-speed transmission (baud rate 921600, etc.), but at a higher cost. http://www.iotworkshop.com Copyright ©...
  • Page 32: Power Supply Design

    6.2. Power Supply Design ◆ LDO method (recommended) Input 5VDC to 3.3VDC ◆ DC-DC method (recommended) Input 5~18VDC to 3.3VDC http://www.iotworkshop.com Copyright © 2013 . All rights reserved...
  • Page 33: Internal Antenna

    Optional built-in antenna. When the customer selects the built-in antenna, the following rules for the built-in antenna and the overall rules for the placement of the module are required (see the manual for each module, HF-LPB130 for example): ◆ On the user's PCB, the area corresponding to the red area (8.3x18.4m) in the figure below cannot be placed and GND ◆...
  • Page 34: Hf-Lpcx30/Hf-Lpf100 Module Ble Throughput

    7. HF-LPCX30/HF-LPF100 MODULE BLE THROUGHPUT IOS download LightBlue in APP store. Android download BLE Utility or other BLE test APP. http://www.iotworkshop.com Copyright © 2013 . All rights reserved...
  • Page 35 Config module with 【AT+BLE=on】 and reboot, enable BLE throughput function Open BLE Utility APP and click AZ【连接】 http://www.iotworkshop.com Copyright © 2013 . All rights reserved...
  • Page 36 When read packet, click read UUID, it will show received packet in 【实时日志】 Send UART packet to module (module should in default throughput mode, if in AT command mode, all packet will be considered as AT command, it won’t sent to APP):...
  • Page 37 Click WRITE UUID, send packet with APP. APP send: http://www.iotworkshop.com Copyright © 2013 . All rights reserved...
  • Page 38 Uart received the packet: Due to BLE4.X protocol limit, the data rate should be lower than 1KB/s I 如要修改 BLE 名称,UUID 服务可使用 AT 指令进行修改,修改后重启生效,例如: AT+BLENAME=AZ //修改蓝牙广播名称 http://www.iotworkshop.com Copyright © 2013 . All rights reserved...
  • Page 39 AT+BLENTFUUIDS=0000FEE700001000800000805F9B34FB // Modify notification service UUID AT+BLENTFUUIDR=0000FEC800001000800000805F9B34FB //Modify notification read UUID AT+BLENTFUUIDW=0000FEC700001000800000805F9B34FB //Modify Notification write UUID AT+BLEINDUUIDR // Modify Indication read UUID AT+BLEINDUUIDW // Modify Indication write UUID http://www.iotworkshop.com Copyright © 2013 . All rights reserved...

Table of Contents