![]() As that was a first attempt, it was a bit confusing and I cannot quite recollect how it went. Only fixes i found that didnt work, were installing the dependency by itself, but i ended up with. On the Raspberry Pi, run the playback utility: bluealsa-aplay D8:50:E6:72:E1:EA The hardest part of this was establishing the Bluetooth connection between the tablet and the Raspberrry Pi. does anybody have an idea on how to fix it, i was trying to fix it, googling, but after 2 hours i am on the same place where i started. There is also an Agent API that would allow you to accept connections without needing to manually press buttons. dpkg-query: no packages found matching bluealsa. There is a Discoverable property on the Adapter interface that will turn it on/off. However the following should remove the need for those setup steps.įrom Python, the best way would be to use the BlueZ D-Bus API to answer your two questions. You should look to use bluetoothctl instead. That command has been deprecated back in 2017. However, neither of them cover your two questions of how to turn discovery on/off, and how to pair without needing the screen.įirstly, you have used hciconfig in a couple of places. There is a good article on using Bluetooth Audio with the Raspberry Pi at: How do I get past this last dialog box? Also, is there a service that I can start/stop when I need Bluetooth to be discoverable? Sudo nano /etc/systemd/system/rviceĮxecStart=/usr/bin/bt-agent -c NoInputNoOutputĮxecStartPost=/bin/hciconfig hci0 sspmode 1 Sudo nano /etc/systemd/system/rvice ĮxecStart=/usr/bin/bluealsa-aplay 00:00:00:00:00:00 Once changes have been made, hit Ctrl-X to save and exit Sudo nano /lib/systemd/system/rviceĮdit the ExecStart line and add "-profile=a2dp-sink" to the end of the line Using these sites as a guide, here is what I've done so far: This is fine for my prototype, but need to figure out how to get past this dialog (do I uninstall Blueman, is there an option I'm not finding, etc.). Obviously, I have to click OK for the connection to go through. When I pair my iPhone (or any untrusted device) I get a dialog box on the Raspberry Pi that states:ĭevice 'iPhone' has requested pairing. I believe my issue is with Blueman, but not sure how to resolve it. My issue is I can't get the paring to be automatic. Once the raspberry is installed in the physical Jukebox it will be running headless (still going to use the Rasbian O/S with GUI, but not hook up a monitor/etc). Press the button again and it disables Bluetooth discovery and reenables the normal processing of the Jukebox software. ![]() I'm writing Jukebox software in Python and want an option to suspend Jukebox operation and enable a bluetooth audio sink. I have a Raspberry Pi 4B running Rasbian Buster. I have a Raspberry Pi 4B running Rasbian Buster. ![]()
0 Comments
Leave a Reply. |