Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Bluetooth LE module GAP role to act as either a Master or a Slave

$
0
0

I am building on the CC2540 Bluetooth LE chipset and programming them in IAR. I am working to create modules that can act as either a Master or a Slave.

They both start out Advertising as scannable and connectable. I can externally command one of the running modules to start a Discovery scan, while still Advertising. Then initiate either module to connect to the other as the Master causing the other to become the slave.

The problem is in my understanding of the GAP layer. There are the 2 main roles:

  • Peripheral – an advertiser that is connectable, and operates as a slave in a single link-layer connection.
  • Central – scans for advertisements and initiates connections; operates as a master in a single or multiple link-layer connections.

I need functionality from both, so I have no idea which role to program into my modules


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>