Falcon Christmas

Other Controllers and Hardware => General Hardware => Topic started by: ron on April 10, 2014, 10:24:21 PM

Title: Pi Player Single DMX?
Post by: ron on April 10, 2014, 10:24:21 PM
Is there any solution that would allow me to send a single DMX universe out from something similar to the FPP? 

I'll explain what I'm thinking.  My mother-in-law has been asking me for several years to setup a show at her house.  I'd like to do this for her, but she is 30 minutes away from me, I don't want to setup a show computer at her house and I don't want to be over working on the show all the time.  What I'd like is to use one or maybe two max of my Lynx Express boards and setup a basic show for her on 16 or 32 channels.  I thought I might be able to do this with the Panther DMX player, but she wants the music too, so I need something similar to the FPP, preferably.  I've got spare radio transmitters, so I think I have everything I need with the exception of something to play the music and shows.

I know I could do this with the FPP and E.131 to DMX bridge, but that seems like overkill.

Any thoughts?  Dave, feel like developing a single universe DMX add on board for the FPP?
Title: Re: Pi Player Single DMX?
Post by: CaptainMurdoch on April 10, 2014, 10:40:35 PM
In a month or so when the next version of FPP is released, it will support using low-cost FTDI  USB to RS-485 adapters to send single universes of DMX or Pixelnet out from the Pi.  I have been testing with an adapter I picked up off eBay for $7 including shipping.


Title: Re: Pi Player Single DMX?
Post by: smeighan on April 10, 2014, 10:44:24 PM
Capt Murdoch says he has put code to drive a string of lights from a single pin of the pi player. If 2801 lights you should be able to do at least one universe. The potential is perfect for your mom in law.
Title: Re: Pi Player Single DMX?
Post by: ron on April 10, 2014, 11:53:00 PM
Sweet. You guys never cease to amaze.
Title: Re: Pi Player Single DMX?
Post by: ron on April 11, 2014, 09:01:22 AM
In a month or so when the next version of FPP is released, it will support using low-cost FTDI  USB to RS-485 adapters to send single universes of DMX or Pixelnet out from the Pi.  I have been testing with an adapter I picked up off eBay for $7 including shipping.

Do you have a link for that adapter?  I'd like to pick one up and get familiar with it.  Thanks.
Title: Re: Pi Player Single DMX?
Post by: CaptainMurdoch on April 11, 2014, 09:27:07 AM
In a month or so when the next version of FPP is released, it will support using low-cost FTDI  USB to RS-485 adapters to send single universes of DMX or Pixelnet out from the Pi.  I have been testing with an adapter I picked up off eBay for $7 including shipping.

Do you have a link for that adapter?  I'd like to pick one up and get familiar with it.  Thanks.

I didn't purchase from this seller, but the one I've been testing with is for sale in this ad posting:

http://www.ebay.com/itm/USB-to-RS485-TTL-Serial-Converter-Adapter-FTDI-interface-FT232RL-75176-Module-Ne-/161264238508?pt=LH_DefaultDomain_0&hash=item258c18ffac (http://www.ebay.com/itm/USB-to-RS485-TTL-Serial-Converter-Adapter-FTDI-interface-FT232RL-75176-Module-Ne-/161264238508?pt=LH_DefaultDomain_0&hash=item258c18ffac)

I noticed several other sellers with the same board ranging from around $6.50-7.50 with free shipping.  You are looking for something that has the FT232 chipset.  You can find adapters that use this chip and have covers on them as well if the lack of a cover is a show-stopper. :)
Title: Re: Pi Player Single DMX?
Post by: ihbar on June 10, 2014, 02:46:35 PM
Hi

I bought the same adapter, and I have additional information :
It seems to works with FPP configured in open DMX.  But looking more closely to the signals, the DMX break is not clean : both data line are at low level.  Seems to work with my fixture, but may randomly stop working. 
then, I fixed it....

Problem detailed description  (you can skip) :  During the break, the tx enable line of RS485 chip was reset, and chip was going to Hi-Impedance. There are pull down resistor on data + and data - line. As the break is long (1ms), it seems that is is anyway recognized.
The RS485 chip is (75176B) is going to Hi Z because it is connected to pin C2 of FTDI chip.  This pin is configurable, and In my chip, it was configured as "TXDEN". TXDEN is at low level during break.

How to fix ?
- option 1: disconnect the control line and connect it to vcc, easy to say, not easy to do.  I don't advise this solution. ;)
- option 2 : use the FTDI software Ft_Prog to change chip configuration.  I have used it on my PC. The screen copy is attached.  I have changed the C2 configuration to SLEEP#, so line is always high.  And now my dmx signal is perfect with FPP 0.3.0  8)

If you need more details, PM me !
Stephane
 





[attachment deleted by admin]
Title: Re: Pi Player Single DMX?
Post by: Materdaddy on October 20, 2014, 10:34:28 PM
I have not been able to program C2 for SLEEP#.  I bought the device Chris linked to: http://www.ebay.com/itm/161264238508?_trksid=p2059210.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

When I try to program the EEPROM I get the following error message:
"Programming Failed"
"Has the device been removed?"

I've tried the following:
* Re-installing drivers multiple times
* Re-installing with custom VID/PID I made per the application notes and google searches because the PID on my devices is showing up as 0000 instead of 6001
* Tried programming via FT_Prog's command-line mode.  The application note on this suggests a chip type mis-match with the template, but I verified they're both FT232R.

I've read the following FTDI application notes/technical notes:
* AN-107
* AN-124
* AN-126
* TN-100

I've googled a handful of things and not been able to get anything to work to change C2.

Any suggestions?
Title: Re: Pi Player Single DMX?
Post by: CaptainMurdoch on October 20, 2014, 10:44:28 PM
I just picked up a couple more so I will test those when they come in.  Ihbar may have an idea since it was his research to begin with I believe.
Title: Re: Pi Player Single DMX?
Post by: Materdaddy on October 22, 2014, 01:59:19 PM
http://hackaday.com/2014/10/22/watch-that-windows-update-ftdi-drivers-are-killing-fake-chips/ <-- looks like it has to do w/ me using the latest FTDI driver detecting a counterfit.  It changes the PID to 0, essentially bricking the device.

Money well spent... :-/
Title: Re: Pi Player Single DMX?
Post by: Livermore-Dad on October 22, 2014, 02:04:40 PM
http://hackaday.com/2014/10/22/watch-that-windows-update-ftdi-drivers-are-killing-fake-chips/ <-- looks like it has to do w/ me using the latest FTDI driver detecting a counterfit.  It changes the PID to 0, essentially bricking the device.

Money well spent... :-/

Ya just started a conversation on a car tuning group I'm on. We are not sure how we feel about this. Microsoft actively bricking a device.. This doesn't seem right.
Title: Re: Pi Player Single DMX?
Post by: Materdaddy on October 22, 2014, 02:30:04 PM
It's actually FTDI bricking the device, not M$.  I agree it doesn't seem right.  They're hurting the end-user/consumer who has little recourse to tell if a device is legit or counterfeit instead of going after counterfeit manufacturers or suppliers.

Assuming the PID was the only change, I was able to fix mine in linux like this:
echo 0403 6001 >/sys/bus/usb-serial/drivers/ftdi_sio/new_id

It is recognized when inserted to linux with the 6001 PID now.  Now I need to seek out the old driver for XP to program the C2 pin for SLEEP# before I derailed this thread!

I guess I should also ask, does anybody have a source for a similar FTDI-based USB->RS485 dongle that's known to use a genuine FTDI part?
Title: Re: Pi Player Single DMX?
Post by: JonB256 on October 22, 2014, 02:42:15 PM
without cracking a case, how would I know FTDI from fake FTDI? 

Will the Ft_prog software tell you? (or will connecting it brick the RS485 device)
Title: Re: Pi Player Single DMX?
Post by: Materdaddy on October 22, 2014, 03:17:16 PM
Connecting it to a windows machine with the 2.12.0 driver will brick it.  I'm not sure if it's bricked for Pi output at that point, but you cannot program the chip using FT_prog.  It also doesn't tell you anything other than can't program.

The way to tell is to look in the device properties and you'll see something like: "USB\VID_0403&PID_0000&REV_0600" (note the PID is all 0s).

This is the mark of the fake with the new 2.12.0 driver.  Setting the PID to 0 somewhat ruins the device for other systems too.

The "workaround" I mentioned a second ago must put a mapping in linux's driver that maps to the serial number because when I plug the device into the linux machine, it keeps coming up with PID6001 and FTDI driver picks it up, however plugging back into winXP would still show 0 and it didn't work.

I was able to delete the 2.12.0 driver from winXP and install the 2.8 driver with PID changed to 0 in the .inf file (which makes the driver yell about not being signed).  This allowed me to use FT_prog to program the device back to a 6001 PID as well as change C2 to SLEEP# and all is well.

Except for the fact that these devices are counterfeit.

I'm going to do a little more testing at some point to determine if they work in the "PID 0000" case.  Basically what I want to find out is if somebody plugs them into a windows machine with the new driver and "bricks" it, will it still work on their Pi to talk to their Renard/DMX devices.

Link on workaround:
http://forum.arduino.cc/index.php?topic=270175.msg1922910#msg1922910
Title: Re: Pi Player Single DMX?
Post by: gadgetsmith on October 22, 2014, 03:27:22 PM
I found a way to get an FTDI programmer and an Arudunio Nano to work after the windows update at well.  I posted about it here: http://diychristmas.org/vb1/showthread.php?2690-minimalist-shield-NANO&p=31697&viewfull=1#post31697   Not sure if this is the same issue, and no idea if FT_prog would work for those boards after this "fix", which is basically to install the driver manually, and "not signed".

HTH.
Title: Re: Pi Player Single DMX?
Post by: Materdaddy on October 22, 2014, 03:30:30 PM
So my post of things I tried last night was basically what you did in the other thread.  I could get the drivers to install, but could not get FT_prog to write to it.  The "new" fix I linked to a little while ago does work, which is to install an old driver.
Title: Re: Pi Player Single DMX?
Post by: JonB256 on October 22, 2014, 04:46:29 PM
I have the 2.12.0 driver on my Win8 64 pc. I'll see if I can roll it back.

Ok.  I'm back to 2.8.30 (7/12/2013)
Title: Re: Pi Player Single DMX?
Post by: Materdaddy on October 22, 2014, 04:54:49 PM
From reading on some of the forums is that on anything other than winXP, the driver will update itself via Windows Update and you'll be back to 2.12.0.

I don't use windows except for sequencing software, and I've barely used anything past XP (I now have a win7 VM) and don't know if you can somehow disable automatic updates, or keep leaving behind the FTDI driver update.

Good luck!
Title: Re: Pi Player Single DMX?
Post by: JonB256 on October 22, 2014, 05:07:13 PM
Is "PID 0" the same as "System Idle Process?"

I'm familiar with that PID.
Title: Re: Pi Player Single DMX?
Post by: Materdaddy on October 22, 2014, 05:11:02 PM
Is "PID 0" the same as "System Idle Process?"

I'm familiar with that PID.

Ha!

It's the USB's product ID.
Title: Re: Pi Player Single DMX?
Post by: CaptainMurdoch on October 22, 2014, 09:13:01 PM
If FTDI's new driver is deciding that these devices have fake chips and is then bricking these devices then that is practically vandalism and destruction of property and should be addressed.  The consumer is not aware that they purchased a device that might have a fake chip in it.  Is there any proof other than the fact that the driver has bricked it?  The phrase "Judge, Jury, and Executioner" comes to mind.

I'll see about mine when they get here, I have a few windows VMs and a physical XP machine, so i can run some tests against those.
Title: Re: Pi Player Single DMX?
Post by: Materdaddy on October 22, 2014, 09:42:28 PM
The vandalism angle is what a lot of people are talking about on other forums.  Another big one is punishment of the end-user/consumer rather than suppliers and counterfeit manufacturers.  Like you said, as a user we aren't aware other than the bricking of the devices.  They don't even brick it in a way that's relatively known to the user, it simply stops working and I only figured it out from some googling and noticing the PID set to all 0s.

I would have noticed soon though because a similar thing was posted on DIYC, as well as a developer mailing list for ham radio programming software I use.  This is a relatively far reaching pandora's box FTDI did here.

I can successfully resurrect these devices using my XP VM, and even was able to resurrect it in Win7, however I simply installed the old driver and fixed it before the driver auto-updated via Windows Update.  I also was unsuccessful in getting a udev rule on my Debian machine to get a "bricked" one working as expected.  I'm still going to play with this a little longer so we can potentially still support these for our users in our default image.
Title: Re: Pi Player Single DMX?
Post by: gadgetsmith on October 23, 2014, 09:36:43 AM
I tried to program the chip using FT_Prog with just the drivers manually installed. (PID is still 0000), and it doesn't work, but then again, that is no surprise as it's (what I now know) a counterfit chip, and have no expectation that FTDI tools or drivers would work with these devices from this point on.

I do have an opinion on the subject, but don't think it benefits this thread or forum.  It would be better to take things into our own hands though, and find an adapter that does use a genuine chip, or find another reliable adapter for use.  I'm going to try both of these devices:

http://www.amazon.com/gp/product/B005CPLOVW/ref=pd_lpo_sbs_dp_ss_1?pf_rd_p=1944687782&pf_rd_s=lpo-top-stripe-1&pf_rd_t=201&pf_rd_i=B009SIDMNM&pf_rd_m=ATVPDKIKX0DER&pf_rd_r=158DVC5D1P0KYD6YG89F

and this one

http://www.amazon.com/gp/product/B009SIDMNM/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

I'd like to see how they work with the Renzilla minirenSISO, and also with the FPP.
Title: Re: Pi Player Single DMX?
Post by: Materdaddy on October 23, 2014, 10:18:57 AM
You have to have the old driver, not a manually installed driver to get it to work with FT_Prog.

My setup that works in Windows 7:
2.12.00 driver installed
2.8.30 driver with ".inf" file edited for PID 0000 manually installed

When I plug in a counterfeit the first time, it is picked up by the 2.12.00 driver and works until I unplug it because the driver sets the PID to 0, but doesn't force a USB reset, so the system still thinks it's got a PID of 6001.
If I re-plug the board in, it gets picked up by the 2.8.30 driver that's edited for PID 0000 that I manually installed.  I can write to the device, including using FT_Prog or the arduino IDE, or other tools.

This setup seems to work and I think that the manually installed 2.8.30 driver will not get blown away by Windows Update because when you manually update it, the driver is no longer signed and probably doesn't match a signature to be updated in the Windows Update driver database.  So far this setup seems to be working, although it's only been a day.
Title: Re: Pi Player Single DMX?
Post by: gadgetsmith on October 23, 2014, 03:58:21 PM
You have to have the old driver, not a manually installed driver to get it to work with FT_Prog.
I found you can program using the manually installed driver, it just needs to have the PID programed back to FTDI Default (PID 6001) using FT_Prog before doing anything else.

I'd summarize it two ways, based on what a person wants to do with the device containing these chips.

1) If you just want to use (whatever your device is) in Windows, simply install the latest drivers manually.  The PID will be 0000, but it doesn't keep the chip from functioning at all.  Pull it in and out of a USB port and it just works as normal, PID will stay at 0000.

2) If you want to change the I/O settings, or use it in a Pi, you'll need to program the chip using FT_Prog.  You can manually load the newest driver.  Once loaded, the first thing to do is to Start FT_Prog, Scan and Parse, go to USB Device Descriptor and change it to FTDI Default (PID 6001), and program the chip. (This works)  After this is done, anything can be programmed successfully as the PID will be 6001.  Once done, pull the adapter from the USB.  You can install it in the FPP at this point and use it as you'd like.  Rebooting the Pi will not change the PID, and the adapter will function as normal.  If it is re-insterted into a Windows machine at any point (say to change another setting or whatever), it will reinstall the driver successfully, BUT the PID will be reset to 0000.  At this point, you'll want to reprogram the PID again.  If the chip is pulled without re-programming, the next time it is inserted it will fail to install the drivers, so back to installing driver manually...

Materdaddy, when you say you change the .inf file, does the chip keep it's PID, or is the PID 0000?
Title: Re: Pi Player Single DMX?
Post by: Materdaddy on October 23, 2014, 04:03:29 PM
Materdaddy, when you say you change the .inf file, does the chip keep it's PID, or is the PID 0000?

I edit the PID to be 0000 on the old driver that I manually installed.  The PID does get changed back and forth.

Plug it in, new driver changes it to 0.
Plug it in again, old driver with hacked PID picks up the dongle, you can either leave it alone and everything works, or program it back to 6001 for linux without needing additional changes.

With the changed PID, you don't have to manually install the driver each time it's plugged in since it finds a driver matching VID/PID of the device.
Title: Re: Pi Player Single DMX?
Post by: ihbar on November 05, 2014, 04:13:51 PM
I have driver 2.10.0 and ft-prog 2.8.2.0 on windows 7, I just plugged 2 new devices, but it seems to use the already installed driver and do not try to update with recent ones.
So installing manually the 2.10.0 before the devices may avoid issues.  It is just my current config, and may be my FTDI device are good ones, so if someone tires, let us know the status.
Stephane
Title: Re: Pi Player Single DMX?
Post by: Materdaddy on November 05, 2014, 04:50:49 PM
Could be that it's not updating because of this: http://hardware.slashdot.org/story/14/10/24/1330252/ftdi-removes-driver-from-windows-update-that-bricked-cloned-chips
Title: Re: Pi Player Single DMX?
Post by: ihbar on November 06, 2014, 01:22:02 PM
Hello Materdaddy.
You may be right : I did not saw that malicious driver was removed from windows update.   It means we are back to previous situation.
thanks

I have made a small enclosure for the pcb with 3d printer. If anyone want the 3D file, let me know.
Stephane

[attachment deleted by admin]
Title: Re: Pi Player Single DMX?
Post by: clydel on February 02, 2015, 11:43:45 AM
I'm going to try both of these devices:

http://www.amazon.com/gp/product/B005CPLOVW/ref=pd_lpo_sbs_dp_ss_1?pf_rd_p=1944687782&pf_rd_s=lpo-top-stripe-1&pf_rd_t=201&pf_rd_i=B009SIDMNM&pf_rd_m=ATVPDKIKX0DER&pf_rd_r=158DVC5D1P0KYD6YG89F

and this one

http://www.amazon.com/gp/product/B009SIDMNM/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

I'd like to see how they work with the Renzilla minirenSISO, and also with the FPP.

gadgetsmith, how did these items work out for you?  Were you able to get DMX working from either of these items?  I would really like to have a simple solution for DMX output from a Pi or Windows computer.
Title: Re: Pi Player Single DMX?
Post by: Steve Gase on February 02, 2015, 11:51:56 AM
I've used the Pixelnet and the DMX support with the Pi.  No problems.  Just be sure that the dongle is attached before your power up the Pi.
Title: Re: Pi Player Single DMX?
Post by: gadgetsmith on February 02, 2015, 12:16:22 PM
I'm going to try both of these devices:

http://www.amazon.com/gp/product/B005CPLOVW/ref=pd_lpo_sbs_dp_ss_1?pf_rd_p=1944687782&pf_rd_s=lpo-top-stripe-1&pf_rd_t=201&pf_rd_i=B009SIDMNM&pf_rd_m=ATVPDKIKX0DER&pf_rd_r=158DVC5D1P0KYD6YG89F

and this one

http://www.amazon.com/gp/product/B009SIDMNM/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

I'd like to see how they work with the Renzilla minirenSISO, and also with the FPP.

gadgetsmith, how did these items work out for you?  Were you able to get DMX working from either of these items?  I would really like to have a simple solution for DMX output from a Pi or Windows computer.
I've connected the second adapter to Pi, and it was recognized, but never had time to test the output. Not sure if others have used that specific adapter, but there are similar adapters that people have lready proven to work with the PC or Pi. I'll will be testing these two specific adapters in the coming weeks and months, and while I fully expect them to work, I can't say for sure until I've done it.
Title: Re: Pi Player Single DMX?
Post by: gadgetsmith on February 02, 2015, 12:18:37 PM
I've used the Pixelnet and the DMX support with the Pi.  No problems.  Just be sure that the dongle is attached before your power up the Pi.
Oops. Missed this.
Steve, are you using one of those two adapters I posted about? Thanks!
Title: Re: Pi Player Single DMX?
Post by: CaptainMurdoch on April 23, 2015, 12:38:28 PM
An old thread, but still relevant.

I have been able to use the Open Source "ft232r_prog" program under Linux to change the eeprom settings on this FTDI dongle.

I needed to change the C2 value back to the default TxDEN to enable the dongle to receive RS485 for testing something and I didn't want to connect the dongle to a windows machine, so I downloaded, compiled, and installed ft232r_prog on a Pi.  I made a note to think about including this in a future FPP image.
Title: Re: Pi Player Single DMX?
Post by: heryboy on January 15, 2016, 10:30:43 AM
Hi ihbar, wath are the control line?
Title: Re: Pi Player Single DMX?
Post by: ihbar on January 17, 2016, 11:46:54 AM
Hello

On the RS485 driver (75176B), there is a control line "tx enable". This line is used to activate the RS485 output of the chip.
To keep signal output active, you need to force this line to high level.

Stephane