Skip to content
Advertisement

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

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

Advertisement