background image

                             

EFR32BG22

 

www.szrfstar.com

                                                                                                                                                  V1.6 - Jun., 2022

 

Shenzhen RF-star Technology Co., Ltd.                                                                                                                   

Page  55  of  93

                                             

 

Parameter 7

: The data field that needs to be filtered. The bit 4 of parameter 4 should be set as 1. 

The  length  is  1  ~  16  bytes.  The  specified  data  contained  in  the  broadcast  packet  or  broadcast 

response packet can be filtered.

 

 

In the observer mode, the broadcasts from the surrounding slave devices will be monitored, but not 

every broadcast from the slave device can be monitored.

 

For example, if a device broadcasts in a 

period of 1 s, it may take 2 to 3 times broadcasts to scan the broadcast device for once.

 

This monitor loss event  is  varying  to some degree  from the number of surrounding devices and 

signal strength (RSSI). At the same time, the device will not receive broadcast packets, when the 

observer itself switches channels at the end of each scanning interval. 

 

If the device that satisfies the filtering conditions is in the broadcast response packet, the time to 

scan  the  broadcast  response  packet  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

 

Disable/enable the observer function to scan and print out the slave devices.

 

Only effective in master mode and master-slave mode.

 

Example 1

 

AT+OBSERVER=1,20,,,-60,,020106

 

Return Value

 

OK

 

MAC:FA:8D:0D:27:50:C6,

 

RSSI:-50

 

ADV/RSP:0201060C095246737461725F3838383838

 

Remark

 

The normal observer function is enabled, and the slave device information is always scanned and 

printed out after it is enabled. And the scan filter function is enabled too. That is, only devices whose 

RSSI value is greater than -60 dBm and broadcast name with "020106" can be scanned.

 

If you only would like to filter the devices with “RF” character in the broadcast name, only need to 

change  the  “020106”  to  “5246”.  Wherein  “5246”  is  the  hexadecimal  format  for ASCII  character   

“RF”. Or, you can change the parameter 4 to do the filter.

 

The command "AT+OBSERVER=0" can be sent to stop scanning. Wherein, "ADV" is the broadcast 

packet data, and "RSP" is the broadcast response packet.

 

Example 2

 

AT+OBSERVER=2

 

Return Value

 

OK

 

Primary PHY:FA:8D:0D:27:50:C6,

 

Summary of Contents for EFR32BG22

Page 1: ...EFR32BG22 Bluetooth Low Energy 5 0 Master Slave Module and Protocol Version V1 7 Shenzhen RF star Technology Co Ltd Jun 8th 2022...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 71: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 70 of 93...

Page 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...

Page 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...

Page 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...

Page 75: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 74 of 93...

Page 76: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 75 of 93...

Page 77: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 76 of 93...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 91: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 90 of 93 CE...

Page 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...

Page 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...

Page 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...

Reviews: