Hi-flying HF-A11 User Manual

Embedded wifi module user manual v4.3
Table of Contents

Advertisement

HF-A11 Embedded WiFi Module User Manual
Embedded WiFi Module User Manual
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
Support Max TCP links: 32
Support AT+ Instruction Set for Configuration
Support Friendly Web Configuration Page
Support Palmodic Signal
Support UART Free/Auto-Frame Function
Support Smart Link Application Tools
Single +3.3V Power Supply
Small Size: 25 x 40mm
FCC/CE Certificated
Flexible Software Platform with Linux OS
Shanghai High-Flying Electronics Technology Co., Ltd
HF-A11
V4.3
www.hi-flying.com
1

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Hi-flying HF-A11

  • 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 2: Table Of Contents

    Ethernet Interface Communication ..................23     2.6.1. HF-A11 Ethernet Interface Networking (As AP) .............. 23     2.6.2. HF-A11 Ethernet Interface Networking (As STA, N-Ver) ..........23     2.6.3. HF-A11 Ethernet Interface Networking (As STA, Z-Ver)..........24     2.7.
  • Page 3 HF-A11 Embedded WiFi Module User Manual     3.1.2. Mode Selection Page....................... 26     3.1.3. AP Interface Setting Page ....................27     3.1.4. STA Interface Setting Page ..................... 27     3.1.5. Application Setting Page....................28    ...
  • 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  ...
  • Page 5     Figure 18. HF-A11 Ethernet Interface Networking (As AP) .............. 23     Figure 19. HF-A11 Ethernet Interface Networking (As STA, N-Ver) ..........23     Figure 20. HF-A11 Ethernet Interface Networking (As STA, Z-Ver)..........24     Figure 21.
  • Page 6 HF-A11 Embedded WiFi Module User Manual     Figure 48. Module Network Protocol: UDP ..................52     Figure 49. Two HF-A11 Modules Connection Through AP .............. 53     Figure 50. Wireless Data Acquisition Card Setting................54 LIST OF TABLES   Table 1 HF-A11 Module Technical Specifications ................
  • Page 7: Product Overview

    HF-A11 Embedded WiFi Module User Manual 1. PRODUCT OVERVIEW 1.1. General Specification Table 1 HF-A11 Module Technical Specifications Class Item Parameters Certification FCC/CE Wireless standard 802.11 b/g/n Frequency range 2.412GHz-2.484GHz 802.11b: +20 dBm (Max.) 802.11g: +18 dBm (Max.) Transmit Power Wireless 802.11n: +15 dBm (Max.)
  • Page 8: Hardware Introduction

    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...
  • Page 9: Mechanical Size

    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;...
  • Page 10: On-Board Chip Antenna

    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.
  • Page 11: Evaluation Kit

    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.
  • Page 12: Order Information

    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...
  • Page 13: Hardware Reference Design

    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.
  • Page 14: Ethernet Connection With Transformer

    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.
  • Page 15: Power Interface

    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...
  • Page 16: Software Reference Design

    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.
  • Page 17: Multi-Tcp Link Connection

    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.
  • Page 18: Palmodic Signal

    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’...
  • Page 19: Functional Description

    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.
  • Page 20: Wireless Network Based On Adhoc Network (Adhoc)

    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.
  • Page 21: Auto- Frequency Function

    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.
  • Page 22: Uart Frame Scheme

    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.
  • Page 23: Ethernet Interface Communication

    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.
  • Page 24: Hf-A11 Ethernet Interface Networking (As Sta, Z-Ver)

    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.
  • Page 25: Network Protocol

    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.
  • Page 26: Operation Guideline

    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.
  • Page 27: Ap Interface Setting Page

    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.
  • Page 28: Application Setting Page

    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.
  • Page 29: Device Management Page

    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.
  • Page 30: Network Connection

    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...
  • Page 31: Figure 31. "Tcpudpdbg" Tools Create 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.
  • Page 32: Typical Application Examples

    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.
  • Page 33: Remote Management Application

    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”...
  • Page 34: Wireless Data Acquisition Card Application

    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.
  • Page 35: At+Instruction Introduction

    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.
  • Page 36: At+ Instruction Set Overview

    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.
  • Page 37: At+ Instruction Set

    HF-A11 Embedded WiFi Module User Manual RSP: Response string; “ok” : Success “ERR”: Failure [op] : = [para-n]: Parameters if query command or Error code when error happened; <CR>: ASCII 0x0d; <LF>: ASCIII 0x0a; Error Code Table 6 Error Code DescribtionHF-A11 Web Access Default Setting...
  • Page 38: At+E

    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;...
  • Page 39: At+Uart

    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>...
  • Page 40: At+ Uartfl

    AT+ TMODE=<tmode><CR> +ok<CR>< LF ><CR>< LF > Parameters: tmode: Data transmition mode Through: Transparent transmition Agreement: Agreement transmition After HF-A11 module boots up again, the setting will be effective. 4.2.2.9. AT+WMODE Function: Set/Query WIFI work mode; Format: Query Operation AT+WMODE<CR>...
  • Page 41: At+Wsssid

    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.
  • Page 42: At+Wap

    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;...
  • Page 43: At+Hidessid

    HF-A11 Embedded WiFi Module User Manual 4.2.2.16. AT+HIDESSID Function: Set/Query hide AP’s SSID; Format: Query Operation AT+ HIDESSID <CR> +ok=<sta.><CR>< LF ><CR>< LF > Set Operation AT+ HIDESSID=<sta><CR> +ok<CR>< LF ><CR>< LF > Parameters: When Query,sta reply if module’s SSID is hide;...
  • Page 44: At + Tcpdis

    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.
  • Page 45: At+ Dhcpgw

    +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;...
  • Page 46: At+Tcpptb

    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>...
  • Page 47: At+Ephy

    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 >...
  • Page 48: At+Reld

    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.
  • Page 49: Package Information

    HF-A11 Embedded WiFi Module User Manual 5. PACKAGE INFORMATION 5.1 Shipping Information TRAY Size: 420*245*34 mm Size: 422*247*72 mm(inside) CARTON Size: 440*260*320 mm(inside) Figure 41. Shipping Information Note: 1 tray = 5*20pcs = 100 pcs 1 box = 2 trays = 2 * 100 pcs = 200pcs 1 carton = 4 boxes = 4 * 200 pcs = 800pcs Shanghai High-Flying Electronics Technology Co., Ltd...
  • Page 50: Appendix A: Questions And Answers

    --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.
  • Page 51: Q3: How To Configure Transparent Serial Port Application (Udp Protocol) With Two Hf-A11 Modules

    --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...
  • Page 52: Configured As Sta And Connection Through Ap

    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;...
  • Page 53: Q6: How To Avoid Ip Address Confliction When Apply Hf-A11 Module

    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;...
  • Page 54: Figure 50. Wireless Data Acquisition Card Setting

    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 55: Appendix B: Evb Reference Design

    HF-A11 Embedded WiFi Module User Manual APPENDIX B: EVB REFERENCE DESIGN Shanghai High-Flying Electronics Technology Co., Ltd www.hi-flying.com...
  • Page 56: Appendix C: External Power Shutdown Mode Reference Design

    HF-A11 Embedded WiFi Module User Manual APPENDIX C: EXTERNAL POWER SHUTDOWN MODE REFERENCE DESIGN Shanghai High-Flying Electronics Technology Co., Ltd www.hi-flying.com...
  • Page 57: Appendix D: User Device Pseudo-Code Reference For Agreement Transmition Mode

    HF-A11 Embedded WiFi Module User Manual APPENDIX D: USER DEVICE PSEUDO- CODE REFERENCE FOR AGREEMENT TRANSMITION MODE #define MAX_DAT_BUF_LEN 1024 #define AGREE_HEAD_LEN #define MAX_SEND_CMD_LEN MAX_ DAT_BUF_LEN+8 #define RECV_CMD_LEN AGREE_HEAD_LEN+2 // Define data structure struct STRAGREE // SEND 命令 unsigned char send_cmd[MAX_SEND_CMD_LEN];...
  • 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();...
  • Page 59: Appendix E: Contact Information

    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/...

Table of Contents