Go to advanced search

by Douglas6
Tue Jun 18, 2019 8:57 pm
Forum: Troubleshooting
Topic: Bluetooth won't pair with keyboard, crashes
Replies: 4
Views: 162

Re: Bluetooth won't pair with keyboard, crashes

That last is clearly a BLE keyboard. I don't know what kind of support Raspian Stretch/BlueZ 5.43 has for these. You might try upgrading to BlueZ 5.50, but I'm not optimistic. The safest bet would be to stick to classic Bluetooth mice and keyboards. [EDIT: As for the original poster: https://answers...
by Douglas6
Tue Jun 18, 2019 2:36 am
Forum: Beginners
Topic: Bluetooth connected to headphones but no sound. Raspberry Pi 3+
Replies: 4
Views: 192

Re: Bluetooth connected to headphones but no sound. Raspberry Pi 3+

You'll need to be more specific about what 'it' is that returns that response. Also, starting from a fresh install will rule out a myriad of mistakes that could influence your results. In addition, a description of what you are trying to accomplish might be helpful, and might suggest opening a new t...
by Douglas6
Mon Jun 17, 2019 3:37 pm
Forum: Off topic discussion
Topic: how heavy is raspbian ?
Replies: 30
Views: 1011

Re: how heavy is raspbian ?

I don't know if it's due to electrons, but it has been said that the weight of a human soul is 21 grams. I would expect Raspbian to be something less than that.
by Douglas6
Mon Jun 17, 2019 2:59 pm
Forum: Android
Topic: Using Raspberrypi as a bluetooth scanner with Android
Replies: 3
Views: 488

Re: Using Raspberrypi as a bluetooth scanner with Android

You could do that on Pi, either by using one of the Android images, or using standard Raspian BlueZ tools, such as

Code: Select all

sudo hcitool lescan --duplicates 
and a programming language of you choice.
by Douglas6
Mon Jun 17, 2019 2:40 pm
Forum: Networking and servers
Topic: BLE connection with an android
Replies: 6
Views: 216

Re: BLE connection with an android

You can use one of a number of predefined UUIDs for services (https://www.bluetooth.com/specifications/gatt/services/) or characteristics (https://www.bluetooth.com/specifications/gatt/characteristics/). Or you can use your own random 128-bit UUID. I got mine from https://www.uuidgenerator.net/ and ...
by Douglas6
Sun Jun 16, 2019 10:00 pm
Forum: Troubleshooting
Topic: RPi3 to RPi3 bluetooth file transfer
Replies: 8
Views: 2508

Re: RPi3 to RPi3 bluetooth file transfer

1. No, pairing is never done automatically. Start obexpushd on one (the receiving) Pi. If you are starting obexpushd from a terminal window, leave that window open for the duration. If the Pis are already paired remove them both using bluetoothctl (in a separate window), and then pair and trust them...
by Douglas6
Sun Jun 16, 2019 9:50 pm
Forum: Beginners
Topic: [Guide] Receive files over Bluetooth on the command line
Replies: 12
Views: 17020

Re: [Guide] Receive files over Bluetooth on the command line

Not sure what's wrong. Are you sure you have the -C compatibility flag when starting bluetoothd?
by Douglas6
Fri Jun 14, 2019 7:34 pm
Forum: Networking and servers
Topic: BLE connection with an android
Replies: 6
Views: 216

Re: BLE connection with an android

You'll need to import from advertisement.py and service.py (which import bletools.py), but you should only need to make modifications to cputemp.py.
by Douglas6
Thu Jun 13, 2019 11:23 pm
Forum: Beginners
Topic: [Guide] Receive files over Bluetooth on the command line
Replies: 12
Views: 17020

Re: [Guide] Receive files over Bluetooth on the command line

What are the results of

Code: Select all

systemctl status obexpush
?
by Douglas6
Thu Jun 13, 2019 4:06 pm
Forum: Networking and servers
Topic: BLE connection with an android
Replies: 6
Views: 216

Re: BLE connection with an android

I just posted some Python code on Github to make a Raspberry Pi GATT server (peripheral).

Clone the repo, read the README, and try the code.

https://github.com/Douglas6/cputemp.git
by Douglas6
Thu Jun 13, 2019 1:41 am
Forum: Beginners
Topic: [Guide] Python BLE GATT server for the Raspberry Pi
Replies: 0
Views: 82

[Guide] Python BLE GATT server for the Raspberry Pi

So, I've published some Python code for creating a BLE GATT server on the Raspberry Pi. I'm not aware of any Python code for this, apart from The BlueZ examples example-advertisement and example-gatt-server from which I heavily stole. I moved the code around a bit, and tried to protect the end user ...
by Douglas6
Wed Jun 12, 2019 10:34 pm
Forum: General discussion
Topic: Using Bluetooth Microphone and 3.5 Speaker
Replies: 1
Views: 65

Re: Using Bluetooth Microphone and 3.5 Speaker

May be your post formatting, but I believe 'device "FC:58:FA:0C:74:0C"' should be on its own line.

I've never used BlueALSA and SCO, so I probably won't be of much help. What kind of microphone? Did you get it paired and trusted sucessfully?
by Douglas6
Sun Jun 09, 2019 2:18 am
Forum: General discussion
Topic: Difference in RASPBIAN STRETCH WITH DESKTOP and RASPBIAN STRETCH LITE.
Replies: 34
Views: 70546

Re: Difference in RASPBIAN STRETCH WITH DESKTOP and RASPBIAN STRETCH LITE.

Raspian lite may skimp on some Bluetooth functionality, like BlueALSA, just so ya know.
by Douglas6
Sat Jun 08, 2019 9:30 am
Forum: Troubleshooting
Topic: Bluetooth and hciuart not working
Replies: 2
Views: 94

Re: Bluetooth and hciuart not working

Try:

Code: Select all

sudo apt-get install pi-bluetooth 
Don't ever use rpi-update.
by Douglas6
Wed Jun 05, 2019 12:25 am
Forum: Raspbian
Topic: The much heralded "Buster"- When?
Replies: 24
Views: 1262

Re: The much heralded "Buster"- When?

When and where have you heard "any day now"?
by Douglas6
Mon Jun 03, 2019 5:13 pm
Forum: Advanced users
Topic: Need help connecting bluetooth device
Replies: 1
Views: 113

Re: Need help connecting bluetooth device

The services that bluetoothctl is reporting on that device (GAP and GATT) seem odd to me. It looks to me like a BLE device. Are you sure it is an HC-05 and not, say, an HM-10? Can you include a pic of the device? Or the source where you purchased it? [EDIT: The device name ('BT05') and manufacturer ...
by Douglas6
Sun Jun 02, 2019 1:47 pm
Forum: Troubleshooting
Topic: STICKY: Bluetooth not working after update - need info
Replies: 160
Views: 143863

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

Yes, you should have started a new thread. This one yearns to be locked.

You can try unmasking the hciuart service:

Code: Select all

sudo systemctl unmask hciuart 
Or you could try uninstalling bluetooth and pi-bluetooth and re-installing. But the best bet is to flash a new version of Raspbian Stretch.
by Douglas6
Sat Jun 01, 2019 9:48 pm
Forum: Beginners
Topic: Bluetooth connected to headphones but no sound. Raspberry Pi 3+
Replies: 4
Views: 192

Re: Bluetooth connected to headphones but no sound. Raspberry Pi 3+

My 2 cents: ignore the previous advice. PulseAudio is no longer recommended for Bluetooth streaming on the Pi. BlueALSA is now recommended and already installed (assuming a full install of Stretch.) You'll need to do just two things: 1. Click the Bluetooth icon at the top-right of the desktop to pai...
by Douglas6
Fri May 31, 2019 12:13 pm
Forum: Advanced users
Topic: Transfering Data between two Rpis using BLE
Replies: 17
Views: 1665

Re: Transfering Data between two Rpis using BLE

Here's some code I have to write a characteristic using bluepy: viewtopic.php?f=28&t=193923&p=1214901#p1214901
by Douglas6
Thu May 30, 2019 12:23 pm
Forum: Advanced users
Topic: Transfering Data between two Rpis using BLE
Replies: 17
Views: 1665

Re: Transfering Data between two Rpis using BLE

Are you running example-advertisement on the peripheral?
by Douglas6
Thu May 30, 2019 1:04 am
Forum: C/C++
Topic: Programming bluetooth using C++
Replies: 12
Views: 1349

Re: Programming bluetooth using C++

I have not found SINGLE documentation in "blueZ" package ( source code ) about D_Bus usage. Did you look into the BlueZ github directory as I recommended? Based on your response, I'm guessing no. Again, I can't help if you ignore my advice. If you are looking at using bluetoothctl from a C program,...
by Douglas6
Wed May 29, 2019 8:36 pm
Forum: General discussion
Topic: .asoundrc
Replies: 6
Views: 330

Re: .asoundrc

ALSA's global configuration file is /usr/share/alsa/alsa.conf, renamed some years from /etc/modeprobe.d/alsa-base.conf. The per-user configuration file is ~/.asoundrc and always has been. I use it all the time.
by Douglas6
Wed May 29, 2019 7:12 pm
Forum: Advanced users
Topic: Transfering Data between two Rpis using BLE
Replies: 17
Views: 1665

Re: Transferind Data between two Rpis using BLE

If you have the peripheral working, you can either use example-gatt-client on the central Pi, or use bluepy to create the client, and connect to and read/write characteristics from the peripheral. Lots of examples on the Internet.
by Douglas6
Wed May 29, 2019 6:47 pm
Forum: Advanced users
Topic: Transfering Data between two Rpis using BLE
Replies: 17
Views: 1665

Re: Transferind Data between two Rpis using BLE

There's sample Pi code in the test directory of the BlueZ github (example-gatt-server and example-gatt-client). They interface directly with BlueZ through its D-Bus interfaces. You can't use bluepy for central coding. There's a Python port of the node.js bleno library, but I've never used it.

Go to advanced search