ti al en fid Co n Ba rr o t BR2262e BR2266e BR2220e Programming Manual July 3, 2020 V1.
Programming Manual VERSION HISTORY REVISION AMENDMENT DATE AUTHOR 1.0 Initial release 2018-03-01 Rui Fan 1.1 Add Central commands 2018-06-01 Rui Fan 1.2 Add channel switch command; 2018-06-29 WenQing Qiu Add disconnect command; ti al Modify connect succeeds indication; Add OTA command and description 1.4 Add set adv. data command: AT+ADVDATA 1.5 Add query adv. data command: 2018-07-02 2018-07-04 Co n fid 1.3 en Remove GPIO disconnect function.
Programming Manual Add HID Commend 2019-06-15 Rui Fan 1.8 Update document formet 2019-07-27 Kaiyue Wu 1.9 For FCC 2020-06-03 Kaiyue Wu Ba rr o t Co n fid en ti al 1.
Programming Manual Contents Ba rr o t Co n fid en ti al 1. FCC ID ........................................................................................................................ 6 2. Introduction .............................................................................................................. 6 2.1 Format ............................................................................................................ 6 2.1.1 Command .................................................
Programming Manual Ba rr o t Co n fid en ti al 7. Company Profile ..................................................................................................... 24 8. Contact Information ............................................................................................... 25 9. Copyright ................................................................................................................
Programming Manual 1. FCC ID nf id en ti al FCC ID: 2AOXV-BR2262E Co Figure 1 FCC warning 2. Introduction This document introduces module’s default setting and AT commands. rr ot BR2262e, BR2266e, BR2220e module is Bluetooth V5.0 single-mode module, and its firmware only supports GATT application. Ba AT command is composed of ASCII characters, and it ends with “\r” (0x0d). Therefore, it should avoid using “\r” (0x0d) in the command. Once “\r” appears, all data following “\r” will be dis
Programming Manual AT+NAME? \r 2) Enquiry AT+? \r Command prefix Command. For example: NAME \r Command suffix 3) Setting en AT+=, [< Parameter2>]\r ti al AT+ Command prefix fid AT+ Co n Command. For example: NAME Parameter 1:at least one parameter < Parameter2> Command suffix rr o t \r Parameter 2:one or more parameters Ba 2.1.2 Indication 1) Result \r\n\r\n \r\n Indication prefix < indication > Indicati
Programming Manual \r\n+:\r\n \r\n Indication prefix Indication, For example: NAME Return value \r\n Indication suffix. ti al 3. Commands&Indications en 3.1 Query Firmware Version AT+GVER\r Indication \r\n \r\n\r\nOK\r\n Parameter version Note N/A fid Command Co n Firmware version. For example: t IVT_BR2262e_00_20180704_r1745 rr o 3.2 Query Config. Version AT+GCFGVER\r Ba Command Indication \r\n \r\n\r\nOK\r\n Para
Programming Manual Indication \r\n+NAME:\r\n\r\nOK\r\n Parameter name Note N/A Device name. Default setting: BR2262e, BR2266e, BR2220e 3.4 Set Local Device Name Command AT+NAME=\r ti al Succeed: \r\nOK\r\n Indication en Fail: \r\nERR:\r\n Device name. Default setting: BR2262e, BR2266e, BR2220e name Note The max length of device name is 20 bytes. Co n fid Parameter 3.5 Query Local Bluetooth Address AT+LBDADDR?\r Indication \r\n+LBDADDR:\r\n\r\nOK\r\n rr o
Programming Manual 3.7 Set Baud Rate Command AT+BAUD=\r Succeed: \r\nOK\r\n Indication Fail: \r\nERR:\r\n baud Note N/A Supported baud rate: 9600、19200、38400、115200、 230400、460800、921600. Default setting: 115200 ti al Parameter en 3.8 Query ADV AT+ADV?\r Indication \r\n+ADV:\r\n\r\nOK\r\n Parameter adv Note N/A t 0:not advertising; 1:advertising rr o 3.9 Set ADV Co n fid Command AT+ADV=\r Ba Command Indication Succeed: \r\nOK\r\n Fail: \r\nERR:
Programming Manual Indication \r\n+ CONNPARAM:\r\n\r\nOK\r\n Advertisement interval. Default setting: 2048. Parameter adv_interval Smaller advertisement interval, easier to be found, but larger power consumption. 3.11 Set Adv Parameters AT+ADVPARAM=\r ti al Command Succeed: \r\nOK\r\n Indication en Fail: \r\nERR:\r\n Advertisement interval. Default setting: 2048. adv_interval Smaller advertisement interval, easier to be found, but larger power consumption.
Programming Manual to change. Querying advertisement data at the first and then add self-defined data after queried data to keep Bluetooth device name unchangeable. fid en ti al Advertisement data format as follows: Data Type Note Value Co n The definition of AD Type and AD Data as follows: Data Type Name Reference for Definition «Flags» Ba rr o 0x01 t Bluetooth Core Specification:Vol. 3, Part C, section 8.1.3 (v2.1 + EDR, 3.0 + HS and 4.0)Vol. 3, Part C, sections 11.1.3 and 18.1 (v4.
Programming Manual Bluetooth Core Specification:Vol. 3, Part C, section 8.1.1 (v2.1 + «Complete List of 32-bit 0x05 EDR, 3.0 + HS and 4.0)Vol. 3, Part C, section 18.2 (v4.0)Core Service Class UUIDs» Specification Supplement, Part A, section 1.1 0x06 «Incomplete List of Bluetooth Core Specification:Vol. 3, Part C, section 8.1.1 (v2.1 + 128-bit Service Class EDR, 3.0 + HS and 4.0)Vol. 3, Part C, sections 11.1.1 and 18.2 UUIDs» (v4.0)Core Specification Supplement, Part A, section 1.
Programming Manual «Simple Pairing 0x0F Core Specification Supplement, Part A, section 1.6 Randomizer R-192» 0x10 «Device ID» Device ID Profile v1.3 or later «Security Manager TK Bluetooth Core Specification:Vol. 3, Part C, sections 11.1.7 and 18.6 Value» (v4.0)Core Specification Supplement, Part A, section 1.8 «Security Manager Out Bluetooth Core Specification:Vol. 3, Part C, sections 11.1.6 and 18.7 of Band Flags» (v4.0)Core Specification Supplement, Part A, section 1.
Programming Manual Bluetooth Core Specification:Core Specification Supplement, Part A, 0x1A «Advertising Interval» section 1.15 «LE Bluetooth Device 0x1B Core Specification Supplement, Part A, section 1.16 Address» 0x1C «LE Role» Core Specification Supplement, Part A, section 1.17 «Simple Pairing Hash 0x1D Core Specification Supplement, Part A, section 1.6 ti al C-256» «Simple Pairing 0x1E Core Specification Supplement, Part A, section 1.
Programming Manual Data» 0x27 «LE Supported Features» Core Specification Supplement, Part A, Section 1.19 «Channel Map Update 0x28 Core Specification Supplement, Part A, Section 1.20 Indication» «PB-ADV» Mesh Profile Specification Section 5.2.1 0x2A «Mesh Message» Mesh Profile Specification Section 3.3.1 0x2B «Mesh Beacon» Mesh Profile Specification Section 3.9 0x3D «3D Information Data» 3D Synchronization Profile, v1.0 or later fid en ti al 0x29 Bluetooth Core Specification:Vol.
Programming Manual Parameter data Data length less than 31 bytes Note Refer to:AT+ADVDATA=\r 3.16 Query Connect Parameters Command AT+CONNPARAM?\r \r\n+ CONNPARAM:,,,\r\n\r\nOK\r\n ti al Indication Default setting: en intervalMin, 24 intervalMax, 48 connTimeout, 400 fid connLatency, 0 rr o Ba Paramete r t Co n Refer to settings defined in Bluetooth core specifications: 17 / 25
Programming Manual 3.17 Set Connect Parameters Indication AT+CONNPARAM=,,,\r ti al Command Succeed:\r\nOK\r\n en Fail:\r\nERR:\r\n intervalMin, 24 intervalMax, 48 Co n connLatency, 0 fid Default setting: connTimeout, 400 Ba Paramete r rr o t Refer to settings defined in Bluetooth core specifications: 18 / 25
ti al Programming Manual 3.18 Scan BLE Devices AT+SCAN=\r en Command fid Succeed: \r\Ndev_addr, addr_type, rssi Indication Co n \r\nUUID:dev_uuid \r\nNAME:dev_name \r\nMANU:manu_data t Fail: rr o \r\nERR:\r\n Scan 1: start scanning;0:stop scanning Ba Parameter Note UUID, NAME, MANU are only shown when they are included in advertisement package. 3.19 Set Target Service Command Indication AT+TARGETUUID=< service_uuid >\r Succeed:\r\nOK\r\n Fail:\r\nERR:err_code Parameter
Programming Manual 128bits service UUID, choose its UUID’s 12~13bytes. 16 bits:FF00 AT+TARGETUUID=FF00\r 128 bits: 49535343-FE7D-4AE5-8FA9-9FAFD205E455 AT+TARGETUUID=5343\r 3.20 Connect AT+CONN=< bdaddr >\r ti al Command Succeed: Fail: bdaddr Connected device mac address Only supports the specified Service (set by AT+TARGETUUID), requires the service to have at least two Characteristic, one is Notify in the attribute, and one attribute contains Write or Write Without Response.
Programming Manual Channel ID, 8: passive connection (connect in) channel Parameter cid 0-7: active connection (connect out) channel Channel ID is reported when the connection is established. 3.22 Channel Switch AT>< cid >\r ti al Command Succeed: en \r\nOK\r\n Indication \r\nERR:err_code Channel ID, fid Fail: Parameter cid Co n 9: AT commands channel 8: passive connection (connect in) channel 0-7: active connection (connect out) channel rr o t Channel ID is reported when the connection
Programming Manual Indication Command indication |--bit0: Whether the Left Control button is pressed, press 1 |--bit1: Whether the Left Shift button is pressed, press 1 |--bit2: Whether the Left Alt button is pressed, press 1 |--bit3: Whether the Left GUI(Windows key) button is pressed, FuncKey press 1 |--bit4: Whether the Right Control button is pressed, press 1 Parameter |--bit5: Whether the Right Shift button is pressed, press 1 |--bit6: Whether the Right Alt button is pressed, press 1 Note HID bu
Programming Manual 4. Indication 4.1 Ready Status \r\n IM_READY\r\n Parameter N/A Note Initialization completes, The module is in working mode where GATT can be connected. ti al Indication \r\n IM_CONN:\r\n fid Indication en 4.2 Connect Succeed Channel ID, 8: passive connection (connect in) channel cid 0-7: active connection (connect out) channel Co n Parameter N/A rr o Note t Channel ID is reported when the connection is established. Ba 4.3 Disconnect Indication \r\n IM_DISC:[
Programming Manual 5. PIO Control PB0 always outputs low level when the module is in working status. PB1 periodically outputs 500ms high level and 500ms low level during advertising; it always outputs low level when connected. Pulling up PA7 to make module enter sleep mode (module cannot receive data via UART); Pulling down PA7 and module is unable to enter sleep mode. ti al 6. Bluetooth Knowledge 6.1 Service 6.
Programming Manual turn-key solutions for IOT, Automotive and Wireless audio applications. Barrot devotes itself to being the most reliable short distance wireless technologies’ solution provider in the world. 8. Contact Information ti al Address: 1st Floor,B1-1 Building,No.99 Shujugu zhong road, Xiantao Street, Yubei District, Chongqing, China. Telephone: 010-82702580 Fax: 010-82898219 Email: bluetooth@barrot.com.cn 9.