Skip to content
Dennis Eisold edited this page Dec 18, 2018 · 3 revisions

Some tips & tricks when working on ble.

bluez5 & hci tools are all installed on Venus since a while. As is dbus-ble-networking.

Command-line

# start the driver & make it recognize some device that is not pre-listed
modprobe -v btusb
echo "0b05 17cb" >> /sys/bus/usb/drivers/btusb/new_id

# see list of devices
hciconfig 
hci0:	Type: BR/EDR  Bus: USB
	BD Address: 5C:F3:70:75:03:8B  ACL MTU: 1021:8  SCO MTU: 64:1
	DOWN 
	RX bytes:467 acl:0 sco:0 events:18 errors:0

# enable Bluetooth
connmanctl enable bluetooth

# enable the device
hciconfig hci0 up

# show list of available devices (only works after hciconfig hciX up)
hcitool dev

# show ble scan output - continuously
# hcitool lescan --duplicates
LE Scan ...
C5:67:2F:C3:60:E5 (unknown)
C5:67:2F:C3:60:E5 (unknown)
C5:67:2F:C3:60:E5 (unknown)
C5:67:2F:C3:60:E5 SmartBatterySense HQ1749FGMQ6
C5:67:2F:C3:60:E5 (unknown)
C5:67:2F:C3:60:E5 (unknown)
C5:67:2F:C3:60:E5 SmartBatterySense HQ1749FGMQ6
C5:67:2F:C3:60:E5 (unknown)
C5:67:2F:C3:60:E5 (unknown)
C5:67:2F:C3:60:E5 SmartBatterySense HQ1749FGMQ6
C5:67:2F:C3:60:E5 (unknown)
C5:67:2F:C3:60:E5 (unknown)

dbus-ble-networking

See https://github.com/victronenergy/dbus-ble-networking.