Description of the problem I am trying to connect my Bluetooth devices with BLE to a Linux system using the Bluetooth C libraries (I am programming using C++), so here is the code I am currently using: NOTE: You need to set a specific MAC in connect function parameter. I am also compiling with g++ using the following command: Here
Tag: bluetooth
Bluetooth Serial Port on Raspberry Pi & something weird happened when using IDE and terminator to run python files
I am doing a project using the Bluetooth serial port. It is about the message communication between cellphones and the Rpi. I typed ‘sudo rfcomm watch hci0’ on the Terminator. The code on Python is simple: only assign the port address (‘/dev/rfcomm0’) and readline(). At first, things went right until I disconnected and reconnected. It said, “Cannot create Rfcomm TTY:
How do i get the debug/return strings out of bluethootctl
How can i retrieve those two lines: Changing discoverable off succeeded [CHG] Controller 64:6E:69:F4:9E:72 Discoverable: no Basically grabbing the output or other possible error outputs and discarding the rest of the garbage I’m attempting to do a fork of a very simple bluethooth dmenu bash script, and I am being somewhat successful at it, but since I’ve considered releasing it
Is there a way to run iBeacon on Bluetooth 2.0 compat. device?
So I have a Linux with old BT2.0. I want to use it as iBeacon. Energy consumption is not my concern; the only one is API. Is it possible? Answer Unfortunately no. iBeacon and beacons in general depend on BLE advertisements, and this was introduced as part of the Bluetooth Low Energy features that are part of BT4.0. The only
Running functions on bluetooth pair request
I’ve recently been learning electric circuitry using arduino and am looking to implement some changes to my Raspberry Pi application. I used this outdated tutorial a few years ago to create my pi bluetooth receiver which is working well at the moment (https://www.instructables.com/id/Turn-your-Raspberry-Pi-into-a-Portable-Bluetooth-A/) but one downfall of this out-dated tutorial is that bluetooth connections have to be accepted via the
Read battery status bluetooth headset linux
I use Bluetooth headset that use Bluetooth version 4.1. When I connect with android it shows the battery status. But with Linux (Ubuntu 18.04) I cannot get battery status. I tried with bluetoothctl, looking file in /sys/class/power_supply as in other questions, But they didn’t help me. askubuntu.com/questions/53880/is-there-any-way-to-check-the-battery-percentage-of-apple-wireless-peripherals stackoverflow.com/questions/49078659/check-battery-level-of-connected-bluetooth-device-on-linux My bluetooth device don’t use GATT profile. It uses A2DP sink for
Prevent bluetooth driver actions?
I want to controll my bluetooth controller completely programmatically with HCI commands. (Basically mimic the behaviour of other bluetooth controllers, e.g. of android devices) However, with the driver running, there will always be unwanted commands sent automatically. Is it somehow possible to prevent this? Or is this only possible by basically writing my own driver for the bluetooth adapter? I
QtBlueTooth not functional on Linux
I’m developing an embedded application with bluetooth LE function enabled using Qt 5.7. The device I’m developing are meant to act as peripheral role, it can broadcast advertising packets and let smartphones to connect to. The target board are running with Ubuntu Linux 14.04, with bluez version 5.43 (the latest) Since Qt documentation says “In Qt 5.7, additional API supporting
Phone Book Access (PBAP) client for Linux (Raspberry Pi)
i want to access the contacts of my smartphone over bluetooth. This should be made as first step of a project of my with a raspberry pi. I read something about the phone bok access protocol (PBAP). But all i could was not very helpful for me. The most examples i found where to old. I already managed to pair
Using Bluez/Linux, can I run a daemon broadcasting BLE ibeacons and be connectable using RFCOMM simultaneously?
As stated in the title, can both be ran simultaneously or is a second adapter required? For example, can one adapter run both BLE and BT classic at the same time – the BLE beacon broadcasts the MAC for opportunistic clients to connect to using RFCOMM. Answer If you are using a common CSR 4.0 Dongle or Ampac AP6212 (which