0

Request of information HD210



Hello. I now have 50 HD 210 Bright Sing in action. All use the simple file Netzwork and load their data from an http server (Apache server) I've found that every 5 minutes, the current-sync via "get" is loaded and then a "post" is, which requires DEVICEDOWNLOAD. Is it possible to get information about the instrument status? I created a file with the name "DEVICEDOWNLOAD", but there is nothing in it. with friendly greetings Micha

17 comments

  • 0
    Avatar
    RokuLyndon


    What status information do you want?

    When the device pings the website, it includes header information about the unit in the ping? So, if you had a script running you could parse the info  from the header. It's also possible to enable usage logging on the unit. We would also add your URL to the brightauthor autorun script so the unit knew where to send the http posts with this usage information.

    I have a sample php script that processes the incoming logs.

    You can technically send any information to a server using an http post. we could insert a timer that fires off at a set interval and pings your server with information.

    What is it that you want the unit to report back?
  • 0
    Avatar
    Michael Storm


    Hello.

    I need, for example, reports on the current video, the device status, and encountered all the errors.

    Where the settings are made for a response? Do I have to reconfigure Apache server?



    with friendly greetings

    Michael
  • 0
    Avatar
    RokuLyndon


    What do you mean by device status?

    For example, we can turn on usage logging in the brightauthor default autorun. We can then specify the server the unit should use for its http posts. ONce that's done, it'll start posting to the server.  BY default this info is sent every 30 seconds. I have a sample php script that captures these http posts. I'm not a web programming person so I assume you'll be able to set up the script and modify it to capture the incoming posts so you can sort and filter through the data.
  • 0
    Avatar
    Michael Storm


    As device status the best would be something like a device name and/or serial number. This would be a life sign from the device.
    That php script sounds good. I would need to use an IIS 7.5 but php would be a good starting point to see what the player outputs.
    Best part would be to add the server URL to current-sync so it can be altered if necessary.

    Is there any information on how to use an IIS 7.5 as Http Server? I tried it today and only got 404 errors despite the fact that I can access the files from a normal webbrowser.

    Thanks.
  • 0
    Avatar
    RokuLyndon


    You need to setup mime types normally for IIS, so the .brs extension must be added as text/plain.

    I'm going to send you an email with how to turn on usage logging, and the sample php script that captures the usage data.
  • 0
    Avatar
    Michael Storm



    Thank you very much. It's working and delivering everything I need. :D
    Registered MIME-Type for .brs and .ts and now IIS Works, too.

  • 0
    Avatar
    Michael Storm


    After some additional testing there remain some questions:

    Our default usage is to play only one video for a week and then change it. In this case usage logging sends a  message only once after restarting the HD210, but not later at any time save I restart them. Is there another way to get usage logging without the need of at least one additional video or so?

    Usage logging regularly writes text files on the memory card. Exactly when a new video starts - every time. Wouldn`t it be useful to write the log only in a variable and send this as usage log. It wouldn`t hold over a system restart, but should not wear down the memory card so much?
    Problem there might be a too long time between two send times for the log and therefore memory loss.

    One last point: 'newTimeout.AddMinutes(5)' gives a scripting error.  No really a big problem as this can be countered using 'AddSeconds'.

    Greetings
  • 0
    Avatar
    Anders


    Hi Lyndon,

    I would like to look into this:

    "RokuLyndon" wrote:

    You need to setup mime types normally for IIS, so the .brs extension must be added as text/plain.

    I'm going to send you an email with how to turn on usage logging, and the sample php script that captures the usage data.


    I would be great to get the php script and info mentioned above.

    /Anders
  • 0
    Avatar
    RokuLyndon


    I sent the requested file.
  • 0
    Avatar
    Ken


    Lyndon,

    I'm a web developer and starting a small network of HD210's. I would be very interested in the PHP script you mention to capture HTTP request.

    Regards,

    Ken
  • 0
    Avatar
    RokuLyndon


    Just sent an email with the file.
  • 0
    Avatar
    Michael Storm


    We got our first three HD210w and tried using wireless network. Thanks to your support we got BrightAuthor 2.2.0.31 and set the unit up.

    Our problem now is that logging only sends files on restart and/or once a day but we need them regularly for example every 20 minutes or so.
    Additionally the new information looks like a plain text and not some nice xml.

    Best Regards

    BrightAuthor: 2.2.0.31
    DeviceModel: HD210w
    DeviceFWVersion: 3.3.78
    DeviceSWVersion: 3.4.34

  • 0
    Avatar
    RokuLyndon


    You are receiving logs on your server currently? I can take a look to see if it's possible to change the refrency of the log updates..
  • 0
    Avatar
    Michael Storm


    At least sending logs at startup works.

    This is what I get at the moment - from a .Net website saving the httpcontext and a slightly modified autorun.brs with set 'uploadlogfileurl$' and playbacklogging enabled:
    POST /test.ashx HTTP/1.1
    Content-Length: 26218
    Content-Type: application/octet-stream
    Accept: */*
    Expect: 100-continue
    Host: 192.168.100.60:8080
    User-Agent: HD210w/3.3.78 (Roku BrightSign)
    account: ACCOUNT
    group: GROUPNAME
    DeviceID: 71**********
    DeviceModel: HD210w
    DeviceFamily: monaco
    DeviceFWVersion: 3.3.78
    DeviceSWVersion: 3.4.34
    CustomAutorunVersion: 3.4.1000
    utcTime: 2011/02/25 13:52:09.757
    Content-Disposition: form-data; name="file"; filename="BrightSignLog.71**********-110225007.log"

    BrightSignLogVersion 1
    SerialNumber 71**********
    Account ACCOUNT
    Group GROUPNAME
    Timezone CET
    LogCreationTime 2011/02/25 13:36:58.829
    IPAddress 192.168.100.20
    FWVersion 3.3.78
    ScriptVersion 3.4.34
    CustomScriptVersion 3.4.1000
    Model HD210w
    L=p Z=video0 S=2011/02/25 13:37:04.007 E=2011/02/25 13:37:15.978 I=image N=image1.png
    L=p Z=video0 S=2011/02/25 13:37:15.979 E=2011/02/25 13:37:43.533 I=video N=video1.ts


    If necessary I can split the log lines by regex but xml would be easier. If regex is needed - what is the link between the section in each line - tabulator?

    Thanks.
  • 0
    Avatar
    Rickmoore


    Hello,
    this is my first post <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
    I also have three new 210w units and would like more info and the 'php script' on how to have the units post back to my server.
    I'm using simple networking as a test right now.

    thanks so much,

    Rick
  • 0
    Avatar
    Nathan


    Hi Lyndon,

    I was looking for information about the new "logging" checkboxes in the new Brightauthor, as there doesn't seem to be documentation for it yet.

    Any chance you can forward me the PHP script you mentioned and any additional info.

    Thanks,

    Nathan
  • 0
    Avatar
    Michael Storm


    'push'

    Any advance in frequency changes for sending logs?
Please sign in to leave a comment.