0

UDP problem with HD210



Hi, all, Thank you for visiting this topic. I have been having hard time to use UDP to control a HD210. I have tried both the recommended Brightscript and Brightauthor and non of them works. Here is the situation using brightauthor: I am now sending UDP signals from computer to HD210 and I connected them with ethernet cable, which means it is just a local network. I have set the UDP receiving port and sending port on HD210 through Brightauthor. I have set the UDP receiving port and sending port on my computer terminal program. On my computer, I use Unity3d, which can do C# programming. I use a very basic C# UDP program for the communication, and that program works for computer communications. For the IP address, I just use "255.255.255.255" to broadcast. I checked my logs on the brightsign: It shows "UDP Event play", which I suppose it certainly gets my commands. At first, I thought it might be transmittion problem or extra characters, but I change a small part of the script to log the end point of the message and it shows the message is totally pure without any unreasonable characters. The log also shows the exact words I sent. So, briefly, the log shows the message I sent by UDP, but just no response on brightsign. And of course, the response should be transition to another video, which is just from the starting kit. After trying for several times, I still can't figure out why. Please help~ Thank you very much.

5 comments

  • 0
    Avatar
    loisbidepan


    Okay, problem is solved as magic, but I am still wondering why.
    If anybody can tell, that will be great.

    I used the v2.8 or 2.9 udp control script at last.
    I am still not sure if Brightauthor works, but as long as brightscript works for me, it is fine.

    I have done 2 things, and I am not sure which one is crucial:
    1. I changed the default setting to manual IP
    2.
    For this part:
    settings.Attract$ = "attract.ts"      'video loops when nothing else plays
    Originally I don't have the file "attract.ts" and it is just black screen at first.
    Now I change that to
    settings.Attract$ = "myvideo.mpg"      'video loops when nothing else plays
    to have myvideo.mpg loop instead of just the black screen.

    After these, it works as magic.
    And then, I want to see if the broadcast works, so I changed the manual IP back to default settings.
    And try again, it still works.

    So, it seems that it will work with or without manual IP settings.
    However, I still doubt it is the manual IP "activate" the network somehow (not sure though),
    because changing
    settings.Attract$ = "attract.ts"      'video loops when nothing else plays
    for it to actually playing something to make it work doesn't make sense for me.

    Anyway, if anybody can tell why, I'll appreciate that.
    If not, hopefully this can help other people.
  • 0
    Avatar
    RokuLyndon


    Unfortunately, I can't tell from your description, but both the script and brightauthor work with udp...

    Most of the time, when communcication doesn't work, it's because you're sending to the wrong port, the wrong ip or broadcast address, or the unit has problem network settings.
  • 0
    Avatar
    Jeff Marshall

    I am mystified. We have a XD1230 and I am using the xd control script v2.9g. I have the web debugging enabled and am uploading the scripts to the unit and rebooting. The only changes I have made to the original is to specify the static ip number (which is the same as the one I used in the setup). I have the ports as 21075 to send and 21076 to receive. The destination is 255.255.255.255.

    I have also specified the location of the download.txt file on the network. It has a list of the video files to be played. I tried comma delimited and delimited by a carriage return.

    I send UDP signals to it but no response. the videos never play. I never get a message back on port either 21075 or 21076.

    The file that has the script is named autorun.brs.

    I am getting to the point where I want to know if this script is running.

    How can I place traces in the script to read in the web log?

    Is there something that I am missing? Is this script just a snippet? Does it need the rest of the code from the autoxml.brs file in the templates folder?

  • 0
    Avatar
    Lyndon

    I believe this was resolved by add the new model units to the control xcript. 

  • 0
    Avatar
    Jeff Marshall

    Yes that is how I resolved it.

    For those who have this issue with the script in the future look for this line:

    if ucase(control.modelObject.GetModel()) = "HD1010W" or control.modelObject.GetModel() = "HD1020" or control.modelObject.GetModel() = "XD230" or control.modelObject.GetModel() = "HD220" or ucase(control.modelObject.GetModel()) = "HD210W" or control.modelObject.GetModel() = "HD210" or control.modelObject.GetModel() = "HD1010" then 

    Add the your model to the long list of models "or control.modelObject.GetModel() = "XD1230" "

    and the script works fine.

Please sign in to leave a comment.