mirror of
https://codeberg.org/smxi/pinxi.git
synced 2024-09-28 15:20:29 +02:00
109 lines
2.7 KiB
Text
109 lines
2.7 KiB
Text
================================================================================
|
|
INXI
|
|
================================================================================
|
|
FILE: inxi-bluetooth.txt
|
|
VERSION: 1.0
|
|
DATE: 2023-07-21
|
|
|
|
----------------------------------------
|
|
Docs:
|
|
See: docs/inxi-tools-mapping.txt
|
|
|
|
----------------------------------------
|
|
Code:
|
|
See:
|
|
|
|
----------------------------------------
|
|
Comments:
|
|
|
|
================================================================================
|
|
Sections:
|
|
|
|
BLUETOOTH DATA
|
|
DEBUGGING FAIL TO SHOW
|
|
BluetoothItem::bluetooth_version()
|
|
|
|
================================================================================
|
|
BLUETOOTH DATA
|
|
--------------------------------------------------------------------------------
|
|
|
|
========================================
|
|
DEBUGGING FAIL TO SHOW
|
|
----------------------------------------
|
|
|
|
If device does not show, or is down and can't be started:
|
|
|
|
https://github.com/ev3dev/ev3dev/issues/171
|
|
|
|
If device does not show, or is down and can't be started:
|
|
|
|
https://github.com/ev3dev/ev3dev/issues/171
|
|
|
|
connmanctl enable bluetooth
|
|
|
|
or
|
|
# Let's take a look at what rfkill's got goin on.
|
|
$ rfkill list:
|
|
0: hci0: Bluetooth
|
|
Soft blocked: yes
|
|
Hard blocked: no
|
|
...
|
|
..
|
|
.
|
|
# If you have other connections like a wireless LAN, they might show up here
|
|
#
|
|
# K so tell rfkill to unblock bluetooth nah
|
|
$ rfkill unblock bluetooth
|
|
# again, let's check out rfkill
|
|
$ rfkill list:
|
|
0: hci0: Bluetooth
|
|
Soft blocked: no
|
|
Hard blocked: no
|
|
...
|
|
..
|
|
.
|
|
# that looks better.
|
|
#
|
|
# reset the adapter quick
|
|
$ hciconfig hci0 reset
|
|
# list devices and status
|
|
$ hciconfig dev
|
|
hci0: Type: Primary Bus: Magical-School
|
|
BD Address: NU:MB:ER:SI:NH:EX.....<blahblah>
|
|
UP RUNNING #<--BOOM
|
|
RX by....<blah\nblah\nblah\nblah>
|
|
|
|
========================================
|
|
BluetoothItem::bluetooth_version()
|
|
----------------------------------------
|
|
|
|
current list of LMP numbers to match to bluetooth version
|
|
|
|
https://www.bluetooth.com/specifications/assigned-numbers/link-manager/
|
|
|
|
https://en.wikipedia.org/wiki/List_of_Bluetooth_protocols#Link_Management_Protocol_(LMP)
|
|
|
|
http://trac.gateworks.com/wiki/wireless/bluetooth
|
|
|
|
https://www.real-world-systems.com/docs/hcitool.1.html
|
|
|
|
========================================
|
|
|
|
----------------------------------------
|
|
|
|
----------------------------------------
|
|
|
|
----------------------------------------
|
|
|
|
================================================================================
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
========================================
|
|
|
|
----------------------------------------
|
|
|
|
----------------------------------------
|
|
|
|
----------------------------------------
|
|
|