High-Flying Electronics Technology Co. Ltd HF-A11X Manual De Usuario

Descargar
Página de 62
HF-A11x V3.1 User Manual 
Shanghai High-Flying Electronics Technology Co., Ltd 
www.hi-flying.com 
19
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 
agreement
 as following: 
-   The 1
st
 Byte of each frame is command word; 
-   The 2
nd
 Byte of each frame is serial number (SN).      
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 Length(Example: LLLL), which is the net length of data part
 . 
Unit: Byte. Maximum: 1024 Bytes  
-    CRC Part(Example: 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: 
01
SS
LLLL
CCCC
DDDD……DDDD
0000
0
1
2
3
4
5
6
N+5
N+6
N+7
 
 
‹  Command Word: 01 
‹  Serial Number:  SS 
‹  Reserve Part: 0000(All reserve part shall set to “0”) 
‹ Data 
Length: 
LLLL(Data part” DDDD….DDDD” length) 
‹ Data 
Content: 
DDDD……..DDDD 
‹  CRC Check: CCCC 
 
¾  Data Transmit Acknowledge Command (SEND ACK) 
„  HF-A11x module replies this command to acknowledge receive “SEND” frame data. 
„  “SEND ACK” frame structure: 
 
 
‹  Command Word: 01 
‹  Serial Number:  SS