Legacy pairing, SSP - inclusion from the command line [Linux]

As part of my automation project, I have two USB dongles, and I need to automate Bluetooth test tests. Both devices seem to support SSP. This is what I deduce from the output of hciconfig. For example: enter $ hciconfig hci0 sspmode I get

hci0:   Type: BR/EDR  Bus: USB
    BD Address: xx:xx:xx:xx:xx:xx  ACL MTU: 1021:8  SCO MTU: 64:1
    Simple Pairing mode: Enabled

and I get a similar output for hci1. My questions are: a) How do I get them to run SSP from the command line [with and without encryption]? b) How do I pair using the obsolete pairing method from the command line [with and without encryption]?

For both #a and #b, how can I check if the SSP and the previous pairing actually happened using hcidump [if someone can tell me what to expect from hci logs, I would be very grateful.

+4
source share

Source: https://habr.com/ru/post/1543313/


All Articles