Author Topic: Flickering from xLights with LOR Dongle  (Read 2966 times)

Offline TastyHamSandwich

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Jolt Lighting
Flickering from xLights with LOR Dongle
« on: February 01, 2019, 01:56:49 PM »
I am using an LOR USB dongle to connect to my LOR CTB16PC controllers, which power singing faces. Within xLights, I get VERY strange behavior when using the LOR protocol (which I avoid entirely, anyways), and when using OpenDMX, it acts better but still not right. It flickers like mad when playing back a sequence, though you can still tell what it is trying to do. Unfortunately, the flickering is a huge hurdle for gauging the accuracy and timing of my singing face programming. I've tried both the regular LOR dongle and the red, high-speed LOR dongle, both of which act the same.

As a side note, trying the regular DMX protocol, or any others, yield no response from the controllers at all; I can only get a response with either LOR or OpenDMX, and the LOR is sluggish and leaves channels on when others light, lagging behind the sequence and just being terrible in general. OpenDMX is the only option that works with any semblance of accuracy... it just flickers like it's trying to sing me into a seizure.  :o

Oddly enough, when I load an FSEQ generated from xLights into xSchedule and play it back, the flickering ceases. While it does allow me an avenue to check my work, it is a huge interruption to my workflow.  :'(

Does anyone know what may be the source of this flickering within xLights, and what I might do to make it stop? This would be preferable, but if I MUST get a different dongle, could someone provide a good recommendation as to which one to try? I have to use LOR controllers on the faces, as the decision to use those isn't made by me, so I'm stuck with that.

I should also note that I use the same regular black LOR dongles to provide an RS485 output from my FPP units, and they work fine with no flickering issue when configured as OpenDMX within FPP. I figure this works fine for the same reason it works fine in xSchedule: it's running from the FSEQ file and not the XML file that xLights generates the FSEQs from.  ???

Hopefully someone out there knows what I can do to knock the flickering out, but, as I said, in lieu of that, I'll take some advice on what kind of USB to RS485 DMX dongle to invest it. Thank you for your time in reading this, and I look forward to hearing what ya'll have to say. Cheers!  ;D

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Flickering from xLights with LOR Dongle
« Reply #1 on: February 01, 2019, 10:48:13 PM »
Did you try the new LOR protocol I added in the past year?  By using the Add LOR button?  It should work better than if you were using the Add USB option to run LOR.

Offline TastyHamSandwich

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Jolt Lighting
Re: Flickering from xLights with LOR Dongle
« Reply #2 on: February 02, 2019, 02:49:07 PM »
How would you recommend configuring it with the Add LOR option? My face controller, in one instance, is ID #7, and in xLights the source data comes from channels 97-112. I have a second set that is on ID# 8, using channels 113-128. Just want to be sure I know I'm setting it up right. Thanks, gilrock! :)

Offline TastyHamSandwich

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Jolt Lighting
Re: Flickering from xLights with LOR Dongle
« Reply #3 on: February 02, 2019, 02:50:33 PM »
Nevermind, I think I got it. But, still, could you recommend a good baud rate and all that? Just to be optimized :)

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Flickering from xLights with LOR Dongle
« Reply #4 on: February 02, 2019, 03:43:08 PM »
As fast as it will go.  I run 512Kbaud if the dongle will do it.

Offline TastyHamSandwich

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Jolt Lighting
Re: Flickering from xLights with LOR Dongle
« Reply #5 on: February 04, 2019, 10:34:19 AM »
I don't know if this is related or not, but it seems weird that its happening now after I made the changes to use an LOR Optimized output for these channels, but the sequencing is like... pulsing and flashing, now. This is in the sequencer itself, even though it's only drawing data from a Faces effect set to a Lyric track. I reloaded a backup of the xlights_networks.xml file that only had the OpenDMX set up, and it went back to normal when I rendered it again. I've always thought the networks file had nothing to do with rendering or FSEQ generation, that it was only to tell xlights what channels go where when outputting directly via xLights. I guess I'm wrong, there, as it wouldn't be behaving this way if it were otherwise. My only real question is why? Why does changing it to an LOR Optimized output type cause it to render my faces all funny-like?

I had initially set up only the channels going to the faces as LOR Optimized, and left OpenDMX on either side of those channels (1-96 OpenDMX, 97-128 (ID 7 & 8 ) LOR Optimized, then back to OpenDMX from 129-512), and it was under that setup that I saw the weird behavior in the sequencer. I've redone it again now, using LOR Optimized for the entire first universe, and gave it a render. The sequencing still appears normal, as it should, but when outputting to lights I'm getting weird effects again - it looks like it's doing a chase through all the channels, and not following the sequencer as it should. I've tried a few different baud rates, but that doesn't seem to affect the output. This is so friggin' weird.

I'd wondered if it was chasing and stuff because I had set up ID 7 & 8 first in the list, then listed the remaining 30 IDs after that, which might have been causing it to follow my 1:1 A/C data, which it looked suspiciously like. I rebuilt the entire 32 IDs in order, and then was unable to get ANY output on my faces. So, I went back, tried again, and set it up as NULL for 1-96, LOR Optimized for 97-128, and then NULL for 129-512). From this, it's gone back to acting all chasey and pulsey. I've noticed that when it is configured like this, my Face 1 in the Layout tab now shows 2:1 (97) as the Start Channel. I select the face, and the place where you enter that parameter still shows 1:97 as it always has. Clearing and re-entering it has no effect, and it insists that 1:97 = 2:1 (97) in the model list's Start Channel column. I guess this is related to having NULL entries, or OpenDMX entries, alongside the LOR Optimized, but I don't get any of this behavior - it all seems buggy and broken to me. I don't get what is causing it to insist that ch97 is the start of universe 2, when in the networks tab both the LOR Optimized and both NULL outputs are set as 1, and Universe 2 doesn't start until Ch 513 with my E1.31 outputs.

I'm sure I got a little confusing through there, entering each paragraph as I went back and tried something different to see if I could narrow down on a solution and the proper way to set it up, but I just got more and more confused myself, as none of it made sense to me. Configuring as LOR Optimized seems to hose my layout and the sequencing that goes to the Faces gets confused for whats in 1:1 instead of 1:97, apparently. Configuring as OpenDMX, despite working fine in xSchedule and via FPP, flickers like mad in xLights and makes it impossible to do the adjustments to the phoneme timing that I have to do (visualizer isn't enough to get it done right - I have to see it).

It all seemed to work okay at first on Saturday when I set it up initially, but I wasn't staying in the office long that day and I went home after I saw that the faces were singing properly. I wish I knew what changed, as it wasn't anything I did overtly, that I can tell. Maybe it was all jacked up then too, I just hadn't tested it thoroughly enough to tell. But, then again, idk, because the the faces looked right, and that was when the LOR Optimized was sandwiched between the two OpenDMX outputs (which were disabled, then as now).

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Flickering from xLights with LOR Dongle
« Reply #6 on: February 04, 2019, 12:38:48 PM »
As far as how data is rendered the LOROptimised output cannot be breaking anything.  You must be causing a shift in channel assignments.  Sorry but I have trouble trying to follow how you have it setup reading a bunch of paragraphs.  My eyes just glaze over.  I'll look closer if you share some screenshots.  I'd rather visually see how you have the channels assigned.  Or just package a sample sequence and post it.

Offline TastyHamSandwich

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Jolt Lighting
Re: Flickering from xLights with LOR Dongle
« Reply #7 on: February 04, 2019, 02:11:02 PM »
Haha, for sure, Gil, I understand. My own mind was glazing over this morning, and I was struggling to troubleshoot while having a migraine. Here are some screenshots. I attached them in order of my original OpenDMX configuration, in the normal order of the tabs in xLights (Setup, Layout, Sequencer), then followed by an iteration of how things were tried with LOR Optimized, again in order, Setup - Layout - Sequencer.

I have similar results when trying NULL outputs as well as using 1 LOR Optimized to fill out an entire 512 ch universe.

You'll notice that on the Layout tab when its set up with LOR Optimized, the Face 1 is showing up as 2:1 (97) rather than the 1:97 that the parameter is actually set for, and is also how it shows up when set up as OpenDMX for an entire 512ch universe, as was originally configured. I hope that makes sense.

Also, if you provide an e-mail address or something, I can send you a packaged sample sequence - I'd rather not post it on the forum, just because I don't really have permission to share it openly.
« Last Edit: February 04, 2019, 02:35:55 PM by TastyHamSandwich »

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Flickering from xLights with LOR Dongle
« Reply #8 on: February 04, 2019, 02:37:39 PM »
Pretty sure you cannot use "1" in the universe column for all 3 outputs.  Wasn't there a note when you created the LOR Optimised output that says the Id needed to be unique?

Offline TastyHamSandwich

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Jolt Lighting
Re: Flickering from xLights with LOR Dongle
« Reply #9 on: February 04, 2019, 03:03:14 PM »
Not that I recall - In the Controller ID setup/LOR Optimized configuration window, I don't see wording stating that it needs to be unique. Given that my faces are on channels 97-128 (IDs 7 and 8 on the LOR controllers), and the way that xLights handles all the output entries sequentially, I've got to have *something* in there to space it properly before universe 2 starts at channel 513. Before, when it was just a single OpenDMX entry, this worked fine.

How would you recommend I set this up so I can output LOROptimized to those channels without it hosing everything up? It seems that when I split it up with null or OpenDMX entries (disabled or not) that it starts messing with my channel assignments on the Layout tab.

I wish I knew why OpenDMX didn't work within xLights properly to begin with, as xSchedule has no issue with it, nor does FPP. I can use OpenDMX on an LOR Dongle to the LOR Controllers and everything works just fine... as long as I'm not outputting from xLights itself.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Flickering from xLights with LOR Dongle
« Reply #10 on: February 04, 2019, 04:47:08 PM »
I don't know xSchedule and xLights actually use the same source code to run the outputs so there should be no difference.  I don't think I can help without files.

Offline TastyHamSandwich

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Jolt Lighting
Re: Flickering from xLights with LOR Dongle
« Reply #11 on: February 05, 2019, 08:48:54 AM »
Files sent to you via PM, Gilrock. I am greatly appreciative of your help on this issue. Thank you!!!

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Flickering from xLights with LOR Dongle
« Reply #12 on: February 07, 2019, 04:50:56 PM »
Ok here's your problem.  As soon as you added the LOR Enhanced output it became output #2 in the Setup list.  But you used output notation for all your models so you cannot insert a new output in the middle it throws the whole thing off.  Your "Tree 1" model channels start at "2:1" which means output #2 not universe #2 so the tree channels were stomping on the faces.  So all your problems really had nothing to do with LOR devices just basic channel assignments.  If you want to specify universe #2 then use "#2:1" or use the "..." button to open the dialog which will give the correct format.

Offline TastyHamSandwich

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Jolt Lighting
Re: Flickering from xLights with LOR Dongle
« Reply #13 on: February 08, 2019, 04:40:42 PM »
Haha fantastic. Once I get back in the office, I'll give it a shot. This whole time I could've sworn it was the other way around, #2 = Output 2, not Universe 2. Guess I was wrong :)

So, to be sure, I need to specify #'s to prefix it as Universe:Channel starting location assignments, on all my various models?

Thank you, Gil!! I'm an idiot :)

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Flickering from xLights with LOR Dongle
« Reply #14 on: February 08, 2019, 05:47:34 PM »
Yep...like I said if in doubt just do one start channel in the dialog and it will enter the correct syntax.