The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Moode 9 bluetooth PIN code issue
#1
Hi,

The just released ~pre4 moode 9 code contains a new Bluetooth feature that supports PIN code authentication but currently it is not working correctly.

Help needed :-)

   

The symptom is that after entering the PIN code on the client the pairing appears to work (shows up as paired in Bluetooth Control screen) but the connection fails and thus bluealsa-aplay is not launched.

Here are the pieces

/etc/bluetooth/pin.conf
/usr/bin/bt-agent
/etc/systemd/system/bt-agent.service
/var/www/daemon/worker.php, job=bt_pin_code

PIN code=None
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput
ExecStartPost=/bin/sleep 1
ExecStartPost=/bin/hciconfig hci0 sspmode 1

PIN code = 123456
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput -p /etc/bluetooth/pin.conf
ExecStartPost=/bin/sleep 1
ExecStartPost=/bin/hciconfig hci0 sspmode 0

Note: sspmode (Secure Simple Pairing Mode) 

Links:
https://github.com/khvzak/bluez-tools
https://forums.raspberrypi.com/viewtopic.php?t=235519
https://stackoverflow.com/questions/5152...ng-pairing
https://stackoverflow.com/questions/5214...matching-p

I also tried PIN code auth with the existing /var/www/daemon/blu_agent.py script and no success.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Moode 9 bluetooth PIN code issue - by Tim Curtis - 04-19-2024, 09:29 PM

Forum Jump: