0

Can I get to the shell over ethernet?



Just sending simple play commands over the network might be the easiest way to control this thing I'm working on. I already have a control system going that is controlling a bunch of other devices in the room.

Also, if I set up the CSV script thing, can I send the commands to it over ethernet?

Just making sure before they pull cable...

8 comments

  • 0
    Avatar
    RokuLyndon


    ON the compact units, you can use the UDP keyword in a csv file to accept udp strings to play different files. Do you just need to send commands to play certain files, or do you need more control using UDP?
  • 0
    Avatar
    travis


    Sorry, I should have specified which model in the first post; We're using HD1010's





    I think I just need to be able to play certain files, probably a Stop command too.
  • 0
    Avatar
    RokuLyndon


    Using a CSV file with UDP control, the commands you send trigger files to play. So, a command to play would start a file. But, to stop, you would need to play a different file, like a blank image, for example.



    You can also try this sample control script. It lets you send play and stop commands. It's only setup to deal with video playback currently.



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


    Thank you. I now have an HD1010 to test with.



    The script you posted above is working for me. When using UDP I have to make sure not to send any carriage return or line feed character, or it doesn't parse the command.



    Looking through the CSV docs now...
  • 0
    Avatar
    travis


    Is there an easy way to make the CSV not clear the screen at the end of a video?
  • 0
    Avatar
    RokuLyndon


    In the script that controls the csv file, the autorun.bas (older models) or autorun.brs(compact models), there's a StopClear() command that's used when a video finishes. If you change it to just Stop(), then that will leave the last frame on the screen.



    IF you are using one of the compact models, then the player is using the autorun that's in memory. You can download that autorun file from the support page, and open it, and search for .StopClear().
  • 0
    Avatar
    travis


    "RokuLyndon" wrote:

    Using a CSV file with UDP control, the commands you send trigger files to play. So, a command to play would start a file. But, to stop, you would need to play a different file, like a blank image, for example.

    You can also try this sample control script. It lets you send play and stop commands. It's only setup to deal with video playback currently.

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




    Do you have a version handy that also handles DisplayImage(), and maybe PreloadImage() and DisplayPreload()?   I can't quite get it to work.



    edit: got it

    <!-- m --><a class="postlink" href="http://dl.getdropbox.com/u/1494916/junk/autorun1.brs">http://dl.getdropbox.com/u/1494916/junk/autorun1.brs</a><!-- m -->



    no preload yet though
  • 0
    Avatar
    travis


    Now netcat can send it string over UDP.



    Function StripSpaces(command As String) As String
      leadspaces=true
      trailspaces=true

    while (leadspaces or trailspaces)
      strip_space:
    if left(command,1) = chr(32)   then
    command=right(command, len(command)-1)
    else
    leadspaces=false
    endif

    if right(command,1) = chr(32) then
    command=left(command, len(command)-1)

    else if right(command,1) = chr(10) then
    command=left(command, len(command)-1)

    else if right(command,1) = chr(13) then
    command=left(command, len(command)-1)
    else
    trailspaces=false
    endif
    end while

      return command
    End Function

Please sign in to leave a comment.