[How To] Using the Satechi Bluetooth remote with moOde 5.4+ - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: [How To] Using the Satechi Bluetooth remote with moOde 5.4+ (/showthread.php?tid=1531) |
RE: [How To] Using the Satechi Bluetooth remote with moOde 5.4+ - Tenbagger - 07-14-2019 I just want to add my "this is seriously cool!" Thank you both! Have to admit; in my enthusiasm I spent several hours yesterday updating my RPi0W to test the procedure. No luck yet; it seems my Zero has some Bluetooth issues. This is just a theory – of course – I could be doing something wrong. Hope to test the procedure on a RPi3B+ during the week. I'm hoping to pair a 5 buttons Chubby Buttons remote, which I suspect can work with Kent's script. RE: [How To] Using the Satechi Bluetooth remote with moOde 5.4+ - TheOldPresbyope - 07-14-2019 (07-14-2019, 09:21 PM)Tenbagger Wrote: I just want to add my "this is seriously cool!" Thank you both! Haven't tried on a Pi Zero. I'll see if I get a chance in the next day or so. Right now I'm trying to understand what's going on with the BT Pairing Agent (on an RPi3A). Doesn't seem to be doing all the things I think it should, but maybe I'm the problem Why do you think your Zero has BT issues? Can it see other devices such as a smart phone? Pair with and connect with them? Regards, Kent Regards, Kent RE: [How To] Using the Satechi Bluetooth remote with moOde 5.4+ - TheOldPresbyope - 07-15-2019 @Tim Curtis Not having any luck getting the Satechi remote to pair/connect/trust using the Pairing Agent. moOde 5.4b2 running on RPi3A. Tested the Pairing Agent function first by connecting (then disconnecting) my Nexus 6P phone. Turn on the Satechi (which from its led I infer starts scanning; have also tried explicitly clicking the scan button on the Satechi). The Satechi just sits flashing its led showing it's scanning. A Bluetooth scanner app on my phone shows both it and the moOde player. The thing is, when using my phone, I still have to choose explicitly to select moOde from the list of available devices and connect to it. There's no comparable action available on this little remote. If I click "Scan for devices" in Bluez Config, the Satechi shows up in the list of devices. If I then try to pair with it in Bluez Config it disappears from the list. Regards, Kent RE: [How To] Using the Satechi Bluetooth remote with moOde 5.4+ - Tim Curtis - 07-15-2019 How do you pair it using bluetoothctl? Maybe BlueZ Config can be enhanced. RE: [How To] Using the Satechi Bluetooth remote with moOde 5.4+ - TheOldPresbyope - 07-15-2019 @Tim Curtis [Haven't looked at your Pairing Agent code, but at first blush it doesn't seem to matter in the following if the Agent is on or off.] In a nutshell: scan, pair, enter PIN, connect, trust. Code: pi@moode54b23a:~ $ sudo bluetoothctl Notes
Regards, Kent RE: [How To] Using the Satechi Bluetooth remote with moOde 5.4+ - Tenbagger - 07-15-2019 (07-14-2019, 09:33 PM)TheOldPresbyope Wrote: Why do you think your Zero has BT issues? Can it see other devices such as a smart phone? Pair with and connect with them?Yes; I can connect and pair with other devices. Chubby Buttons is not visible to Zero, but to my phone and my computer (with a keyboard icon). Using moOde 5.3.1, a quick test with RPi3B+ suggests it behaves in the same way. Regards, Dag RE: [How To] Using the Satechi Bluetooth remote with moOde 5.4+ - TheOldPresbyope - 07-17-2019 (07-15-2019, 06:40 PM)Tenbagger Wrote:(07-14-2019, 09:33 PM)TheOldPresbyope Wrote: Why do you think your Zero has BT issues? Can it see other devices such as a smart phone? Pair with and connect with them?Yes; I can connect and pair with other devices. Chubby Buttons is not visible to Zero, but to my phone and my computer (with a keyboard icon). [Rats, I composed a reply the other day but must have forgotten to post it. Got too distracted by the arrival of an RPi4B, I guess!] I was asking about your Zero, actually. Does it see other devices and can they see it? I just spun up an RPi0W with moOde 54beta2 and enabled Bluetooth. If I put my Satechi Remote into discovery mode then 'Scan for devices' on the RPi0W detects the Satechi Remote and also my other moOde players which have BT enabled. From the Stubby Buttons guide I just read, it looks like you have to press and hold the play/pause button for 5+ seconds to put it in discovery mode. I assume you are doing this. As I said in my original post, I do not use the moOde UI to set up the connection. I use bluetoothctl. I'm modifying my code to improve robustness and to try out Linux systemd, but this front-end connection business will stay the same for the time being. Regards, Kent RE: [How To] Using the Satechi Bluetooth remote with moOde 5.4+ - TheOldPresbyope - 07-18-2019 (07-13-2019, 11:40 PM)Tim Curtis Wrote: Isn't the slow startup due to the remote having to re-connect after coming out of sleep mode? The initial button press is probably lost because it serves only to wake up the remote and reinitiate the BT connection. Hi, Tim. It looks like you were right. I contrived an experiment which shows that when I click the Satechi Remote to "wake up the connection" it takes 3+/- seconds (more likely - than +) for the message to appear in syslog showing that udev has done its job. Other experiments suggest that the Python script starts running much less than a second later whether from udev I call my helper script or use the systemd machinery I've contrived since. it's annoying because with a 3 second delay a user is likely to keep clicking impatiently. Even I do It works fine once awake. I'm going to move this to a github repro so modifications will be easier to track. Regards, Kent Post edit: appears to be closer to 2 seconds, but still... RE: [How To] Using the Satechi Bluetooth remote with moOde 5.4+ - Tim Curtis - 07-18-2019 Thats no prob. I'd guess that many remotes that automatically sleep to conserve battery will eat the initial keypress that causes them to wake up. RE: [How To] Using the Satechi Bluetooth remote with moOde 5.4+ - Tenbagger - 07-19-2019 (07-17-2019, 03:05 PM)TheOldPresbyope Wrote: I was asking about your Zero, actually. Does it see other devices and can they see it? Yes, but it cannot see all devices: My Zero can see iPhone and MacBook Air, but not Polar watch and Chubby buttons. When I install Buster Lite on the Zero; it can see all, and it can pair with Chubby Buttons. Regards, Dag |