Go to advanced search

by Douglas6
Wed Oct 23, 2019 1:32 am
Forum: General discussion
Topic: Raspberry Pi Cluster Computer?
Replies: 38
Views: 1165

Re: Raspberry Pi Cluster Computer?

Perhaps the reason this question pops up over and over and over again, is because the answer on this forum is never simply "no", as it should be.
by Douglas6
Mon Oct 21, 2019 9:46 pm
Forum: General discussion
Topic: BLE
Replies: 2
Views: 147

Re: BLE

BLE involves much more than simply advertising data.

I posted some sample code for running a GATT server on the Raspberry Pi here: https://github.com/Douglas6/cputemp
by Douglas6
Mon Oct 21, 2019 6:38 pm
Forum: Troubleshooting
Topic: Auto Serial Connection between Raspberry pi zero w's Bluetooth and HC05 bluetooth module
Replies: 2
Views: 58

Re: Auto Serial Connection between Raspberry pi zero w's Bluetooth and HC05 bluetooth module

Here's what I would do. 1. Start rfcomm using a systemd service unit. See here: https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=254104&p=1550791#p1550791 2. Start your program using the same unit, a different unit, or one of the many methods you can find on this forum for starting a program ...
by Douglas6
Mon Oct 21, 2019 2:04 am
Forum: Troubleshooting
Topic: STICKY: Bluetooth not working after update - need info
Replies: 176
Views: 168064

Re: STICKY: Bluetooth not working after update - need info

I'd recommend you start your own post, rather than attach your issue to a three year-old thread.
by Douglas6
Sun Oct 20, 2019 1:17 pm
Forum: Automation, sensing and robotics
Topic: send serial monitor data from ESP32 board to Raspberry PI 3 B+ via Bluetooth?
Replies: 4
Views: 179

Re: send serial monitor data from ESP32 board to Raspberry PI 3 B+ via Bluetooth?

If you are still interested in Bluetooth, does the ESP32 do classic Bluetooth, BLE, or both?
by Douglas6
Sat Oct 19, 2019 1:43 pm
Forum: Off topic discussion
Topic: How can I make a Pi0W into a bluetooth server using python?
Replies: 9
Views: 596

Re: How can I make a Pi0W into a bluetooth server using python?

For classic Bluetooth, yes the 'Bluetooth name' defaults to the machine name. For BLE, my Pi is identified by the local name I assigned to the advertising data, 'Thermometer'. At least, that is how nRF Connect identifies it.
by Douglas6
Sat Oct 19, 2019 1:39 am
Forum: General discussion
Topic: PS3 Bluetooth Headset With Pi4?
Replies: 6
Views: 156

Re: PS3 Bluetooth Headset With Pi4?

A wide range, I imagine, from the guys at BlueZ, to the kernal maintainers, to the Debian developers, to the Raspbian developers, to the BlueALSA guy or the PulseAudio guys, to the end users.

As an end user, you might want to start there.
by Douglas6
Fri Oct 18, 2019 3:22 pm
Forum: General discussion
Topic: PS3 Bluetooth Headset With Pi4?
Replies: 6
Views: 156

Re: PS3 Bluetooth Headset With Pi4?

It's possible the headset only supports the HSP/HFP profiles. The Pi only supports the A2DP profile, as far as I have ever seen.
by Douglas6
Fri Oct 18, 2019 2:05 pm
Forum: Advanced users
Topic: duplicate bluetooth comms
Replies: 4
Views: 150

Re: duplicate bluetooth comms

Bluetooth sniffing cannot be done with a typical Bluetooth adapter. Adafruit has a nifty BLE sniffer device that can probably be connected to the Pi, but is easier to use on a PC or laptop. It has a modified firmware that can catch over the air communications between two other BLE devices. Very hand...
by Douglas6
Fri Oct 18, 2019 12:58 am
Forum: Off topic discussion
Topic: How can I make a Pi0W into a bluetooth server using python?
Replies: 9
Views: 596

Re: How can I make a Pi0W into a bluetooth server using python?

MarkDH102 wrote:
Thu Oct 17, 2019 6:23 am
Now I've got to work out why I can't see the services on my ESP32, but that's my problem now...
Note that some devices include their services in the advertising data. CPUtemp does not. So you will need to connect to get a list of services.
by Douglas6
Tue Oct 15, 2019 6:55 pm
Forum: Off topic discussion
Topic: How can I make a Pi0W into a bluetooth server using python?
Replies: 9
Views: 596

Re: How can I make a Pi0W into a bluetooth server using python?

Here's some Python code I adapted from the BlueZ sample code that implements a GATT server: https://github.com/Douglas6/cputemp
by Douglas6
Mon Oct 14, 2019 12:07 am
Forum: General discussion
Topic: Bluetooth--more than one setting?
Replies: 3
Views: 227

Re: Bluetooth--more than one setting?

Yes, Simon is behind much of the Raspbian desktop. Blueman does have more capabilities (file transfer, for example), but I don't think it's integrated with Raspbian's use of BlueALSA, et. al. Blueman is not installed by default on Raspbian.
by Douglas6
Sun Oct 13, 2019 10:59 pm
Forum: General discussion
Topic: Bluetooth--more than one setting?
Replies: 3
Views: 227

Re: Bluetooth--more than one setting?

Have you installed 'blueman' at some point? That's a Bluetooth GUI widget similar in functionality to Simon Long's widget. They can conflict, I would recommend uninstalling blueman.
by Douglas6
Sat Oct 12, 2019 1:56 pm
Forum: General discussion
Topic: Hardware shows no service avail
Replies: 7
Views: 311

Re: Hardware shows no service avail

I would start by running rfcomm from a systemd service. sudo nano /etc/systemd/system/rfcomm.service Enter the following into that file: [Unit] Description=RFCOMM service After=bluetooth.service Requires=bluetooth.service [Service] ExecStart=/usr/bin/rfcomm bind 0 <bdaddr> [Install] WantedBy=multi-u...
by Douglas6
Sat Oct 12, 2019 12:49 am
Forum: General discussion
Topic: Hardware shows no service avail
Replies: 7
Views: 311

Re: Hardware shows no service avail

I mean the UI widget looks for a limited number of services (HID, A2DP) that don't require additional software. You will need rfcomm (there's a plethora of info on this forum). Try it. You can find the bdaddr using the terminal with bluetoothctl. Enter that, then enter 'paired-devices'. The bdaddr i...
by Douglas6
Fri Oct 11, 2019 11:08 pm
Forum: General discussion
Topic: Hardware shows no service avail
Replies: 7
Views: 311

Re: Hardware shows no service avail

I'm not sure that UI widget is completely accurate. Have you tried using rfcomm to create a virtual serial port with the scanner?

Code: Select all

sudo rfcomm connect 0 <bdaddr>
Replacing <bdaddr> with the Bluetooth device address of your scanner. That should give you a virtual serial port at /dev/rfcomm0.
by Douglas6
Tue Oct 08, 2019 12:35 am
Forum: Beginners
Topic: Cant connect raspberry with phone through bluetooth
Replies: 2
Views: 137

Re: Cant connect raspberry with phone through bluetooth

See if this post helps: https://www.raspberrypi.org/forums/view ... 85#p947185.

It will work for an Android phone, not an iPhone.
by Douglas6
Mon Oct 07, 2019 11:26 am
Forum: Graphics, sound and multimedia
Topic: [Guide] Stream audio to the Raspberry Pi over Bluetooth
Replies: 10
Views: 912

Re: [Guide] Stream audio to the Raspberry Pi over Bluetooth

Double check the the contents of aplay.service. You have mis-typed something.
by Douglas6
Sun Oct 06, 2019 2:00 pm
Forum: Advanced users
Topic: Use RPi 3 internal bluetooth simultaneous with BT dongle.
Replies: 1
Views: 162

Re: Use RPi 3 internal bluetooth simultaneous with BT dongle.

A USB Bluetooth dongle will typically be named 'hci0' and the internal adapter named 'hci1'. Use the names to create separate virtual serial devices. E.g:

Code: Select all

sudo rfcomm watch 0
and

Code: Select all

sudo rfcomm connect 1 <bdaddr>
I think. Never tried it.
by Douglas6
Wed Oct 02, 2019 6:52 pm
Forum: Graphics, sound and multimedia
Topic: [Guide] Stream audio to the Raspberry Pi over Bluetooth
Replies: 10
Views: 912

Re: [Guide] Stream audio to the Raspberry Pi over Bluetooth

More detail. I took a fresh Raspbian Buster image from the Raspberry website, updated and upgraded it on my Pi4 (this was 2 months ago). I then performed the steps listed in the first post of this thread. Exactly nothing more; exactly nothing less. After reading your post, I found a stereo test audi...
by Douglas6
Wed Oct 02, 2019 2:54 pm
Forum: Graphics, sound and multimedia
Topic: mplayer audio via Bluetooth Speaker problem
Replies: 3
Views: 255

Re: mplayer audio via Bluetooth Speaker problem

The root user is not a member of the 'audio' group, for one. Two, you may have made changes to the pi user's files (such as ~/.asoundrc) which the root user won't pick up. Three, I can't imagine any good reason to play audio as root. You might want to rethink that.
by Douglas6
Wed Oct 02, 2019 2:41 pm
Forum: Troubleshooting
Topic: Unable to write a .service file to systemd for auto-booting python programs
Replies: 6
Views: 155

Re: Unable to write a .service file to systemd for auto-booting python programs

Since you are creating the file, simply use sudo to create it.

Code: Select all

sudo nano /etc/systemd/system/my.service
Then you'll need to enable it:

Code: Select all

sudo systemctl enable my.service
and reboot.

No you can begin debugging the remaining issues, like file paths, environment, dependencies, etc.
by Douglas6
Tue Oct 01, 2019 7:31 pm
Forum: Python
Topic: BluePy (or other BT library) pairing devices with PIN solution
Replies: 1
Views: 107

Re: BluePy (or other BT library) pairing devices with PIN solution

The BlueZ source code includes a Python pairing agent you can find here: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/simple-agent [EDIT: I just re-read your post. It sounds like you are using BLE, in which case the classic Bluetooth simple-agent won't help you. Pairing is not really...
by Douglas6
Mon Sep 30, 2019 6:25 pm
Forum: Graphics, sound and multimedia
Topic: [Guide] Stream audio to the Raspberry Pi over Bluetooth
Replies: 10
Views: 912

Re: [Guide] Stream audio to the Raspberry Pi over Bluetooth

My Pi4 A2DP sink is working in stereo. No additional steps than the ones posted above.
by Douglas6
Mon Sep 30, 2019 2:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetooth from raspberry pi to send commands to PC
Replies: 3
Views: 186

Re: Using bluetooth from raspberry pi to send commands to PC

This post may help: https://www.raspberrypi.org/forums/view ... 85#p947185
After that, simply connect the devices using PySerial (with Python) or another programming language. You'll need to research how to do that on the PC.

Go to advanced search