Page 1
HF-A11 Embedded WiFi Module User Manual HF-A11 Embedded WiFi Module User Manual V4.3 Overview of Characteristic Support IEEE802.11b/g/n Wireless Standards Support TCP/IP/UDP Network Protocols Support UART/GPIO/Ethernet Data Interface Support Work As STA/AP/AP+STA Mode Support Router/Bridge Mode Networking Support Internal/External Antenna Option...
Page 4
Q1: How to configure transparent serial port application (TCP protocol) with two HF-A11 modules?............................50 Q2: Where to Set HF-A11 Module LAN IP and WAN IP through Web Page? ......50 Q3: How to configure transparent serial port application (UDP protocol) with two HF- A11 modules? ..........................51 ...
HF-A11 Embedded WiFi Module User Manual 1.2. Hardware Introduction Figure 1. HF-A11 Demo 1.2.1. Pins Definition Figure 2. HF-A11 Pins Map Table 2 HF-A11 Pins Definition Description Name Direction Note Ground Power 3.3V Power 3.3V @ 350mA power input If not use UART function,this...
HF-A11 Embedded WiFi Module User Manual “1”- WIFI connection available, WiFi status Indication nLink “0”- No WIFI connection GPIO GPIO8 Can be configured as GPIO. Indicate the module nReady “0” or “Palmodic Signal” - Finish status of power on module boot up process;...
Figure 4. HF-A11 Chip Antenna Keep Out Region High-Flying suggest HF-A11 module better locate in following region at customer board, which to reduce the effect to antenna and wireless signal, and better consult High-Flying technical people when you structure your module placement and PCB layout.
High-Flying provides the evaluation kit to promote user to familiar the product and develop the detailed application. The evaluation kit shown as below, user can connect to HF-A11 module with the RS-232 UART port, 100M Eth port or Wireless port to configure the parameters, manage the module or do the some functional tests.
Used to reset the module. Reset Reload Module restore to factory default configuration. 1.2.6. Order Information Base on customer detailed requirement, HF-A11 series modules provide different variants and physical type for detailed application. Figure 7. HF-A11 Order Information Shanghai High-Flying Electronics Technology Co., Ltd...
There is 1K Ohm pull-down resister internal. User can’t add pull-up resister at these pins. 1.3.2. 10/100M Ethernet Interface HF-A11 modules provide one 10/100M Ethernet PHY layer interface for data transition or user configuration. This Ethernet support with transformer and without transformer (PHY-to-PHY) 2 kinds of connection.
Figure 10. Ethernet Reference Design without Transformer 1.3.3. UART Interface UART interface is the serial data transmition interface mainly used for HF-A11 modules. User can add RS-232 chipset on user board and convert the signal to RS-232 voltage to communicate with outside equipment or sensors. HF-A11 modules UART interface include 4 general signals: TXD/RXD/RTS/CTS.
1.3.4. Power Interface HF-A11 module support single +3.3V power supply. The peak current shall about 350mA and normal WiFi working current shall about 200mA. The power save (WiFi OFF) mode will about...
Figure 12. User MCU Software Flow Chart When HF-A11 modules boot up, user can select one work mode base on the setting, and user can switch to the configuration mode at any kinds of work mode. 1.4.1. Transparent Transmission Mode HF-A11 modules support serial interface transparent transmission mode.
1.4.3. Multi-TCP Link Connection When HF-A11 module configured as TCP Server, it supports Multi-TCP link connection, and maximum 32 TCP clients permit to connect to HF-A11 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-A11 Embedded WiFi Module User Manual GPIO n SW, Set GPIOn as output and switch the output status, Response GPIO OK or GPIO NOK; GPIO n PWM m1 m2, Set GPIOn output a wave: m1 is ‘high’ duration and m2 is ’low’...
HF-A11 module can be configured as both wireless STA and AP base on network type. Logically there are two interfaces in HF-A11. One is for STA, and another is for AP. When HF-A11 works as AP, other STA equipments are able to connect to wireless LAN via HF-A11 module. Wireless Networking with HF-A11 is very flexible.
AP, this type of network is a loose structure, all the STAs in the network can communicate directly. As showing in the figure below, HF-A11 (1) can be treat as an AP, and HF-A11 (2), HF-A11 (3) and the laptop are STAs connected to HF-A11 (1). Meanwhile, all HF-A11 modules can connected to user device via UART interface.
This command is saved after re-starting the module; 2.2. Auto- Frequency Function When module works as STA, HF-A11 will adjust its wireless channel to keep the same channel with associated AP and connect in. When module works as AP and HF-A11 enable Auto-frequency function, then when module boot up, it will select the best wireless channel based on surrounding environment.
UART data. If this interval time exceeds defined value (50ms default), HF-A11 will think it as the end of one frame and transfer this free- frame to WiFi port, or HF-A11 will receive UART data untill 4K bytes, then transfer 4KB frame to WiFi port.
10.10.100.254)and all devices connected to module Ethernet interface will get assigned IP address(For example: 10.10.100.101).So for above networking, PC1 at internal subnet can initiate a connection to PC2 (For HF-A11 works as router mode), but PC2 can’t active initiate a connection to PC1.
Agreement Transmission mode can keep 100% accurate data transmitting. User can configure dedicated work mode base on actual requirement, and save the configuration information to the flash of HF-A11, then module will go into the appointed work mode after power up.
Figure 21. HF-A11 Transparent Transmission Demo 2.9. Network Protocol HF-A11 module supports TCP/UDP network protocol and the port parameters can be set via web accessing or AT+instruction set. 2.10. Parameters Configuration HF-A11 module supports two methods to configuration parameters: Web Accessing and AT+instruction set.
HF-A11 Embedded WiFi Module User Manual 3. OPERATION GUIDELINE 3.1. Configuration via Web Accessing When first use HF-A11 modules, user may need some configuration. User can connect to HF- A11 module’s wireless interface with following default setting information and configure the module through laptop.
HF-A11 Embedded WiFi Module User Manual Figure 23. Mode Selection Page 3.1.3. AP Interface Setting Page This page use to setting the parameters when HF-A11 module works as AP. Figure 24. AP Interface Setting Page 3.1.4. STA Interface Setting Page This page use to setting the parameters when HF-A11 module works as STA.
HF-A11 Embedded WiFi Module User Manual Figure 25. STA Interface Setting Page 3.1.5. Application Setting Page This page use to setting the parameters of serial port communication, such as UART setting and high layer network protocol setting which used support serial communication.
Also the Port ID between two sides of the communication devices must keep the same. 3.1.6. Device Management Page This page use to manage HF-A11 module general setting, such as administrator setting, restart module button, restore factory default setting button, and update firmware through webpage.
User can select two methods to connect HF-A11 module base on dedicated application. Use HF-A11 STA interface HF-A11 and debug PC2 connect to a wireless AP, another PC1 (or user device) connect to HF- A11 module with serial port: Figure 28. STA Interface Debug Connection...
HF-A11 Embedded WiFi Module User Manual PC2 open “TCPUDPDbg” program, and create a new connection. If HF-A11 configured as Server mode, “TCPUDPDbg” Tools shall create “Client “mode connection. Or otherwise, create a “Server” mode connection. Figure 31. “TCPUDPDbg” Tools Create Connection Then setting the TCP/UDP connection parameters.
3.3.1. Wireless Control Application Figure 34. Wireless Control Application For this wireless control application, HF-A11 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-A11 module.
Figure 36. Transparent Serial Port Application For left side HF-A11 module, configured as AP mode and use default SSID and IP address, network protocol configured as TCP/Server mode, and protocol port ID: 8899. For right side HF-A11 module, configured as STA mode and setting the same SSID (”HF- A11_AP”...
HF-A11 module to support wireless connection function. Figure 37. Wireless Data Acquisition Card Application As above figure, one HF-A11 configured as AP mode and all others configured as STA mode. All HF-A11 which configured as STA and data server PC wireless connected to HF-A11 which configured as AP to make up a wires network.
HF-A11 Embedded WiFi Module User Manual 4. AT+INSTRUCTION INTRODUCTION 4.1. Configuration Mode When HF-A11 power up, it will default works as transparent transmission mode, then user can switch to configuration mode by serial port command. HF-A11 UART default parameters setting as below figure, Figure 38.
HF-A11 Embedded WiFi Module User Manual 4.2. AT+ Instruction Set Overview User can input AT+ Instruction through hyper terminal or other serial debug terminal, also can program the AT+ Instruction to script. User can also input “AT+H” to list all AT+ Instruction and description to start.
Query module ID information Query module software version information Help Notes: HF-A11 module can works as AP or STA, user have to use different AT+ Instruction to set WiFi parameters when module works as AP or STA mode. 4.2.2.1. AT+E Function: Open/Close show back function;...
SERVER CLIENT Port: protocol port ID: Decimal digit and less than 65535 IP: Server’s IP address when module set as client After HF-A11 module boots up again, the setting will be effective. 4.2.2.4. AT+UART Function: Set/Query serial port parameters; Format: Query Operation AT+UART<CR>...
ASCII code, shall less than 64 bit and greater than 8bit This Instruction only effective for HF-A11 works as STA. After HF-A11 module boots up again, the setting will be effective. But user can set this command when module configured as AP.
WIFI channel selection AUTO CH1~CH11 This Instruction only effective for HF-A11 works as AP. After HF-A11 module boots up again, the setting will be effective. But user can set this command when module configured as STA. 4.2.2.15. AT+WAKEY Function: Set/Query WIFI security parameters as AP;...
LAN port IP address; mask: LAN port subnet mask; This Instruction only effective for HF-A11 works as AP. After HF-A11 module boots up again, the setting will be effective. But user can set this command when module configured as STA.
+ok<CR>< LF ><CR>< LF > Parameters: num: 1~32, default 32. maxima TCP connection; When configure as TCP/Server, HF-A11 support maxime 32 TCP connections. If not require so much connection, user can resetting this parameters. 4.2.2.27. AT+TCPB Function: Open/Close TCPB function;...
AT+ TCPB=<on/off><CR> +ok<CR>< LF ><CR>< LF > Parameters: sta: TCPB enable status on, TCPB enable off, TCPB disable After HF-A11 module boots up again, the setting will be effective. 4.2.2.28. AT+TCPPTB Function: Set/Query TCPB port number; Format: Query Operation AT+TCPPTB<CR>...
HF-A11 Embedded WiFi Module User Manual Format: AT+TCPCKB<CR> +ok=<sta><CR>< LF ><CR>< LF > Parameters: sta: TCPB link status on, TCPB link OK off, TCPB link not availabe 4.2.2.32. AT+EPHY Function: Open/Close ETH interface; Format: Set Operation AT+ EPHY=<on/off><CR> +ok<CR>< LF ><CR>< LF >...
HF-A11 Embedded WiFi Module User Manual AT+ FRLDEN=<on/off><CR> +ok<CR>< LF ><CR>< LF > Parameters: on/off: Enable or Disable nReload pin function. On, enable nReload pin function; Off, disable nReload pin function; Notes: AT+FRLDEN is F-Setting, means restore to factory setting will not affect this command.
--See “AP Interface Setting Page” Figure 42. Configure Transparent Serial Port Connection (TCP) Q2: Where to Set HF-A11 Module LAN IP and WAN IP through Web Page? HF-A11 Wireless LAN IP address setting see “AP Interface Setting Page” as below Figure, Figure 43.
--See “AP Interface Setting Page” Figure 45. Configure Transparent Serial Port Connection (UDP) Q4: Where to set HF-A11 module network protocol (TCP/UDP)? HF-A11 network protocol setting see “Application Setting Page” as below Figure, Protocol: TCP Server Only Port ID required: 8899 (Default) Shanghai High-Flying Electronics Technology Co., Ltd...
Q5: How to configure transparent serial port application: Two HF-A11 modules all configured as STA and connection through AP? Network structure as below figure: Module 1# Setting: ( We use HF-A11 as AP for this example) Works as AP mode and all default setting; Module 2# Setting: Works as STA mode;...
Q7: PC works as server, all HF-A11 modules works as data acquisition card and connect with PC, how to configure this application? Network structure as below figure: Three HF-A11 module setup 3 TCP links with PC server. Module 1# works as AP and all devices connect to module 1# through WiFi interface;...
HF-A11 Embedded WiFi Module User Manual Network Protocal:TCP/Client, Port ID: 8899; Application IP address:10.10.100.100; Module 2# Setting: Works as STA mode; WAN connection type: Static IP: 10.10.100.101; Network Protocal:TCP/Client, Port ID: 8899; Application IP address:10.10.100.100; LAN IP address: 10.10.99.254 (Different net segment with WAN port);...
Page 58
HF-A11 Embedded WiFi Module User Manual else do nothing; function do_recv_ack_cmd() if (receiv RECV ACK and check OK & is_waiting_for_recv_ack) agree_data.recv_s++; agree_data. waiting_4_recv_ack= 0; to use the received data; else do nothing; function main() …… char cmd; init_agree_str(); init_pccom_port(); if (read one byte from uart -> cmd) if (cmd == 0x01) do_send_ack_cmd();...
HF-A11 V4.0 User Manual APPENDIX E: CONTACT INFORMATION ------------------------------------------------------------------------------------------------------------ Address: Room.511/510, Building 7, No.365, Chuanhong Road, Pudong New Area, Shanghai, China, 201202 Web: www.hi-flying.com Service Online: 400-189-3108 Mail Contact: sales@hi-flying.com ----------------------------------------------------------------------------------------------------------- For more information about HF 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-A11 and is the answer not in the manual?
Questions and answers