Bluetooth Basics
Last updated
Was this helpful?
Last updated
Was this helpful?
Class 1 External Bluetooth adapter. Provides ~100 yard range.
hciconfig
command is to bluetooth adapters as ifconfig
is to linux networking interfaces.
View your device
Can see Bus: USB
Interface name hci0
BD Address (our address) 00:01:95:79:EF:89
Status of our adapter UP RUNNING
ACL MTU: 310:10
The MTU size for ACL connections. 310 bytes. An ACL buffer size uses 10 packets.
SCO MTU: 64:8
The MTU size for SCO connection. 64 bytes. An SCO buffer size uses 8 packets.
UP - The interface is in the UP state.
RUNNING - The interface is currently operational.
PSCAN - The interface will respond to page scan messages.
Names cannot be blank and names cannot be in excess of 248 bytes in length
BlueZ stack limits devices to 247 byte name length
See if your adapter is running in central or peripheral mode
Can see we are in peripheral mode
ACCEPT means that the interface will accept new baseband connections from a central device
configure device to be in discoverable mode and allow connections to the interface
If successful you will see PSCAN ISCAN
PSCAN enabled allows connections to the interface
ISCAN places the device in discoverable mode
Should see UP RUNNING ISCAN
in the output of the second hciconfig hci0
command
should see UP RUNNING PSCAN ISCAN
There are three types of Bluetooth device classes 1-3.
It is important to have the ability to spoof a device in a different class
Some devices might simply ignore your device if it is of the wrong class.
i.e. a headset for phone calls might ignore your device if you are not a phone
case by case basis per manufacturer
change the class for a device
useful site for attaining the codes to act like other devices
Basic Scan
Detailed Scan
A better example