High Flying Electronics Technology HF A11X User Manual

HF-A11x V3.1 User Manual
Embedded WiFi Module User Manual
Copyright
HF-A11x
Hi-flying is a registered trademark of Hi-flying Incorporated. Copyright © 2012 Hi-flying Incorporated. All rights reserved.
No part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher.
Hi-flying Incorporated reserves the right to make changes in technical and product specifications without provisional notification.
This module is limited to OEM installation only and must not be sold to end-users.
OEM integrators must be instructed to ensure that the end-user has no manual instructions to remove or install the device.
The end-user can not remove or install this module to any other devices.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
1
HF-A11x V3.1 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 Mode Support Router/Bridge Mode Networking Support Internal Antenna Option Support Transparent/Agreement Transmission Mode Support AT+ Instruction Set for Configuration Support Friendly Web Configuration Page Support Palmodic Signal Support UART Port Auto-Frame Function Single +3.3V Power Supply Smallest Size: 25 x 40mm FCC/CE Certificated Flexible Software Platform with Linux OS
FCC IDAZYHF-A11X
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
2
HF-A11x V3.1 User Manual
TABLE OF CONTENTS
LIST OF FIGURES..................................................................................................................................6
LIST OF TABLES ....................................................................................... ............................................ 7
HISTORY................................................................................................................................................. 8
1. PR O D U C T O V E R V I E W ...............................................................................................................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. Evaluation Kit......................................................................... .......................................... 13
1.2.4. Order Information....................................................... .... .... .... .... ....... .... .... ... .... .... .... ... .... .14
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 .............................................................. .................................................. 16
1.3.4. Power Interface................................................................................................................ 17
1.4. Software Reference Design ................................................................................................. 18
1.4.1. Transparent Transmission Mode.....................................................................................18
1.4.2. Agreement Transmission Mode.......................................................................................19
1.4.2.1. Agreement Transmission Data Structure......................................................... .... ... .... .19
1.4.2.2. Agreement Transmission Procedure ...........................................................................20
1.4.2.3. Agreement Transmission CRC Arithmetic........................................ ........................... 21
1.4.3. Configuration Mode .........................................................................................................22
1.4.4. Multi-TCP Link Connection.............................................................................................. 22
1.4.5. Palmodic Signal ................................................................................................... ............ 23
2. FU N C T I O N A L D E S C R I P T I O N ................................................................................................. 24
2.1. Wireless Networking............................................ .... ... .... .... .... .... ....... .... .... .... ... .... .... .... ... .....24
2.1.1. Basic Wireless Network Based On AP (Infrastructure)................................................... 24
2.1.2. Wireless Network Based On Adhoc Network (Adhoc) ....................................................24
2.2. Security.................................................................................................................................. 25
2.3. Multi-SSID with STA........................................................ ........ .... ... .... .... .... .... ... ........ .... ... ..... 25
2.4. UART Auto-Frame.............. .... .... ... .... .... ....... .... .... .... ... .... .... ........ .... ... .... .... .... ... .... ........ ... .....26
2.5. Address Binding ................................................................................................................... 26
2.6. Ethernet Interface Communication..................................................................................... 26
2.6.1. HF-A11x Ethernet Interface Networking (As AP) ............................................................27
2.6.2. HF-A11x Ethernet Interface Networking (As STA, N-Ver)............................................... 27
2.6.3. HF-A11x Ethernet Interface Networking (As STA, Z-Ver)............................................... 27
2.7. Work Mode............................................................................................................................. 28
2.8. Network Protocol .................................................................................................................. 29
2.9. Parameters Configuration....................................................................................................29
2.10. Firmware Upgrade.............................................................................................................29
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
3
HF-A11x V3.1 User Manual
GPIO Function ...................................................................................................................29
2.11.
3. OP E R AT I O N G U I D E L I N E ......................................................................................................... 30
3.1. Configuration via Web Accessing....................................................................................... 30
3.1.1. Open Web Management Interface .................................................................................. 30
3.1.2. Mode Selection Page........................................................................................... ............ 30
3.1.3. AP Interface Setting Page ...............................................................................................31
3.1.4. STA Interface Setting Page ............................................................................................. 31
3.1.5. Application Setting Page...................................................................................... ............ 32
3.1.6. Device Management Page ....................................................... .......................................33
3.2. HF-A11x Usage Introduction................................................................................................33
3.2.1. Software Debug Tools ..................................................................................................... 33
3.2.2. Network Connection ........................................................................................................34
3.2.3. Module Debug..................................................................................................................34
3.3. Typical Application Examples ....................................................... ... .... .... .... ... ........ .... ... .... .36
3.3.1. Wireless Control Application............................................................................ ........ ... .... .36
3.3.2. Remote Management Application ................................................................................... 37
3.3.3. Transparent Serial Port Application................................................................................. 37
3.3.4. Wireless Data Acquisition Card Application .................................................................... 38
4. AT+ I N S T R U C T I O N I N T R O D U C T I O N ...................................................................................... 39
4.1. Configuration Mode..............................................................................................................39
4.1.1. Switch to Configuration Mode...................................................................... .... ........ ... .... .39
4.2. AT+ Instruction Set Overview.......... .... .... ... .... .... ........ ... .... .... .... ... .... .... .... ....... .... .... .... ... .... .40
4.2.1. Instruction Syntax Format................................................................................................ 40
4.2.2. AT+ Instruction Set ............................................................................... .... ... .... .... .... ... .....41
4.2.2.1. AT+E ............................................................................................................................42
4.2.2.2. AT+ENTM ....................................................................................................................42
4.2.2.3. AT+NETP..................................................................................................................... 42
4.2.2.4. AT+UART..................................................................................................................... 43
4.2.2.5. AT+ UARTF..................................................................................................................43
4.2.2.6. AT+ UARTFT ...............................................................................................................43
4.2.2.7. AT+ UARTFL................................................................................................................ 43
4.2.2.8. AT+TMODE.................................................................................................................. 44
4.2.2.9. AT+WMODE .................................... ............................................................................44
4.2.2.10. AT+WSKEY.............................................................................................................. 44
4.2.2.11. AT+WSSSID........................................................................................................ ..... 45
4.2.2.12. AT+ WSLK...................................................................... ... .... .... .... ... .... ........ .... ... .... .45
4.2.2.13. AT+ WSLQ .............................................. .... .... ... ........ .... ... .... .... .... ... ........ .... .... .... ... .45
4.2.2.14. AT+WEBU ....................................................... ............................................. ............ 45
4.2.2.15. AT+WAP.............................................................................................................. ..... 46
4.2.2.16. AT+WAKEY.............................................................................................................. 46
4.2.2.17. AT+MSLP ....................................................... .......................................................... 47
4.2.2.18. AT+WSCAN..............................................................................................................47
4.2.2.19. AT+ TCPLK ......................................... .... .... .... ... .... .... ....... .... .... .... .... ... .... .... ....... .... .47
4.2.2.20. AT+ WANN....................... .... .... .... .... ... ........ .... ... .... .... .... ... .... .... ....... .... .... .... .... .... ... .47
4.2.2.21. AT+ LANN ........................................... .... .... .... ... ........ .... ... .... .... .... ... .... ........ .... ... .... .48
4.2.2.22. AT+ DHCPGW................................................................... .... .... .... ....... .... .... .... ... .... .48
4.2.2.23. AT+ TCPTO.................................................................... ... .... .... .... .... ... ........ .... ... .... .48
4.2.2.24. AT+ MAXSK ............................................ .... ... ........ .... .... .... ... .... .... ....... .... .... .... ... .... .48
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
4
HF-A11x V3.1 User Manual
4.2.2.25.
4.2.2.26. AT+RELD .................................................................................. ...............................49
4.2.2.27. AT+Z......................................................................................................................... 49
4.2.2.28. AT+MID............................................ .........................................................................49
4.2.2.29. AT+VER....................................................................................................................49
4.2.2.30. AT+H.........................................................................................................................49
APP EN DIX A: QU ESTIO NS AND ANSWER S ............................................................................... 51
Q1: How to configure transparent serial port application (TCP protocol) with two HF-
A11x modules?.............................................................................. .... .... ... ........ .... .... ... .... ................ 51
Q2: Where to Set HF-A11x Module LAN IP and WAN IP through Web Page......................... 51
Q3: How to configure transparent serial port application (UDP protocol) with two HF-
A11x modules?.............................................................................. .... .... ... ........ .... .... ... .... ................ 52
Q4: Where to set HF-A11x module network protocol (TCP/UDP)?........................ .... ........ ... .... .52
Q5: How to configure transparent serial port application: Two HF-A11x modules all
configured as STA and connection through AP?........................................................................ 53
Q6: How to avoid IP address confliction when apply HF-A11x module?.................................. 54
Q7: PC works as server, all HF-A11x modules works as data acquisition card and
connect with PC, how to configure this application? ................................................................. 54
APPENDIX B: USER DEVICE PSEUDO-CODE REFERENCE FOR AGREEMENT
TR A N S M I T I O N M O D E ....................................................................................................................... 56
AP P E ND I X C: C O N TA C T I N F O RM AT I O N ..................................................................................... 58
AT+EPHY................................................................................................................. 49
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
5
HF-A11x V3.1 User Manual
LIST OF FIGURES
Figure 1.
Figure 2. HF-A11x Pins Map .............................................................................................................. 10
Figure 3. HF-A111 Mechanical Dimension.........................................................................................12
Figure 4. HF-A112 Mechanical Dimension.........................................................................................13
Figure 5. HF-A11x Evaluation Kit .......................................................................................................13
Figure 6. HF-A11x Order Information.................................................................................................14
Figure 7. HF-A11x Hardware Typical Application ..............................................................................15
Figure 8. Ethernet Reference Design with Transformer..................................................................... 16
Figure 9. Ethernet Reference Design without Transformer................................................................ 16
Figure 10. UART Interface Reference Design.................................................................................. 17
Figure 11. User MCU Software Flow Chart .................................................................. .................... 18
Figure 12. User Device Send Data to HF-A11x Module Procedure .................................................21
Figure 13. HF-A11x Module Send Data to User Device Procedure................................................. 21
Figure 14. Multi-TCP Link Data Transmition Structure..................................................................... 22
Figure 15. HF-A11x Functional Architecture.....................................................................................24
Figure 16. HF-A11x Basic Wireless Network Structure....................................................................24
Figure 17. HF-A11x Adhoc Network Structure ................................................................................. 25
Figure 18. Multi-SSID with STA ........................................................................................................ 26
Figure 19. HF-A11x Ethernet Interface Networking (As AP) ........................................ .................... 27
Figure 20. HF-A11x Ethernet Interface Networking (As STA, N-Ver)...............................................27
Figure 21. HF-A11x Ethernet Interface Networking (As STA, Z-Ver)............................................... 27
Figure 22. HF-A11x Transparent Transmission Demo.....................................................................29
Figure 23. Open Web Management page......................................................................................... 30
Figure 24. Mode Selection Page................................................................ .......................................31
Figure 25. AP Interface Setting Page ............................................................................................... 31
Figure 26. STA Interface Setting Page............................................................................................. 32
Figure 27. Application Setting Page............................................................ ......................................32
Figure 28. Device Management Page .............................................................................................. 33
Figure 29. STA Interface Debug Connection.................................................................................... 34
Figure 30. AP Interface Debug Connection...................................................................................... 34
Figure 31. “CommTools” Serial Debug Tools ...................................................................................34
Figure 32. “TCPUDPDbg” Tools Create Connection........................................................................ 35
Figure 33. “TCPUDPDbg” Tools Setting...........................................................................................35
Figure 34. “TCPUDPDbg” Tools Connection.................................................................................... 36
Figure 35. Wireless Control Application.................................................. ... .... .... .... .... ....... .... .... ... .... .36
Figure 36. Remote Management Application ...................................................................................37
Figure 37. Transparent Serial Port Application................................................................................. 37
Figure 38. Wireless Data Acquisition Card Application ....................................................................38
Figure 39. HF-A11x Default UART Port Parameters........................................................................39
Figure 40. Switch to Configuration Mode................................................ ... .... .... .... .... ... ........ .... ... .... .39
Figure 41. ”AT+H” Instruction for Help..............................................................................................40
Figure 42. Configure Transparent Serial Port Connection (TCP).....................................................51
Figure 43. Module LAN IP Setting .................................................................................................... 51
Figure 44. Module WAN IP Setting................................................................................................... 52
Figure 45. Configure Transparent Serial Port Connection (UDP) .................................................... 52
Figure 46. Module Network Protocols: TCP/Server..........................................................................53
Figure 47. Module Network Protocol: TCP/Client............................................................................. 53
HF-A11x Demo....................................................................................................................10
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
6
HF-A11x V3.1 User Manual
Figure 48.
Figure 49. Two HF-A11x Modules Connection Through AP ........................................ .... ........ ... .... .54
Figure 50. Wireless Data Acquisition Card Setting........................................................... ................ 55
Module Network Protocol: UDP.................................................... ...................................53
LIST OF TABLES
Table 1 HF-A11x Module Technical Specifications.............................................................................9
Table 2 HF-A11x Pins Definition....................................................................................................... 10
Table 3 HF-A11x Evaluation Kit Interface Description...................................................................... 14
Table 4 HF-A11x Web Access Default Setting .................................................................................30
Table 5 Error Code DescribtionHF-A11x Web Access Default Setting ............................................41
Table 6 AT+ Instruction Set List........................................................................................................41
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
7
HF-A11x V3.1 User Manual
HISTORY
Ed. V3.1 Created on 1-14-2012.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
8
HF-A11x V3.1 User Manual
1. PRODUCT OVERVIEW
1.1. General Specification
Table 1 HF-A11x Module Technical Specifications
Class Item Parameters
Certification FCC/CE Wireless standard 802.11 b/g/n
US Frequency range 2.412GHz-2.462GHz EU Frequency range 2.412GHz-2.472GHz
802.11b: +17.38 dBm (Max.)
Wireless Parameters
Hardware Parameters
Software Parameters
Transmit Power
Receiver Sensitivity
Antenna Option Internal:On-board chip antenna
Data Interface
Operating Voltage 3.3V (+/-5%) Operating Current 170mA~300mA Operating
Temperature Storage Temperature
Dimensions and Size Network Type Station /AP mode
Security Mechanisms WEP/WAP-PSK/WAP2-PSK/WAPI Encryption WEP64/WEP128/TKIP/AES
Work Mode Serial command AT+instruction set Network Protocol Max. TCP Connection 32
User Configuration User Application SW
Note: Limited by local law regulations, version for North America does not have region selection optio n.
802.11g: +14.64 dBm (Max.)
802.11n: +14.95 dBm (Max.) Configurable
802.11b: -89 dBm
802.11g: -81dBm
802.11n: -71dBm
UART: 1200bps - 230400bps GPIOs Ethernet: 100Mpbs
-10- 70
-40- 85 25×40×8mm (A111) 30×45×8mm (A112)
Transparent Transmission and Agreement Transmission mode
TCP/UDP/ARP/ICMP/DHCP/DNS/HTT P
Web ServerAT command config. Support customized application SW with
Linux system.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
9
HF-A11x V3.1 User Manual
1.2. Hardware Introduction
Figure 1. HF-A11x Demo
1.2.1. Pins Definition
Figure 2. HF-A11x Pins Map
Table 2 HF-A11x Pins Defini tion
Pin Description Name Direction Note
Ground GND Power
1
VCC 3.3V Power 3.3V @ 350mA power input
2
UART Data Transmit UART_TXD O
3
GPIO GPIO3 I/O UART Data Receive UART_RXD I
4
GPIO GPIO4 I/O UART sends request of
5
data transmission GPIO GPIO5 I/O
Shanghai High-Flying Electronics Technology Co., Ltd
UART_RTS O
www.hi-flying.com
If not use UART functionthis 4 pins can be configured as GPIO pins, and can change GPIO pin status through AT command
10
HF-A11x V3.1 User Manual
6
UART receives data transmission permission GPIO GPIO6 I/O
Module reset signal RESET I “Low ( 0 )” effective reset input.
7
WiFi status Indication nLink O
8
GPIO GPIO8 I/O
Indicate the module
9
status of power on process GPIO GPIO9 I/O
Restore configuration nReload I
10
GPIO GPIO10 I/O
Ethernet Interface PHY_RX+ I
11
Ethernet Interface PHY_RX- I
12
Ethernet Interface PHY_TX+ O
13
Ethernet Interface PHY_TX- O
14
UART_CTS I
nReady O
The reset duration should be kept more than 300ms “1”- WIFI connection available, “0”- No WIFI connection Can be configured as GPIO. “0” or “Palmodic Signal” - Finish
module boot up process; “1” - Module boot up not finish. Can be configured as GPIO.
Module will Restore factory default configuration after set this pin “0” more than 1s, then set “1”. +1.8V Ethernet Data Interface Support transformer and direct connection (AC couple) mode.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
11
HF-A11x V3.1 User Manual
1.2.2. Mechanical Size HF-A11x series modules include HF-A111(25×40mm)and HF-A112(30×45mm)with
different physical size as follows:
Figure 3. HF-A111 Mechanical Dimension
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
12
HF-A11x V3.1 User Manual
Figure 4. HF-A112 Mechanical Dimension
1.2.3. 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-A11x 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 5. HF-A11x Evaluation Kit
The external interface description for evaluation kit as follows:
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
13
HF-A11x V3.1 User Manual
Table 3 HF-A11x Evaluation Kit Interface Description
Function External
Interface
LED
Button
1.2.4. Order Information Base on customer detailed requirement, HF-A11x series modules provide different variants and
physical type for detailed application.
Name Description
DB9 RJ-45 100M Eth Interface
Mini USB B-type interface, work as 5V@1A input Module 2x7 2mm DIP connector Power (Red) 3.3V Power Indicator CTS CTS/GPIO Indicator RTS RTS/GPIO Indicator Reload nReload/GPIO Indicator Ready nReady/GPIO Indicator Link nLink/GPIO Indicator Reset Reload Module restore to factory default configuration.
Male serial jack of 9-pin,and used to connect to PC
Used to reset the module.
Figure 6. HF-A11x Order Information
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
14
HF-A11x V3.1 User Manual
1.3. Hardware Reference Design
1.3.1. Hardware Typical Application
Figure 7. HF-A11x Hardware Typical Application
Notes nRST- Module hardware reset signal. Input. Logics “0” effective.
There is 100K Ohm pull-up resister internal. 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. There is 4.7K Ohm pull-up resister internal. 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. There is 4.7K Ohm pull-up resister internal. 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. There is 4.7K Ohm pull-up resister internal. User can assert nReload signal “0” more than 1s 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. There is 1K Ohm pull-down resister internal. User can’t add pull-up resister at these pins.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
15
HF-A11x V3.1 User Manual
1.3.2. 10/100M Ethernet Interface HF-A11x 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 8. 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.
Figure 9. Ethernet Reference Design without Transformer
1.3.3. UART Interface UART interface is the serial data transmition interface mainly used for HF-A11x modules.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
16
HF-A11x V3.1 User Manual
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-A11x modules UART interface include 4 general signals: TXD/RXD/RTS/CTS. The hardware reference design with RS-232 chipset as following:
Figure 10. 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-A11x 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-A11x V3.1 User Manual
1.4. Software Reference Design
When HF-A11x modules boot up phase, the general user board MCU software flow chart will as following:
Figure 11. User MCU Software Flow Chart
HF-A11x modules provide two kinds of work mode and one configuration mode. Work mode is Transparent Transmission and Agreement Transmission. Configuration mode is through AT+instruction set to finish module setting and configuration.
When HF-A11x modules boot up, user can select one work mode base on the set t ing, an d use r can switch to the configuration mode at any kinds of work mode.
1.4.1. Transparent Transmission Mode HF-A11x 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.
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
18
HF-A11x V3.1 User Manual
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. Agreement Transmission Mode If user requires keep 100% accurate data transmitting (No error rate) or user board’ MCU has
limited data processing speed compared with wireless data transmitting rate, agreement transmission mode is suggested in this kinds of application.
Agreement transmission mode defines transmition data structure, verification mode, connection mode between both sides, which target to fully control and mange the data transmition on the serial port. These kinds of mode can keep accurate data transmitting.
In agreement transmission mode, user device (or MCU) send “SEND” instruction to HF-A11x modules, HF-A11x modules reply “SEND ACK” instruction to confirm. HF-A11x modules will not active transmit the serial port data to user device, it only can transmit the data after receive user device’s data transmit request. HF-A11x module has 1M byte data FIFO to save data which need to be transmitting to the user device.
1.4.2.1. Agreement Transmission Data Structure Agreement transmission mode’s command data structure and
- The 1
- The 2
st
Byte of each frame is command word;
nd
Byte of each frame is serial number (SN).
agreement as following:
User device insert SN when it send command frame, the SN will increase one (SN+1) after one frame successful transmition. SN shall reset to 0x00 after arrive 0xFF as a cycle period.
- Data LengthExample: LLLL, which is the net length of data part . Unit: Byte. Maximum: 1024 Bytes
- CRC PartExample: CCCC, which is the CRC result of whole frame.
- Serial transmition sequence for “LLLL” and “CCCC”: Low byte first, then higher byte
¾ Data Transmit CommandSEND
User device use this command to send data to HF-A11x module  “SEND” frame structure:
0123456 N+5N+6N+7
01 SS LLLL CCCC
0000
DDDD……DDDD
Command Word: 01 Serial Number: SS Reserve Part: 0000
Data Length: LLLL Data Content: DDDD……..DDDD CRC Check: CCCC
¾ Data Tran smit Acknowledge Command (SEND ACK)
HF-A11x module replies this command to acknowledge receive “SEND” frame data.  “SEND ACK” frame structure:
All reserve part shall set to “0”
Data part” DDDD….DDDD” length
Command Word: 01 Serial Number: SS
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
19
Loading...
+ 43 hidden pages