Falcon Christmas

Other Controllers and Hardware => General Hardware => Topic started by: cabrio on June 11, 2022, 12:10:16 PM

Title: rpi-28D+ and DPIPixels
Post by: cabrio on June 11, 2022, 12:10:16 PM
Looking for a bit of help. If anyone has tried fpp 6 with an rpi-28D+. Specifically my problem is that I've got licenses to enable the DPIPixels yet I can't seem to get it to work.
If I wire up a test set of pixels to CN2 of the rpi-28D+ and do not enable DPIPixels driver and just leave it to standard rpi-28D+, I can get it to light up through the test section of the Ui.
If I enable DPIPixels and enable the exact same CN2 test strip I cannot get it to come on. If the wiring is the same like I assume and I have definitely enabled it, is there something else I might be missing
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 12, 2022, 12:09:01 AM
I may have an idea what this is and just pushed a new virtual EEPROM for the rPi-28D(+) capes.

I'm assuming you were plugged into the two WS281x outputs on the rPi-28D+.  If you were using the 4-port DPIPixels config, the WS281x connectors CN2 and CN3 were outputs 3 and 4 in the UI, but I just swapped the order around so that they are 1 and 2 and the WS2801 connector are outputs 3 & 4.

Can you pull in FPP updates on the About page and try again?  After you pull in updates, you'll need to re-install the virtual EEPROM on the Pixel String config page and re-sign it if it was already signed.  I added a new 2-output option and swapped the ports around on the 4-port option so double check your config, pick either the 2-output or 4-output option which applies, and let me know if it works now.
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 12, 2022, 06:50:21 AM
Quote from: CaptainMurdoch on June 12, 2022, 12:09:01 AMI may have an idea what this is and just pushed a new virtual EEPROM for the rPi-28D(+) capes.

I'm assuming you were plugged into the two WS281x outputs on the rPi-28D+.  If you were using the 4-port DPIPixels config, the WS281x connectors CN2 and CN3 were outputs 3 and 4 in the UI, but I just swapped the order around so that they are 1 and 2 and the WS2801 connector are outputs 3 & 4.

Can you pull in FPP updates on the About page and try again?  After you pull in updates, you'll need to re-install the virtual EEPROM on the Pixel String config page and re-sign it if it was already signed.  I added a new 2-output option and swapped the ports around on the 4-port option so double check your config, pick either the 2-output or 4-output option which applies, and let me know if it works now.


Yes it was connected to CN2 and CN3.
I only changed the location of the the strings in the UI as you have stated above from 1 & 2 to 3 & 4 as applicable depending on the driver being used.
Physically always attached to the same CN2 and CN3 on the rpi-28D(+).

Will definitely do the updates and advise.

Just entered in to this stuff this year and plan to have a around a 5000 light, 15 song Christmas display this year. I'd be surprised if anyone in our town of around 35000 have even heard of something like this.

Thanks for your work!
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 12, 2022, 12:49:44 PM
Tried it out. What is happening now when I enable 2xDPIPixels, it says to restart fppd. I comply. When it comes back it shows FPPD is stopped and the restart fppd yellowish pop up shows again. Clicking it does nothing and seems like it's frozen. It seems to maybe reboot. Then it's disabled again and back to where I started.
I also get a red pop up after reboot on main screen that says "Abnormal Conditions - May Cause Poor Performance - Could not initialize output type FBMatrix. Check logs for details.". If that's anything.

I also get a "Failed to save restartFlag setting" at the point where it says to restart fppd the first time

So far no matter what I seem to do i can't enable DPIPixels 2 or 4 ouputs.
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 13, 2022, 08:48:02 AM
If you had a Virtual Matrix configured, you will need to delete that and reconfigure. The Virtual Matrix now writes to a Pixel Overlay Model, so you will first need to create a Pixel Overlay Model set to output to your monitor/projector, then you can create a Virtual Matrix pointed at the Pixel Overlay Model.  I don't think that will prevent fppd from starting though, it should just warn.

Can you go to the FPP File Manager and the Logs tab.  View the 'fppd.log' file and copy and paste the tail end of that log file here in chat and we can see if there are any errors preventing startup.

I think the "failed to save" message is because the system is rebooting, the Pi is shutting down quicker then the browser sends the command to save the setting.  I'll take a look at that code.
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 13, 2022, 01:16:31 PM
I forgot to inform you that I did catch that virtual matrix error, corrected it and it is gone. same problem persists. .
Another error i get from time to time is a GPIO pin error.

Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 13, 2022, 01:44:36 PM
Can you go to the FPP File Manager and the Logs tab and click the button to download the logs zip and attach it here and I'll take a look at the config.
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 13, 2022, 02:48:50 PM
Here you go.
Title: Re: rpi-28D+ and DPIPixels
Post by: Poporacer on June 13, 2022, 02:55:34 PM
Quote from: bradley.jc@live.com on June 13, 2022, 02:48:50 PMI can't for the life of me figure out how to attach the logs zip file I've now downloaded from fpp.
You can't use the Quick Reply, if you use Quick Reply, then Preview your message and you will get the option for attachments
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 13, 2022, 03:05:51 PM
Another one here.
Title: Re: rpi-28D+ and DPIPixels
Post by: Poporacer on June 13, 2022, 04:21:30 PM
Did you recently delete your fppd.log? It is unusually small and no mention of any errors in gpio? 
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 13, 2022, 04:47:40 PM
I may have inadvertently done that. The gpio is not all that consistent, but have seen it several times. Is there enough data to make sense of everything or should I maybe try and enable the rpi-28D+ box to record some mor data? Clean install?
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 13, 2022, 04:55:08 PM
Quote from: bradley.jc@live.com on June 13, 2022, 04:47:40 PMI may have inadvertently done that. The gpio is not all that consistent, but have seen it several times. Is there enough data to make sense of everything or should I maybe try and enable the rpi-28D+ box to record some mor data? Clean install?

Yeah, we need a logs zip that was collected with the rPi-28D+ Enable box checked in order to debug the issue.
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 13, 2022, 05:09:21 PM
In about ten minutes I will send new ones and a new logs zip...I will enable it and go through the motions several times before I upload it.

Also, what do you think of clean install and see what occurs?

Thanks to both of you for the help so far...I'm a bit of a fan of (b)leading edge stuff so anything new I like to try, regardless of the issues that come up. I find it all very challenging and satisfying.
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 13, 2022, 05:19:50 PM
Quote from: bradley.jc@live.com on June 13, 2022, 05:09:21 PMIn about ten minutes I will send new ones and a new logs zip...I will enable it and go through the motions several times before I upload it.

Also, what do you think of clean install and see what occurs?

If you don't mind helping, we'd like to figure out the issue here in case it is something we can fix and avoid in the future.  If the newer logs zip doesn't help, then we may just say re-image, but for now hold off if you don't mind waiting just a little longer.
Title: Re: rpi-28D+ and DPIPixels
Post by: Poporacer on June 13, 2022, 05:49:33 PM
Quote from: bradley.jc@live.com on June 13, 2022, 05:09:21 PMThanks to both of you for the help so far...
No problem

Quote from: bradley.jc@live.com on June 13, 2022, 05:09:21 PMI'm a bit of a fan of (b)leading edge stuff so anything new I like to try, regardless of the issues that come up. I find it all very challenging and satisfying.
And it is people like you that really help the developers to be able to put out a product that is as bug free as possible. We test every configuration that we know of before it is released, but there are probably a million different variables in configurations and usages so it would be impossible to test every situation. Your help, benefits not only you but the rest of the community!
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 13, 2022, 05:57:39 PM
I tried to enable a few times over a 10 minute span.

I have a few different rpi's here as well so I can test it on several configurations. This current one is the newest rpi so I figured I'd start there.
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 13, 2022, 10:52:03 PM
According to the config file and the logs, it still doesn't look like you have the Channel Output enabled on the Pixel Strings config page.

{
    "channelOutputs" :
    [
        {
            "channelCount" : -1,
            "enabled" : 0,
            "outputCount" : 2,
            "outputs" :

Are you checking the "Enable" checkbox and then saving the config?
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 14, 2022, 03:41:29 AM
This whole frustration stems from that I cannot enable it. As soon as I check the enable box and save, it suggests to restart fppd, so I do, then the fppd shows its stopped. After that i cant do anything for about a minute or so, it seems to reboot and when it comes back, the check box is empty...every time.
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 14, 2022, 10:44:46 AM
Is there a way to edit this file to set that as a 1? Too simplistic?
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 14, 2022, 10:50:17 AM
Quote from: bradley.jc@live.com on June 14, 2022, 03:41:29 AMThis whole frustration stems from that I cannot enable it. As soon as I check the enable box and save, it suggests to restart fppd, so I do, then the fppd shows its stopped. After that i cant do anything for about a minute or so, it seems to reboot and when it comes back, the check box is empty...every time.

Restarting fppd can sometimes trigger a reboot if a reboot is necessary to configure the channel output.  In the case of DPIPixels and the legacy RPIWS281X 2-string Pi driver, they each require a reboot, so switching between them will trigger a reboot.

Can you confirm if you can save any other settings and if they are retained if you reload the settings page?  Also, if you save the pixel strings config, but don't restart fppd, can you reload the pixel strings page in your browser and confirm if the checkbox is checked and other string config options were saved correctly?
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 14, 2022, 11:14:36 AM
If I check the check box and save, then reload page, it stays checked.

If I check it save it and hit the orange coloured box that says restart fppd, it restarts, reboots and then is unchecked.

If I check the box, save it and hit the fppd below with the other reboot/restart options, fppd restarts ok and I can navigate to and from other pages immediately.

When I reboot the last scenario, the box again is unchecked. The only thing I haven't done is tried the test section with this last scenario however, upon reboot it was unchecked so not overly helpful yet anyway.

Every other setting on any other page including the ones on the section that I am using the most retain all their settings as intended.
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 14, 2022, 01:20:35 PM
I have tried reproducing this using the rPi-28D virtual EEPROM, but haven't run into anything that resets the enabled checkbox.

Can you pull in the latest FPP updates on that system and go to the Cape Info page and take a screenshot of the About tab and post it here?
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 14, 2022, 02:11:06 PM
as requested...
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 14, 2022, 02:57:10 PM
I have been trying a few different things

1) rpi4 with rpi-28D+
2) rpi3 with rpi=28D+
this problem is reproduced on both of these setups.

However,
3) rpi4 with virtual eeprom only
this one works although it states a fifty pixel limit and i understand why, at least it stays enabled
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 14, 2022, 03:14:46 PM
I have also tried to reinstall the eeprom signature which wipes the license out.
Then it seems I can enable save reboot and all that while the rpi-28D still stays enabled for DPIPixels driver.
I can test the 50 lights and they work as well, but as soon as I apply a license and reboot, it no longer will stay enabled. maybe there's something in that?
This is true for all setups above.
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 14, 2022, 03:56:48 PM
In the screenshot the EEPROM location was listed as physical.  Did you use the EEPROM Upgrade UI to put an EEPROM .bin file onto the physical EEPROM?  Is there also a virtual EEPROM installed on these?  If so that may be the issue.

In your testing, did the Cape Info About tab or EEPROM signature tab show any message about an invalid EEPROM location?
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 14, 2022, 04:14:09 PM
The only virtual eeprom was on the pi i have that actually doesnt have a cape.

the other two are pictured below.
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 14, 2022, 05:10:12 PM
Quote from: CaptainMurdoch on June 14, 2022, 03:56:48 PMIn the screenshot the EEPROM location was listed as physical.  Did you use the EEPROM Upgrade UI to put an EEPROM .bin file onto the physical EEPROM?  Is there also a virtual EEPROM installed on these? 
Come to think of it, i might have done that. i have several sd cards here that i can test out a new image and see what happens if i do not upgrade with a file
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 14, 2022, 05:39:00 PM
Just for reference, quickly did a clean install, no upgrade or install eeprom file via the ui.
I only applied a license which installed fine rebooted and try enable rpi-28D and restart, reboot and disabled again.
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 15, 2022, 04:23:19 PM
My question would be, do i have to install a virtual eeprom with my 28D's? FPP shows no cape/hat at all if I don't.
On either pi.
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 15, 2022, 08:18:44 PM
Quote from: bradley.jc@live.com on June 15, 2022, 04:23:19 PMMy question would be, do i have to install a virtual eeprom with my 28D's? FPP shows no cape/hat at all if I don't.
On either pi.

I don't know if the rPi-28D+ has an onboard EEPROM or not.  Did you use the "EEPROM Upgrade" form on the Cape Info page to upload a .bin file or did you just use the install button on the Channel Outputs config page?  The fact that it says the location is physical on the other screenshots indicates that it has a physical EEPROM and you uploaded an image, but I want to make sure I'm looking in the right place.

I just committed a new virtual EEPROM for the rPi-28D that includes a 2-string DPIPixels option for users who don't want to use the WS2801 connector for 2 additional strings.  I don't think that will help your issue, but it would prevent you from having to switch configs around if you switch between the legacy RPIWS281x driver and the new DPIPixels driver.

Would it be it be possible to do a teamviewer session sometime so I can login and check some things out?  If so, PM me and we can try to set something up.
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 16, 2022, 11:47:41 PM
Just a follow-up on this thread.  I found/fixed the issue on a teamviewer session, it was a problem in the virtual EEPROM I had created which was then copied on the the rPi-28D+'s physical EEPROM.  It worked fine for the old legacy pixel driver on the Pi, but I missed one setting when updating it for DPIPixels which was causing it to disable DPIPixels at boot.

I am still troubleshooting one other Pi 4 related issue with color shift.  It looks like we have a bit shifting into the next pixel causing colors to be off.  I'm working on tracking that down currently and have an open bug report in github.
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 17, 2022, 12:23:48 AM
And another followup.


The color shift issue on the Pi 4 is fixed now after a math correction in one of the values in the DPI timing line.
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 17, 2022, 01:30:04 PM
Thank you so much, unfortunately I will have to test it out in a few days because I am quarantined inside my bedroom due to a positive Covid test... Over two years I have evaded this thing, Last weekend we went to an engagement party for a nephew and everyone was double VAXed but clearly somebody was carrying it.
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 18, 2022, 12:57:13 AM
I managed to be allowed out since I'm in the basement quarantining and my computer is down here as well. Colours are perfect. One strangeness now is when I adjust the number of pixels, save and restart fppd it triggers a reboot. I was worried it was going to disable the enabled box...it didn't so all is still good that way. Not sure if that matters or not.
Thanks a bunch!!
Title: Re: rpi-28D+ and DPIPixels
Post by: Poporacer on June 18, 2022, 07:52:01 AM
Quote from: bradley.jc@live.com on June 18, 2022, 12:57:13 AMOne strangeness now is when I adjust the number of pixels, save and restart fppd it triggers a reboot.
It isn't rebooting for me. How are you determining that it is rebooting?
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 18, 2022, 08:44:03 AM
Sorry never mind.
Not doing it now.
Last night when I tried the new colour fix that was added, I upped the amount of pixels and when I restarted fppd it definitely triggered something on both of my Pi's. I know this because as soon as I restarted fppd, I went to test page and I had to wait for about 30s. Might not be a reboot sorry. Initially when I restart fppd, the page refreshes and it says fppd stopped. About 30s or so later it's back up and everything is good.
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 18, 2022, 12:14:07 PM
Quote from: bradley.jc@live.com on June 18, 2022, 08:44:03 AMSorry never mind.
Not doing it now.
Last night when I tried the new colour fix that was added, I upped the amount of pixels and when I restarted fppd it definitely triggered something on both of my Pi's. I know this because as soon as I restarted fppd, I went to test page and I had to wait for about 30s. Might not be a reboot sorry. Initially when I restart fppd, the page refreshes and it says fppd stopped. About 30s or so later it's back up and everything is good.

The DPIPixels channel output has a 800-pixel divider.  Whenever you cross that line, the Pi's DPI timings are adjusted which requires a reboot.  Below 800 pixels, the output always the Pi's DPI output at 40FPS even when the sequences are 20FPS.  Above 800 pixels, the Pi's DPI output always runs at 20FPS even when the sequences are above 20FPS.
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 18, 2022, 12:47:22 PM
All is good. Now I'll have to wait and see if xLights updates maybe? Otherwise when i Upload Outputs from xLights to the controller it switches it back to the non DPIPixels driver. I can switch to the DPIPixels driver and all is still good, so its just a minor detail...that is an xLights problem i believe.
Thanks for the excellent work.
Anytime you need anther teamviewer session, I'm your guy!!
Title: Re: rpi-28D+ and DPIPixels
Post by: Poporacer on June 18, 2022, 03:18:10 PM
Quote from: bradley.jc@live.com on June 18, 2022, 08:44:03 AMI had to wait for about 30s. Might not be a reboot sorry.
No, definitely not a reboot, but probably a Restart of fppd (which is commonly required for many settings changes)

Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 18, 2022, 09:32:35 PM
Quote from: bradley.jc@live.com on June 18, 2022, 12:47:22 PMAll is good. Now I'll have to wait and see if xLights updates maybe? Otherwise when i Upload Outputs from xLights to the controller it switches it back to the non DPIPixels driver. I can switch to the DPIPixels driver and all is still good, so its just a minor detail...that is an xLights problem i believe.
Thanks for the excellent work.
Anytime you need anther teamviewer session, I'm your guy!!

Thanks.  Scott is working on some xLights updates to support FPP with DPIPixels and there may be other related FPP changes coming.
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 18, 2022, 11:27:13 PM
Awesome, because my issue is now maybe somewhere between the two. In all my post and communication here all I have been doing is working with fpp, rpi's and rpi-28D+'s. So I've only been testing fpp and the driver and test lights until this evening I hadn't tried any sequences. When I use FPP Connect in xLights, I can upload all my sequences, and it also creates pixel overlay models on the main player. With previous versions I could enable test mode from my player(no physical pixels attached) and I could test all my strings. That doesn't work. Nor do any of my sequences. From xLights when I play a sequence, I can enable the output to lights button and they all light up. Not sure if I need another teamviewer or if it's a simple setting I've missed. The song plays just no lights at all. DPIPixels or standard rpi driver. I could probably pull out my previous sd cards and have it working real quick, but I'm keen to get it going with 6.
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 18, 2022, 11:46:18 PM
Quote from: CaptainMurdoch on June 18, 2022, 09:32:35 PMThanks.  Scott is working on some xLights updates to support FPP with DPIPixels and there may be other related FPP changes coming.
Can't wait!!!
Title: Re: rpi-28D+ and DPIPixels
Post by: cabrio on June 19, 2022, 08:28:10 AM
I don't know how or when you get the time but just updated this morning and bingo...all back to normal...either driver.
The xlights upload issue will get resolved I'm sure soon.
I don't know where you find the time but wow!!
thanks again
Title: Re: rpi-28D+ and DPIPixels
Post by: CaptainMurdoch on June 19, 2022, 04:06:57 PM
Quote from: bradley.jc@live.com on June 19, 2022, 08:28:10 AMI don't know how or when you get the time but just updated this morning and bingo...all back to normal...either driver.
The xlights upload issue will get resolved I'm sure soon.
I don't know where you find the time but wow!!
thanks again
That was a late night debugging session, but at least I figured it out without having to connect up the scope.  Once you told me it was every 5 pixels it was a matter of looking at the configs and testing and after a little while the bug with a  simple math error in the Pi 4 timing line was staring me in the face.
Powered by SMFPacks Menu Editor Mod