Page 2 of 9 FirstFirst 1234 ... LastLast
Results 11 to 20 of 87

Thread: Triks-C and the Falcon Player

  1. #11
    Join Date
    Oct 2008
    Location
    San Jose, CA
    Posts
    10,283
    Post Thanks / Like

    Default Re: Triks-C and the Falcon Player

    Got the script on my FPP but don't have Internet access from it (for d/l the Serial lib) so messed around with a proxy on my laptop that did but couldn't get it to work. Will need to bring it inside and do the download - will let you know tonight hopefully... It appears my USB/Serial port is recognized as I see the dev link updated.
    [COLOR=#000080][B][I]Brian[/I][/B][/COLOR]

    [COLOR=#ff0000]Christmas in San Jose! - [URL="http://www.christmasinsj.com"]WEB[/URL] - [URL="https://www.facebook.com/ChristmasInSanJose"]FB[/URL] - [URL="https://www.youtube.com/playlist?list=PL1W78s7liEQEE0ed7WSyLF7B6j3lBX43w"]VIDEOS[/URL]
    [/COLOR][COLOR=#800080]Halloween in San Jose! - [URL="https://www.facebook.com/pages/Halloween-in-San-Jose/356280784428581?ref=tn_tnmn"]FB[/URL]
    [SIZE=1]2015 Halloween Show - Planning now - hopefully some house projection...
    2015 Christmas Show - 5x E681-12, 1x 6804, Ren48LSD, 3x RenSS16, 1x Falcon16v2 (w/expander), 24x90 WS2811 pixel MT (James MT Strips), 12x DIYC Floods, SuperPixelStar, 3x Pixel Arches, PixaBulb House outline
    [/SIZE]
    [/COLOR][SIZE=3][COLOR=#008000][I]Ignorance is Temporary [/I][/COLOR][COLOR=#800080][I]- [/I][/COLOR][COLOR=#ff0000][I]Stupidity is Forever[/I][/COLOR][COLOR=#800080][I]...[/I][/COLOR][/SIZE][I][COLOR=#ff0000]
    [/COLOR][/I]

  2. #12
    Join Date
    Dec 2012
    Posts
    828
    Post Thanks / Like

    Default Re: Triks-C and the Falcon Player

    Quote Originally Posted by budude View Post
    Got the script on my FPP but don't have Internet access from it (for d/l the Serial lib) so messed around with a proxy on my laptop that did but couldn't get it to work. Will need to bring it inside and do the download - will let you know tonight hopefully... It appears my USB/Serial port is recognized as I see the dev link updated.
    Thanks. We are including that Perl module in the FPP v1.0 image since it is used in some of our example Event Scripts.

  3. #13
    Join Date
    Oct 2008
    Location
    San Jose, CA
    Posts
    10,283
    Post Thanks / Like

    Default Re: Triks-C and the Falcon Player

    OK - - got the lib installed and ran the script - - the output on the display (#1) matches the output you expected so it looks good. What is the command code to write to the other boards so I can check that?


    edit - nm - I figured it out after looking at the triks-c asm code. Pretty cool - made two patterns of all 1's and all 0's and can flash the entire panel on/off.

    edit2 - took out all the printfs and looped up all 4 panels on/off - poor little supply is squeaking away...
    Last edited by budude; 09-26-2014 at 02:23 AM.
    [COLOR=#000080][B][I]Brian[/I][/B][/COLOR]

    [COLOR=#ff0000]Christmas in San Jose! - [URL="http://www.christmasinsj.com"]WEB[/URL] - [URL="https://www.facebook.com/ChristmasInSanJose"]FB[/URL] - [URL="https://www.youtube.com/playlist?list=PL1W78s7liEQEE0ed7WSyLF7B6j3lBX43w"]VIDEOS[/URL]
    [/COLOR][COLOR=#800080]Halloween in San Jose! - [URL="https://www.facebook.com/pages/Halloween-in-San-Jose/356280784428581?ref=tn_tnmn"]FB[/URL]
    [SIZE=1]2015 Halloween Show - Planning now - hopefully some house projection...
    2015 Christmas Show - 5x E681-12, 1x 6804, Ren48LSD, 3x RenSS16, 1x Falcon16v2 (w/expander), 24x90 WS2811 pixel MT (James MT Strips), 12x DIYC Floods, SuperPixelStar, 3x Pixel Arches, PixaBulb House outline
    [/SIZE]
    [/COLOR][SIZE=3][COLOR=#008000][I]Ignorance is Temporary [/I][/COLOR][COLOR=#800080][I]- [/I][/COLOR][COLOR=#ff0000][I]Stupidity is Forever[/I][/COLOR][COLOR=#800080][I]...[/I][/COLOR][/SIZE][I][COLOR=#ff0000]
    [/COLOR][/I]

  4. #14
    Join Date
    Dec 2012
    Posts
    828
    Post Thanks / Like

    Default Re: Triks-C and the Falcon Player

    That's great! Thanks for testing.

    I have started writing a channel output driver in FPP to drive the Triks-C. I have the UI changes done and am working on the backend code to take the raw channel data and turn it into something the Triks-C can use.

  5. #15
    Join Date
    Oct 2008
    Location
    San Jose, CA
    Posts
    10,283
    Post Thanks / Like

    Default Re: Triks-C and the Falcon Player

    Quote Originally Posted by CaptainMurdoch View Post
    That's great! Thanks for testing.

    I have started writing a channel output driver in FPP to drive the Triks-C. I have the UI changes done and am working on the backend code to take the raw channel data and turn it into something the Triks-C can use.
    Cool - or actually I should curse you because now I will have a reason after 5 years to box this thing up and finally use it... lol

    Yeah - I used to be a Perl jockey back in the day - it's not exactly known for its speed - that script was running as fast as it could. Curious - is it necessary to send the Escape/Command sequence for each panel? It seems to be that way.
    [COLOR=#000080][B][I]Brian[/I][/B][/COLOR]

    [COLOR=#ff0000]Christmas in San Jose! - [URL="http://www.christmasinsj.com"]WEB[/URL] - [URL="https://www.facebook.com/ChristmasInSanJose"]FB[/URL] - [URL="https://www.youtube.com/playlist?list=PL1W78s7liEQEE0ed7WSyLF7B6j3lBX43w"]VIDEOS[/URL]
    [/COLOR][COLOR=#800080]Halloween in San Jose! - [URL="https://www.facebook.com/pages/Halloween-in-San-Jose/356280784428581?ref=tn_tnmn"]FB[/URL]
    [SIZE=1]2015 Halloween Show - Planning now - hopefully some house projection...
    2015 Christmas Show - 5x E681-12, 1x 6804, Ren48LSD, 3x RenSS16, 1x Falcon16v2 (w/expander), 24x90 WS2811 pixel MT (James MT Strips), 12x DIYC Floods, SuperPixelStar, 3x Pixel Arches, PixaBulb House outline
    [/SIZE]
    [/COLOR][SIZE=3][COLOR=#008000][I]Ignorance is Temporary [/I][/COLOR][COLOR=#800080][I]- [/I][/COLOR][COLOR=#ff0000][I]Stupidity is Forever[/I][/COLOR][COLOR=#800080][I]...[/I][/COLOR][/SIZE][I][COLOR=#ff0000]
    [/COLOR][/I]

  6. #16
    Join Date
    Dec 2012
    Posts
    828
    Post Thanks / Like

    Default Re: Triks-C and the Falcon Player

    That perl code was a hack writing one byte at a time, the C code will write out the whole 98 bytes for a panel in one shot (sync + command + data).

    Some of the logic to convert from raw channels to Triks-C format will be ugly but the goal is to make it fast. Calculating the single 8-bit bit-reversed value that corresponds to 8 non-contiguous channels in memory isn't fun. I have a helper for that done and am starting on the logic to step through the input channel array and dealing with output panel counts and positions.

    Based on the spec we do need to send the sync and command bytes for every pane, but that is only 2 bytes out of 98 total so it's low overhead.

  7. #17
    Join Date
    Dec 2012
    Posts
    828
    Post Thanks / Like

    Default Re: Triks-C and the Falcon Player

    I wanted to post an update on the progress.

    To help with writing the channel output driver in FPP, I made a preview function to deconstruct the data that would be sent to the Triks-C and draw it as a virtual 48x16 grid for each panel. Last night I tested the code with the various 1x?, ?x1, and 2x2 layouts and my preview function was showing the same data as the Nutcracker preview window. I have FPP running in bridge mode with a 'Triks-C' channel output defined and if I had an actual Triks-C attached, the LEDTriks should be blinking.

    I need to do a little more work in the output timing code. When outputting to 4 panels we will have to drop to 100ms refreshes due to the amount of data we need to send so I need to put in some code to deal with that since the input sequence is probably meant to run at a faster rate. I am thinking this through because I would prefer to be able to run 2-3 panel layouts at 50ms if the sequence is 50ms.

    I just wanted to let you know the code is almost there and it is working just like I envisioned. When done, you will be able to control a LEDTriks as if it were a pixel matrix.

    In Nutcracker, for a single panel layout, I defined a horizontal matrix model with 16 strings of 48 pixels. For the effects, I used only red since the FPP code is only looking at the red channels during conversion so that it can be as fast as possible when running on the Pi.

    When I do commit, this will only go in our master code branch for now since this will go into the upcoming v1.0 release. You will be able to test the code before then if you are running a v0.4.0 image since there is a developer page which let's you switch code branches to help test or debug.

    I will post again when I have something ready to test.

  8. #18
    Join Date
    Dec 2012
    Posts
    828
    Post Thanks / Like

    Default Re: Triks-C and the Falcon Player

    I pushed the new code to the master branch of the FPP repository tonight. If you want to test, you need to make sure you can pull updates off the internet and switch to the master branch via the /developer.php page in the UI. There is no link to this page, you have to append /developer.php to the URL to get to it.

    Triks-C is now listed as a channel output type. You select the start channel, serial port, and panel layout. The code supports horizontal layouts of 1-4 panels, vertical layouts of 1-4 panels, and a 2x2 layout. The top-left panel must be panel 1, then the numbering goes to the right and then down to the next row and so on.

    To control the Triks-C/LEDTriks you will create a horizontal matrix model in Nutcracker or your sequencing tool. The matrix is defined as the number of pixels in your layout, so if you have a 2x2 layout then you would create a 96x32 matrix. The string config in the model should be 1 string per line, so that 96x32 matrix would have 32 'strings'. This puts the channels in the right order to be processed by the FPP code. The color order should be RGB, and only the 'R' channels are used since the LEDTriks is monochrome.

    If you can run your FPP in bridge mode, you can actually drive the display from Nutcracker to test.

    I'm double-posting this on the Falcon site, I'd prefer support and debugging be done over there, but will also be checking here as well for questions or bug reports.

  9. #19
    Join Date
    Nov 2007
    Location
    Houston, TX (near Katy)
    Posts
    976
    Post Thanks / Like

    Default Re: Triks-C and the Falcon Player

    Hi,
    I had originally inquired about this a few month's back and just saw this thread. I too, am interested in using my LedTriks with my FPP this year. I have a 1x1 panel and also have a USB to serial adapter. I am not as quick as many of you regarding some of these setups, and would like to test it, but I don't quite know how to get the code into the FPP. I appreciate you taking the time to work on this.
    Thanks.
    That's a feature not a bug.
    There's no charge for that.

  10. #20
    Join Date
    Dec 2012
    Posts
    828
    Post Thanks / Like

    Default Re: Triks-C and the Falcon Player

    The code is in the main development branch of FPP already so it can be tested now. If you are running the v0.4.0 version of FPP, you can point your web browser at http://YourFPPIP/developer.php

    On that page, change the branch dropdown from v0.4.0 to 'master'. That will switch you over to the master branch which has support for the Triks-C.

    Reboot with the USB dongle plugged in.

    There is a new Triks-C channel output type. Select the USB port, start channel, and panel layout and save the config. Restart FPPD via the button on the main status page.

    You sequence data for the display as a normal RGB matrix. The layout should be defined as horizontal, starting top left and with one string per row. If you have one panel, that would be a 48 wide by 16 tall matrix. FPP looks at only the red channel data since the LEDTriks is single color. This means only red values in your effects will be shown on the LEDTriks.

    Hopefully that is enough to get you going.

  11. Thanks marx1 thanked for this post
Page 2 of 9 FirstFirst 1234 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •