SBC (R-Pi) in-car music server (from "backup")
I know this can be done in two parts, but I'm looking for a "both-in-one". How do I get the Wi-Fi on the SBC to connect to two different networks? Do I need two Wi-Fi cards on the SBC? (and if "yes" HOW???)
What I need from the SBC: 1) Sync/back-up from the home server, over Wi-Fi, from folder "Music" I don't know if I need to push or pull. If I put new songs on to my server, I want the same songs on the SBC. 2) Serve up that music over Wi-Fi (maybe Bluetooth) to the Android car radio Ok, I've got the music on the SBC, how do I get it to switch to serving music to the radio? I have the parts to make an auto-shut-down pi server in my car. I have a server (MX Linux) in my home. I'm able to put an access-point/repeater just for the car to use. I don't have the Android radio yet. So, I can't give specs yet. Looking for a good system ATM |
Am I correct in understanding, that you want to sync music from your home server to your car audio? Then why do you need a third entity? If your car is parked within the reach of your home wifi, install something like syncthing directly on the radio and it will keep the folders synced, if not - you'll have to carry your SBC in your pocket so why not carry an SD card instead?
|
How to connect to the radio would depend on the radio's specifications and all seem to want to use either Apple car play or Android Auto apps. I do not know if it would be as simple as connecting over bluetooth and programming the Pi to be a music server using A2DP, AVCRP etc.
Assuming the Pi is headless, at moment I can only envision updates when the car is turned off. Some script that runs on shutdown to check if you are at home and connect to your wifi AP, for a flag that indicates an update is required and then sync the music files to the Pi. |
Quote:
Why do I need to carry it? I install into the car, with a dedicated PSU (with auto off*). There's so many places to hide something that small in a car. * I ass-u-me you know there's two pins on a SBC to short out that will run a shutdown -h now script? Also, they make small PSU that you hook into 12v AND Accessory, if the key is off it will tell the SBC to turn off. |
Quote:
(2) I've not done it with Bluetooth, but works with Wi-Fi (3) Yes, headless (4) Any hint on how to do that? I know where to find the turn-off script https://howchoo.com/pi/how-to-add-a-...-raspberry-pi/ |
4) If you are running Pi OS bookworm then it uses Network Manager by default. You can use nmcli to control on/off, check connections etc via a shutdown service script that runs from systemd. There are various ways to create some sort of simple http server that outputs something when accessed by curl. If the output indicates updates then sync the Pi with the server.
2) A streaming server isn't quite the same as wifi. Without knowing anything about the radio it could connect to a phone over bluetooth like a speaker or headset and use commands to start/stop etc. or Android auto app and I have no idea how that works. |
Quote:
Excuse me for saying so, but aren't you just dying to do anything at all as long as SBC is involved? :) |
Quote:
Gods I miss Damn Small Linux! Yeah, I know he's made a new one, but it doesn't work on Arm. DSL would be perfect for SBC. |
Quote:
(1) You do know that other storage can be added to SBC? And I don't mean just USB, have you looked at the specs for Pi 4 or 5? (2) Don't kink shame, it's rude :rolleyes: If I had a system that was 12v or less, that I knew would work, I'd use that. |
Quote:
|
Moderator Response
Moved: This thread is more suitable in <Linux - Embedded & Single-board computer> and has been moved accordingly to help your thread/question get the exposure it deserves.
|
I have been involved in developing Electronics hardware for the automotive environment. It's a noisy place.
I'd do what normal people do and use your mobile phone. |
All times are GMT -5. The time now is 08:31 AM. |