Go to advanced search

by Douglas6
Wed May 29, 2019 8:36 pm
Forum: General discussion
Topic: .asoundrc
Replies: 6
Views: 475

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

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

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.
by Douglas6
Wed May 29, 2019 2:10 pm
Forum: Advanced users
Topic: Transfering Data between two Rpis using BLE
Replies: 17
Views: 1824

Re: Transferind Data between two Rpis using BLE

There are no services running out of the box on the Pi, so no connection to be made. You'll need to set up a service on one Pi (the 'peripheral'), and add at least one characteristic. You'll need to start advertising on the peripheral. Then, on the other Pi (the 'central'), you should be able to con...
by Douglas6
Wed May 29, 2019 2:00 pm
Forum: General discussion
Topic: Read BLE device service, characteristic and descriptors
Replies: 6
Views: 499

Re: Read BLE device service, characteristic and descriptors

I'm not understanding, and of course I don't know how your Bluetooth device works. You say you are reading a characteristic on the Pi. So you have the data. I'm afraid I don't understand where notifications come in. There's a section in the bluepy documentation on how to read notifications, if your ...
by Douglas6
Wed May 29, 2019 1:52 pm
Forum: General discussion
Topic: .asoundrc
Replies: 6
Views: 475

Re: .asoundrc

I'm not sure if there is still a question? Have you done this?

Code: Select all

cd ~
nano .asoundrc
If there is text in the file, edit it. If not, add it. Save the file.
by Douglas6
Tue May 28, 2019 12:04 pm
Forum: General discussion
Topic: .asoundrc
Replies: 6
Views: 475

Re: .asoundrc

That file should be in your home directory, /home/pi, for example. But it's not necessary and may not be there by default. Create it if you need to.

Oh, also that's a hidden file, as seen by the prepended dot. 'ls -a' should show it if it's there.
by Douglas6
Tue May 28, 2019 10:51 am
Forum: Advanced users
Topic: Transfering Data between two Rpis using BLE
Replies: 17
Views: 1824

Re: Transferind Data between two Rpis using BLE

Possibly. What's your question?
by Douglas6
Tue May 28, 2019 10:48 am
Forum: General discussion
Topic: Read BLE device service, characteristic and descriptors
Replies: 6
Views: 499

Re: Read BLE device service, characteristic and descriptors

Node.js has excellent BLE libraries bleno and noble. I've used bluepy with Python. The BlueZ github has examples in Python and C. Gatttool and bluetoothctl are good CLI interfaces for exploring BLE devices.
by Douglas6
Mon May 27, 2019 2:37 pm
Forum: Other projects
Topic: External GPS with the pi zero w
Replies: 4
Views: 427

Re: External GPS with the pi zero w

Ok, you'll need to connect the GPS module to the Pi. I would use the default UARTs. Then you'll need to add the Bluetooth Serial Port Profile to the Pi, and use rfcomm to create a virtual serial port over Bluetooth. Then some software to read from the GPS and write to the /dev/rfcomm0 device. Plenty...
by Douglas6
Mon May 27, 2019 1:07 pm
Forum: Other projects
Topic: External GPS with the pi zero w
Replies: 4
Views: 427

Re: External GPS with the pi zero w

Why? What phone with Bluetooth doesn't have GPS built in? You may not even need the Pi. I did this some years back: https://www.raspberrypi.org/forums/viewtopic.php?p=734870#p734870. You'll need to attach an HC-05 (or HC-06) to the GPS module and supply appropriate power. I don't know how you would ...
by Douglas6
Sun May 26, 2019 11:47 pm
Forum: Troubleshooting
Topic: getting bluetooth to work on raspberry pi 3
Replies: 9
Views: 408

Re: getting bluetooth to work on raspberry pi 3

I recently edited my response with an extra sentence, so reread it. Good luck.
by Douglas6
Sun May 26, 2019 11:37 pm
Forum: Troubleshooting
Topic: getting bluetooth to work on raspberry pi 3
Replies: 9
Views: 408

Re: getting bluetooth to work on raspberry pi 3

Ok. The error seems to indicate a problem with the device tree, which is something I've never messed with. Afraid I can't help. The standard advice is to incrementally apply changes you've made to a working system to see where it breaks, tho I know that can be painful. You might want to focus on cha...
by Douglas6
Sun May 26, 2019 9:01 pm
Forum: Troubleshooting
Topic: getting bluetooth to work on raspberry pi 3
Replies: 9
Views: 408

Re: getting bluetooth to work on raspberry pi 3

What is the result of 'systemctl status hciuart'?
by Douglas6
Sun May 26, 2019 5:25 pm
Forum: Troubleshooting
Topic: getting bluetooth to work on raspberry pi 3
Replies: 9
Views: 408

Re: getting bluetooth to work on raspberry pi 3

You're the only one who knows what you've done to the Pi, so you're in the best position to undo it. I guess I would start with reinstalling bluetooth and pi-bluetooth. sudo apt-get --reinstall install bluetooth sudo apt-get --reinstall install pi-bluetooth Check the results with 'hciconfig -a', whi...
by Douglas6
Sun May 26, 2019 5:24 am
Forum: Troubleshooting
Topic: getting bluetooth to work on raspberry pi 3
Replies: 9
Views: 408

Re: getting bluetooth to work on raspberry pi 3

Your best bet is probably to start with a freshly installed OS on a new SD card. When you do, don't use 'sudo' to run bluetoothctl.
by Douglas6
Fri May 24, 2019 5:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using "bluetooth" command -how does "terminal" becomes bluetooth device ?
Replies: 3
Views: 385

Re: Using "bluetooth" command -how does "terminal" becomes bluetooth device ?

I feel like I have answered these questions before, but I'll try again. There is no 'bluetooth' command, I'll assume you are using bluetoothctl. There is only one adapter. Sometimes it is called a controller. Same thing. The 'devices' command only shows remote devices that are paired or advertising....
by Douglas6
Wed May 22, 2019 12:44 pm
Forum: General discussion
Topic: Bluetooth file transfer
Replies: 2
Views: 160

Re: Bluetooth file transfer

Here's some tips for transferring files from the Pi: viewtopic.php?p=675983#p675983.

Skip the bits about installing BlueZ, and the pairing bits are out of date. You can either zip up the folder first, or spin thru the directory and send them one at a time.
by Douglas6
Wed May 22, 2019 11:54 am
Forum: Troubleshooting
Topic: Need help! Bluetoothd[2492] issues?
Replies: 6
Views: 346

Re: Need help! Bluetoothd[2492] issues?

I'd recommend not to use 'sudo' for bluetoothctl. Apart from that, everything looks good. Bluetooth can be flakey.
by Douglas6
Tue May 21, 2019 12:42 am
Forum: General discussion
Topic: Raspberry Pi Bluetooth Woes
Replies: 6
Views: 380

Re: Raspberry Pi Bluetooth Woes

Not sure what to say, except that it works. First, make sure that you have the SPP correctly set up. Do this on the Pi: sudo sdp browse local That should list the Serial Port Profile. Then remove the pairings on both the Pi and the phone. On the Pi, enter bluetoothctl and enter 'remove <bdaddr>' whe...
by Douglas6
Mon May 20, 2019 2:45 pm
Forum: Troubleshooting
Topic: RPi-0W Bluetooth A2DP can't set as default, but works if used directly
Replies: 5
Views: 210

Re: RPi-0W Bluetooth A2DP can't set as default, but works if used directly

Yes, I intended that as a test, as it doesn't include the 'speaker' or 'mic' designations. I'm sorry, I don't understand why you're not defaulting to the BlueALSA device, or why the root user IS.
by Douglas6
Mon May 20, 2019 12:04 pm
Forum: Beginners
Topic: Advertising Bluetooth on startup
Replies: 1
Views: 85

Re: Advertising Bluetooth on startup

Does it run OK from the command line? How do you know it is or isn't running?
by Douglas6
Mon May 20, 2019 11:58 am
Forum: Troubleshooting
Topic: New Pi Zero W image bluetooth errors
Replies: 4
Views: 201

Re: New Pi Zero W image bluetooth errors

The problem is that the bluetooth.service is masked. You can try to unmask it:

Code: Select all

sudo systemctl unmask bluetooth 
by Douglas6
Mon May 20, 2019 11:50 am
Forum: Troubleshooting
Topic: RPi-0W Bluetooth A2DP can't set as default, but works if used directly
Replies: 5
Views: 210

Re: RPi-0W Bluetooth A2DP can't set as default, but works if used directly

Is the 'ipcm' in your .asoundrc file a typo in your post or in the file?

Have you tried the standard .asoundrc contents:

Code: Select all

defaults.bluealsa.interface "hci0"
defaults.bluealsa.device "xx:xx:xx:xx:xx:xx"
defaults.bluealsa.profile "a2dp"
defaults.bluealsa.delay 10000
by Douglas6
Sat May 18, 2019 8:25 pm
Forum: General discussion
Topic: Raspberry Pi Bluetooth Woes
Replies: 6
Views: 380

Re: Raspberry Pi Bluetooth Woes

Sounds like you don't want a HID service, but the Serial Port Profile. The Pi supports that, but it needs to be configured. Additionally, you'll want to want to start rfcomm to create a virtual serial port on the Pi that can be read and written to. Start here for some tips: https://www.raspberrypi.o...

Go to advanced search