当前位置:网站首页>Beacon realizes asset management and indoor positioning based on 5.2 ultra-low power Bluetooth module efr32 (bg22ax)
Beacon realizes asset management and indoor positioning based on 5.2 ultra-low power Bluetooth module efr32 (bg22ax)
2022-06-25 23:27:00 【Guistar~~】
Introduction to relevant knowledge
1.beacon
- Beacon It is based on low-power Bluetooth protocol radio broadcast agreement ,
- Equipped with low power Bluetooth (BLE) Communication function of the device use BLE Technology Operative direction Around periodically send their own unique ID
- A Bluetooth protocol based on low power consumption Broadcast protocol equipment ( Slave )
Beacon The main parameters include :
- uuid
- major
- minor
- company ID
2. bluetooth Beacon working principle
- Beacon Will broadcast a packet to the surrounding at regular intervals ,
- As an independent Bluetooth host ( Like mobile phone. , Gateway, etc. ), It can scan beacon Device specific ID, So as to judge the surrounding beacon Equipment information .
3. Two applications :
1. Label movement , Collect data at fixed position .
- Asset location tracking and management ( Valuables tracking )
- Personnel management
explain : Gateway in fixed position , The main function is to scan the surrounding beacon , It is used to judge whether the beacon is still near the gateway or to count the beacons in the location .
2. The label is fixed , The staff can scan the attachments with their mobile phones , Get Bluetooth broadcast information :
- Clock in
- Near field information push
- Indoor route navigation planning and positioning
explain : Place in a fixed position beacon The base station , Broadcast specific messages , The mobile phone has reached the scanning position of Bluetooth , Can open app Read beacon The information realizes the location determination or takes over the characteristic message .
4. Based on xinchida BG22Ax Explain the principle :
Principle explanation :
- The observer can scan all nearby beacon equipment , It can be judged whether the equipment is nearby
- The observer equipment is fixed , You can roughly judge this beacon Approximate location of the equipment
- Set up beacon The transmitting power of the equipment can be reduced or expanded
Xinchida does beacon The advantages of the scheme
BG22A Series modules Is based on Silicon labs company EFR32BG22 Series of chips developed by low-power Bluetooth (BLE) Rf module .
The main features :
- Ultra-low power consumption Beacon needs low power consumption
- use cortex-M33 framework , be better than M4,M3 kernel .
- Multi mode switching , Lord , from ,Beacon.
- Observer mode Sure scanning Surrounding Bluetooth device information ( Include Beacon equipment You can also scan )
5. Environmental preparation
5.1 Hardware environment
- BT02
Short circuit the pins in the figure with jump caps
5.2. Software preparation
- QCOM Serial assistant
- BG22Ax Communication module test AT Command script (BG22Ax.ini)
- NRF nRF Connect perhaps BLE Debugging treasure
Download address : Downloading data
After downloading QCOM Import (BG22Ax.ini) Test the script as follows :
3.3. Document preparation
This document is from the official of Sinochem ! When reading this tutorial , About AT Please refer to this document for a detailed description of the instructions !
6. Beacon Module settings , Send the following command configuration in sequence
+++
Instructions :+++
function : Get into AT Instructions , Need to quit AT Command mode can be switched to transparent mode
Example :
+++
OK
AT+NAME=
Instructions :AT+NAME=LIAI_1641210825
function : Set the Bluetooth broadcast name
Example :
AT+NAME=LIAI_1641210825
OK
AT+ROLE=
Instructions :AT+ROLE=3
function : Set the mode , I'm going to set it to beacon Pattern
Example :
AT+ROLE=3
OK
AT+ADS=1,0,200
Instructions :AT+ADS=1,0,2000
function : Set the mode , I'm going to set it to beacon Pattern , Can't connect to broadcast , Broadcast cycle 200ms
- Parameters 1: Device broadcast status settings (0, Turn off ;1, open )
- Parameters 2: Device broadcast mode setting (0, Can't connect to broadcast ;1, Can be connected to the broadcast )
- Parameters 3: Equipment broadcast interval setting ( Unit millisecond , Range 20~10240)
Example :
AT+ADS=1,0,200
OK
AT+BEACON=4C00,0303,0909,D0,DFDF0102030405060708090A0B0CFDFD
Instructions :AT+BEACON=4C00,0303,0909,D0,DFDF0102030405060708090A0B0CFDFD
function : Set up beacon
- Parameters 1:CompanyID, The default is 0x4C00
- Parameters 2:MajorUUID, The default is 0x0708
- Parameters 3:MinorUUID, The default is 0x0506
- Parameters 4:1 Meter distance reference rssi, The default is -48 Parameters
- 5: Customize UUID data , The default is 0x0112233445566778899AABBCCDDEEFF0
Example :
AT+BEACON=4C00,0303,0909,D0,DFDF0102030405060708090A0B0CFDFD
OK
Open the phone to see the configuration
!!: This was previously set as unconnectable , The module is set to beacon The serial port will close automatically
7. Observer module settings , Send the following command configuration in sequence
+++
Instructions :+++
function : Get into AT Instructions , Need to quit AT Command mode can be switched to transparent mode
Example :
+++
OK
AT+ROLE=1
Instructions :AT+ROLE=1
function : Set the current main mode role of the device
Example :
AT+ROLE=1
OK
AT+RESTART
Instructions :AT+RESTART
function : After switching mode, restart to take effect
Example :
AT+ROLE=1
OK
DEVICE START
AT+OBSERVER=1
Instructions :AT+OBSERVER=1
function : Turn on / Turn off the observer function to scan and print slave device information
Example :
AT+OBSERVER=1
Start printing around Bluetooth devices
Serial port assistant outputs data of surrounding Bluetooth devices
8. Find the previously set beacon Device and parse
For easy search , I follow mac Address search
How to parse data :
MAC:80:4B:50:3C:66:98,RSSI:-42,Adv:0201061AFF4C000215DFDF0102030405060708090A0B0CFDFD030309090000
If you need Bluetooth (BLE) module
Can contact : Shenzhen xinchida Vivi
WeChat / Telephone ::13510534054
More information plus v Or the official website :
https://www.szrfstar.com/
边栏推荐
- Unity的Ping類使用
- UE4\UE5 蓝图节点Delay与Retriggerable Delay的使用与区别
- 如何用jmeter做接口测试
- 电路模块分析练习5(电源)
- 【opencv450-samples】读取图像路径列表并保持比例显示
- Problem recording and thinking
- LM small programmable controller software (based on CoDeSys) note XVII: PTO pulse function block
- Unity technical manual - color in life cycle coloroverlifetime-- speed color colorbyspeed
- [modulebuilder] GP service realizes the intersection selection of two layers in SDE
- 牛客小白月赛52--E 分组求对数和(二分)
猜你喜欢
问题记录与思考
Live800在线客服系统:跨越时空做生意,从每次互动开始
How to use JMeter for interface testing
ES6 learning -- let
Problem recording and thinking
LM small programmable controller software (based on CoDeSys) note XVII: PTO pulse function block
No absurd tea applet - rule change
String deformation (string case switching and realization)
[email protected]@COLLATION_CONNECTION */"/>
.sql数据库导入错误:/*!40101 SET @[email protected]@COLLATION_CONNECTION */
leetcode_ 136_ A number that appears only once
随机推荐
MySQL queries data by day, week, month, quarter and year
提问的智慧?如何提问?
1281_ FreeRTOS_ Implementation analysis of vtaskdelayuntil
Glory launched the points mall to support the exchange of various glory products
Oracle - getting started
论文笔记: 多标签学习 MSWL
【EOSIO】EOS/WAX签名错误 is_canonical( c ): signature is not canonical 问题
22 years of a doctor in Huawei
判断预约时间是否已经过期
头歌 第3关:使用线程锁(Lock)实现线程同步
ES6 - numerical extension and object extension
Unity technical manual - getKey and getaxis and getbutton
To solve the incompatibility between VM and device/credential guard, an effective solution for the whole network
ES6 -- formal parameter setting initial value, extension operator, iterator, and generating function
Live800 online customer service system: do business across time and space, starting from each interaction
Why is BeanUtils not recommended?
Kubernetes cluster construction of multiple ECS
How to use JMeter for interface testing
Multi modal data can also be Mae? Berkeley & Google proposed m3ae to conduct Mae on image and text data! The optimal masking rate can reach 75%, significantly higher than 15% of Bert
Pycharm student's qualification expires, prompting no suitable licenses associated with account solution