High Flying Electronics Technology HF-A21-SMT Embedded Wi-Fi Module User Manual

High-Flying Electronics Technology Co., Ltd. Embedded Wi-Fi Module

User manual

Download: High Flying Electronics Technology HF-A21-SMT Embedded Wi-Fi Module User Manual
Mirror Download [FCC.gov]High Flying Electronics Technology HF-A21-SMT Embedded Wi-Fi Module User Manual
Document ID2709965
Application IDXxLu0ewL3RVt9qJqyJ38Qw==
Document DescriptionUser manual
Short Term ConfidentialNo
Permanent ConfidentialNo
SupercedeNo
Document TypeUser Manual
Display FormatAdobe Acrobat PDF - pdf
Filesize116.32kB (1454048 bits)
Date Submitted2015-08-10 00:00:00
Date Available2015-08-10 00:00:00
Creation Date2017-09-18 13:35:50
Producing SoftwareGPL Ghostscript 9.18
Document Lastmod2017-09-18 13:35:50
Document TitleUser manual
Document CreatorMicrosoft® Office Word 2007

HF-A21-SMT Embedded WiFi Module User Manual
HF-A21-SMT
Embedded WiFi Module User Manual
V1.1
Overview of Characteristic

Support IEEE802.11b/g/n Wireless Standards

Support TCP/UDP/HTTP Network Protocols

Support UART/Ethernet Data Interface

Support Work As STA/AP/AP+STA Mode

Support Router/Bridge Mode Networking

Support AT+ Instruction Set for Configuration

Support Friendly Web Configuration Page

Support Palmodic Signal

Support Smart Link Application Tools

Support UART Free/Auto-Frame Function

Single +3.3V Power Supply

Small Size: 25 x 40mm

FCC/CE Certificated
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
HF-A21-SMT Embedded WiFi Module User Manual
FCC STATEMENT :
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two
conditions:
(1) This device may not cause harmful interference, and
(2) This device must accept any interference received, including interference that may cause
undesired operation.
Warning: Changes or modifications not expressly approved by the party responsible for
compliance could void the user's authority to operate the equipment.
NOTE: This equipment has been tested and found to comply with the limits for a Class B digital
device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable
protection against harmful interference in a residential installation. This equipment generates
uses and can radiate radio frequency energy and, if not installed and used in accordance with the
instructions, may cause harmful interference to radio communications. However, there is no
guarantee that interference will not occur in a particular installation. If this equipment does cause
harmful interference to radio or television reception, which can be determined by turning the
equipment off and on, the user is encouraged to try to correct the interference by one or more of
the following measures:
฀ Reorient or relocate the receiving antenna.
฀ Increase the separation between the equipment and receiver.
฀ Connect the equipment into an outlet on a circuit different from that to which the receiver is
connected.
฀ Consult the dealer or an experienced radio/TV technician for help.
FCC Radiation Exposure Statement:
This equipment complies with FCC radiation exposure limits set forth for an uncontrolled
environment. This equipment should be installed and operated with minimum distance 20cm
between the radiator & your body.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
HF-A21-SMT Embedded WiFi Module User Manual
TABLE OF CONTENTS
1.
PRODUCT OVERVIEW ............................................................................................................... 9
1.1. General Specification ............................................................................................................. 9
1.2. Hardware Introduction .......................................................................................................... 10
1.2.1. Pins Definition .................................................................................................................. 10
1.2.2. Mechanical Size ............................................................................................................... 12
1.2.3. On-board Chip Antenna ................................................................................................... 12
1.2.4. Evaluation Kit ................................................................................................................... 14
1.2.5. Order Information ............................................................................................................. 15
1.3. Hardware Reference Design ................................................................................................ 15
1.3.1. Hardware Typical Application .......................................................................................... 15
1.3.2. 10/100M Ethernet Interface ............................................................................................. 16
1.3.2.1. Ethernet Connection with Transformer ........................................................................ 16
1.3.2.2. Ethernet Connection without Transformer ................................................................... 16
1.3.3. UART Interface ................................................................................................................ 17
1.3.4. Power Interface ................................................................................................................ 17
1.4. Software Reference Design.................................................................................................. 18
1.4.1. Transparent Transmission Mode ..................................................................................... 18
1.4.2. Configuration Mode .......................................................................................................... 18
1.4.3. Multi-TCP Link Connection .............................................................................................. 19
1.4.4. TCPB Function ................................................................................................................. 19
1.4.5. Palmodic Signal ............................................................................................................... 19
2.
FUNCTIONAL DESCRIPTION ................................................................................................. 21
2.1. Wireless Networking ............................................................................................................. 21
2.1.1. Basic Wireless Network Based On AP (Infrastructure) ................................................... 21
2.1.2. Wireless Network Based On AP Network ........................................................................ 21
2.1.3. Wireless Network Based On AP+STA ............................................................................. 22
2.2. Auto- Frequency Function ................................................................................................... 23
2.3. Security .................................................................................................................................. 23
2.4. UART Frame Scheme............................................................................................................ 23
2.4.1. UART Free-Frame ........................................................................................................... 23
2.4.2. UART Auto-Frame ........................................................................................................... 24
2.5. Address Binding ................................................................................................................... 24
2.6. Ethernet Interface Communication ..................................................................................... 24
2.6.1. HF-A21-SMT Ethernet Interface Networking (As AP) ..................................................... 24
2.6.2. HF-A21-SMT Ethernet Interface Networking (As STA, N-Ver) ........................................ 25
2.6.3. HF-A21-SMT Ethernet Interface Networking (As STA, Z-Ver) ........................................ 25
2.7. Search Function for STA ...................................................................................................... 25
2.8. Work Mode ............................................................................................................................. 25
2.9. Network Protocol .................................................................................................................. 26
2.10.
Parameters Configuration ................................................................................................ 26
2.11.
Firmware Upgrade ............................................................................................................. 27
3.
OPERATION GUIDELINE ......................................................................................................... 28
3.1. Configuration via Web Accessing ....................................................................................... 28
3.1.1. Open Web Management Interface................................................................................... 28
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
HF-A21-SMT Embedded WiFi Module User Manual
3.1.2. Mode Selection Page ....................................................................................................... 29
3.1.3. AP Interface Setting Page ............................................................................................... 29
3.1.4. STA Interface Setting Page ............................................................................................. 29
3.1.5. Application Setting Page .................................................................................................. 30
3.1.6. Device Management Page .............................................................................................. 31
3.2. HF-A21-SMT Usage Introduction ......................................................................................... 31
3.2.1. Software Debug Tools ..................................................................................................... 31
3.2.2. Network Connection......................................................................................................... 31
3.2.3. Module Debug .................................................................................................................. 32
3.3. Typical Application Examples ............................................................................................. 34
3.3.1. Wireless Control Application ............................................................................................ 34
3.3.2. Remote Management Application .................................................................................... 35
3.3.3. Transparent Serial Port Application ................................................................................. 35
3.3.4. Wireless Data Acquisition Card Application..................................................................... 36
4.
AT+INSTRUCTION INTRODUCTION ...................................................................................... 37
4.1. Configuration Mode .............................................................................................................. 37
4.1.1. Switch to Configuration Mode .......................................................................................... 37
4.2. AT+ Instruction Set Overview .............................................................................................. 38
4.2.1. Instruction Syntax Format ................................................................................................ 38
4.2.2. AT+ Instruction Set .......................................................................................................... 39
4.2.2.1. AT+E ............................................................................................................................ 40
4.2.2.2. AT+ENTM..................................................................................................................... 40
4.2.2.3. AT+NETP ..................................................................................................................... 40
4.2.2.4. AT+UART ..................................................................................................................... 41
4.2.2.5. AT+ UARTF .................................................................................................................. 41
4.2.2.6. AT+ UARTFT................................................................................................................ 42
4.2.2.7. AT+ UARTFL ................................................................................................................ 42
4.2.2.8. AT+TMODE .................................................................................................................. 42
4.2.2.9. AT+WMODE................................................................................................................. 42
4.2.2.10.
AT+WSKEY .............................................................................................................. 43
4.2.2.11.
AT+WSSSID ............................................................................................................. 43
4.2.2.12.
AT+ WSLK ................................................................................................................ 43
4.2.2.13.
AT+WEBU ................................................................................................................ 44
4.2.2.14.
AT+WAP ................................................................................................................... 44
4.2.2.15.
AT+WAKEY .............................................................................................................. 44
4.2.2.16.
AT+HIDESSID .......................................................................................................... 45
4.2.2.17.
AT+MSLP ................................................................................................................. 45
4.2.2.18.
AT+WSCAN .............................................................................................................. 45
4.2.2.19.
AT+ TCPLK .............................................................................................................. 45
4.2.2.20.
AT + TCPDIS ............................................................................................................ 46
4.2.2.21.
AT+ WANN ............................................................................................................... 46
4.2.2.22.
AT+ LANN ................................................................................................................ 46
4.2.2.23.
AT + DHCPDEN ....................................................................................................... 47
4.2.2.24.
AT+ DHCPGW .......................................................................................................... 47
4.2.2.25.
AT+ TCPTO .............................................................................................................. 47
4.2.2.26.
AT+ MAXSK ............................................................................................................. 47
4.2.2.27.
AT+TCPB.................................................................................................................. 48
4.2.2.28.
AT+TCPPTB ............................................................................................................. 48
4.2.2.29.
AT+TCPADDB .......................................................................................................... 48
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
HF-A21-SMT Embedded WiFi Module User Manual
4.2.2.30.
4.2.2.31.
4.2.2.32.
4.2.2.33.
4.2.2.34.
4.2.2.35.
4.2.2.36.
4.2.2.37.
4.2.2.38.
4.2.2.39.
4.2.2.40.
4.2.2.41.
4.2.2.42.
4.2.2.43.
4.2.2.44.
4.2.2.45.
5.
AT+TCPTOB ............................................................................................................ 48
AT+TCPLKB ............................................................................................................. 49
AT+EPHY ................................................................................................................. 49
AT+STTC .................................................................................................................. 49
AT+DOMAIN ............................................................................................................. 49
AT+FRLDEN ............................................................................................................. 49
AT+RELD.................................................................................................................. 50
AT+Z ......................................................................................................................... 50
AT+MID..................................................................................................................... 50
AT+WRMID .............................................................................................................. 50
AT+VER .................................................................................................................... 50
AT+H......................................................................................................................... 50
AT+FVEW ................................................................................................................. 51
AT+FVER.................................................................................................................. 51
AT+WMAC ................................................................................................................ 51
AT+PING .................................................................................................................. 51
PACKAGE INFORMATION ....................................................................................................... 53
5.1 Shipping Information ............................................................................................................ 53
APPENDIX A: QUESTIONS AND ANSWERS ............................................................................... 54
Q1: How to configure transparent serial port application (TCP protocol) with two HFA21-SMT modules? ......................................................................................................................... 54
Q2: Where to Set HF-A21-SMT Module LAN IP and WAN IP through Web Page? .................. 54
Q3: How to configure transparent serial port application (UDP protocol) with two HFA21-SMT modules? ......................................................................................................................... 55
Q4: Where to set HF-A21-SMT module network protocol (TCP/UDP)? ...................................... 55
Q5: How to configure transparent serial port application: Two HF-A21-SMT modules all
configured as STA and connection through AP? ........................................................................ 56
Q6: How to avoid IP address confliction when apply HF-A21-SMT module? ........................... 57
Q7: PC works as server, all HF-A21-SMT modules works as data acquisition card and
connect with PC, how to configure this application? .................................................................. 57
APPENDIX B: EVB REFERENCE DESIGN ................................................................................... 59
APPENDIX C: CONTACT INFORMATION ..................................................................................... 60
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
HF-A21-SMT Embedded WiFi Module User Manual
LIST OF FIGURES
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
Figure 7.
Figure 8.
Figure 9.
Figure 10.
Figure 11.
Figure 12.
Figure 13.
Figure 14.
Figure 15.
Figure 16.
Figure 17.
Figure 18.
Figure 19.
Figure 20.
Figure 21.
Figure 22.
Figure 23.
Figure 24.
Figure 25.
Figure 26.
Figure 27.
Figure 28.
Figure 29.
Figure 30.
Figure 31.
Figure 32.
Figure 33.
Figure 34.
Figure 35.
Figure 36.
Figure 37.
Figure 38.
Figure 39.
Figure 40.
Figure 41.
Figure 42.
Figure 43.
Figure 44.
Figure 45.
Figure 46.
Figure 47.
HF-A21-SMT Appearance ................................................................................................... 10
HF-A21-SMT Pins Map ....................................................................................................... 10
HF-A21-SMT Mechanical Dimension .................................................................................. 12
HF-A21-SMT Chip Antenna Keep Out Region .................................................................... 12
Suggested Module Placement Region ................................................................................ 13
HF-A21-SMT Evaluation Kit ................................................................................................ 14
HF-A21-SMT Order Information .......................................................................................... 15
HF-A21-SMT Hardware Typical Application........................................................................ 15
Ethernet Reference Design with Transformer ..................................................................... 16
Ethernet Reference Design without Transformer ............................................................ 17
UART Interface Reference Design .................................................................................. 17
User MCU Software Flow Chart ...................................................................................... 18
Multi-TCP Link Data Transmition Structure ..................................................................... 19
HF-A21-SMT Functional Architecture .............................................................................. 21
HF-A21-SMT Basic Wireless Network Structure ............................................................. 21
HF-A21-SMT AP Network Structure ................................................................................ 22
HF-A21-SMT AP+STA Network Structure ....................................................................... 22
HF-A21-SMT Ethernet Interface Networking (As AP) ..................................................... 24
HF-A21-SMT Ethernet Interface Networking (As STA, N-Ver) ........................................ 25
HF-A21-SMT Ethernet Interface Networking (As STA, Z-Ver) ........................................ 25
HF-A21-SMT Transparent Transmission Demo .............................................................. 26
Open Web Management page ......................................................................................... 28
Mode Selection Page ....................................................................................................... 29
AP Interface Setting Page ............................................................................................... 29
STA Interface Setting Page ............................................................................................. 30
Application Setting Page .................................................................................................. 30
Device Management Page .............................................................................................. 31
STA Interface Debug Connection .................................................................................... 32
AP Interface Debug Connection ...................................................................................... 32
“CommTools” Serial Debug Tools ................................................................................... 32
“TCPUDPDbg” Tools Create Connection ........................................................................ 33
“TCPUDPDbg” Tools Setting ........................................................................................... 33
“TCPUDPDbg” Tools Connection .................................................................................... 34
Wireless Control Application ............................................................................................ 34
Remote Management Application .................................................................................... 35
Transparent Serial Port Application ................................................................................. 35
Wireless Data Acquisition Card Application..................................................................... 36
HF-A21-SMT Default UART Port Parameters ................................................................. 37
Switch to Configuration Mode .......................................................................................... 37
”AT+H” Instruction for Help .............................................................................................. 38
Shipping Information ........................................................................................................ 53
Configure Transparent Serial Port Connection (TCP) ..................................................... 54
Module LAN IP Setting..................................................................................................... 55
Module WAN IP Setting ................................................................................................... 55
Configure Transparent Serial Port Connection (UDP) ..................................................... 55
Module Network Protocols: TCP/Server .......................................................................... 56
Module Network Protocol: TCP/Client ............................................................................. 56
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
HF-A21-SMT Embedded WiFi Module User Manual
Figure 48.
Figure 49.
Figure 50.
Module Network Protocol: UDP ....................................................................................... 56
Two HF-A21-SMT Modules Connection Through AP ...................................................... 57
Wireless Data Acquisition Card Setting ........................................................................... 58
LIST OF TABLES
Table 1
Table 2
Table 3
Table 4
Table 5
Table 6
HF-A21-SMT Module Technical Specifications ...................................................................... 9
HF-A21-SMT Pins Definition ................................................................................................ 10
HF-A21-SMT Evaluation Kit Interface Description ............................................................... 14
HF-A21-SMT Web Access Default Setting ........................................................................... 28
Error Code DescribtionHF-A21-SMT Web Access Default Setting ...................................... 39
AT+ Instruction Set List ........................................................................................................ 39
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
HF-A21-SMT Embedded WiFi Module User Manual
HISTORY
Ed. V1.0 Created on 1-14-2015.
Ed. V1.1 Modified on 2-03-2015. Modify power consumption.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
HF-A21-SMT Embedded WiFi Module User Manual
1. PRODUCT OVERVIEW
1.1. General Specification
Table 1
Class
HF-A21-SMT Module Technical Specifications
Item
Parameters
Certification
FCC/CE
Wireless standard
Frequency range
802.11 b/g/n
2.412GHz-2.462GHz
802.11b: +20 dBm (Max.)
802.11g: +18 dBm (Max.)
802.11n: +15 dBm (Max.)
Configurable
802.11b: -89 dBm
802.11g: -81dBm
802.11n: -71dBm
Transmit Power
Wireless
Parameters
Receiver Sensitivity
Antenna Option
Data Interface
Hardware
Parameters
Software
Parameters
Operating Voltage
Operating Current
Operating Temperature
Storage Temperature
Dimensions and Size
Network Type
Security Mechanisms
Encryption
Work Mode
Serial command
Network Protocol
Max. TCP Connection
User Configuration
User Application SW
Internal:On-board PCB antenna
UART: 1200bps - 230400bps
Ethernet: 10Mbps/100Mpbs
GPIO,I2C,USB
3.3V (+/-5%)
Avg:170mA Peak:400mA
-40℃- 85℃
-45℃- 125℃
25×40×3mm SMT
STA /AP/AP+STA mode
WEP/WPA-PSK/WPA2-PSK/WAPI
WEP64/WEP128/TKIP/AES
Transparent Transmission
AT+instruction set
TCP/UDP/ARP/ICMP/DHCP/DNS/HTTP
32
Web Server AT command config.
Support customized application SW
Provide SDK package
Provide smart link tools
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
HF-A21-SMT Embedded WiFi Module User Manual
1.2. Hardware Introduction
1.2.1.
Pins Definition
Figure 1.
Table 2
Pin
3,18,24,
26
1,2
HF-A21-SMT Pins Map
HF-A21-SMT Pins Definition
Description
GND
Name
GND
Direction
Power
Note
VCC
UART Data Transmit
3.3V
UART_TXD
Power
3.3V @ 350mA
Note1
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
10
HF-A21-SMT Embedded WiFi Module User Manual
UART Data Receive
UART_RXD
GPIO
Ethernet Interface
GPIO_0
PHY_TX+
I/O
Ethernet Interface
PHY_TX-
10
Ethernet Interface
PHY_RX+
11
Ethernet Interface
PHY_RX-
12
USB_D+
USB_D+
I/O
13
USB_D-
USB_D-
I/O
14
WiFi status Indication
nLink
15
Module reset signal
nRST
16
Indicate the module
status of power on
process
nReady
17
Restore configuration
nReload
19
20
21
22
I2C_SD
I2C_SCLK
UART1 Data Receive
UART1 Data Transmit
I2C_SD
I2C_SCLK
UART1_RXD
UART1_TXD
I/O
23
25
GPIO
2.4GHz Antenna
Reserved
GPIO_1
ANT
NC
I/O
NC
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
Ethernet Data Interface.
USB Host Port
“1”- WIFI connection
available,
“0”- No WIFI connection
“Low (0)” effective reset
input.
The reset duration should be
kept more than 300ms
“0” or “Palmodic Signal” Finish module boot up
process;
“1” - Module boot up not
finish.
Module will Restore factory
default configuration after
set this pin “0” more than 3s,
then set “1”.
This pin must 4.7K pull-up
outside the module.
Note1
50 Ohm resistence control
11
HF-A21-SMT Embedded WiFi Module User Manual
1.2.2. Mechanical Size
HF-A21-SMT modules physical size as follows:
Figure 3.
HF-A21-SMT Mechanical Dimension
1.2.3. On-board Chip Antenna
HF-A21-SMT module support internal ob-board chip antenna option. When costomer select
internal antenna, you shall comply with following antenna design rules and module location
suggestions:



For customer PCB, RED color region (7.5x25mm) can‟t put componet or paste GND net;
Antenna must away from metal or high components at least 10mm;
Antenna can‟t be shieldedby any meal enclosure; All cover, include plastic, shall away
from antenna at least 10mm;
Figure 4.
HF-A21-SMT Chip Antenna Keep Out Region
High-Flying suggest HF-A21-SMT 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.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
12
HF-A21-SMT Embedded WiFi Module User Manual
Figure 5.
Suggested Module Placement Region
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
13
HF-A21-SMT Embedded WiFi Module User Manual
1.2.4. 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-A21-SMT
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.
Figure 6.
Table 3
Function
External
Interface
LED
Button
HF-A21-SMT Evaluation Kit
HF-A21-SMT Evaluation Kit Interface Description
Name
Description
DC-Jack
5V@1A Power input: DC-Jack
DC 5V
COM1 UART
COM2 UART1
RJ-45
USB Host
DIP-16
5V@1A Power input: 2-Pin
DB9, UART, Connect PC serial port
DB9, UART1, Connect PC serial port
100M Ethernet Interface
Seserved USB (Type A)
Extended 16-pin functional interface
Power (Red)
nLink
nReady
Reset
Reload
3.3V Power Indicator
nLink/GPIO-Pin 14 Indicator
nReady/GPIO-Pin 16 Indicator
Used to reset the module.
Module restore to factory default configuration.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
14
HF-A21-SMT Embedded WiFi Module User Manual
1.2.5. Order Information
Base on customer detailed requirement, HF-A21-SMT series modules provide different variants
and physical type for detailed application.
Figure 7.
HF-A21-SMT Order Information
1.3. Hardware Reference Design
1.3.1.
Hardware Typical Application
Figure 8.
HF-A21-SMT Hardware Typical Application
Notes:
nRST- Module hardware reset signal. Input. Logics “0” effective.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
15
HF-A21-SMT Embedded WiFi Module User Manual
There is 22K&4.7uF reset circuit. When module power up or some issue happened, MCU need
assert nRST signal “0” at least 300ms, then set” 1” to keep module fully reset.
nReady- Module boot up ready signal. Output. Logics “0” effective.
The module will output “0” “or “Palmodic Signal” after normal boot up. This signal used to judge if
module finish boot up and ready for application or working at normal mode.
nLink- Module WIFI connection indication. Output.
When module connect to AP (STA mode) or some WiFi STA connect to module (AP mode), the
module will output “0”. This signal used to judge if module already at WiFi connection status.
nReload- Module restore to factory default configuration.Input. Logics “0” effective.
User can assert nReload signal “0” more than 3‟s through button or MCU pin, then release,
module will restore to factory default configuration and re-start boot up process.
UART_TXD/RXD- UART port data transmit and receive signal.
1.3.2. 10/100M Ethernet Interface
HF-A21-SMT 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.
1.3.2.1. Ethernet Connection with Transformer
User board put Ethernet transformer and RJ-45 connector. This is a general 10/100M Ethernet
phy layer connection. The reference design as following:
Figure 9.
Ethernet Reference Design with Transformer
1.3.2.2. Ethernet Connection without Transformer
For this application, Ethernet will work as internal data transmition interface and save one
transformer and RJ-45 connector. Ethernet PHY-to-PHY connection will use AC coupled
connection. This is a space and cost optimized solution. Hardware reference design as following:
Note: VCC signal at reference design shall base on user board PHY chipset voltage level, such
as 2.5V power supply for general Ethernet PHY chipset.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
16
HF-A21-SMT Embedded WiFi Module User Manual
Figure 10. Ethernet Reference Design without Transformer
1.3.3. UART Interface
UART interface is the serial data transmition interface mainly used for HF-A21-SMT 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-A21-SMT modules UART interface include
4 general signals: TXD/RXD/RTS/CTS. The hardware reference design with RS-232 chipset as
following:
Figure 11. UART Interface Reference Design
Notes: TXD pin is also hardware configuration pin internal module. So this pin MUST pull-down
during module power up. HF0A11x modules provide internal pull-down resister, user can‟t add
pull-up/pull-down resister on user board, which may cause module can‟t work.
1.3.4. Power Interface
HF-A21-SMT 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
100mA
Decoupling at power pin suggested, At least one 100uF and one 10uF capacitor required at user
board and put near module power input pin will increase the reliability and performance.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
17
HF-A21-SMT Embedded WiFi Module User Manual
1.4. Software Reference Design
When HF-A21-SMT modules boot up phase, the general user board MCU software flow chart will
as following:
Figure 12. User MCU Software Flow Chart
When HF-A21-SMT 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-A21-SMT modules 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. After power on, module can
automatically connect to the default wireless network and server.
As in this mode, the module's serial port always work in the transparent transmission mode, so
users only need to think of it as a virtual serial cable, and send and receive data as using a
simple serial. In other words, the serial cable of users‟ original serial devices is directly replaced
with the module; user devices can be easy for wireless data transmission without any changes.
The transparent transmission mode can fully compatible with user‟s original software platform and
reduce the software development effort for integrate wireless data transmission.
Notes: Transparent transmission mode as a low level phy layer data transmitting can't keep zero
error rates by itself. User can enable UART port‟s hardware flow control CTS/RTS function or
though higher layer protocol such as TCP to lower error rate and mange the data completeness.
High-Flying recommend when doing large amounts of data transmitting in transparent
transmission mode, hardware flow control should be enabled, so as to fully ensure reliable data
transmission. In the applications which doesn‟t need flow control, users can simply leave RTS /
CTS pin vacant.
1.4.2. Configuration Mode
In configuration mode, user can finish HF-A21-SMT module configuration management and
parameters setting work. In work mode (Transparent Transmission), user can switch to the
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
18
HF-A21-SMT Embedded WiFi Module User Manual
configuration mode through AT+instruction, detailed switch operation refer to “AT+ instruction set”
chapter.
1.4.3. Multi-TCP Link Connection
When HF-A21-SMT module configured as TCP Server, it supports Multi-TCP link connection, and
maximum 32 TCP clients permit to connect to HF-A21-SMT 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.
Downstream: All data from serial port (user) will be duplicate and broadcast to every TCP
connection or client.
Detailed multi-TCP link data transmition structure as following figure:
Figure 13. Multi-TCP Link Data Transmition Structure
1.4.4. TCPB Function
HF-A21-SMT support 2xTCP function, which means module can support 2 network connections
nd
at the same time. The 2 net work connection called TCPB. TCPB only works as TCP Client and
its configuration can only through AT commanrd, not Web configuration supported. The command
as following,
 AT+TCPB=on,
Enable TCPB function;
 AT+TCPPTB=, Set TCPB port number;
 AT+TCPADDB=, Set TCPB‟s server address;
 AT+TCPTOB=

Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.6
Linearized                      : Yes
Encryption                      : Standard V4.4 (128-bit)
User Access                     : Extract
Create Date                     : 2015:06:12 15:09:31Z
Creator                         : Microsoft® Office Word 2007
Modify Date                     : 2015:08:06 18:00:01+08:00
Language                        : zh-CN
Tagged PDF                      : No
XMP Toolkit                     : Adobe XMP Core 4.2.1-c043 52.372728, 2009/01/18-15:08:04
Creator Tool                    : Microsoft® Office Word 2007
Metadata Date                   : 2015:08:06 18:00:01+08:00
Producer                        : Microsoft® Office Word 2007
Format                          : application/pdf
Document ID                     : uuid:20572a29-ada9-4ac8-ba57-44582a89e93d
Instance ID                     : uuid:19d5d43d-dffc-4b30-b5f8-deff21f530b6
Page Count                      : 61
EXIF Metadata provided by EXIF.tools
FCC ID Filing: 2ACSV-HF-A21-SMT

Navigation menu