Go to advanced search

by Douglas6
Fri Jan 11, 2019 6:15 pm
Forum: C/C++
Topic: Port Eddystone for mbed to Raspberry Pi Model 3+
Replies: 3
Views: 646

Re: Port Eddystone for mbed to Raspberry Pi Model 3+

This looks to be a commercial product. Have you considered hiring a developer at fair market value to do your work for you?
by Douglas6
Fri Jan 11, 2019 12:09 am
Forum: Python
Topic: Programming bluetooth module of RPi 3 B
Replies: 1
Views: 610

Re: Programming bluetooth module of RPi 3 B

1. bluetoothctl should have no problem scanning for your phone, assuming it's in 'discoverable' mode. If it's not, no software will help. 2. A module like pexpect makes it much easier to use bluetoothctl from within Python. Alternatively, everything I know about PyBluez came from the official docume...
by Douglas6
Wed Jan 09, 2019 2:02 am
Forum: Python
Topic: gps from android phone
Replies: 7
Views: 2861

Re: gps from android phone

As others have mentioned, there are a number of Android apps that read the Android GPS info and send it out over a Bluetooth Serial Port Profile connection. You'll need to configure the SPP on your Pi, and connect to the phone using rfcomm. You can find instructions for those steps on this forum.
by Douglas6
Wed Jan 09, 2019 1:52 am
Forum: General discussion
Topic: help understanding Bluetooth Scanning
Replies: 1
Views: 217

Re: help understanding Bluetooth Scanning

You are actually seeing two different types of devices:
1. Any classic Bluetooth devices which are in discoverable mode. Shouldn't be that many, unless you explicitly put them in discoverable mode.
2. Any BLE devices that are advertising. That will be the great majority of BLE devices within range.
by Douglas6
Wed Jan 09, 2019 1:41 am
Forum: C/C++
Topic: Connect RPi to PC via Bluetooth
Replies: 3
Views: 900

Re: Connect RPi to PC via Bluetooth

Probably the easiest way is to add the Serial Port Profile to the Pi, and connect using rfcomm. That will create a virtual serial device /dev/rfcomm0, which can be programmed to in C like any serial port.

Search this forum for instructions on using the SPP and rfcomm.
by Douglas6
Mon Jan 07, 2019 5:12 pm
Forum: Troubleshooting
Topic: Bluetooth not working in surge protector
Replies: 1
Views: 134

Re: Bluetooth not working in surge protector

That's odd. When plugged into the surge protector, what is the result of

Code: Select all

systemctl status hciuart 
?
by Douglas6
Mon Jan 07, 2019 5:08 pm
Forum: General discussion
Topic: Trying to connect a bluetooth thermal printer :(
Replies: 1
Views: 528

Re: Trying to connect a bluetooth thermal printer :(

That output looks like the result of a 'connect' command, not a 'trust' command, but no matter, I can see It's paired and trusted. I'm guessing the printer uses Bluetooth's Serial Port Profile, so you'll need to configure that on the Pi, and then connect to the printer using rfcomm. This forum has i...
by Douglas6
Sun Jan 06, 2019 12:35 am
Forum: Troubleshooting
Topic: Can pair over bluetooth, but can't connect
Replies: 4
Views: 1737

Re: Can pair over bluetooth, but can't connect

Hmmm, don't know what to say. Worked for me™. Are you sure you didn't get a notification on your phone asking to accept the transfer? Try un-pairing and re-pairing the devices.
by Douglas6
Fri Jan 04, 2019 8:05 pm
Forum: Troubleshooting
Topic: Pi3 with Raspbian Stretch won't connect to Bluetooth device
Replies: 5
Views: 789

Re: Pi3 with Raspbian Stretch won't connect to Bluetooth device

Bluetoothctl is very useful for scanning, pairing, trusting, and a number of other tasks. However, it doesn't know anything about serial communications.

You can find a number of posts on this forum regarding rfcomm (most of them under my name.) I haven't seen any reason to consider it deprecated.
by Douglas6
Fri Jan 04, 2019 7:49 pm
Forum: Troubleshooting
Topic: Pi3 with Raspbian Stretch won't connect to Bluetooth device
Replies: 5
Views: 789

Re: Pi3 with Raspbian Stretch won't connect to Bluetooth device

I'm assuming it communicates using the Serial Port Profile (ah, it does). Use rfcomm to connect and provide a virtual serial port device.

Unless it uses BLE, in which case there's no need to connect.
by Douglas6
Fri Jan 04, 2019 7:26 pm
Forum: Troubleshooting
Topic: Can pair over bluetooth, but can't connect
Replies: 4
Views: 1737

Re: Can pair over bluetooth, but can't connect

Here are instructions for sending files via Bluetooth to an Android phone. viewtopic.php?p=675983#p675983.
Ignore the bits about installing BlueZ and pairing, those are old. I also believe you no longer have to specify a channel number, but it doesn't hurt.
by Douglas6
Fri Jan 04, 2019 7:13 pm
Forum: Troubleshooting
Topic: Pi3 with Raspbian Stretch won't connect to Bluetooth device
Replies: 5
Views: 789

Re: Pi3 with Raspbian Stretch won't connect to Bluetooth device

What kind of Bluetooth device is it? Make, model, link? Bluetoothctl is usually the wrong way to try to connect with a device.
by Douglas6
Fri Jan 04, 2019 12:58 am
Forum: Troubleshooting
Topic: Bluetooth Pairing RPi3B+ with Windows 10 PC
Replies: 2
Views: 589

Re: Bluetooth Pairing RPi3B+ with Windows 10 PC

In order to discover (classic) Bluetooth devices, that device must be in 'discoverable' mode. For the Pi, that means running bluetoothctl and entering the 'discoverable on' command. For a PC... I forget. Probably easiest to pair with the Pi from the PC. Should be lots and lots of instructions on the...
by Douglas6
Wed Jan 02, 2019 3:38 pm
Forum: Troubleshooting
Topic: Bluetooth dongle, old R-Pi, no 'serial1' so no start!
Replies: 8
Views: 572

Re: Bluetooth dongle, old R-Pi, no 'serial1' so no start!

As shown in the description of the hciuart.service ("Configure Bluetooth Modems connected by UART"), hciuart is used to connect with hci devices attached to a UART, not USB devices, such as your dongle.

I would look next at the results of 'lsusb'. What kind of dongle is it, and what OS is running?
by Douglas6
Wed Jan 02, 2019 2:56 pm
Forum: Troubleshooting
Topic: Bluetooth dongle, old R-Pi, no 'serial1' so no start!
Replies: 8
Views: 572

Re: Bluetooth dongle, old R-Pi, no 'serial1' so no start!

What does

Code: Select all

hciconfig -a 
report?
by Douglas6
Tue Jan 01, 2019 12:42 am
Forum: Troubleshooting
Topic: [HELP PLEASE] Bluetooth HeadSet with Mic
Replies: 4
Views: 691

Re: [HELP] Bluetooth HeadSet with Mic

I haven't played with HSF, because until recently I haven't had the hardware. I'd be interested in knowing how you 'change[ed] to the HSF audio profile', if you'd care to share.
by Douglas6
Sun Dec 30, 2018 4:46 pm
Forum: General discussion
Topic: How to pipe audio input from USB sound card to bluetooth headset on a 3B+?
Replies: 5
Views: 892

Re: How to pipe audio input from USB sound card to bluetooth headset on a 3B+?

I believe the BlueALSA device name is 'bluealsa'. I think you can have it listed from aplay by editing the ~/.asoundrc file, though I haven't tried that.

My Pi is currently out of commission, but in the next day or two I'll try and have a play with this. Seems like a good application.
by Douglas6
Sat Dec 29, 2018 8:09 pm
Forum: General discussion
Topic: How to pipe audio input from USB sound card to bluetooth headset on a 3B+?
Replies: 5
Views: 892

Re: How to pipe audio input from USB sound card to bluetooth headset on a 3B+?

I would begin with a fresh Raspbian Stretch install, and leave PulseAudio out of the equation. Newer versions of Raspbian use BlueALSA to integrate Bluetooth audio streams with ALSA; PulseAudio will conflict with that. You should be able to use ALSA to loop back the USB capture device to the Bluetoo...
by Douglas6
Sat Dec 29, 2018 2:34 pm
Forum: Troubleshooting
Topic: Bluetooth stops working after few minutes
Replies: 3
Views: 349

Re: Bluetooth stops working after few minutes

Yes, try it without WiFi if you can. The only fix I'm aware of is to use a separate USB dongle for either Bluetooth or WiFi.
by Douglas6
Fri Dec 28, 2018 5:03 pm
Forum: Troubleshooting
Topic: Bluetooth stops working after few minutes
Replies: 3
Views: 349

Re: Bluetooth stops working after few minutes

Are you using Wi-Fi? The RPi 3 has reported conflicts with Bluetooth and Wi-Fi.
by Douglas6
Fri Dec 28, 2018 4:39 am
Forum: General discussion
Topic: bluetooth
Replies: 6
Views: 600

Re: bluetooth

Can't help much. I suggest learning as much as you can about ALSA, the Linux sound system. All audio ins and outs are controlled through ALSA.
by Douglas6
Thu Dec 27, 2018 8:52 pm
Forum: General discussion
Topic: bluetooth
Replies: 6
Views: 600

Re: bluetooth

Could we get some details on what you mean by "perform differently", "configured it when is was first added to memory" and "set up bluetooth differently"?

It's difficult to understand what you are trying to do.
by Douglas6
Thu Dec 27, 2018 8:25 am
Forum: Python
Topic: Scan info of beacons in a program [solved]
Replies: 10
Views: 2912

Re: Scan info of beacons in a program

The Bluepy library also has facilities for reading advertising data.

Go to advanced search