Go to advanced search

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: 6
Views: 240

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: 98

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: 98

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: 283

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: 283

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: 283

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: 121

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: 803

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: 97

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: 803

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: 200

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: 152

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: 97

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: 803

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: 140

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.
by Douglas6
Mon Sep 30, 2019 1:45 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetooth from raspberry pi to send commands to PC
Replies: 3
Views: 140

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

Yes, a couple of ways to go. 1. If it's not a Macintosh PC, you can connect from the Pi using Bluetooth's Serial Port Profile (SSP). Then read and write to a program running on the Pi using serial communications. 2. You could make the Pi emulate a Bluetooth HID device that would send actual joystick...
by Douglas6
Thu Sep 26, 2019 12:23 pm
Forum: Beginners
Topic: Get Bluetooth device song info through dbus
Replies: 3
Views: 86

Re: Get Bluetooth device song info through dbus

I'm not sure you can using dbus-send. You need to receive D-Bus signals, not send them. There's example code for receiving track and artist information in Python here: https://github.com/Douglas6/blueplayer
by Douglas6
Tue Sep 24, 2019 7:16 pm
Forum: Troubleshooting
Topic: Bluetooth connection - Raspberry Pi 3 B + with IoS devices.
Replies: 1
Views: 61

Re: Bluetooth connection - Raspberry Pi 3 B + with IoS devices.

Apple has proscribed the use of SPP (Serial Port Profile) on their operating systems. The only way to transfer data with an Apple product with Bluetooth is via BLE (or, I suppose, file transfer).
by Douglas6
Mon Sep 23, 2019 6:22 pm
Forum: General discussion
Topic: Oracle's New Supercomputer Has 1,060 Raspberry Pis
Replies: 41
Views: 1826

Re: Oracle's New Supercomputer Has 1,060 Raspberry Pis

pi-tastic wrote:
Mon Sep 23, 2019 1:41 pm
when will RPF make a $35 quantum computer? :-)
It exists now, it just hasn't been observed.
by Douglas6
Sat Sep 21, 2019 9:27 pm
Forum: Troubleshooting
Topic: pulseaudio not working with bluetooth
Replies: 3
Views: 157

Re: pulseaudio not working with bluetooth

PulseAudio is no longer required or recommended for Bluetooth audio streaming. It's possible the pre-installed software for streaming (BlueALSA) is conflicting with PulseAudio.
by Douglas6
Tue Sep 17, 2019 11:37 am
Forum: Troubleshooting
Topic: STICKY: Bluetooth not working after update - need info
Replies: 174
Views: 166661

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

If the hciuart service is failing, nothing Bluetooth related is going to work. Depending on your operating system, you might try installing pi-bluetooth: 'sudo apt install pi-bluetooth'. Otherwise, I would image a new SD card with the latest Buster Raspbian. If hciuart is still failing, you could ha...
by Douglas6
Mon Sep 16, 2019 12:03 am
Forum: Beginners
Topic: Soldering
Replies: 22
Views: 603

Re: Soldering

LTolledo wrote:
Sun Sep 15, 2019 11:38 pm
picture posted for soldering reference only:
Is that your own work? Artful. A lost art, I fear.
by Douglas6
Sun Sep 15, 2019 11:14 pm
Forum: Beginners
Topic: Soldering
Replies: 22
Views: 603

Re: Soldering

You can connect pads on a perfboard with insulated wire (two pads), or uninsulated wire (multiple pads) flat against the bottom side of the perf. I like to use the severed leads of a resistor, LED, etc. With a little practice, it can be very neat. Or, you can create solder bridges between adjacent p...
by Douglas6
Sat Sep 14, 2019 4:59 pm
Forum: General discussion
Topic: Raspberry PI 4 and battery
Replies: 5
Views: 550

Re: Raspberry PI 4 and battery

W. H. Heydt wrote:
Sat Sep 14, 2019 4:44 pm
Certainly. What other constraints do you have, such as "is it reasonably portable"?
Or:
"How long will it last?"
"Is additional hardware required?"
"Is it prone to catching fire?"
"Can it be recharged? How?"

Go to advanced search