当前位置:网站首页>Ble Low Power Bluetooth networking process and Bluetooth role introduction

Ble Low Power Bluetooth networking process and Bluetooth role introduction

2022-06-25 23:27:00 Guistar~~

Bluetooth role and networking establishment

Knowledge card —— Bluetooth role and networking establishment

BLE Bluetooth has the following roles :

role explain
Broadcaster (Advertise) Periodically broadcast data to surrounding equipment
Scanner (Scanner) You can listen to broadcast data or search for surrounding devices ( also called :Scanner)
Main equipment (Master) Responsible for scanning equipment and initiating establishment request , After the connection is established, it becomes master
Slave device (Slave) The device responsible for broadcasting and receiving the connection request is called after the connection is established slave
  • Bluetooth communication refers to the communication between two Bluetooth modules or Bluetooth devices , One of the two sides of data communication is the host , One is the slave .
  • The difference between master mode and slave mode : A host is a party that can search for others and actively establish a connection , The slave can't actively establish a connection , We can only wait for others to connect with us

From device mode :

The Bluetooth module working in the slave mode can only be searched by the host , Can't actively search . After the slave device is connected to the host , It can also send and receive data with the host device

Master mode :

  1. Working in master mode , Can be connected to a slave device . In this mode, you can search the surrounding devices and select the slave devices to be connected .
     
  2. A Bluetooth host device , It can communicate with multiple Bluetooth slave devices at the same time .
     
  3. A device with Bluetooth communication function , You can switch between two characters , Usually work in slave mode , Wait for other master devices to connect , When needed , Switch to main mode , Initiate calls to other devices .
     
  4. When a Bluetooth device initiates a call in main mode , Need to know each other's Bluetooth address , Pairing password and other information , After pairing , Call can be initiated directly .

Connection process

Broadcast from device , The master device scans and then initiates a connection , Establishing a connection

 Insert picture description here

The knowledge card is over ~ Do you know anything about Bluetooth network setup ?

Bluetooth module practice

Take the master-slave Bluetooth of Shenzhen xinchida as an example

1. Document preparation

      With the master-slave Bluetooth of Shenzhen xinchida 52832 and bg22x For example

2. Role settings

 Insert picture description here

You can see that there are 4 Introduction to modes :
0:slave, From the role ( Default character )
1:master, The main character
2:slaveandmaster, Master slave integration
3:beacon, Can be connected to the broadcast ( In this role, the serial port is closed , No name )
 

3. Module introduction

 Insert picture description here
 

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 !

If you need Bluetooth (BLE) module

Can contact : Shenzhen Xinchi daliai

Xinchida technology 【Vivi】
contact number :13510534054 ( WeChat )/17806715121
 
More information plus v Or the official website :
https://www.szrfstar.com/

原网站

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