Author Topic: EDM RDS  (Read 1679 times)

Offline StickyWicket

  • Full Member
  • ***
  • Join Date: Sep 2015
  • Location: Wenatchee, WA
  • Posts: 101
  • Kudos: 3
EDM RDS
« on: December 04, 2017, 07:56:39 PM »
Just bought an EDM with RDS trying to get it to work and seem to be running into issues with it not fully installing the plugin.

Ive made the cord and set the file to use GPIO 20/21

Tried swapping the wires with no change.

Do I have to do anything with the EDM and the cord it came with? I dont have a computer with a serial port.

Do we need to have a newer SHA hash?

The plugin stated that it failed to install. It does show up in the menus but I get the None errors about it not having a send command. (Sorry dont have the exact text from that message)

Would love to get this working, I can do TeamViewer if needed.

Offline Bshaver

  • Developer
  • ******
  • Join Date: Aug 2014
  • Location: Denver, CO
  • Posts: 1,397
  • Kudos: 22
Re: EDM RDS
« Reply #1 on: December 04, 2017, 09:31:46 PM »
Usually running all the commands manually gets it running. There are a few posts describing what needs to be done.
Denver Colorado
45,000 blinky blinks mix of pixels and 130 AC Channels (powered by Minleon & Lynx) ALL Powered by FPP and Falcon!

Offline mdahm

  • Newbie
  • *
  • Join Date: May 2017
  • Location:
  • Posts: 14
  • Kudos: 0
Re: EDM RDS
« Reply #2 on: December 12, 2017, 12:03:33 PM »
Go to the following thread and on page 2 is a detailed instruction on how to add the script manually.  The install through FPP does not work.  http://falconchristmas.com/forum/index.php/topic,3894.15.html

Offline amcknight

  • Newbie
  • *
  • Join Date: Feb 2018
  • Location:
  • Posts: 1
  • Kudos: 0
Re: EDM RDS
« Reply #3 on: February 10, 2018, 05:24:38 PM »
[Mostly] Comprehensive guide to get FPP to send RDS info to the EDM-RDS

rev. 0 -- 2-10-2018

Below is the culmination of several articles and works completed by others, I cannot take credit for the actual programming work and troubleshooting done by these folks (drlucas and Bshaver to name a couple). I also cannot guarantee this method will work for absolutely everyone, but it's what finally worked for me. I'm going to assume that users have a general knowledge of how to use the FPP GUI, Linux command line operations and "nano" to edit and save.

NOTE: I've not currently been able to resolve an issue involving the failed termination of the PiGPIO process upon shutdown. I've not noticed any ill effects, however.

My hardware Setup: Raspberry Pi 3 w/Logitech wireless keyboard/trackpad, EDM-RDS (recent model, purchased in 2018), Behringer 302USB Mixer, Sabrent USB 3.0 powered hub, UGreen USB to RS-232 DB9 Serial Adapter Cable, 6ft USB 2.0 Mini-B cable with ferrite bead (modified with single pin connectors).

My Software Setup: FPP updated to v1.10 on the Pi. FileZilla v3.30.0 and MiniRDS v1.3 installed on a Windows 7 PC.


EDM-RDS Initial Hardware Programming:
 

To program the RDS module for the first time follow the instructions as provided by EDM Design in their instruction manual. (http://www.edmdesign.com/docs/EDM-TX-RDS.pdf)

I used a "UGreen USB to RS-232 DB9 Serial Adapter Cable" to connect to the "mini-usb to serial" cable that came with the EDM-RDS. (Be sure to figure out which COM port has been assigned to the USB to serial cable you've connected to your PC before you start trying to send info to the EDM)

I also chose to use MiniRDS rather than TinyRDS found here, noted as "Older Version": http://pira.cz/rds/show.asp?art=minirds_encoder


EDM Plug-in Installation:
 

At the time I'm writing this, the EDM plug-in cannot be installed from the FPP GUI "Plug-in" page even though you're able to select it. (Don't even bother, the install WILL hang.). The plug-in will need to be installed manually, but will require some editing of the installation files before everything will install properly. There have apparently been some changes to where the PiGPIO files were hosted and some permissions issues that others have since found workarounds.

I will also briefly cover the USB cable modification in Step 4.


Step 1: Copying the EDM plug-in to the Pi

a. Download drlucas's EDM plug-in from GitHub (https://github.com/drlucas/fpp-edmrds) and unzip into a temporary folder.

b. Using FileZilla, log in to your Pi; enter your Pi's IP address (typically displayed as one of the final lines of the FPP boot-up), Username: fpp, Password: falcon, Port: 22.

c. In FileZilla, navigate to the /home/fpp/media/plugins/ folder on your Pi and create a folder called "edmrds" (no quotes) within the "plugins" folder.

d. Copy the files you just unzipped from your PC into the "edmrds" folder you just created on your Pi. (Select all, drag and drop method worked for me)


Step 2: Modifying the plug-in's install files

a.  Log in to your FPP locally and from the command line navigate to the "edmrds" folder by typing: cd /home/fpp/media/plugins/edmrds

b. At the command line, type: sudo nano fpp_install.sh and make the following changes to this file (shown in bold red, other notes in bold blue).

#!/bin/bash

pushd $(dirname $(which $0))

sudo cp pigpiod /etc/init.d
sudo chmod 755 /etc/init.d/pigpiod
sudo chmod +x /home/fpp/media/plugins/edmrds/callbacks.py
sudo chmod +x /home/fpp/media/plugins/edmrds/rds-song.py

Delete this line-->> /usr/bin/wget http://abyz.co.uk/rpi/pigpio/VERSIONS/pigpio-V22.zip
rm pigpio.tar
/usr/bin/wget abyz.me.uk/rpi/pigpio/pigpio.tar
Delete this line-->> sudo mv pigpio-V22.zip pigpio.zip
Delete this line-->> unzip pigpio.zip
tar xf pigpio.tar
cd PIGPIO/
sudo sed '2619s/data/str(data)/' -i pigpio.py
make
sudo make install

cd /etc/init.d
sudo update-rc.d pigpiod defaults 99
complete -W "$(ls /etc/init.d/)" service

service pigpiod start
sudo python /home/fpp/media/plugins/edmrds/rds-song.py -i


popd


Press Ctrl-X to exit, press Y to overwrite then press Enter.

c. At the command line, type: sudo nano rds-song.py and make the following changes to this file (shown in bold red, other notes in bold blue).

Find the line that says s = bb_I2C.I2C(pi, 28, 29, 600)
and change it to s = bb_I2C.I2C(pi, 2, 3, 600)

Press Ctrl-X to exit, press Y to overwrite then press Enter.


Step 3: Running the Install

a. If you're not already there, navigate back to /home/fpp/media/plugins/edmrds

b. Type sudo ./fpp_install.sh and wait for the install to complete.


Step 4: Connecting to the EDM-RDS

a. You'll have to cut the USB "A-Male" end from your cable, strip back the outermost plastic insulation and isolate the red and black wires separately (with small pieces of shrink tube, just in case). Solder the appropriate single pin pigtails to the green and white wires (this was true in my case anyways). Twist the shield wires up and solder a black single pin pigtail to it as well. Attached is a standard pinout for a mini USB cable that held true for me.

b. Using the attached diagram for an Pi 2-3, connect the green wire to pin 3 ("GPIO 2"), the white wire to pin 5 ("GPIO 3") and the black wire to pin 9 ("GND"). Be sure not to accidentally connect to any 3.3v or 5v pins!! (It should be obvious now that the connection of the green and white wires corresponds directly to the changes we made to the rds-song.py file). Once connected to the Pi, plug the Mini-B end into the EDM-RDS.


Step 5: Verifying functionality

a. From your web browser, type //fpp and navigate to the "Input/Output Setup" dropdown and select "EDM RDS". You'll notice that the support instructions describe using a different set of pins than we programmed above. I just ignore it, but you could change any or all of the text if you're feeling adventurous.

b. You also have the option to set your "Station ID" by typing it in the appropriate input box and clicking "Set Station ID". If you've already chosen your station ID and written it to the EDM using MiniRDS, it should default to that setting if you choose not to change it within FPP.

c. Navigate to the FPP "Status Page" and start one of your playlists that includes audio, then go back to the "EDM RDS" page. Provided that your songs are tagged correctly, you should see the current song title next to the words "Now Playing:" and your station ID below that.


Information Sources:

http://falconchristmas.com/forum/index.php?topic=3894.0
http://falconchristmas.com/forum/index.php?topic=3894.15
http://falconchristmas.com/forum/index.php?topic=3894.30
http://falconchristmas.com/forum/index.php?topic=7470.0
https://github.com/drlucas/fpp-edmrds
http://abyz.me.uk/rpi/pigpio/download.html
 
« Last Edit: February 11, 2018, 09:05:20 AM by amcknight »

Offline Santacarl

  • Sr. Member
  • ****
  • Join Date: Mar 2014
  • Location:
  • Posts: 273
  • Kudos: 0
Re: EDM RDS
« Reply #4 on: June 03, 2018, 08:09:06 AM »
Hey all.....


I'm a tad late to this thread but after reading through it to decide if I want to go with the EDM RDS model I ran into a problem.....  The PI pins needed to re-wire the mini-USB so it will work with the EDM RDS are already taken (or a couple anyway) by my Rasclock......


Does anyone know if there will be some sort of workaround in the future that doesn't require all the rewiring and code changes?  I'm backing off the EDM unless something changes..... Any help or thoughts would be greatly appreciated....

Offline mdahm

  • Newbie
  • *
  • Join Date: May 2017
  • Location:
  • Posts: 14
  • Kudos: 0
Re: EDM RDS
« Reply #5 on: August 14, 2018, 12:40:34 PM »
Is your pi connected to your home network?  If so you can get time from that and don't need the rasclock.

Offline Aaron Maue

  • Full Member
  • ***
  • Join Date: Aug 2015
  • Location: Iowa
  • Posts: 200
  • Kudos: 8
Re: EDM RDS
« Reply #6 on: August 22, 2018, 09:48:59 AM »
Hey all.....


I'm a tad late to this thread but after reading through it to decide if I want to go with the EDM RDS model I ran into a problem.....  The PI pins needed to re-wire the mini-USB so it will work with the EDM RDS are already taken (or a couple anyway) by my Rasclock......


Does anyone know if there will be some sort of workaround in the future that doesn't require all the rewiring and code changes?  I'm backing off the EDM unless something changes..... Any help or thoughts would be greatly appreciated....


You should be able to use other GPIO pins on the Pi.  I don't recall for sure (and am not home to check), but I don't believe I used the pins described in this writeup.  I chose others.

Offline hedrickbt

  • Newbie
  • *
  • Join Date: Aug 2018
  • Location:
  • Posts: 3
  • Kudos: 0
Re: EDM RDS
« Reply #7 on: August 27, 2018, 02:36:05 PM »
I was having issues with the latest V2 Beta - v2.x-master-656-g0bb7e5c7.  What I was seeing is that the callbacks to edmrds weren't firing and as a result, the song names were NOT being updated.


I don't know if this is something that only I am running into.


I created a github pull request with the changes I needed to src/Plugins.cpp which restored FPP making the callback to the edmrds plugin.


https://github.com/FalconChristmas/fpp/pull/404


Offline hedrickbt

  • Newbie
  • *
  • Join Date: Aug 2018
  • Location:
  • Posts: 3
  • Kudos: 0
Re: EDM RDS
« Reply #8 on: September 03, 2018, 08:43:49 AM »
fpp v2 Beta - my changes were accepted around 8.28.  I pulled updates via Help|About.  I originally installed from the Dan Kulp version http://dankulp.com/bbb/FPP-v2.0-Beta-Pi-20180709.zip .


I can verify that fpp v2 Beta is working with the latest edmrds version from github https://github.com/drlucas/fpp-edmrds !


I was able to get the version that is installed but the GUI to work, but it required changes to the callback file.  Best bet is to use the latest version from github - the callback file is python based instead of sh based.

Offline ShadowLight8

  • Newbie
  • *
  • Join Date: Dec 2017
  • Location: Indiana
  • Posts: 14
  • Kudos: 0
    • YouTube Channel of my Light Shows
Re: EDM RDS
« Reply #9 on: September 03, 2018, 08:18:37 PM »
fpp v2 Beta - my changes were accepted around 8.28.  I pulled updates via Help|About.  I originally installed from the Dan Kulp version http://dankulp.com/bbb/FPP-v2.0-Beta-Pi-20180709.zip .


I can verify that fpp v2 Beta is working with the latest edmrds version from github https://github.com/drlucas/fpp-edmrds !


I was able to get the version that is installed but the GUI to work, but it required changes to the callback file.  Best bet is to use the latest version from github - the callback file is python based instead of sh based.


Just wanted to say thank you for helping to solve this! I was just starting to test another RDS plugin and was noticing that it wasn't getting the title, artist, etc.

Offline Aaron Maue

  • Full Member
  • ***
  • Join Date: Aug 2015
  • Location: Iowa
  • Posts: 200
  • Kudos: 8
Re: EDM RDS
« Reply #10 on: September 10, 2018, 02:38:47 PM »
fpp v2 Beta - my changes were accepted around 8.28.  I pulled updates via Help|About.  I originally installed from the Dan Kulp version http://dankulp.com/bbb/FPP-v2.0-Beta-Pi-20180709.zip .


I can verify that fpp v2 Beta is working with the latest edmrds version from github https://github.com/drlucas/fpp-edmrds !


I was able to get the version that is installed but the GUI to work, but it required changes to the callback file.  Best bet is to use the latest version from github - the callback file is python based instead of sh based.


Sorry for what may be for what may be a stupid question.  I'm dangerous enough to hack up some scripts, etc., if I have some instructions.  And I'm not afraid to try stuff, even at the risk of breaking it, knowing that I can always get it back to the way it was before I broke it, but hoping to get maybe just a little more clarity...


I'm about to switch over from FPP 1.9, where I have the EDM RDS plugin (or at least one version, thereof) running and working, to FPP 2.0.  What is the best approach to getting this plugin working again?  Should I install from the plugins link and then follow the myriad instructions that were used the first time I did the install?  Or, have there been changes to the plugin that preclude the need for all of the "hacking" that may have been necessary to get it working the last time I did it?  I see in your comment above that the "best bet is to use the latest version on github", but my rudimentary capability begs me to ask for a bit more explanation about how to do that, if this is the best approach.


Thanks in advance.

Offline Reys Dad

  • Newbie
  • *
  • Join Date: May 2018
  • Location:
  • Posts: 5
  • Kudos: 0
Re: EDM RDS
« Reply #11 on: September 18, 2018, 02:35:53 PM »
fpp v2 Beta - my changes were accepted around 8.28.  I pulled updates via Help|About.  I originally installed from the Dan Kulp version http://dankulp.com/bbb/FPP-v2.0-Beta-Pi-20180709.zip .


I can verify that fpp v2 Beta is working with the latest edmrds version from github https://github.com/drlucas/fpp-edmrds !


I was able to get the version that is installed but the GUI to work, but it required changes to the callback file.  Best bet is to use the latest version from github - the callback file is python based instead of sh based.

I'm kind of new here. Does this mean we need to wait for the github changes you submitted to be pushed to 2.0 as an update before the song titles will start working or do we need to reinstall the EDM plugin after the changes are integrated? I tried looking at the github link you referenced but it looks like the last update was three years ago so it doesn't seem the changes you recently submitted have been incorporated yet.
I'm not sure what is the next step?
FYI, I do have the cable and pigpio files updated and I'm able to update the station ID through the plugin. It just won't populate the "now playing" names.
Thanks

 

Back to top