Forcing bonding between cen & peri impl. using cmdline tools

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I trying to understand the commands required to create a
bonding between a BLE central and peripheral.

To test understanding I'm using the bluez command line tools
to create a central and peripheral, and initiate bonding
between them!

The following are my scripts so far:

On Central:

sudo btmgmt le on
sudo btmgmt sc on
sudo btmgmt bondable on
sudo btmgmt pair -t 1 60:02:92:B4:C8:9E

On Peripheral:
sudo btmgmt sc on
sudo btmgmt bondable on
sudo hciconfig hci0 leadv 0

To check if bonding has occured I'm looking under

/var/lib/bluetooth<mac>/<mac>/info for link keys

Can some one point me to example scripts which perform
the desired action?

Alternatively stripped down c++ code for the central and peripherla
would equal;y as useful.

BR
Paul Grant
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux