background image

  

 BLE-USB, USB to Bluetooth Low Energy Converter (Ver. 1.0, Oct/6/2016) 19

 

3.1.6 AT+BC 

 

(1)

 

Description 

 

The  Bluetooth  LE  used  3  channels  (CH37~39)  for  frequency  hopping  in  broadcast  mode. 

This  command  allow  user  to  change  the  broadcast  channel  when  the  module  was  in  the 

broadcast mode. User can choose one channel for broadcasting, or choose three channels for 

broadcasting.  The  command  only  change  the  broadcast  command  in  the  broadcast  mode, 

and the broadcast will not be change in the connection mode.  

 

(2)

 

Syntax 

 

Write Command 

Response 

AT+BC=

<channel>

<CR> 

OK<CR><LF> 

Error: 01<CR><LF>     (refer to

 3.1.25

) 

Read Command 

Response 

AT+BC?<CR> 

+BC: 

<channel>

<CR><LF> 

OK<CR><LF> 

Test Command 

Response 

AT+BC=?<CR> 

+BC: 0~3<CR><LF> 

OK<CR><LF> 

 

(3)

 

Parameter 

 

<channel>

 

0: CH 37 (2402 MHz) 

1: CH 38 (2426 MHz) 

2: CH 39 (2480 MHz) 

3: CH 37~39 

Default: 3 

 

(4)

 

Example 

 

AT+BC=1<CR> 

OK<CR><LF> 

AT+BC?<CR> 

Summary of Contents for BLE-USB

Page 1: ...BLE USB USB to Bluetooth Low Energy Converter Ver 1 0 Oct 6 2016 1 User Manual v1 0 www icpdas com BLE USB USB to Bluetooth Low Energy Converter...

Page 2: ...ithout notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use or for any infringements of patents or other righ...

Page 3: ...and Observer 9 1 6 MASTER IDENTIFICATION MECHANISM 10 2 HARDWARE 11 2 1 SPECIFICATIONS 11 2 2 BLE USB FRONT VIEW 12 2 2 1 LED Indicator 12 2 2 2 USB type A plug 14 2 3 DIMENSIONS 14 3 SOFTWARE 15 3 1...

Page 4: ...Code Table 44 3 2 THE BROADCAST MODE COMMAND 44 3 2 1 ADV 45 3 2 2 ADS 46 3 2 3 ADP 47 3 2 4 ADR 47 4 CONFIGURATION UTILITY 49 4 1 MAIN WINDOW OF TBLE 720 BLE USB UTILITY 49 4 2 SET CONFIGURATION ON...

Page 5: ...supports different roles in each transmission mode One is broadcaster and observer in advertisement mode and the others is master and slave in connection mode User can use AT command to setup the BLE...

Page 6: ...ication LEDs GUI Configuration Software Windows Version No External Power Supply and Antenna required BLE Utility ICP DAS provides the BLE USB configuration utility for Windows OS Parameters configura...

Page 7: ...from broadcaster B The Observer 1 5 can receive the information without connection The Observer 1 also can receive packet from broadcaster B but the Observer 1 only can receive packet from broadcaster...

Page 8: ...ematic diagram of BLE USB 1 4 Operation Mode The module will in the initialization mode after power on If the initialization was success and the module will went to the transmission mode The module ca...

Page 9: ...st patterns One is the high discoverable mode The other is low discoverable mode The Slave will be broadcasting for 30 second in high discoverable mode and the broadcast interval is 20ms for 3 channel...

Page 10: ...will check the identification packet that the identification packet was incorrect The Slave will disconnect with the Master The feature can enable by AT command refer to 3 1 21 Figure 1 7 The architec...

Page 11: ...Connection Role Master Slave connection mode Observer Broadcaster broadcast mode Communication Interface Interface USB 2 0 USB Connector Type A Plug Compatibility USB 1 1 and 2 0 standard Driver Suppo...

Page 12: ...er on and the status LED also will turn on for 3 second The connection had two roles master and slave Each role had different LED pattern The LED pattern was shown in following table Master LED Indica...

Page 13: ...l turn on for 3 second after BLE USB power on The connection had two roles broadcaster and observer scanner Each role had different LED pattern The LED pattern was show in following table Broadcaster...

Page 14: ...6 2016 14 2 2 2 USB type A plug The port is used to configure BLE USB communicate with other BLE modules and be powered via the USB socket 2 3 Dimensions Figure 2 2 Dimensions of BLE USB Top View Bott...

Page 15: ...valid when the module was entering to the AT command mode except The correct flow of AT command was shown in Figure 3 1 Figure 3 1 The flow of AT command 1 Write Command The write command can write co...

Page 16: ...on command can execute some functions e g reset the module The format of test command is AT XXX CR The AT is a beginning in the command and the XXX is command name and the CR is end of the command 3 1...

Page 17: ...CR Command list 3 1 19 AT ROLE CR Connection role 3 1 20 AT EKEY CR Enable master identification mechanism 3 1 21 AT SKEY CR Set master identification key 3 1 22 AT SMODE CR Transmission mode 3 1 23...

Page 18: ...odule when the module had entered to the AT command mode 2 Syntax Execution command Response AT CR OK CR LF 3 Example AT CR OK CR LF AT AT CR Error 05 CR LF refer to 3 1 25 3 1 5 ATE 1 Description Thi...

Page 19: ...dcasting or choose three channels for broadcasting The command only change the broadcast command in the broadcast mode and the broadcast will not be change in the connection mode 2 Syntax Write Comman...

Page 20: ...0 3 CR LF OK CR LF AT BC CR Error 04 CR LF refer to 3 1 25 3 1 7 AT BR 1 Description This command is used to change the baud rate of module 2 Syntax Write Command Response AT BR baud rate CR OK CR LF...

Page 21: ...t 6 2016 21 3 Parameter baud rate 0 115200 1 57600 2 38400 3 19200 4 9600 Default 0 4 Example AT BR 1 CR OK CR LF AT BR CR BR 1 CR LF OK CR LF AT BR 7 CR Error 01 CR LF refer to 3 1 25 AT BR CR BR 0 3...

Page 22: ...RSSI CR LF OK CR LF Test Command Response AT CL CR CL ADDRESS RSSI CR LF OK CR LF 3 Parameter mac address 6 Byte MAC address Range 000DE06D0000 000DE06DFFFF 0 not connect to peer device RSSI RSSI Rec...

Page 23: ...R Error 04 CR LF refer to 3 1 25 3 1 9 AT CN 1 Description This command can show how many peer devices had connected into itself 2 Syntax Read Command Response AT CN CR CN amount CR LF OK CR LF Test C...

Page 24: ...3 1 10 AT DI 1 Description This command can show the device information 2 Syntax Read Command Response AT DI CR Manufacturer manufacturer Firmware Version version BLE Version stack version OK CR LF Te...

Page 25: ...R Error 03 CR LF refer to 3 1 25 AT DI CR Error 04 CR LF refer to 3 1 25 3 1 11 AT FC 1 Description This command allows users for recovering module to factory setting and resetting the module after 50...

Page 26: ...show the address of local device 2 Syntax Read Command Response AT LA CR LA mac address CR LF OK CR LF Test Command Response AT LA CR LA ADDRESS CR LF OK CR LF 3 Parameter mac address 6 Byte MAC addre...

Page 27: ...odule will be rebooting that the module received write command in the connection mode 2 Syntax Write Command Response AT PN amount CR OK CR Error 01 CR LF refer to 3 1 25 Read Command Response AT PN C...

Page 28: ...o 3 1 25 3 1 14 AT SFR 1 Description This command can reboot the module The module will be rebooting after 500 ms 2 Syntax Execution Command Response AT SFR CR OK CR LF Test Command Response AT SFR CR...

Page 29: ...ode The master mobile device can use the device name to identify slave Figure 3 2 Screenshot of mobile device APP 2 Syntax Write Command Response AT SDN number CR OK CR Error 01 CR LF refer to 3 1 25...

Page 30: ...01 CR LF refer to 3 1 25 AT SDN ABCD CR Error 01 CR LF refer to 3 1 25 AT SDN CR Error 04 CR LF refer to 3 1 25 3 1 16 AT GID 1 Description This command is used to change the Group ID at the module T...

Page 31: ...sponse AT GID CR GID number CR LF OK CR LF Test Command Response AT GID CR GID 0 99 CR LF OK CR LF 3 Parameter number The number of Group ID Range 0 99 Default 0 4 Example AT GID 1 CR OK CR LF AT GID...

Page 32: ...e module was send the broadcast or connection packet 2 Syntax Write Command Response AT TPL Level CR OK CR Error 01 CR LF refer to 3 1 25 Read Command Response AT TPL CR TPL Level CR LF OK CR LF Test...

Page 33: ...or 01 CR LF refer to 3 1 25 AT TPL CR Error 04 CR LF refer to 3 1 25 3 1 18 AT BCIV 1 Description This command can change the broadcast interval in the broadcast mode 2 Syntax Write Command Response A...

Page 34: ...000 4 Example AT BCIV 50 CR OK CR LF AT BCIV CR BCIV 50 CR LF OK CR LF AT BCIV CR BCIV 20 10000 CR LF OK CR LF AT BCIV 10 CR Error 01 CR LF refer to 3 1 25 AT BCIV 60000 CR Error 01 CR LF refer to 3 1...

Page 35: ...LF ATE CR LF AT BC CR LF AT BR CR LF AT CL CR LF AT CN CR LF AT DI CR LF AT FC CR LF AT LA CR LF AT PN CR LF AT GID CR LF AT SDN CR LF AT SFR CR LF AT TPL CR LF AT BCIV CR LF AT COML CR LF AT ROLE CR...

Page 36: ...F AT COML CR LF AT ROLE CR LF AT EKEY CR LF AT SKEY CR LF AT SMODE CR LF AT BCROLE CR LF OK CR LF 3 1 20 AT ROLE 1 Description This command can change connection role refer to 1 5 1 in the connection...

Page 37: ...meter role The role connection Range 0 1 0 Slave Peripheral 1 Master Central Default 0 4 Example AT ROLE 1 CR OK CR LF AT ROLE CR ROLE 1 CR LF OK CR LF AT ROLE CR ROLE 0 1 CR LF OK CR LF AT ROLE 10 CR...

Page 38: ...refer to 1 6 2 Syntax Write Command Response AT EKEY status CR OK CR Error 01 CR LF refer to 3 1 25 Read Command Response AT EKEY CR EKEY status CR LF OK CR LF Test Command Response AT EKEY CR EKEY 0...

Page 39: ...user enables the Master identification mechanism and the Master will be sending identification packet to the Slave This command can change the identification packet of Master identification mechanism...

Page 40: ...OK CR LF 3 Parameter KEY The key of Master identification mechanism Key length 6 Byte Key value 0x20 0xFF ASCII Default ICPDAS 4 Example AT SKEY ABCDEF CR OK CR LF AT SKEY CR SKEY ABCDEF CR LF OK CR L...

Page 41: ...r connection mode 2 Syntax Write Command Response AT SMODE MODE CR OK CR Error 01 CR LF refer to 3 1 25 Read Command Response AT SMODE CR SMODE MODE CR LF OK CR LF Test Command Response AT SMODE CR SM...

Page 42: ...to 3 1 25 AT SMODE CR Error 04 CR LF refer to 3 1 25 3 1 24 AT BCROLE 1 Description This command can switch the role refer to 1 5 2 in the broadcast mode 2 Syntax Write Command Response AT BCROLE Role...

Page 43: ...meter Role The broadcast role Range 0 1 0 Observer 1 Broadcaster Default 0 4 Example AT BCROLE 1 CR OK CR LF AT BCROLE CR BCROLE 1 CR LF OK CR LF AT BCROLE CR BCROLE 0 1 CR LF OK CR LF AT BCROLE 2 CR...

Page 44: ...ce C2 Illegal master A1 Broadcast mode Header error A2 Broadcast packet is too long A3 Broadcast packet is null A4 This features was not supported in broadcaster role A5 This features was not supporte...

Page 45: ...et is 21 Bytes 2 Syntax Execution Command Response ADV packet CR OK CR LF Error A1 CR LF refer to 3 1 25 Error A2 CR LF refer to 3 1 25 Error A5 CR LF refer to 3 1 25 3 Parameter packet The broadcast...

Page 46: ...command is used to enable broadcast packet transmission 2 Syntax Execution Command Response ADS CR OK CR LF Error A1 CR LF refer to 3 1 25 Error A3 CR LF refer to 3 1 25 Error A5 CR LF refer to 3 1 25...

Page 47: ...Error A1 CR LF refer to 3 1 25 Error A5 CR LF refer to 3 1 25 3 Example ADP CR OK CR LF ADP CR Error A1 CR LF refer to 3 1 25 ADP CR Error A5 CR LF refer to 3 1 25 3 2 4 ADR 1 Description This comman...

Page 48: ...s The mac address of peer device Range 000DE06D0000 000DE06DFFFF Length 6 Bytes RSSI The RSSI of Broadcaster 4 Example ADR CR ADR 000DE06D0001 051 CR LF ADR CR ADR 000DE06D0001 051 CR LF ADR 000DE06D0...

Page 49: ...COM port and baud rate Second it need press Open Port button and the utility would automatically load the configuration If load configuration was success and the result was shown in Figure 4 1 If loa...

Page 50: ...ack to previous step Figure 4 4 Basic parameter setting Step1 The step 1 was established serial wire connection between BLE USB and host PC If the COM port already opened in the main page the COM port...

Page 51: ...can change broadcast parameter Broadcast role role of broadcast mode refer to 1 5 2 and 3 1 24 Broadcast channel change the broadcast channel when the module was in the broadcast mode refer to 3 1 6...

Page 52: ...ter identify mechanism Enable Master Identify Mechanism Enable or disable Master identify mechanism refer to 1 6 and 3 1 21 Identify Key Set the identification packet refer to 1 6 and 3 1 22 Figure 4...

Page 53: ...ration button but it need select a store path before you click Save Configuration button Please click the Upload Setting to upload the configuration into the BLE USB The utility will show an informati...

Page 54: ...covery process is complete If the recovery process is fail BLE USB need re power and do it again Figure 4 12 Recovery success Figure 4 13 Recovery fail 4 3 Test Module on Utility The module test page...

Page 55: ...C The utility will check the transmission mode after you click the Open Port button If the module wasn t in the connection mode the warring message would be shown after you clicked the Open Port butto...

Page 56: ...int to the textbox Figure 4 18 Textbox and Send button Figure 4 19 Print to the textbox End with the String It will add into the end of the string You can select the types you want to add into the end...

Page 57: ...the data to the textbox Figure 4 22 Receive data Module Configuration The utility will load the module configuration when the Open Port had clicked It will print the connection role peer amount group...

Page 58: ...o make a serial connection between BLE USB and host PC The utility will check the broadcast mode after you click the Open Port button If the module wasn t in the broadcast mode the warring message wou...

Page 59: ...th timer interval You also can pause or resume the packet Figure 4 29 Set the packet Figure 4 30 Information message Module Configuration The utility will load the module configuration when the Open P...

Page 60: ...luetooth interface must be compiling with the Bluetooth 4 0 standards If you don t have Bluetooth interface in your computer you need to buy a BLE USB dongle Users just need to execute Firmware Upgrad...

Page 61: ...mission mode The AT command refer to 3 1 20 and 3 1 23 also can do it Figure 4 37 Switch to Slave by utility Figure 4 38 Switch to connection mode by utility Connect the BLE USB by your computer You n...

Page 62: ...y Converter Ver 1 0 Oct 6 2016 62 Figure 4 39 Connect BLE USB with Windows 10 Figure 4 40 Change slave device number by utility Upgrade the firmware Step 1 Open the OTA firmware upgrade page Figure 4...

Page 63: ...on Figure 4 42 OTA step Step 3 Click the Open button Select the firmware path The filename extension of firmware is signed Figure 4 43 Select firmware path Step 4 Click the Upload Firmware button The...

Page 64: ...e address You can use the AT command refer to 3 1 12 to make sure the device address Figure 4 45 Select device address Step 6 The OTA firmware upgrade will be start after click the Start button Figure...

Page 65: ...USB USB to Bluetooth Low Energy Converter Ver 1 0 Oct 6 2016 65 5 Technical support Please contact us if you have any questions about products ICP DAS website http www icpdas com Email service icpdas...

Reviews: