morrolinux / mpradio-py

Morrolinux's Pirate radio (PiFmAdv wrapper with Bluetooth and mp3 support) - Stream music to your car's FM radio or use it as a Bluetooth speaker via headphone jack
73 stars 11 forks source link

Problem with mpradio not brocasting #60

Closed GiannisDorokidis closed 3 years ago

GiannisDorokidis commented 4 years ago

Hello good afternoon I am having an issue with mpradio not brocasting anymore at any frequency that i write on pirateradio.config on the usb stick that I am using. Here are some logs; 1 install ; https://pastebin.com/50gN2rGZ 2 status of mpradio after reboot; https://pastebin.com/U2kZgCRv 3 usb pirateradio.config file on usb stick (the only thing changed is the frequency and btBoost set to true https://pastebin.com/qi4cPaLj Also im using debian 9.8

GiannisDorokidis commented 4 years ago

ok tried to install this in debian 10 and it didnt work. I think this has the same issue as before Logs; 1.Install https://pastebin.com/ypCq9Rd6

  1. status https://pastebin.com/tys7UXc6
libmarleu commented 4 years ago

rpi4?

libmarleu commented 4 years ago

try to broadcast lower than 95.3MHz

GiannisDorokidis commented 4 years ago

rpi4?

raspberry pi zero w

GiannisDorokidis commented 4 years ago

Its not working i am broadcasting at 89.2mhz https://pastebin.com/Jx8w3dX7 The first time i forgot to plug the usb to the pi and it broadcasted on 88.0 by defult All of this is on raspbian 9

I tried this on raspbian 10 and it broadcasted again on 88.0 and it was playing normaly from the usb stick

Also does the raspbian version matter?

GiannisDorokidis commented 4 years ago

ok found an issue that might be the answer to my problem https://github.com/morrolinux/mpradio-py/issues/56 but I dont know how i can move the file Edit: i learned how to move files and now its working again

g-or-well commented 4 years ago

Hey there! I have the same issue on RasPi Zero W.

All the services are active and running. The pirateradio.config is in /pirateradio on fs root.

I can pair & connect via BT and when the Pi boots I can hear that the frequency set up in .config gets "jammed" i.e. no "regular" signal from any stations as my receiver is right next to the RasPi. But it stays quiet, no music, just some buzzing...

Is file ownership relevant here? I see that /pirateradio/pirateradio.config and the folder itself is owned by the user pi while the other files are owned by root.

GiannisDorokidis commented 4 years ago

Is file ownership relevant here? I see that /pirateradio/pirateradio.config and the folder itself is owned by the user pi while the other files are owned by root.

The pirateradio.config file has to be moved from the pi user to the flash storage

GiannisDorokidis commented 4 years ago

Is the pirateradio.config file on /home/pi/mpradio/install/pirateradio ?

g-or-well commented 4 years ago

nope, it's in [filesystem root]/pirateradio/...

GiannisDorokidis commented 4 years ago

nope, it's in [filesystem root]/pirateradio/...

I think this is the flash storage this is the right place for the file

g-or-well commented 4 years ago

ok strange, moved some audio files to /pirateradio/ and they are found and played after boot. Then I can connect via BT and start some music. It takes a moment but then audio switches to (I guess) the BT audio sink... It is very low volume compared to playing audio from RasPi memory, but that's another issue... Without the audio files in /pirateradio/ it gives me

mpradio bash[375]: Media scanner scanning folder: /pirateradio/
mpradio bash[375]: ERR: No songs to play

in syslog and I cannot play music via BT.

GiannisDorokidis commented 4 years ago

It is very low volume compared to playing audio from RasPi memory, but that's another issue...

I know I have that to

The pirateradio.config file and the music have to be on the flash drive not on the pi for this to work

It takes a moment but then audio switches to (I guess) the BT audio sink...

After Sometime it switches to the bt and if you noticed any audio stutters Just turn off wifi