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.
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 ............
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.
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 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.
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.
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.
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.
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).
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...
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.
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’...
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...
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.
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.
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.
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 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):...
Need help?
Do you have a question about the HF-LPB130 and is the answer not in the manual?
Questions and answers