EFR32BG22
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 71: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 70 of 93...
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 91: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 90 of 93 CE...