0

Serial Commands for HD410



Hello,

I need to know the serial commands to play specific files and have others loop.

For example. I have two video files
SS.mpg
Preshow.mpg

I need to send Serial to have SS.mpg loop until I send a command to have the Preshow.mpg play.

Thanks for any help you can give.
Examples would be best.

7 comments

  • 0
    Avatar
    RokuLyndon


    You can do this easily with an interactive playlist.





    SERIALPORTSPEED,115200,,

    SERIALPORTMODE,8N1,,



    EVENTS,,serial:ss,serial:pre

    STATE,start.jpg,ss.mpg,preshow.mpg

    STATE,ss.mpg,ss.mpg,preshow.mpg

    STATE,preshow.mpg,ss.mpg,preshow.mpg





    In this example, the unit starts up and plays an image. If you send the string "SS" over serial, it plays ss.mpg, and loops it. If you send "PRE" over serial, it plays pre.mpg and loops it.



    If this doesn't fit your needs, can you tell me more about what you want to do? You can use a custom script to accept input over the serial port, and use the script to accept commands and do different things.
  • 0
    Avatar
    Tristan Gibson


    "RokuLyndon" wrote:

    You can do this easily with an interactive playlist.


    SERIALPORTSPEED,115200,,
    SERIALPORTMODE,8N1,,

    EVENTS,,serial:ss,serial:pre
    STATE,start.jpg,ss.mpg,preshow.mpg
    STATE,ss.mpg,ss.mpg,preshow.mpg
    STATE,preshow.mpg,ss.mpg,preshow.mpg


    In this example, the unit starts up and plays an image. If you send the string "SS" over serial, it plays ss.mpg, and loops it. If you send "PRE" over serial, it plays pre.mpg and loops it.

    If this doesn't fit your needs, can you tell me more about what you want to do? You can use a custom script to accept input over the serial port, and use the script to accept commands and do different things.




    Thanks for the quick reply RokuLyndon.



    We don’t have a jpg. Basically the SS.mpg is a Screensaver until we want to play a PreShow video. Then after the video is over it will go back to the Screensaver. We have a Show Control system that will send the serial commands. Could you change the script for that purpose as I am having a hard time seeing the logic of the script?



    We were hoping for a less convoluted system when we bought your unit over one of your competitors. There is a unit like the HD series players that does everything your players does (and a few video codecs that yours don’t) and it accepts VERY simple serial commands right out of the box. For example



    We could do everything we want with



    "play ss.mpg loop"



    Then when we want the pre show to play we would send



    "play preshow.mpg"



    That’s it. Only thing it would require is the files in the root dir of the card.

    We went with the brightsign cause it was a couple hundred cheaper but if the scripting cant be simplified like that we may have to buy the other unit as putting shows together we don’t want to waste time learning more script.



    Is there anyway the Brightsign could do that... cause if so next year we would likely be in the market for buying "many" more.
  • 0
    Avatar
    RokuLyndon


    If you want something that basic, then yes you can do this. There's a script in memory that automatically tries to play content that's on the flash card if all it sees are videos. so, we'll need to bypass that.



    But, you can send the following to the shell:



    videoplay ss.mpg loop



    And, if you just want to send a play command:



    videoplay preshow.mpg

    You can do both from the shell without dealing with any scripting.





    I also have a script I can send you, that doesn't require any scripting on your part that's a little more flexible.



    You can send play <file>, stop, loop, and search. You can also indicate if you want the file stop and leave the last frame on the screen after playback or when you send a stop command. So, with this script you could send:





    loop ss.mpg

    play preshow.mpg



    What's supposed to happen when preshow is done playing?
  • 0
    Avatar
    Tristan Gibson


    "RokuLyndon" wrote:

    If you want something that basic, then yes you can do this. There's a script in memory that automatically tries to play content that's on the flash card if all it sees are videos. so, we'll need to bypass that.

    But, you can send the following to the shell:

    videoplay ss.mpg loop

    And, if you just want to send a play command:

    videoplay preshow.mpg
    You can do both from the shell without dealing with any scripting.


    I also have a script I can send you, that doesn't require any scripting on your part that's a little more flexible.

    You can send play <file>, stop, loop, and search. You can also indicate if you want the file stop and leave the last frame on the screen after playback or when you send a stop command. So, with this script you could send:


    loop ss.mpg
    play preshow.mpg

    What's supposed to happen when preshow is done playing?




    Thats excellent. Thanks so much. When the preshow video is done the showcontrol system will send the play screensaver command. I have PMed  my email (for that script) as I dont want it plastered on the forums....you'll see why. Thanks.
  • 0
    Avatar
    RokuLyndon


    This is the simple control script I mentioned. Here's the readme that I also forwarded to you.



    <!-- m --><a class="postlink" href="http://www.brightsign.biz/downloads/Control_Script.zip">http://www.brightsign.biz/downloads/Control_Script.zip</a><!-- m -->



    Serial & UDP Control

    *********************

    This control script for the HD Compacts supports input from the Serial

    and Ethernet port. It currently only supports playback of videos.





    Default Serial Port Settings:

    ******************************

    115200, 8, N, 1

    *Serial commands must be teriminated with a carriage return. That's how

    the script is currently written. That can be changed.





    UDP Settings:

    ***************

    UDP port 21075 (No IP address is set by default)



    *You can send udp commands to the IP address of the unit if it

    acquires an IP address from the network.



    *You can send UDP commands to the broadcast address if the unit

    is using an autoip address of the form 169.254.x.y. The broadcast address

    is 169.254.255.255, or you can use 255.255.255.255 to broadcast to any

    range.





    Note: These settings can be changed under the NewControl() section.





    Commands Currently Supported:

    *****************************

    This control script supports the following commands. The commands are

    not case sensitive.



    Command Syntax: <command> or <command><space><argument>



    e.g. Play video.mpg

    Loop video.mpg

    Volume 85

    Stop





    READY



    When the unit starst up, it outputs the string READY over the serial port.

    Output over UDP is disabled by default.



    1. Play or Play <file>

    Play video.mpg - plays video.mpg once and stops on the last frame

    Play       - plays the most recent file found by the Search command

    Sends "PLAY" as a response when the command is received.

    Sends "ENDP" when the video has finished playing.

    Sends "NoFl" if there's no file to play.

    Sends "INVL" if the file failed to open or the name was incorrect.



    2. PLAYCLEAR <file>

    PlayCl video.mpg - plays video.mpg once, and clears the screen when finished.

    Sends "PLYC" as a response when the command is received.

    Sends "ENDP" when the video has finished playing.



    3. Stop

    Stop - stops the currently playing video and leaves the last frame

    Sends "STOP" as a response when the command is received.



    4. StopCL

    StopCL - stops the currently playing video and clears the screen.

    Sends "STPC" as a response when the command is received.



    5. Loop <file>

    Loop video.mpg - plays video.mpg in a loop until another command to play different file is received.

    Sends "LOOP" as a response when the command is received.

    Sends "ENDL" when the video has finished one loop.



    6. Search <file>

    Search video.mpg - checks if video.mpg is present on the flash card.

    Sends "SRCH" as a response when the command is received.

    Sends string found if the search is successfull.





    7. Volume <setting>

    Volume 75 - changes volume to 75% of normal. Changes on the fly.

    Sends "VOLM" as a response when the command is received.



    There's also a Vvolume and Avolume which change the volumes for the video player and audio player respectively.
  • 0
    Avatar
    Tristan Gibson


    Thanks for all the help. We appreciate it. We havent had time to test the serial yet but I am sure it will work but we did come across a couple things that made us wonder.



    We had to encode a video into a .ts to get it to play.

    The questions are. Will the new beta software allow us to play other file types?



    We noticed with just an autoplay.ts the 50mb file took a while to play about 2 to 3 min.

    Is it transfering the file to the playback unit.

    If so is there a limit to how big or long a video we can play?

    We want to play a 15min video..



    Thanks again.
  • 0
    Avatar
    RokuLyndon


    The 3.1.46 firmware is out of beta. It's just some edits that need to be done on the web page. Should be live in the next day or so as the final version.



    With the 3.1 firmware, you can play program streams as well, but there is hardware support for the transport streams.





    Do you mean it took 2-3 minutes to start playing?



    The largest file I know a customer has played is 30GB. There's no limit that I know of. For files bigger than 4GB, you need a flash card formatted as NTFS.
Please sign in to leave a comment.