mezantrop / FreeBSD-BLE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FreeBSD Bluetootl LE Tool

This is Bluetooth LE related userland tools for FreeBSD. Kernel support was already committed to main trunk.

This consist of 3 programs.

le_enable Enable and scan Bluetooth LE device. If Bluetooth address is given as argument, connect attribute channnel and fetch all attribute informations and value as long as it can.

lepair Pairing tool. Give Bluetooth address as argument. It negosiates pairling parameter with the device through Security Manager Protocol. And request or display PIN number. If PIN code authentication is valid, show encryption parameter: EDIV, Random number, 128bit key.

lesecd Bluetooth LE security Daemon. read configuration file hcsecd.conf in current directory. It starts encryption for incoming BLE connection request.

lehid Bluetooth LE client program. lehid 11:22:33:44:55:66 will try to connect peer BLE device that have public address 11:22:33:44:55:66. With -s option, wait channel connection until encryption was successfully set up. With -r option it will trying to connect random address. Client program example is batt.c. It supports Bluetooth HOGP mouse. If you want to use it, you have to pair by lepair and configure and run lesecd.

About


Languages

Language:C 93.0%Language:Yacc 5.1%Language:Lex 1.4%Language:Makefile 0.4%