High Flying Electronics Technology HF BL100 CU User Manual

HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
HF-BL100-CU
Bluetooth Low EnergyBLE 4.0 Module
User Manual
V 1.2
Support IEEE 802.15.1 BT4.0 Wireless Standard
Support wireless upgrade OTA
UART Transparent Transmit Module
Supper low sleep mode power 1.3uAexcellence power save scheme
Unique stop mode, 60nA power
Support internal antenna
Single 1.9V~5.5V power supply
Smallest size : 22.8mm x 15.4mm x 2mm
ROHS compliance
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 1 -
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
Table of Contents
LIST OF FIGURES ..................................................................................3
LIST OF TABLES ...................................................................................6
1. PRODUCT OVERVIEW .........................................................................9
1.1. General Description ........................................................................9
1.2. Device Feature .............................................................................8
1.3. Key Application ............................................................................9
1.4. Device Parameter ........................................................................ 10
1.5. Order Information .........................................................................9
2. HARDWARE INTRODUCTION .............................................................. 12
2.1. Pin Definition ............................................................................. 12
2.2. Electrical Specification .................................................................. 14
2.3. Mechanical Size .......................................................................... 17
2.4. Antenna Layout .......................................................................... 17
3. UART TRANSAPARENT TRANSMIT MODE ............................................... 18
3.1. Transparent Transmit Mode ............................................................ 19
3.2. Transparent Transmit Pin Definition ................................................... 21
3.3. Factory Default Parametet ............................................................. 21
3.3.1. Device Name ............................................................................ 22
3.3.2. Broadcast Parameter ................................................................... 21
3.3.3. Transmit Power ......................................................................... 21
3.3.4. Connect Parameter ..................................................................... 23
3.3.5. Baudrate ............................................................................... 23
3.3.6. Send Latency parameter .............................................................. 22
4. UART AT COMMAND DEFINITION ...................................................... 23
4.1. Module Operation Mode Configure ..................................................... 23
4.2. ATCommand Overview ................................................................. 23
4.2.1. Command Format ....................................................................................................................... 25
4.2.2. Command List ............................................................................................................................. 26
4.3. AT Command ............................................................................. 27
4.3.1. Help Command........................................................................................................................... 28
4.3.2. Set Module NAME .................................................................................................................. 27
4.3.3. Query Module NAME ............................................................................................................. 28
4.3.4. Set Connect Parameter ......................................................................................................... 28
4.3.5. Query Connect Parameter .................................................................................................... 29
4.3.6. Set Baudrate ............................................................................................................................ 31
4.3.7. Query Baudrate ......................................................................................................................... 30
4.3.8. Reserved ..................................................................................................................................... 31
4.3.9. Get MAC Address .................................................................................................................... 31
4.3.10. Query Software Version ....................................................................................................... 31
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 2 -
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
4.3.11. Set Transmit Power ............................................................................................................ 31
4.3.12. Query Transmit Power ....................................................................................................... 32
4.3.13. Set Broadcast Parameter ................................................................................................. 33
4.3.14. Query Broadcast Parameter ............................................................................................ 34
4.3.15. Set User-define Broadcast Data ................................................................................... 34
4.3.16. Query User-define Broadcast Data ............................................................................. 35
4.3.17. Set Auto-Broadcast Switch ............................................................................................. 35
4.3.18. Query Auto-broadcast Switch ........................................................................................ 35
4.3.19. Start Broadcast .................................................................................................................... 37
4.3.20. Stop Broadcast ...................................................................................................................... 36
4.3.21. Query Current BLE Subsystem Status ....................................................................... 37
4.3.22. Disconnect .............................................................................................................................. 39
4.3.23. Set Device Verify Code ..................................................................................................... 38
4.3.24. Query Device Verify Code .................................................................................................. 39
4.3.25. Set UART Output Data Latency ................................................................................... 39
4.3.26. Save Parameter ..................................................................................................................... 41
4.3.27. Module Restore ...................................................................................................................... 41
4.3.28. Set Module Operate Mode ............................................................................................... 41
4.3.29. Reserved.................................................................................................................................. 42
4.3.30. Reserved.................................................................................................................................. 42
4.3.31. Reserved.................................................................................................................................. 42
4.3.32. Reserved.................................................................................................................................. 42
4.3.33. Module BLE Subsystem Status Notification .............................................................. 42
4.3.34. Module CPU Status Notification .................................................................................... 42
4.3.35. Restore Factory Setting via AT Command ..................................................................... 43
4.3.36. Enable Module Deep Sleep .................................................................................................. 43
4.3.37. Restore Facotry Setting via Hardware Method ......................................................... 44
4.3.38. Reserved.................................................................................................................................. 44
5. Read Electricity ............................................................................. 45
5.1. Read Eectricity Channel configuration (temporarily unavailable.) .................... 45
5.2. Electricity Data Description ............................................................ 45
6. APPLICATION OTA ......................................................................... 46
6.1. OTA Channel Configure .................................................................. 46
6.2. OTA Data Description ................................................................... 46
7. APP COMMAND .............................................................................. 47
7.1. Channel and Data Description ........................................................... 47
7.2. Data Format .............................................................................. 48
7.3. Command Content ........................................................................ 49
7.3.1. Command Type0x0E .............................................................................................................. 48
7.3.2. Command Type:0x0F ............................................................................................................ 48
8. Basic Communication Mechanism............................................................ 50
8.1. Application Service Data ChannelUser-define application service UUID0x2B00 ....... 50
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 3 -
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
8.1.1. Module->APP, UART Data ChannelFeature UUID:0x2B10 ....................................... 50
8.1.2. APP->ModuleUART Data ChannelFeature UUID:0x2B11 ...................................... 51
8.1.3. APP->ModuleOTA Mode SwitchFeature UUID:0x2B12 ....................................... 51
8.1.4. APP->ModuleAPP Command ChannelFeature UUID:0x2B13 ................................. 51
8.2. Battery Service Data Channel .......................................................... 52
8.2.1. APP->ModuleBattery Data ChannelFeature UUID:0x2A19 ................................. 52
8.3. OTA Service Data Channel .............................................................. 52
8.3.1. APP->ModuleOTA Data Channel ......................................................................................... 52
9. TEST .......................................................................................... 54
9.1. Test Transparent Transmit Function .................................................. 53
9.2. Test Battery Electricity Read .......................................................... 55
9.2.1. Electricity Read Command ............................................................ 55
9.2.2. Electricity Display .................................................................... 54
9.3. OTA Function Test ...................................................................... 55
9.3.1. Get Module firmware Version ......................................................... 55
9.3.2. Switch to OTA mode .................................................................. 55
9.3.3. OTA .................................................................................... 55
10. PACKAGE INFORMATION ................................................................ 56
10.1. Reflow Soldering Profile .............................................................. 56
10.2. Handling Instruction ................................................................... 56
10.3. Shipping Information ................................................................... 57
APPENDIX A: UART TRANSPARENT TRANSMIT TYPICAL APPICATION ........... 58
APPENDIX B: MODULE SCHEMATIC ........................................................ 60
APPENDIX C: EVK SCHEMATIC .............................................................. 62
APPENDIX D: CONTACT INFORMATION .................................................. 64
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 4 -
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
LIST OF FIGURES
Figure 1. HF-BL100-CU Order Information ............................................................................................. 10
Figure 2. HF-BL100-CU Pin Definition ....................................................................................................... 11
Figure 3. HF-BL100-CU Mechanical Size ................................................................................................. 16
Figure 4. HF-BL100-CU PCB Antenna Position ......................................................................................... 17
Figure 5. HF-BL100-CU Module Reference Placement ......................................................................... 17
Figure 6. Basic HF-BL100-CU Wireless Network Structure ............................................................... 18
Figure 7. HF-BL100-CU Default UART Parameter ................................................................................. 23
Figure 8. ”AT:HELP” List All Command ...................................................................................................... 24
Figure 9. Module UART Output Data Latency set Map .................................................................... 40
Figure 10. Module UART Receive Enable Data Map .............................................................................. 44
Figure 11. APP Scan & Connect Interface .............................................................................................. 53
Figure 12. APP Receive notify Interface ................................................................................................ 54
Figure 13. MCU Receive write Data Interface ...................................................................................... 54
Figure 14. Reflow Soldering Profile ....................................................................................................... 56
Figure 15. Package Information ................................................................................................................ 58
Figure 16. UART Transparent Transmit Typical Application ......................................................... 58
Figure 17. HF-BL100-CU Module Schematic(一) .............................................................................. 60
Figure 18. HF-BL100-CU EVK TOP VIEW(二) ................................................................................... 60
Figure 19. HF-BL100-CU EVK BOTTOM VIEW(三) ......................................................................... 61
Figure 20. EVK power and USB to UART Circuit(一) .................................................................... 62
Figure 21. EVK Interface Circuit (二) ............................................................................................... 62
Figure 22. EVK Interface Circuit(三) ................................................................................................ 63
LIST OF TABLES
Table 1 HF-BL100-CU Module Technique Specification ........................................................................... 9
Table 2 HF-BL100-CU Pin Function Definition ........................................................................................... 11
Table 3 Limited Specification ...................................................................................................................... 13
Table 4 Electrical Specification .................................................................................................................. 13
Table 5 RF Specification ............................................................................................................................... 14
Table 6 Work Mode and System Status .................................................................................................... 14
Table 7 AD Convertor Function Module DC Parameter Map .................................................................. 15
Table 8 Module Connect Interval 20ms Communication Mode Example ........................................... 20
Table 9 Error Code List ................................................................................................................................ 25
Table 10 AT Command List ........................................................................................................................... 25
Table 11 Command Data from APP to Module ........................................................................................... 47
Table 12 Feedback Data from Module to APP........................................................................................... 47
Table 13 Command Type 0x0F Command List ............................................................................................ 48
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 5 -
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
Table 14 Command Type 0x0F Feedback List ............................................................................................ 49
Table 15 Description of User-define Service of All Channnel .......................................................... 50
Table 16 0x2B10 Feature UART module->APP Channel Description ................................................ 50
Table 17 0x2B11 Feature UART APP->module Channel Dexcription ............................................... 51
Table 18 0x2B12 Feature OTA Mode Switch Channel Description ................................................. 51
Table 19 0x2B13 Feature APP Command Channel Descritpion ........................................................... 51
Table 20 Description of Battery Service of All Channel ..................................................................... 52
Table 21 0x2A19 Feature Battery Channel Description ...................................................................... 52
Table 22 Description of OTA Service of All Channel ......................................................................... 52
Table 23 00060001-F8CE-11E4-ABF4-0002A5D5C51B Feature OTA Data Channel Description52
Table 24 Reflow Soldering Specification .................................................................................................. 56
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 6 -
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
History
V1.0 08-25-2015. First Version
V1.1 09-01-2015. Update OTA and Add Battery service
V1.2 10-30-2015. Update APP AT Command format.
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 7 -
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
1. PRODUCT OVERVIEW
1.1. General Description
HF-BL100-CU Bluetooth Low Energy module is a high performance IOT module designed by High Flying. It is based on Cypress chip, and provide a solution for connecting things to Bluetooth wireless network and data transmit ting via UART interface. With the feature of low power, small size, high anti-interference performance, the module integrates PCB antenna and use open stamp type interface which enable customer have more flexibility on software and product structure , and solve the RF hardware design and debug issue.
1.2. Device Feature
Smallest size 22.8mm x 15.4mm x 2mm With 32 bit high performance RISC 48MHz ARM M0 MCUMCU build-in 16KB SRAM
and 128KB Flash
1.9V~5.5V Single power supply Support low power & multiple level power management mode Full peripheral
GPIO interface Serial CommunicationUART application
ADC interface FCC/CE/BQB ROHS compliance
1.3. Key Application
Smart LED lighting Smart toy Electronic Scale Smart Cup Smart Home Appliance OBD IOT, Smart Home Automation Sports, fitness, consumer electronics products Smart instrument, data acquisition ,sensor PCTablet peripheral
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 8 -
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
Class
Item
Condition
Parameter
Wireless paramete r
Certificate
Wireless standard
802.15.1
Frequency range
2.402GHz-2.480GHz
Data rate
1Mbps@2.4GHz
Tx power
Max=+3 dBmMin=-18dBm
Rx sensitivity
-89 dBm
Hardwar e paramete r
Data interface
UART GPIO ADC
Operating voltage
1.9~5.5V
BLE Subsystem current Tx power=0 dBmTx peak current
15.6mA Rx peak current
16.4mA
Tx power=0 dBm broadcast interval=1s
18.9uA
Tx power=0 dBm connect interval=1s
18.9uA
CPU Subsystem current Run
850uA+260uA*per MHz
Sleep @3MHz
1.1mA
Deep sleep
1.3uA
hibernate
150nA
Stop
60nA
Work temperature
-40- 85
Storage temperature
-45- 125 Size
22.8mm x 15.4mm x 2mm
1.4. Device Parameter
Table 1 HF-BL100-CU Module Technique Specification
Power details refer to Table 6
1.5. Order information
As per customer demand, HF-BL100-C can provide variant physical version, detail part
number as below:
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 9 -
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
HF-BL100-CU
Part number
CU->UART
Module Version
BL100->Bluetooth BLE Single mode
Company name
HF->Hi-Flying
Figure 1. HF-BL100-CU order information
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 10
-
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
Pin
Net name
Description
1
GND
Ground
2
NC
NC
3
XRES
Module reset
4
SWCLK
SWD clock interface, firmware burn
5
SWDATA
SWD data interface, firmware burn
6
NC
NC
7
NC
NC
8
NC
NC
9
NC
NC
10
NC
NC
2. HARDWARE INTRODUCTION
2.1. Pin Definition
TOPVIEW
Figure 2. HF-BL100-CU Pin Definition
Table 2 HF-BL100-CU Pin Function Definition
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 11
-
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
11
NC
NC
12
NC
NC
13
NC
NC
14
NC
NC
15
NC
NC
16
NC
NC
17
NC
NC
18
NC
NC
19
VBAT
+1.9V~+5.5V module power input
20
NC
NC
21
NC
NC
22
NC
NC
23
NC
NC
24
NC
NC
25
NC
NC
26
ADC0
Analog input
27
NC
NC
28
BCTS
BCTSmodule send advanced signal data, wake external MCU
29
MANUFACTURE
Restore factory setting
30
UART_TX
UART send data
31
UART_RX
UART receive data
32
WAKEUP
Enable system deep sleep & wake up STOP mode
33
GND
Module ground
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 12
-
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
Parameter
Description
Min Value
Typ. Value
Max value
Unit
VDDD_ABS
Analog, digital, or radio supply relative to VSS (VSSD = VSSA)
-0.5
- 6 V
VCCD_ABS
Direct digital core voltage input relative to VSSD
-0.6
-
1.95
V VGPIO_ABS
Maximum current per GPIO
-25 - 25
mA
IGPIO_injection
GPIO injection current, Max for VIH > VDDD, and Min for VIL < VSS
-0.5
0.5
mA ESD_HBM
Electrostatic discharge human body model
2200
V LU
Pin current for latch up
-200
200
mA
Storage temperature
-45
125
°C
Max solder temperature
IPC/JEDEC J-STD-020
260
°C
Parameter
Condition
Min Value
Typ. Value
Max Value
Uni t
Work voltage
1.9
3.3
5.5 V BLE Subsystem
Tx peak current
Tx power =0DB
15.6
mA
Rx peak current
16.4
mA
Broadcast mode average
current
Tx power =0DBbroadcast interval=1s
18.9
uA
Connect mode current
Connect power=0DBconnect interval=1s
18.9
uA
CPU application subsystem
Operate mode
System clock=48Mhz algorithm0.85+0.26*48
13.4
mA System clock =24Mhz
7.1 mA System clock=12Mhz
4
mA System clock=6Mhz
2.5 mA System clock=3Mhz
1.7 mA
Sleep mode
Run at 3Mhz
1.1 mA
Deep sleep mode
ECO stopWCO work
1.3 uA
Stop mode
ECO stop , WCO work
60 nA
2.2. Electrical Specification
Table 3 Limited Specification
Table 4 Electrical Specification
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 13
-
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
Parameter
Condition
Min value
Typ. Value
Max value
Unit
Rx sensitivity
-89 dBm
Frequency offset tolerance
225
250
275
KHz
Frequency drift
-50 50
KHz
In-Band blocking rejection
2 MHz offset
-20
dB
>=3 MHz offset
-30
dB Output power
0 3 dBm
Standard frequency
2400
2482
MHz
Frequency tolerance
±50
Ppm
Signal strength
accuracy
±5 dBm Signal accuracy
1 dBm
Signal sampling
interval
6 uS Channel band
2 MHz
Effective data
rate
1 Mbps
Work mode
Current
Code run
External digital module
Extern al analog module
Clock sour ce
Wakeup source
Wake up time
Active
850uA+260u A per MHz
Yes
All
All
All - -
sleep
1.1mA at 3MHz
No
all
All
All
Any interrupt source
0
Deep sleep
1.3uA
No
WDT, LCD, I2C/SPI, Link-Layer
POR, BOD
WCO , ILO
GPIO, WDT, I2C/SPI Link Layer
25uS
hibernate
150nA
No
No
POR, BOD
No
GPIO
2mS
stop
60nA
No
No
No
No
WAKEUP ,XRES
2mS
Table 5 RF specification
Table 6 Work Mode and System Status
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 14
-
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
Parameter
Description
Min. value
Typ. value
Max value
Unit
Remark
A_RES
Resolution
- - 12
bits
-
A_CHNIS_S
Number of channels – single-ended
- - 1 - 1 full speed A-MONO
Monotonicity
- - - - YES
A_ISAR
Current consumption
- - 1
mA
A_VINS
Input voltage range – single-ended
VSS
-
VDDA
V A_INRES
Input resistance
- - 2.2
kΩ
A_INCAP
Input capacitance
- - 10
pF
VREFSAR
Trimmed internal reference to SAR
-1 - 1 % Percentage of Vbg (1.024 V)
Table 7 AD Convertor Module DC Parameter Map
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 15
-
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
2.3. Mechanical size
HF-BL100-CU physical size unit: mmas below:
Module padsize 22.8mm X 15.4mm pad space 1mm
Figure 3. HF-BL100-CU Mechanical size
2.4. Antenna Layout
HF-BL100-CU support internal antenna. Antenna layout refer to Figure 4. Customer need to
obey following antenna design rules and module location suggestions:
For user PCB, place module on the edge area of the PCB as possible, or suspend the
antenna area.
Module antenna22.8mmx7mmcorrespondent area cant put components or paste
GND, the surrounding components or GND should be as far as possible from antenna place.
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 16
-
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
Antenna must away from high components at least 10mm
Antenna cant be shielded by any metal enclosure.
Figure 4. HF-BL100-CU PCB antenna position
High Flying suggest to locate HF-BL100-CU as Figure 5 shown to reduce the influence to antenna and wireless signal as much as possible, or contact High Flying technique people for support
Figure 5. HF-BL100-CU Module Reference Placement
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 17
-
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
3. UART TRANSPARENT TRANSMIT
MODE
3.1. Transparent Transmit Mode
Transparent Transmit means the two way communication between device and mobile terminal
via the connecting with serial interface and device MCU. Device can set HF-BL100-CU baud rate and connect interval via AT command through serial interface (refer to Serial AT command Description for details). Target different baud rate and BLE connect interval or different packet sending interval, module would have different data handling capacity. The default baud rate of HF-BL100-CU is 115200bps, it is recommended to set baud rate at 115200bps when transmitting big data or in highly real-time application. Baud rate support save after power off.
Figure 6. Basic HF-BL100-CU wireless network structure
Module BLE connect interval is 20ms, and able to send utmost 200 byte data one time via serial interface. Theoretically module able to send data up to 4KB/S. Below is the detail description about transparent transmit.
Module can receive utmost 200 byte data from serial interface one time. Module will automatically send sub-packet according to data size, each packet limit is 20 bytes. The data packet sending from mobile device to module must separated to sub-packet(1-20 byte each). After receive the sub-packets, module will send to MCU in proper order.
Serial hardware protocol:115200 bps , 8, non-parity1 stop bit
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 18
-
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
After receive data from MCU serial, module will judge if it is AT command, if it is, module will execute the command, if not, module will transmit the data to APP under BLE connection and notify mode enabled status.
After module receive APP data, output the data to MCU via serial interface.
If module system status changed, module will send status notification character to MCU,
such as disconnect, connect, broadcast.
Bluetooth protocol require that the minimum connect interval is 7.5ms. Default connect interval is 20ms (comply with IOS regulation), if need to save power and apply low speed transmit mode, user can adjust connect interval through AT command ( the maximum connect interval is 2000ms, comply with IOS regulation)
The calculation of transmit speed : the data packet of each connect interval from APP to module is 1 packet, max 4 packet can be transmit from module to APP in each interval (the packet qty is related to module CPU capacity) . There is max 20 bytes in each packet, if connect interval is T (unit :ms), then max transmit speed V (unit is byte/s) is :
Vmodule = 20*4*1000/T (V only related T )
Vapp=20*1000/T (V only related T )
Vapp if module connect interval is 20ms, then each interval can transmit max 20 bytes, so
theoretically the max speed is 20x50 =1k byte/s. Test shows the transmit from APP to module is stable and reliable.
Vmodule if module connect interval is 20ms, then each interval can transmit max 80 bytes,
so theoretically the max speed is 80x 50=4k byte/s. Test shows that if transmit speed under 2kbyte/s, there is few chances of leaking packet. For safety consideration, it is recommended to do verification and re-transmit at up level whatever it is low speed or high speed application. In Android application, it is recommended to lower connect interval to increase speed.
Below is the example of 20ms connect interval communication mode, user can self-configure.
The lower the Speed, the lower the packet lost ratio.
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 19
-
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
Table 8 Module connect interval 20ms communication mode example
Remark user can set particular communication mode according to actual application, packet
length can be set between 80byte < L < 200byte the relationship as below as per BLE protocol:
If L<80 TS >= T
If 80<L<160 TS >= T*2
If 160<L<200 TS >= T*3
All transmit mode is safe as long as meet above conditions, TS=T is recommended, TS=T*2TS=T*3 is ok but the packet lost ratio is high, must add verification and re-transmit mechanism. In another words, if apply 80byte < L < 200byte ,serial data can transmit to module in one time, but need to reserve time for sending data from module to Bluetooth, or there will occur rear-end. E.g. Set connect interval T=20ms, if data length is L=200, TS must over T*3 = 60ms , TS=70ms is a reasonable choice.
Serial data length can be any value under 200 byte. In order to achieve the best efficiency and avoid full load operation , it is recommended to use 20,40,60 byte serial data packet, set packet interval over 20ms.
Remarkin IOS, the function used to call Characteristic is:
BCharacteristicWriteWithRespons
e parameter, write with response mode would lower transmit efficiency to ensure the accuracy of each packet, use CBCharacteristicWriteWithoutResponse ; write without response mode would promote transmit efficiency , but the accuracy of packet need to be verified by APP up level.
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 20
-
HF-BL100-CU Low Energy BluetoohBLE 4.0Module User Manual
3.2. Transparent Transmit Mode Pin Description
All pins of Transparent Transmit UART_TXUART_RXWAKEUPBCTSXRES MANUFACTURE
Min. pins of Transparent TransmitUART_TXUART_RXWAKEUP
Details refer to Appendix A
WEAKEUP: inside high impedance, pin must be connected, pull up to stop UART receive function. UART unable to receive data (UART able to send data), pull down to enable UART to receive data.
MANUFACTURE: pull down inside ,can be no connection, pull up outside and power on or reset, keep high level MANUFACTURE at least 5 second, module restore factory setting
XRES: pull up inside, can be no connection
BCTS: in normal time, output low level; BCTS output high level before sending data from module, after sending , BCTS output low level.
3.3. Factory Default Parameter
3.3.1. Device Name
Device NAME”HF-BL100-CU”
3.3.2. Broadcast Parameter
Broadcast Min. interval“0800”, means 500ms
Broadcast Max. interval:“0800”, means 500ms
Broadcast type“0” means public
Broadcast channel “7”means apply channel index 37 38 39
3.3.3. Transmit Power
Broadcast transmit power ”8” means 0dbm
Connect transmit power”8” means 0dbm
Shanghai High Flying Electronics Technology Co., Ltd www.hi-flying.com - 21
-
Loading...
+ 46 hidden pages