0

Reboot a HD210 or HD1010 remotely



Hi, is it possible to reboot a brightsign unit (HD210 or HD1010) remotely? Regards, Nando

12 comments

  • 0
    Avatar
    RokuLyndon


    Yes, but it would require a little customization, but yes, it can be done.
  • 0
    Avatar
    Fernando Díaz Vinuesa


    Could I do this customization for myself? If so, How could I do it? If not, how should we proceed in order to get a customized unit?
  • 0
    Avatar
    RokuLyndon


    Do you want to do this using a brightauthor project, or a custom script? How are you playing back content currently?
  • 0
    Avatar
    Fernando Díaz Vinuesa


    The content is managed through the simple file networking. Would it be possible to reboot the HD1010 at anytime with this customization or  I would have to publish a new schedule if I would like to reboot the unit at other time?
  • 0
    Avatar
    RokuLyndon


    Are you on the same network as the units, so you can send a UDP command? This is a simple change.

    Or, another way it could be done would be via http. The brightsign could do an http get, to grab a text file or xml file that you would write to a web directory. We could have it reboot if the file is present, or if it's a text file, read the first line of the text file and if it's the word reboot, then it restarts. It could do this http get every 30 seconds, or every time a particular file is played, etc..
  • 0
    Avatar
    Fernando Díaz Vinuesa


    Could you explain both ways if it is not too hard?
    Thanks!
  • 0
    Avatar
    RokuLyndon


           elseif type(msg) = "roDatagramEvent" then
       
               eventData = m.HandleDatagramEvent(msg, eventData, transitionList)


    This section of the EventLoop function in the autorun file that gets published by brightauthor looks for UDP events. We can insert a simple check here to intercept the command before it's processed full. So, our replacement section would look like:


           elseif type(msg) = "roDatagramEvent" then

               if UCASE(msg.GetString()) = "REBOOT" then RebootSystem()
               eventData = m.HandleDatagramEvent(msg, eventData, transitionList)


    Now, a REBOOT command sent over UDP will cause the system to restart. You an then save this new autorun, and when you publish a project from BrightAuthor and want to use this autorun, you can attach it to your project, under the file menu, presentation properties, under autorun, using the custom radio button.
  • 0
    Avatar
    RokuLyndon


    Sub DisplayImage(zone As Object, state As Object, imageItem As Object)

       m.StopSignChannelInZone(zone)
       
       file$ = imageItem.fileName$


    This is the top of the DisplayImage function. Let's say you have an image callled rebootcheck.jpg and you want the unit to download a command.txt file from your webserver every time that file plays. You could make the following change.





    Sub DisplayImage(zone As Object, state As Object, imageItem As Object)

    m.StopSignChannelInZone(zone)
    file$ = imageItem.fileName$

    if Ucase(file$) = "REBOOTCHECK.JPG" then
    commandfile$="command.txt"
    URL$="http://192.168.137.1:100/test1/"
    txfer=createobject("roURLTransfer")
    txfer.SetURL(URL$ + commandfile$)
    txfer.GetToFile("command.txt")
    txfer=0


    myfile = createobject("roReadFile", "command.txt")  

    if type(myfile) = "roReadFile" then
    while myfile.AtEof() = false
    currentLine$ = myfile.ReadLine()
    if UCASE(currentLine$) = "REBOOT" then
    RebootSytem()
    endif
    end while
    endif
    endif


    I have the URL plus file name where I want to grab the text file from. If command.txt has the word "REBOOT" on a line, any line, then the unit will reboot.
  • 0
    Avatar
    Anders


    To hard reset a remote player this one is handy http://www.controlbyweb.com/webswitch/
  • 0
    Avatar
    LyR


    Do i need to add more specified content to the autorun.bsr? For example the port or something like that?
    When i try to reboot the Box from remote, i get a error message. And i think there is no UDP Port free.
    Any help?

    Sincereley.
  • 0
    Avatar
    LyR


    No one knows an answer for me??
  • 0
    Avatar
    RokuLyndon


    In brightauthor, you can set what udp port to use. You should set both port values, under file, presentation properties, interactive.

    Can you email me the modified autorun you're using, and I'll test it? SEnd it to <!-- e --><a href="mailto:support@brightsign.biz">support@brightsign.biz</a><!-- e -->.
Please sign in to leave a comment.