background image

                             

EFR32BG22

 

www.szrfstar.com

                                                                                                                                                  V1.6 - Jun., 2022

 

Shenzhen RF-star Technology Co., Ltd.                                                                                                                   

Page  60  of  93

                                             

 

AT+STATUS?

 

Function

 

Query the current display status of the device.

 

Example

 

AT+STATUS?

 

Return Value

 

AT+STATUS=0

 

OK

 

 

AT+STATUS=

 

Function

 

Set the display status of the device.

 

Example

 

AT+STATUS=0

 

Return Value

 

OK

 

Remark

 

Disable device status display.

 

Take effect immediately after setting, cannot be saved after power off.

 

 

User Authentication

 

AT+AUTH?

 

Function

 

Query the parameter range of this command.

 

Example

 

AT+AUTH=?

 

Return Value

 

AT+AUTH=<0,1>,<******>,<1~65535>

 

OK

 

Remark

 

Query parameter list and value range

 

Parameter 1

: Enable/disable user authentication function.

 

Parameter 2

: Key, up to 16 bytes of any visible character.

 

This parameter cannot be empty when 

authentication is enabled.

 

Parameter 3

: Authentication valid time (in s), 15 s is by default.

 

Remark:  Take  effect  after  reboot.  The  slave  has  disconnected  automatically  after  the  master 

authentication key is not sent within the valid time. (Data  transmission characteristic value sends 

the authentication key.)

 

 

AT+AUTH?

 

Function

 

Query the current status of the user authentication function.

 

Example

 

AT+AUTH?

 

Return Value

 

AT+AUTH=1,12GH**_)),15

 

OK

 

Remark

 

Parameter 1

: 1, enable user authentication function.

 

Содержание EFR32BG22

Страница 1: ...EFR32BG22 Bluetooth Low Energy 5 0 Master Slave Module and Protocol Version V1 7 Shenzhen RF star Technology Co Ltd Jun 8th 2022...

Страница 2: ...roadcast response packets in observer mode Add Long Range broadcast Add the command to enter the authentication key for the master role Add sleep command Add the PHY setting commands for the master ro...

Страница 3: ...the broadcast response packet data by AT command Add FCC and CE certificates 2021 12 30 V1 4 Change the storage mode of the broadcast response packet to power off save Optimize the AT SCAN to scan th...

Страница 4: ...ax voltage specification of the RESET pin Add the reference design of BG22Bx and BG22Cx modules Note 1 The document will be optimized and updated from time to time Before using this document please ma...

Страница 5: ...7 Device Status Specifications 11 1 8 Multi Connection 12 2 Package and Pin Assignment 14 2 1 RF BM Ax I 14 2 2 RF BM Bx 19 2 3 RF BM Cx 22 3 UART Transparent Transmission Protocol Bridge Mode 25 4 B...

Страница 6: ...Data 37 User defined Broadcast Response Packet Data 37 Long Range Broadcast 38 Extended Broadcast Big Broadcast Packet 39 Beacon 40 Scan as a Master 41 PHY of Master Role 42 Scan and Print Out Slave D...

Страница 7: ...Paired Device 65 Sleep Mode 65 Enable Disable Watchdog 67 Restart Device 67 Reset Device 67 Query Firmware Version 68 6 Transparent Transmission Test 69 6 1 Test by APP Android 69 6 2 Test by PC End 7...

Страница 8: ...Bit Error Rate 86 9 6 Electrostatics Discharge Warnings 86 9 7 Soldering and Reflow Condition 86 10 Contact Us 88 Appendix A 89 FCC 89 CE 90 Appendix B Power Consumption Test Screenshot 91 1 Sleep Mo...

Страница 9: ...if the high speed transparent transmission is carried out at this time packet loss or device jamming is very easy to occur 1 2 Features 1 Easy to use no need for any application experience of Bluetoot...

Страница 10: ...500 kbps 18 Support user defined broadcast data the longest user defined length is 26 bytes 19 Support extended broadcast packets a maximum of 251 bytes of an extended broadcast packet can be user def...

Страница 11: ...only can be switched by sending commands through the mobile APP 1 4 Default Configurations in Slave Mode 1 Device name RFstar_XXXX XXXX is the last two bytes of the MAC address 2 Broadcast interval 20...

Страница 12: ...he three IOs PC3 PC4 PC5 of the RF BM BG22Ax and RF BM BG22Bx module update in real time The pull up is at a high level by default TYPE 0x09 the device name RFstar_E679 1 7 Device Status Specification...

Страница 13: ...der master slave mode 7 slave devices can be connected concurrently and it also can be connected as a slave device by another master device at the same time 2 If AT CONNECT command failed to connect t...

Страница 14: ...on The source of multi connection data transmission is more complicated such as the master slave the data may come from the following 4 devices so the data source should be included in the data packet...

Страница 15: ...als those modules are pin to pin compatible with each other as well Table 2 Module Series of RF BM BG22Ax Model Chip Model Max CPU Speed TX Power FLASH RAM Protocol BG22A1 EFR32BG22C112F352GM32 C 38 4...

Страница 16: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 15 of 93 RF BM BG22A3 RF BM BG22A3I Figure 2 Module Photos of RF BM BG22Ax I RF BM BG22Ax...

Страница 17: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 16 of 93 RF BM BG22AxI Figure 3 PCB Footprint of RF BM BG22Ax I Figure 4 Pin Assignment of RF BM BG22Ax I...

Страница 18: ...be higher and the serial port may work unstably 7 PA04 RTS The module output signal standard hardware flow control Require To Send When it is at a high level the module serial port is busy and the MC...

Страница 19: ...packet in real time See details in Description of default broadcast data 22 PC04 I Input status monitoring the tatus will update in the broadcast packet in real time See details in Description of def...

Страница 20: ...2 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 19 of 93 2 2 RF BM Bx RF BM BG22Bx includes RF BM BG22B1 Figure 5 Module Photos of RF BM BG22B1 Figure 6 PCB Footprint of RF BM...

Страница 21: ...er supply 1 8V 6 PA03 RESTORE All parameters will be reset to factory settings after this pin is set low for 5 s 7 PA04 Status indicator Slave role including Beacon connection status indicator at a lo...

Страница 22: ...s busy and the module will not send data to the MCU serial port When it is at a low level the module will send data to the MCU serial port Remark It is best not to leave this pin floating otherwise th...

Страница 23: ...2 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 22 of 93 2 3 RF BM Cx RF BM BG22Cx includes RF BM BG22C3 Figure 8 Module Photos of RF BM BG22C3 Figure 9 PCB Footprint of RF BM...

Страница 24: ...module serial port 4 PA03 CTS The module input signal standard hardware flow control Clear To Send When it is at a high level the MCU serial port is busy and the module will not send data to the MCU s...

Страница 25: ...RESTORE All parameters will be reset to factory settings after this pin is set low for 5 s 11 PC03 12 PB01 Status indicator Master role connection status indicator at a low level during connection LE...

Страница 26: ...lt in other modes except for beacon mode If the serial port needs to be closed please use the command AT SLEEP 0 3 When the module serial port receives data and transmits it to the mobile device there...

Страница 27: ...Transmitting UUID TX Characteristic Characteristics UUID 6E400003B5A3F393E0A9E50E24DCCA9E Executable Operations NOTIFY Remarks The serial port input is transmitted to the BLE output and the data inpu...

Страница 28: ...hich indicates that this firmware is suitable for the corresponding model of the module Firmware Revision Characteristics UUID 0x2A26 Executable Operations READ Remarks Module firmware version reading...

Страница 29: ...s undefined Peripheral Preferred Connection Parameters Characteristics UUID 0x2A04 Executable operations READ Remarks The 1st 2nd bytes are the minimum coordinated connection interval The 3rd 4th byte...

Страница 30: ...is 115200 8 bit data bit 1 stop bit no parity 3 Not every command has the above four types of commands 4 The AT command must be capitalized It must end with a carriage return and line feed CRLF No nee...

Страница 31: ...set the user defined broadcast data Take effect immediately can be saved after power off AT RSP_DATA Query set the user defined broadcast response packet data Take effect immediately can be saved aft...

Страница 32: ...power off AT SERVICE Query set the slave UUID Take effect after reboot can be saved after power off AT UUID_SCAN Enable disable the master UUID configuration function Take effect immediately can be sa...

Страница 33: ...effective in master mode and master slave mode Take effect immediately AT PAIR_LIST Query the pairing list AT PAIR_DEL Delete the paired device Take effect immediately can be saved after power off AT...

Страница 34: ...mission data The data can be transmitted by AT SEND Exit AT Command Mode AT EXIT Function Exit AT command mode and switch to transparent transmission mode Example AT EXIT Return Value OK Remark Device...

Страница 35: ...mple AT MAC Return Value AT MAC 8A E5 84 7A E7 C9 OK Remark MAC address is in hexadecimal AT MAC Function Set the device MAC address Example AT MAC F1 F2 F3 F4 F5 F6 Return Value OK Remark The new MAC...

Страница 36: ...effect after reboot can be saved after power off Switching roles will cause the list of paired devices and auto reconnect devices to be cleared TX Power AT POWER Function Query the parameter range of...

Страница 37: ...et broadcast mode 0 Non connectable 1 Connectable Parameter 3 Set broadcast interval in ms Range 20 ms 10240 ms the default is 200 ms AT ADS Function Query the broadcast parameters Example AT ADS Retu...

Страница 38: ...Remark 1 Parameter 1 0 means that the input broadcast data is in ASCII format 1 means that the input broadcast data is in HEX format 2 The data is placed in the user defined zone and the user can use...

Страница 39: ...ion of the broadcast name the broadcast name command will become invalid after setting the response packet data If the broadcast name is required the user needs to add it to the user defined data Long...

Страница 40: ...defined extended broadcast packet Example AT ADV_EXT 120 5000 Return Value OK INPUT_ADV_EXT 120 Remark Parameter 1 The extended broadcast data length range 1 byte 251 bytes Parameter 2 Broadcast data...

Страница 41: ...nd Example AT BEACON Return Value AT BEACON 0 FFFF 0 FFFF 0 FFFF 90 4 0 FF 0 1 OK Remark Parameter 1 Company ID 0x4C00 is by default Parameter 2 Major UUID 0x0708 is by default Parameter 3 Minor UUID...

Страница 42: ...e 0 disable 1 is by default Only effective in master mode and master slave mode Parameter 4 It means the time interval of scanning the reconnection device list after enabling the reconnection function...

Страница 43: ...CAN Return Value OK 0 53 60 52 A4 3E 66 67 RF STAR SMMT 1 43 D5 CF 24 60 94 58 RF STAR ABCD 2 21 DD 7C E3 99 B5 71 RFstar_99B5 3 5D 61 9B 78 2E 5E 83 RFstar_2E5E Remark Scan immediately stop scanning...

Страница 44: ...DED PHY it can only scan the slave devices under the same LE CODED PHY and can only connect to the device under LE CODED PHY Take effect immediately after setting can be saved after power off Note RF...

Страница 45: ...4 F5 F6 Return Value OK F1 F2 F3 F4 F5 F6 CONNECTED 1 Remark Connect to the device with the specified MAC address Parameter 1 is omitted only need to fill in the MAC address to be connected The connec...

Страница 46: ...gether For example AT TTM_HANDLE 1 means that the master role transparently transmits the data value to the device whose handle value is 1 and MAC address is FF 1C 2B D1 4C BD Disconnection AT DISCONN...

Страница 47: ...ic reconnection function 1 Enable automatic reconnection function Parameter 2 Optional parameter Add the device MAC address to the automatic reconnection list If this parameter is set the automatic re...

Страница 48: ...LEEP 0 to disable the BLE function and then use the command AT SLEEP 1 to enable the BLE function 2 After using the command AT SLEEP 0 to disable the BLE function the device will not automatically rec...

Страница 49: ...y effective in master mode and master slave mode Example 1 AT DEV_DEL FF 1C 2B D1 4C BD Return Value OK Remark Delete the device with the MAC address of FF 1C 2B D1 4C BD Query the stored devices by A...

Страница 50: ...when the Bluetooth module is working as a master 3 Due to system problems with mobile phones the minimum connection interval can only be 20 ms 4 After the connection interval takes effect the connecti...

Страница 51: ...tion Query the parameter range of this command Example AT SERVICE Return Value AT SERVICE 0 1 0 FFFF 0 FFFF 0 FFFF 0 FFFF 0 FF OK Remark Parameter 1 128 bit UUID function 0 16 bit 1 128 bit take effec...

Страница 52: ...be filled with 0 Take effect after reboot can be saved after power off Enable Disable UUID Configuration Function of Master Role AT UUID_SCAN Function Query the parameter range of this command Exampl...

Страница 53: ...ure UUID of Master Role AT TRX_CHAN Function Set the user defined UUID channel for sending and receiving Only effective in master mode and master slave mode Example AT TRX_CHAN 1 8 7 0 Return Value OK...

Страница 54: ...master reads data channels with Read attribute Send Data by AT Command AT SEND Function Query the parameter range of this command Example AT SEND Return Value AT SEND 1 8 1 3328 1 5000 OK Remark Para...

Страница 55: ...rk Parameter 1 Observer function status 0 Disable 1 Enable the normal observer function 2 Enable scanning extended broadcast packets Parameter 2 Filter parameter range 0 15 It can enable the observer...

Страница 56: ...t of the device will be longer because the efficiency of the observer itself in obtaining the response packet is not high and the response packets cannot be obtained every time AT OBSERVER Function Di...

Страница 57: ...filtering function and parameters of 2 6 are considered invalid PHY Rate AT PHY Function Query the parameter range of this command Example AT PHY Return Value AT PHY 1 15 OK Remark 1 1M PHY 2 2M PHY 4...

Страница 58: ...30400 256 000 460800 500000 512000 921600 OK Remark The default Baud rate is 115200 bps After actual verification under the conditions of the maximum MTU of the 2M physical layer and the minimum conne...

Страница 59: ...the setting the module will judge that the current serial port input data frame has been completed and will forward the frame data after the timeout ends When parameter 1 is set to a value non zero a...

Страница 60: ...us Example AT ECHO Return Value AT ECHO 0 OK Remark 0 Disable echo Disable by default 1 Enable echo AT ECHO Function Set the serial port echo Example AT ECHO 1 Return Value OK Remark Enable echo Take...

Страница 61: ...lue AT AUTH 0 1 1 65535 OK Remark Query parameter list and value range Parameter 1 Enable disable user authentication function Parameter 2 Key up to 16 bytes of any visible character This parameter ca...

Страница 62: ...r authentication key on the master end Example AT AUTH_KEY 1 123456 Return Value OK Remark Parameter 1 The connection handle value of the slave role Parameter 2 When the authentication function is ena...

Страница 63: ...r off Pairing Function of Master Role AT MASTER_PAIR Function Query the parameter range of this command Example AT MASTER_PAIR Return Value AT MASTER_PAIR 0 1 2 3 4 OK Remark According to different pa...

Страница 64: ...role by default Corresponding pairing method C Initiator displays Responder inputs In this mode the master device will receive the pairing key request from the slave device Initiator at this time the...

Страница 65: ...the master role to Display Only Take effect after reboot can be saved after power off Enter Pairing Passkey of Master Role AT PASSKEY Function Enter the passkey when the master role is paired with th...

Страница 66: ...e 1 AT PAIR_DEL 0 Return Value OK Remark Delete the device with the serial number 0 in the pairing list The device under connection will be disconnected after deletion The pairing list serial number c...

Страница 67: ...connected and the broadcast will be disabled If the device is under broadcasting the broadcast will be disabled When the device is in the master role in the master and master slave mode and the curren...

Страница 68: ...n Value AT WDOG 0 OK Remark 0 Disable Watchdog 1 Enable Watchdog Enabled by default AT WDOG Function Set the watchdog function Example AT WDOG 0 Return Value OK Remark Disable the watchdog function th...

Страница 69: ...ar Technology Co Ltd Page 68 of 93 Query Firmware Version AT VERSION Function Query the device firmware version Example AT VERSION Return Value AT VERSION RF_BM_BG22A3_V0 2 1_2021 01 21 OK Remark Quer...

Страница 70: ...mber and baud rate the initial baud rate of the module is 115200 the default baud rate of the module is 115200 the data bit is 8 the parity bit is none and the stop bit is 1 Open the nRF Connect to se...

Страница 71: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 70 of 93...

Страница 72: ...C End Preparation before Use 1 Hardware preparation PC with standard Type A USB interface RF DG 40A nRF52840 dongle RF BM BG22Xx module 2 Software preparation nRF Connect for Desktop Download address...

Страница 73: ...n nRF Connect for Desktop select Bluetooth Low Energy if there is no Open option you need to click Install first as shown below 2 After installation click the Open button and the operation interface w...

Страница 74: ...ponding slave device and clicking Connect The default factory name is RFstar_XXXX the following example uses the RF BM BG22A1 module as the slave device referred to as BG22A1 as shown in the figure be...

Страница 75: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 74 of 93...

Страница 76: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 75 of 93...

Страница 77: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 76 of 93...

Страница 78: ...are as follows method writeValue forCharacteristic withResponse param data The value to write param characteristic The characteristic on which to perform the write operation param type The type of wr...

Страница 79: ...Characteristic CBCharacteristic characteristic Note to open a characteristic notify enable switch self setNotifyValue YES forCharacteristic c open notify enable switch self setNotifyValue NO forCharac...

Страница 80: ...the MCU to notify the MCU that it can send data When MCU can receive data MCU should pull the RTS signal low CTS for the module to inform the module that it can send data The demo code is as follows...

Страница 81: ...exposed and preferably vertically upward When the module is installed inside of the case a high quality antenna extension wire can be used to extend the antenna to the outside of the case 2 The antenn...

Страница 82: ...se the external antenna by the ANT pin pls disconnect the R1 The location of R1 is shown in the figure below Figure 12 Antenna Output Mode Change of RF BM BG22A1 2 RF BM BG22A3I has two antenna output...

Страница 83: ...F traces Figure 14 Reference Design of the External Antenna Figure 15 Reference Design of the External Antenna Traces 2 The RF trace width and copper clad spacing can be calculated by SI9000 software...

Страница 84: ...G22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 83 of 93 9 3 Reference Design 9 3 1 RF BM BG22Ax I The reference design is as follows Figure 17 Reference Design of RF BM BG2...

Страница 85: ...henzhen RF star Technology Co Ltd Page 84 of 93 9 3 2 RF BM BG22Bx The reference design is as follows Figure 18 Reference Design of RF BM BG22Bx 9 3 3 RF BM BG22Cx The reference design is as follows F...

Страница 86: ...routed in the Bottom Layer all copper is well grounded 5 Assuming that the module is soldered or placed in the Top Layer it is also wrong to randomly route the Bottom Layer or other layers which will...

Страница 87: ...umidity during installation and application If there is no special demand it is not recommended to use at too high or too low temperature 9 5 3 High Bit Error Rate 1 There are co channel signal interf...

Страница 88: ...Sn63 Pb37 Sn96 5 Ag3 0 Cu0 5 Min Preheating Temperature Tmin 100 150 Max Preheating Temperature Tmax 150 200 Preheating Time Tmin to Tmax t1 60 s 120 s 60 s 120 s Average Ascend Rate Tmax to Tp Max 3...

Страница 89: ...henzhen HQ Add C601 Skyworth Building High tech Park Nanshan District Shenzhen Guangdong China 518057 Tel 86 755 3695 3756 Chengdu Branch Add N2 1604 Global Center North No 1700 Tianfu Avenue Hi Tech...

Страница 90: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 89 of 93 Appendix A FCC RF BM BG22A1 RF BM BG22B1...

Страница 91: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 90 of 93 CE...

Страница 92: ...G22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 91 of 93 Appendix B Power Consumption Test Screenshot 1 Sleep Mode 3 23 A 2 Broadcast Mode 2 1 0 dBm 200 ms broadcast cycle 5...

Страница 93: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 92 of 93 2 2 0 dBm 500 ms broadcast cycle 24 13 A 2 3 0 dBm 1000 ms broadcast cycle 15 12 A...

Страница 94: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 93 of 93 3 Connection Mode 3 1 0 dBm 30 ms connection interval 146 74 A 3 2 0 dBm 100 ms connection interval 34 68 A...

Отзывы: