Go to advanced search

by Douglas6
Wed Apr 24, 2019 12:27 pm
Forum: General discussion
Topic: Requesting help in interfacing raspberry pi with android via bluetooth hc-05 module
Replies: 5
Views: 110

Re: Requesting help in interfacing raspberry pi with android via bluetooth hc-05 module

I'm sorry, I did not initially understand your goal. It appears you want to use the Arduino as a HID (mouse). The HC-05 module can't do that. I'm told that the firmware of the HC-05 can be reprogramed to provide HID functionality, but that is left as an exercise for the reader (here's an instructrab...
by Douglas6
Tue Apr 23, 2019 10:05 pm
Forum: Python
Topic: Bluez Not Discovering Devices
Replies: 1
Views: 27

Re: Bluez Not Discovering Devices

Be aware that bluetoothctl will list all nearby BLE devices and classic Bluetooth devices (in discoverable mode), PyBluez's disover_devices() will only find classic Bluetooth devices (in discoverable mode). PyBluez acts like an 'hcitool scan' command, while bluetoothctl also adds an equivalent 'hcit...
by Douglas6
Tue Apr 23, 2019 6:30 pm
Forum: General discussion
Topic: Requesting help in interfacing raspberry pi with android via bluetooth hc-05 module
Replies: 5
Views: 110

Re: Requesting help in interfacing raspberry pi with android via bluetooth hc-05 module

You'll need to configure the Serial Port Profile on the Pi, and create a virtual serial device using rfcomm. There are instructions in this forum which a search should reveal.
by Douglas6
Tue Apr 23, 2019 1:51 pm
Forum: General discussion
Topic: select subtitles or audio in omxplayer with d-bus
Replies: 2
Views: 71

Re: select subtitles or audio in omxplayer with d-bus

If you can stand Python, omxcontrol.py supports most of the omxplayer D-Bus commands: https://github.com/Douglas6/omxcontrol
by Douglas6
Fri Apr 19, 2019 1:19 pm
Forum: Python
Topic: turn on bluetooth rp3b+
Replies: 2
Views: 69

Re: turn on bluetooth rp3b+

What exactly do you mean by "turn on and off the bluetooth"? You could run a shell command from Python to bring the adapter up or down:

Code: Select all

sudo hciconfig hci0 up 
or

Code: Select all

sudo hciconfig hci0 down
by Douglas6
Wed Apr 17, 2019 8:30 pm
Forum: Troubleshooting
Topic: Bluetooth dongle recognised but doesn't work
Replies: 11
Views: 144

Re: Bluetooth dongle recognised but doesn't work

Most dongles use chipsets produced by a handful of companies. These are then packaged and sold by a myriad of vendors. As I said, Broadcom and Cambridge Silicon Radios (CSR) are two chipset manufacturers that are are known to work well with the Pi. Sometimes the vendors will tell you which chipset t...
by Douglas6
Wed Apr 17, 2019 7:12 pm
Forum: Troubleshooting
Topic: Bluetooth dongle recognised but doesn't work
Replies: 11
Views: 144

Re: Bluetooth dongle recognised but doesn't work

I can't find any manufacturer / vendor associated with your Bluetooth device address, which further supports my theory of a knockoff dongle. I've seen that mushroom style in both reputable and unreputable versions. I would try to purchase a dongle from a reputable retailer. If you can determine the ...
by Douglas6
Wed Apr 17, 2019 6:53 pm
Forum: Troubleshooting
Topic: Bluetooth dongle recognised but doesn't work
Replies: 11
Views: 144

Re: Bluetooth dongle recognised but doesn't work

I'm sorry my best guess is a bum dongle. That it works under Windows is not a good indication that it will work under Raspbian, or even Linux. I'd be interested in any history of the dongle ("looks a bit like..." isn't really helpful.) People often have problems like yours with cheap knockoff Asian ...
by Douglas6
Wed Apr 17, 2019 6:32 pm
Forum: Troubleshooting
Topic: Bluetooth dongle recognised but doesn't work
Replies: 11
Views: 144

Re: Bluetooth dongle recognised but doesn't work

Blueman can potentially conflict with Simon Long's GUI Bluetooth manager extension. I would first recommend not using and even uninstalling Blueman. But that's not your problem. The hciconfig command shows that your Bluetooth adapter is 'down'. You can try bringing it up with 'sudo hciconfig hci0 up...
by Douglas6
Wed Apr 17, 2019 4:14 pm
Forum: Troubleshooting
Topic: Bluetooth dongle recognised but doesn't work
Replies: 11
Views: 144

Re: Bluetooth dongle recognised but doesn't work

What 'Bluetooth managers' do you refer to? What purpose is Bluetooth intended for? What is the response to an 'hciconfig -a' command?
by Douglas6
Tue Apr 16, 2019 10:46 am
Forum: Beginners
Topic: Voice over BLE
Replies: 6
Views: 165

Re: Voice over BLE

What is the BLE device (make, model, link)? As there is no standard for streaming audio with BLE, and no implementations that I know of, your request may prove difficult.
by Douglas6
Mon Apr 15, 2019 7:24 pm
Forum: Troubleshooting
Topic: PHP, MPG123, and Bluetooth
Replies: 3
Views: 89

Re: PHP, MPG123, and Bluetooth

Try adding the www-data user to the audio group.
by Douglas6
Sat Apr 13, 2019 10:16 pm
Forum: Troubleshooting
Topic: Bluetooth speaker:aplay works, mpg123 doesn't
Replies: 4
Views: 120

Re: Bluetooth speaker:aplay works, mpg123 doesn't

The problem seems to be that audio is being played correctly when the BlueALSA device is specified, but not when playing to the default ALSA device. The .asoundrc file is supposed to make BlueALSA the default, so it appears the problem lies there. The contents you included seem to be correct, assumi...
by Douglas6
Mon Apr 08, 2019 12:45 pm
Forum: General discussion
Topic: How to execute a command in a script
Replies: 7
Views: 300

Re: How to execute a command in a script

I use systemd to start rfcomm at boot time. See this post: viewtopic.php?p=919463#p919463

Use 'rfcomm connect <bdaddr>' to make a connection at boot, or 'rfcomm bind <bdaddr>' to prepare to make a connection when the device is opened.
by Douglas6
Sun Mar 31, 2019 1:46 pm
Forum: Troubleshooting
Topic: Need help! Bluetoothd[2492] issues?
Replies: 3
Views: 146

Re: Need help! Bluetoothd[2492] issues?

What is the result of

Code: Select all

hciconfig -a
?

What's the result of

Code: Select all

systemctl status hciuart 
?
by Douglas6
Tue Mar 26, 2019 11:23 pm
Forum: Beginners
Topic: bluetooth speakerphone project
Replies: 4
Views: 100

Re: bluetooth speakerphone project

I would concern myself initially with the software aspects. I'm not convinced that HFP/HSP Bluetooth profiles are possible on the Pi; I've yet to hear a success story.
by Douglas6
Tue Mar 26, 2019 11:16 pm
Forum: Troubleshooting
Topic: Bluetooth FTP between Pi and Win7
Replies: 2
Views: 73

Re: Bluetooth FTP between Pi and Win7

There is no Bluetooth FTP protocol. Unless you're running BNEP (Bluetooth Network Encapsulated Protocol, I think) which is not easy.

As Andyroo noted, you're going to want to investigate OBEX. There are several hints on this forum.
by Douglas6
Tue Mar 26, 2019 11:09 pm
Forum: Troubleshooting
Topic: No bluetooth adapter found
Replies: 2
Views: 89

Re: No bluetooth adapter found

First try (re)installing 'pi-bluetooth'.
by Douglas6
Tue Mar 26, 2019 11:06 pm
Forum: General discussion
Topic: Bluetooth connection
Replies: 2
Views: 79

Re: Bluetooth connection

The link previously posted appears to me to be woefully inadequate. Basically, what you want to do is 1. Enable the Serial Port Profile on both Pi's. 2. Set up rfcomm to listen on one Pi, and to connect on the other. 3. Program both Pis to read and write data over the virtual serial communications p...
by Douglas6
Sat Mar 23, 2019 10:03 pm
Forum: Troubleshooting
Topic: Bluetooth speaker not working with omxplayer
Replies: 4
Views: 1221

Re: Bluetooth speaker not working with omxplayer

Yes. Three years later, omxplayer now has a '-o alsa' option.
by Douglas6
Thu Mar 21, 2019 2:45 pm
Forum: General discussion
Topic: Bluetooth Interference
Replies: 5
Views: 155

Re: Bluetooth Interference

You can't. There is no 'blob', to begin with. There are two transceivers with a certain range. A body walking directly between them may effect RSSI, but very probably won't.
by Douglas6
Thu Mar 21, 2019 2:52 am
Forum: Python
Topic: Python/Bluetooth
Replies: 5
Views: 248

Re: Python/Bluetooth

Find the right characteristic, query it, and evaluate the response. No harder or easier.
by Douglas6
Thu Mar 21, 2019 1:29 am
Forum: Python
Topic: Python/Bluetooth
Replies: 5
Views: 248

Re: Python/Bluetooth

I'm not familiar with PyGatt, but I'm not sure what the question is. You seem to be getting a positive result. Are you familiar with BLE programming?
I like to use bluepy. You'll still need to be familiar with BLE.
by Douglas6
Thu Mar 21, 2019 1:09 am
Forum: Troubleshooting
Topic: About the Bluetooth a2dp.
Replies: 2
Views: 69

Re: About the Bluetooth a2dp.

Bluetoothctl has no audio capability. For audio streaming, forget it. Have you tried the standard methods for achieving audio streaming? Connect with the Bluetooth icon, and select audio output with a right-click on the volume icon? Of course, that assumes that you are not using PulseAudio. If you a...
by Douglas6
Thu Mar 21, 2019 12:46 am
Forum: General discussion
Topic: Bluetooth Interference
Replies: 5
Views: 155

Re: Bluetooth Interference

When trying to connect to a Bluetooth device, 1 or 2 seconds elapse negotiating the connection (assuming that Bluetooth is turned on on the device/phone) . During this time, you can query for the RSSI.
As far as a "Bluetooth blob/mesh", I have no idea what you are talking about.

Go to advanced search