当前位置:网站首页>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

  1. Beacon It is based on low-power Bluetooth protocol radio broadcast agreement ,
  2. Equipped with low power Bluetooth (BLE) Communication function of the device use BLE Technology Operative direction   Around periodically send their own unique ID
  3. 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

  1. Beacon Will broadcast a packet to the surrounding at regular intervals ,
  2. 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 .

BLE
BLE
BLE
beacon 1
gateway
Cloud platform processing
beacon 2
beacon 3

     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 .

radio broadcast
beacon The base station
Mobile reception ,

4. Based on xinchida BG22Ax Explain the principle :

 
 Insert picture description here
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
    bt02

Short circuit the pins in the figure with jump caps

 Insert picture description here

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

uuidapp Scanned

!!: 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

 Insert picture description here

8. Find the previously set beacon Device and parse

 

      For easy search , I follow mac Address search

 Insert picture description here
 Insert picture description here

      How to parse data :
MAC:80:4B:50:3C:66:98,RSSI:-42,Adv:0201061AFF4C000215DFDF0102030405060708090A0B0CFDFD030309090000

 Insert picture description here

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/

 Insert picture description here

原网站

版权声明
本文为[Guistar~~]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202180603101807.html