Code Monkey home page Code Monkey logo

mpradio's People

Contributors

donagrejja avatar giacomoguiduzzi avatar hurricos avatar miegl avatar morrolinux avatar noskcajn avatar owenashurst avatar stitcombe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mpradio's Issues

not detecting bluetooth devices

pi@raspberrypi:~ $ systemctl status mpradio
● mpradio.service - Morrolinux Pirate Radio
Loaded: loaded (/etc/systemd/system/mpradio.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2018-10-17 20:08:43 CEST; 1min 53s ago
Main PID: 4817 (mpradio)
CGroup: /system.slice/mpradio.service
├─4817 /bin/mpradio
├─4835 bash -c dd bs=40k skip=130 if="/pirateradio/migos.mp3" | sox -v 1 -r 44100 -G -t mp3 - -t wav - | /usr/local/bin/pi_fm_rds -ctl /home/pi/rds_ctl -ps "Bad and Boujee (feat. Lil Uzi Vert)" -rt "Bad and Boujee (feat. Lil
├─4836 dd bs=40k skip=130 if=/pirateradio/migos.mp3
├─4837 sox -v 1 -r 44100 -G -t mp3 - -t wav -
└─4838 /usr/local/bin/pi_fm_rds -ctl /home/pi/rds_ctl -ps Bad and Boujee (feat. Lil Uzi Vert) -rt Bad and Boujee (feat. Lil Uzi Vert) -audio - -freq 87.5

Oct 17 20:08:45 raspberrypi bash[4817]: Treble: 0
Oct 17 20:08:45 raspberrypi bash[4817]: no bluetooth device provided, playing mp3s...
Oct 17 20:08:45 raspberrypi bash[4817]: CONTROL_PIPE_SETUPAdding: /pirateradio/migos.mp3
Oct 17 20:08:45 raspberrypi bash[4817]: PLAY: /pirateradio/migos.mp3
Oct 17 20:08:45 raspberrypi bash[4817]: FORMAT: mp3
Oct 17 20:08:46 raspberrypi bash[4817]: FILE SIZE: 13837107 DURATION: 343.267 BS: 40
Oct 17 20:08:46 raspberrypi bash[4817]: seeking the track...
Oct 17 20:08:46 raspberrypi bash[4817]: setting audio output to fm
Oct 17 20:08:46 raspberrypi bash[4817]: CMDLINE: dd bs=40k skip=130 if="/pirateradio/migos.mp3" | sox -v 1 -r 44100 -G -t mp3 - -t wav - | /usr/local/bin/pi_fm_rds -ctl /home/pi/rds_ctl -ps "Bad and Boujee (feat. Lil Uzi Vert)" -rt "Ba
Oct 17 20:08:47 raspberrypi bash[4817]: sox WARN wav: Length in output .wav header will be wrong since can't seek to fix it

FAT32 USB connected with 1 .mp3 file and the config file, Bluetooth connected to my phone.

status mpradio

Hi morro,
today i've re-installed your mpradio on RPI Wifi Zero. I think there is an error on /etc/profile
sudo systemctl status mpradio

mpradio.service - Morrolinux Pirate Radio
   Loaded: loaded (/etc/systemd/system/mpradio.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2018-01-30 10:12:02 UTC; 2min 41s ago
  Process: 326 ExecStart=/bin/bash -l -c /home/pi/mpradio (code=exited, status=0/SUCCESS)
 Main PID: 326 (code=exited, status=0/SUCCESS)

Jan 30 10:11:54 raspberrypi systemd[1]: Started Morrolinux Pirate Radio.
Jan 30 10:11:59 raspberrypi bash[326]: /etc/profile: line 4: id: command not found
Jan 30 10:11:59 raspberrypi bash[326]: /etc/profile: line 4: [: : integer expression expec
Jan 30 10:11:59 raspberrypi bash[326]: mesg: ttyname failed: Inappropriate ioctl for devic
Jan 30 10:12:02 raspberrypi bash[326]: 107.0
Jan 30 10:12:02 raspberrypi bash[326]: /pirateradio
Jan 30 10:12:02 raspberrypi bash[326]: no bluetooth device provided, playing mp3s...

Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

Hi Morrolinux! I'm very interesting in your project! but i have this out:
(i tried without graphic entorn and its the same)

sudo systemctl status mpradio
● mpradio.service - Morrolinux Pirate Radio
Loaded: loaded (/etc/systemd/system/mpradio.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Tue 2018-01-02 14:02:16 UTC; 3min 21s ago
Process: 1249 ExecStart=/bin/bash -l -c /home/pi/mpradio (code=exited, status=0/SUCCESS)
Main PID: 1249 (code=exited, status=0/SUCCESS)

Jan 02 14:02:15 raspberrypi bash[1249]: /etc/profile: line 4: id: command not found
Jan 02 14:02:15 raspberrypi bash[1249]: /etc/profile: line 4: [: : integer expression expected
Jan 02 14:02:16 raspberrypi bash[1249]: 88.5
Jan 02 14:02:16 raspberrypi bash[1249]: /pirateradio
Jan 02 14:02:16 raspberrypi bash[1249]: no bluetooth device provided, playing mp3s...
Jan 02 14:02:16 raspberrypi sudo[1275]: root : TTY=unknown ; PWD=/ ; USER=pi ; COMMAND=/bin/bash -c pulseaudio -D
Jan 02 14:02:16 raspberrypi sudo[1275]: pam_unix(sudo:session): session opened for user pi by (uid=0)
Jan 02 14:02:16 raspberrypi pulseaudio[1281]: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Jan 02 14:02:16 raspberrypi pulseaudio[1281]: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Jan 02 14:02:16 raspberrypi sudo[1275]: pam_unix(sudo:session): session closed for user pi

Bluetooth pin problem

Hello! My problem is when i try to connect to the pi my phone says that the pin code is wrong.
I used pin 0000 each try but it never connected.
However when i hooked the pi onto a monitor it started to work again. When i unplugged the monitor and boot the pi my phone didn't connect again... (Sorry for bad English). Could you please help me? I used your img file and a usb Bluetooth dongle.

Retrieval of song metadata during (bluetooth) playback

As far as I can tell, in order to seamlessly transmit music metadata from a BT media source, we would need to set up the AVRCP protocol between the device and the Pi. I have not done quite enough research to know whether this is the most platform-agnostic means (bar building companion apps), let alone whether it will work, but I did notice you did some work with file transfers over BT, so you're probably on a similar page as I am. I was previously under the impression that A2DP was a superset of AVRCP, but I've (thankfully) been corrected -- thankfully, since bluealsa does not appear to support it natively yet.

I may have the time to implement retrieving songnames from music metadata when playing from storage. There may be some trouble if using mp3tag, as in my experience it seems to choke on anything but the most standard ID3 tags; even album art can confuse it.

Bluetooth problem

Hello, i have install version 1.1 on a Raspberry B model and add a bluetooth dongle to it. From USB is playing on all the song and stuff. When i try to conect from my phone to it i found it as mpradio device, pair with it with pin code 0000, so far, so good. When i play music from Spotify or other media i get no sound on radio.
When i check the console and everything i found this error

Jun 04 19:01:43 raspberrypi systemd[1]: Started Bluetooth service.
Jun 04 19:01:43 raspberrypi bluetoothd[327]: Starting SDP server
Jun 04 19:01:43 raspberrypi bluetoothd[327]: Bluetooth management interface 1.14 initialized
Jun 04 19:01:43 raspberrypi bluetoothd[327]: Failed to obtain handles for "Service Changed" characteristic
Jun 04 19:01:43 raspberrypi bluetoothd[327]: Sap driver initialization failed.
Jun 04 19:01:43 raspberrypi bluetoothd[327]: sap-server: Operation not permitted (1)
Jun 04 19:01:44 raspberrypi bluetoothd[327]: Endpoint registered: sender=:1.4 path=/A2DP/SBC/Source/1
Jun 04 19:01:44 raspberrypi bluetoothd[327]: Endpoint registered: sender=:1.4 path=/A2DP/SBC/Sink/1
Jun 04 19:06:25 raspberrypi bluetoothd[327]: Endpoint registered: sender=:1.4 path=/A2DP/SBC/Sink/2
Jun 04 19:06:37 raspberrypi bluetoothd[327]: Unable to get io data for Hands-Free unit: getpeername: Transport endpoint is not connected (107)

and the response for systemctl status mpradio is:
pi@raspberrypi:/etc $ systemctl status mpradio
● mpradio.service - Morrolinux Pirate Radio
Loaded: loaded (/etc/systemd/system/mpradio.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Mon 2018-06-04 19:06:29 UTC; 14min ago
Process: 334 ExecStart=/bin/bash -l -c /bin/mpradio (code=killed, signal=TERM)
Main PID: 334 (code=killed, signal=TERM)

Jun 04 19:06:29 raspberrypi bash[334]: PS set to: "- GEMITA"
Jun 04 19:06:29 raspberrypi bash[334]: PS set to: "TAIZ MAD"
Jun 04 19:06:29 raspberrypi bash[334]: PS set to: "ADMAN 16"
Jun 04 19:06:29 raspberrypi bash[334]: PS set to: "16 I Don"
Jun 04 19:06:29 raspberrypi bash[334]: PS set to: "on t car"
Jun 04 19:06:29 raspberrypi bash[334]: PS set to: "are Kepl"
Jun 04 19:06:29 raspberrypi bash[334]: Terminating: cleanly deactivated the DMA engine and killed the carrier.
Jun 04 19:06:29 raspberrypi bash[334]: sox FAIL sox: -' error writing output file: Broken pipe Jun 04 19:06:29 raspberrypi bash[334]: sox WARN sox: -' output clipped 148 samples; decrease volume?
Jun 04 19:06:29 raspberrypi systemd[1]: Stopped Morrolinux Pirate Radio.

Default Channel Issue

It seems the default channel (after runnning the install) actually defaults to "88." and not "88.8" as it says in settings_provider.cc DEFAULTFREQ.

(First time submitting a Github Issue, not sure what the language etiquette is).

Doesn't appear to work on Raspberry Pi Zero W

I first installed the DD image, but that didn't work at all. So I uninstalled mpradio and installed it from this repo. And MP3 works. But Bluetooth doesn't. I had to install some Bluetooth stuff (notably pi-bluetooth) for Bluetooth to work at all and then make my own simple-agent using a python script I found that replicates it (there was no simple-agent.sh). But it still doesn't work. I get an error, after running mpradio:

pi@mpradio:~ $ ./mpradio 40:40:A7:CD:74:46

106.0
/pirateradio
40:40:A7:CD:74:46
Password:
sox WARN wav: Length in output .wav header will be wrong si
ce can't seek to fix it
Using mbox device /dev/vcio.
Allocating physical memory: size = 3403776     mem_ref = 4
   bus_addr = 5f2f6000     virt_addr = 0xb6865000
ppm corr is 0.0000, divider is 1096.4912 (1096 + 2012*2^-12
 [nominal 1096.4912].
Stream error: Invalid argument
Using stdin for audio input.
Input: 44100 Hz, upsampling factor: 5.17
2 channels, generating stereo multiplex.
Created low-pass FIR filter for audio channels, with cutoff
at 12000.0 Hz
PI: 1234, PS: "BLUETOOTH".
RT: "A2DP BLUETOOTH"
Starting to transmit on 106.0 MHz.
Could not rewind in audio file, terminating
Terminating: cleanly deactivated the DMA engine and killed
he carrier.
pi@mpradio:~ $

Turn off read only on 1.1 image?

Hi, how do I turn off read only on 1.1 image?

I tried the roswitch.sh command in the readme but it says no such file or directory.

Erroneous Language

I think you need a *sh script and not a cpp language.
p.s. remove srand inside loop

Cannot change radio frequency

First off all thank you for making this an easy install but I cannot for the life of me change the frequency at which the station broadcasted. I've tried the flash drive method and the app method neither of them work. Also there is slight static when playing music not when I first connect to it thought. It isn't a big issue. Just wondering if im doing something wrong

"Losing signal" between songs

Between the songs, theres 1 or 2 seconds of very loud noise. The same noise as when there's no signal (as when the Pi is turned off.)

Not working on Pi Zero W

Hi.

I'm having some issues with this on my Pi Zero W.

I've tried the 0.6 version both image download and the source download.
Here mpradio seems to start and work properly but when pairing it doesn't let me pair anything into it.
I can't find anything wrong in the config in the ready image.

I've also tried the git repo version and here it's also not working.
Pairing works properly here but it's missing options for playing sound to the device.
If i change the class to 0x240420 it appears as a car audio / multimedia unit but still doesn't present options for playing media to the devie.
My phone doesn't stay connected when i've connected to the device either.
mpradio is in status "dead" that is not run and pulseaudio is also not running and neither is the radio software.

Sorry to say but I have yet to find any version of this software that just works.

Any hints to what i'm doing wrong ? Or any information that you need to clarify things ?

Thanks.

can this recive airwaves from a anntena and transmit via BT?

`int play_bt(string device)
{
string sox_params="";
string output="sudo /usr/local/bin/"+s.implementation+" "+s.opSwitch+"ps 'BLUETOOTH' "+s.opSwitch+"rt 'A2DP BLUETOOTH' "+s.opSwitch+"freq "+s.freq+" "+s.opSwitch+"audio -";
set_output(output); /**< change output device if specified */
set_effects(sox_params);

ps.songName = "Bluetooth";
update_now_playing();

string cmdline="arecord -D bluealsa:HCI=hci0,DEV="+device+" -f cd -c 2 | sox -t raw -v "+s.btGain+" -G -b 16 -e signed -c 2 -r 44100 - -t wav - "+sox_params+" | "+output;
cout<<"CMDLINE: "<<cmdline<<endl;
//string cmdline="arecord -D bluealsa -f cd -c 2 | sox -t raw -v "+s.btGain+" -G -b 16 -e signed -c 2 -r 44100 - -t wav - "+sox_params+" | "+output;  //legacy mode

system(cmdline.c_str());
return 0;`

Bluetooth audio from windows PC has a high pitched noise and is quiet.

Hey first thanks for making this project, it's pretty awesome. Secondly I know you've moved the project to mpradio-py, but for the life of me I cannot get it working on my raspberry pi zero w, so i just installed one of the precompiled images. Works great.

My issue is when I'm playing BT audio from a windows 10 pc, there is a persistent high pitched squeal.
This seems to go away when i'm using an android phone.

Thanks in advance for any insight.

Does not appear to work on RPI3

Hello!

Just saw your write up on your blog and I would like to try this myself, I ran the install instructions as per your Github and the RPI appears to be broadcasting sits bluetooth and I can succesfully connect. However the Pi does not appear to be transmitting and I have no idea how to fetch a log or debug this. Could you help guide me?

sox WARN

When I check the mpradio status, it says it is active in green but this is an error I get:

Mar 06 00:36:11 pi bash[1831]: sox WARN formats: can't set sample rate
Mar 06 00:36:11 pi bash[1831]: sox WARN wav: Length in output .wav head
lines 1-21/21 (END)

I can hear loud static every now and then, presumably when it switches songs. It appears to load from my USB drive just fine. I have a fork that worked, presumably because of pulse audio changes?

Issues installing and removing

Hi,
i had a few Bluetooth FM Transmitters with RDS but none of them can supply song info from Bluetooth over FM-RDS, only from microSD card. Im hopping that this software can do that.

Let me explain what I hope/wish/need this software to do:
Stream music (in stereo) from phone via bluetooth to Pi3 and then to car stereo with artist name and song title ( scrolling (preferably) or artist name (3-5 secs) and then song name (3-5 secs) ) via FM-RDS.

I had a rPi3 lying around pointlessly and did a clean install, some update, upgrade and dist-upgrade. Then went directly and installed mpradio but I had some issues.
After that I removed it and installed it again and had the same issues again (as far as I can tell).

Installation:
installing.txt

Removing:
removing.txt

I am a beginner with PI's and Linux. No clues on debugging.

PS I've commented the reboot part out of the installer, so that I can have the debug code.

Add option to disable BT and add storage directory

I'd like the option to disable bluetooth and add a storage path to where my music will live on the Pi instead of a USB stick.

I've tried running mpradio on my Pi 2 which doesn't have bluetooth and it fails;

pi@raspberrypi:~ $ mpradio freq: 88.30 btGain: 1.7 storageGain: 1 persistentPlaylist: 1 resumePlayback: 1 shuffle: 1 rdsUpdateInterval: 3 rdsCharsJump: 6 Output: fm Format: mp3 -o -iname *.flac -o -iname *.wav implementation: pi_fm_adv Treble: 0 no bluetooth device provided, playing mp3s... terminate called without an active exception CONTROL_PIPE_SETUPAborted

Any ideas?

Raspberry pi 3 not transmitting audio from iphone

i am trying this on the raspberry pi 3 using its built in bluetooth. My iPhone is paired and connects just fine but when I try to play audio from my phone the mpradio service stops. It does play mp3's from a usb but the bluetooth does not work. Please help
Edit:the 1.0 dd image works just fine on my rpi 3, with the mp3’s not playing but Bluetooth works, and was unable to get it running on my pi 0w, as that is my end goal

Bluetooth not piping to FM

I'm having issues with my Pi Zero W when using bluetooth piping to FM. I've gotten the USB to play successfully over FM, so I know my setup works. I'm thinking it's an issue with the bt-setup script. Whenever I try to pipe from my phone over bluetooth the mpradio service fails.

I've tried stopping the bt-setup service, then restarting the mpradio service, confirmed it's running, then start the bt-setup service. As soon as I start piping over bluetooth, the mpradio service will fail again.

Here's the errors I'm getting from mpradio:

● mpradio.service - Morrolinux Pirate Radio
Loaded: loaded (/etc/systemd/system/mpradio.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Sat 2019-01-05 17:18:34 CST; 1min 32s ago
Process: 16048 ExecStart=/bin/bash -l -c /bin/mpradio (code=killed, signal=ABRT)
Main PID: 16048 (code=killed, signal=ABRT)

Jan 05 17:18:34 rPiZero bash[16048]: Output: fm
Jan 05 17:18:34 rPiZero bash[16048]: Format: mp3 -o -iname *.flac -o -iname *.wav
Jan 05 17:18:34 rPiZero bash[16048]: implementation: pi_fm_rds
Jan 05 17:18:34 rPiZero bash[16048]: Treble: 0
Jan 05 17:18:34 rPiZero bash[16048]: no bluetooth device provided, playing mp3s...
Jan 05 17:18:34 rPiZero bash[16048]: terminate called without an active exception
Jan 05 17:18:34 rPiZero bash[16048]: CONTROL_PIPE_SETUP
Jan 05 17:18:34 rPiZero systemd[1]: mpradio.service: Main process exited, code=killed, status=6/ABRT
Jan 05 17:18:34 rPiZero systemd[1]: mpradio.service: Unit entered failed state.
Jan 05 17:18:34 rPiZero systemd[1]: mpradio.service: Failed with result 'signal'.

Am I missing something here? Any ideas on how I can get this working?

mpradio bluetooth cant connect

its working but, i want to broadcast songs via my phone bluetooth

after pairing and connecting my phone to the RPI 3, it disconnect and cant connect now.
MPRADIO is the name of the rpi bluetooth.
any solution here.

Booting Error

Hello, I seem to be having a problem with the running of this program, I'm new to coding and Raspberry Pi so sorry if this is a really stupid problem, I posted the "sudo systemctl status mpradio" command results below.

● mpradio.service - Morrolinux Pirate Radio
Loaded: loaded (/etc/systemd/system/mpradio.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2018-04-05 23:10:28 UTC; 3s ago
Process: 25778 ExecStart=/bin/bash -l -c /home/pi/mpradio (code=exited, status=126)
Main PID: 25778 (code=exited, status=126)

Apr 05 23:10:28 raspberrypi systemd[1]: Started Morrolinux Pirate Radio.
Apr 05 23:10:28 raspberrypi bash[25778]: /etc/profile: line 4: id: command not found
Apr 05 23:10:28 raspberrypi bash[25778]: /etc/profile: line 4: [: : integer expression expected
Apr 05 23:10:28 raspberrypi bash[25778]: mesg: ttyname failed: Inappropriate ioctl for device
Apr 05 23:10:28 raspberrypi bash[25778]: /bin/bash: /home/pi/mpradio: Is a directory
Apr 05 23:10:28 raspberrypi systemd[1]: mpradio.service: Main process exited, code=exited, status=126/n/a
Apr 05 23:10:28 raspberrypi systemd[1]: mpradio.service: Unit entered failed state.
Apr 05 23:10:28 raspberrypi systemd[1]: mpradio.service: Failed with result 'exit-code'.
pi@raspberrypi:~ $

raspberry pi z w

great project , is this working out of the box on a raspeberry pi zero w ?

uninstall crash fstab external HDD

Hello,

i installed this on my Raspberry Pi 2 raspbian Jessie. And now my external Harddrive cant be mounted via fstab. Do you have any idea how i can solve this?

I already deleted the backup udev files.

thank you very much.

uname -a
Linux raspberrypi 4.9.78-v7+ #1084 SMP Thu Jan 25 18:05:49 GMT 2018 armv7l GNU/Linux

`mpradio` broken by changes in bluez-alsa vers. 0.{8,9}

Similar issue to what is seen here.

Simply running systemctl enable bluealsa is not sufficient in bluealsa version 0.9, though it worked fine in version 0.7. This is because the bluealsa binary now requires you to specify on the command line which profile you would like to run with, if it is not a2dp-source.

From /usr/bin/bluealsa --help:

By default only output profiles are enabled, which includes A2DP Source and
HSP/HFP Audio Gateways. If one wants to enable other set of profiles, it is
required to explicitly specify all of them using `-p NAME` options.

In order to override manually, we must override systemd. We start off with the following output for systemctl cat bluealsa.service:

# /lib/systemd/system/bluealsa.service
[Unit]
Description=BluezALSA proxy
Requires=bluetooth.service
After=bluetooth.service

[Service]
Type=simple
User=root
ExecStart=/usr/bin/bluealsa

We must edit this and add lines to override ExecStart, via sudo systemctl edit bluealsa.service:

[Service]
ExecStart=
ExecStart=/usr/bin/bluealsa -p a2dp-sink

Once we run sudo systemctl daemon-reload && sudo systemctl restart bluealsa.service, bluealsa and therefore mpradio will return to functioning normally.

I'm looking into what is required to automate the process of editing the systemd configuration for this; the issue I linked above discusses editing an init-file, but since mpradio leverages systemd, this is not a solution. Instead, we should follow standard protocol for modifying systemd files.

As far as I can tell, this just then involves the addition of a few lines to install.sh near where we systemctl enable bluealsa.service:

mkdir -p /etc/systemd/system/bluealsa.service.d/
cat << 'EOF' >> /etc/systemd/system/bluealsa.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/bluealsa -p a2dp-sink
EOF

I will write the commit and test.

Bluetooth streaming issues on RPI 3B+

Hello, I have a problem with bluetooth streaming. After connecting with a phone and when I start audio player, the sound is being transmitted for a few seconds and then it stops. I assume that PiFmRds stops working because there is no RF signal. When I disconnect bluetooth, it starts transmitting audio from pendrive, and it works fine without issues. When I connect with bluetooth again it works for a few seconds and crashes. What logs do you need? Is there anything else I need to check? I use it on Raspbian lite on Raspberry Pi 3b+

raspberry pi zero w

Hi there great project,

I have a fresh install of

RASPBIAN STRETCH LITE
Minimal image based on Debian Stretch
Version:September 2017
Release date:2017-09-07
Kernel version:4.9
Release notes:Link

I run the install/install.sh

gcc -Wall -std=gnu99 -c -g -O3 -march=armv6 -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -ffast-math -DRASPI=1 control_pipe.c
gcc -Wall -std=gnu99 -c -g -O3 -march=armv6 -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -ffast-math -DRASPI=1 mailbox.c
gcc -o pi_fm_rds rds.o waveforms.o mailbox.o pi_fm_rds.o fm_mpx.o control_pipe.o -lm -lsndfile
Installation completed! Rebooting in 10 seconds...

it reboots but i'm not seeing any device to pair in my android Bluetooth menu , any insights on to troubleshoot it ?

thank you in advance

RDS displays unicode characters wrong

When playing tracks with unicode characters, for example Twarres - Fûgelfrij, it gets displayed wrongly as Twarres - F(gelfrij. RDS 2.0 supports unicode, so it should be possible to make this working.

Bluetooth Media Control and display

So first of all thanks for this really cool project.
The only two things I'm still missing from this is the possibility to skip songs/pause on a bt client player device (like a phone) and the forwarding of the currently playing track into rds.
I've done some reasearch because I'd like to help integrating them via PR but I don't understand the project enough for now.
The thing needed for this is probably the AVCRP protocol to control media playback and get more info from apps integrating into this protocol on phones. I found out that you can access this information/send info to bluez via the dbus but I could not get it done myself (partly because of bluez documentation beeing sparse). Does anybody know more about this topic?

Bluetooth still not piping to FM

Hi, I am still having the same issue as #56 the update has not fixed it. I am trying to install on a clean install of both rasbian desktop and lite on a pi 3b+

Also is it possible for the pi to automatically connect to my phone on boot?

Thank you

raspberry pi 3

It isnt working in my raspberry pi 3. i used the install script but bt is rejecting my nexus

Standardizing installation away from /home/pi

Just a followup on what you said in response to the initial pull request:

... As of PiFmRds... yea it would make sense to move it to bin as well.. but maybe only if we can copy just the executable (which I haven't tried as well)

Ideally, as an end user, I would like to be able to git clone the repository, cd mpradio && sudo make ./install.sh, and then sudo rm -rf ~/mpradio ~/PiFmRds after installation and reboot while retaining full functionality. Really, as the end-user, I probably shouldn't be seeing anything I don't directly need to interact with during runtime in my /home/pi.

That's ideally, of course. It's hardly necessary or even useful, but it would clean up things in the home directory, which is, I guess, a reasonable goal.

Trouble with RPi 3 Model B

Hey, loved the project.
I'm trying all afternoon to try to make it works, but it doesn't. I'm not so used to linux, and i know very little. But i tried to have some logs and i receive this back:
mpradio.service - Morrolinux Pirate Radio
Loaded: loaded (/etc/systemd/system/mpradio.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2017-11-10 18:14:29 UTC; 13min ago
Main PID: 475 (mpradio)
CGroup: /system.slice/mpradio.service
├─475 /home/pi/mpradio
├─681 pulseaudio -D
├─881 sh -c /usr/bin/sudo -u pi -s pulseaudio -D
├─882 /usr/bin/sudo -u pi -s pulseaudio -D
├─886 pulseaudio -D
├─887 pulseaudio -D
└─888 pulseaudio -D

Nov 10 18:27:45 raspberrypi bash[475]: sox WARN formats: can't set sample rate 48000; using 44100
Nov 10 18:27:45 raspberrypi bash[475]: sox FAIL sox: -' error writing output file: Broken pipe Nov 10 18:27:45 raspberrypi bash[475]: sh: 1: /home/pi/PiFmRds/src/pi_fm_rds: not found Nov 10 18:27:45 raspberrypi bash[475]: sox WARN formats: can't set sample rate 48000; using 44100 Nov 10 18:27:45 raspberrypi bash[475]: sox FAIL sox: -' error writing output file: Broken pipe
Nov 10 18:27:45 raspberrypi bash[475]: sh: 1: /home/pi/PiFmRds/src/pi_fm_rds: not found
Nov 10 18:27:45 raspberrypi bash[475]: sox WARN formats: can't set sample rate 48000; using 44100
Nov 10 18:27:45 raspberrypi bash[475]: sox FAIL sox: `-' error writing output file: Broken pipe
Nov 10 18:27:45 raspberrypi sudo[882]: root : TTY=unknown ; PWD=/ ; USER=pi ; COMMAND=/bin/bash -c pulseaudio -D
Nov 10 18:27:45 raspberrypi sudo[882]: pam_unix(sudo:session): session opened for user pi by (uid=0)

and i cannot hear anything on the 88.8 freq. Can you help me? or i'm doing something wrong? :)

RDS Scrolling stopped working

The system was working perfectly, until I re-installed it on a new SD card and then the 8char limitation kicked in .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.