6. Bluetooth Security

6.6 Connection Setup Procedures

Authentication procedure is triggered after determining the security level of the requested service in order to allow different service requirements for different applications without user intervention. Figure 9 illustrates the sequence of functions that are performed to gain access to a trusted service.

Figure 9: Steps to setup access to trusted services.

 

The functions are performed in the following order:

  1. Connection request is made to L2CAP;
  2. L2CAP requests access information from the Security Manager;
  3. Security Manager queries the Service Database for service permissions;
  4. Security Manager looks up the Device Database for trust level;
  5. Security Manager enforces authentication and encryption at the Host Control Interface (HCI) level if required;
  6. Security Manager grants access;
  7. L2CAP continues to setup the connection by sending the packet to the Application level.