qqrelop.blogg.se

Linux c get bluetooth mac address
Linux c   get bluetooth mac address




linux c get bluetooth mac address

While this provides some Bluetooth functionality, it's not very good at exposing it.Īs a result, for Web Bluetooth on Chrome to work, you need to update your bluez This means you'll have to build it again with the appropriate flag.Īs of writing, Ubuntu 16.04 comes with version 5.37 of bluez, the Bluetooth tools. Note 2: Ubuntu 16.10 comes with bluez 5.41 already, but the experimental interface flag is needed for this version. Note: Alan Assis worked this out and documented it here.Īll I've done is tweak it slightly to use a newer bluez

  • Restart bluetoothd with sudo /etc/init.d/bluetooth restartĪnd you're done! Installing latest Bluez from Source (Bluez before 5.41).
  • Install bluez with sudo dpkg -i bluez_5.47-1+b1_b.
  • Install libreadline with sudo dpkg -i libreadline7_7.0-3_b.
  • Find a file of the form libreadline*_b and download it.
  • Bluez needs a later version of libreadline too, so look in.
  • linux c get bluetooth mac address

    Look a filename of the form bluez_*_b (or whatever your platform is)Īnd download it.

    linux c get bluetooth mac address

    Look in the Debian package repository or the latest version of Bluez: You can also compile from source as well (see below), but this method is very easy if you have Debian, Ubuntu ot Linux Mint. If Bluetooth isn't workingįor you, your version of Bluez is extremely unlikely to be the issue. Please use with caution - pretty much every Linux distribution from the pastĥ years now has up to date Bluetooth LE support. (Originally from Adafruit) Install latest Bluez from Debian So it reads: ExecStart=/usr/lib/bluetooth/bluetoothd -experimental The Bluetooth config and add the experimental flag there: sudo nano /lib/systemd/system/rviceĪnd update the line: ExecStart=/usr/lib/bluetooth/bluetoothd However you still need to enable the Experimental flags. Bluez 5.41īluez 5.41 comes installed by default on a few systems now and does work, Means your PC is able to see Bluetooth LE devices via Bluetooth, which is a great sign. You can also try running sudo hcitool lescan - if you see MAC addresses being displayed, this Started instructions and see if it works.

    linux c get bluetooth mac address

    This is by far the most likely - pretty much every Linux distribution from the pastĥ years has up to date Bluetooth LE support.īluetooth should work out of the box - try following the Web Bluetooth getting First, you should type bluetoothd -version in the terminal,Īnd see which version of Bluez you have - then follow theĬorrect set of instructions below: Bluez 5.42 and later: Ubuntu 16.10 and newer






    Linux c   get bluetooth mac address