0

Serial or UDP control Script, loop with 2 videos, Crestron

Hi,

I'm using the Serial or UDP control Script as autorun.brs file on a HD1010. Using only one video, it's work fine, I'm controlling it with a Crestron controller. But on my new project, I'll have to differents videos. I need to make the loop at the end of the second video to the first... How can I do this by modify the UDP control Script:

Thank you

 




autorun.brs

15 comments

  • 0
    Avatar
    Alex

    Hi,

    Are you familiar with BrightAuthor software? It could be easier to build a presentation in BrightAuthor to solve your request. What do you want to do with 2 videos? Which features in the script do you want to use? How do you want to control videos?

  • 0
    Avatar
    TIWA

    Hi, I don't have the HD1010 with me, this is for a museum, I'll be there next Friday... They've 2 videos playing with a loop (end of video 2 start video 1 etc...). For safety reason, I'll have to pause the video 1 or 2 or more... in case of alarm.

    As soon as the alarm will be off, i'll have to send a play command to video 1. A Crestron system is receiving the alarm, I already used the script with one video and it was working fine. I need to set a static IP address to the HD1010 and I need to know the control IP port. By using BrightAuthor, I know that i can set UDP event on videos, so if I understood, I'll have to create a presentation with a loop between the 2 videos and set a UDP event "pause" to video 1 & video 2? And another UDP event "play" on video 1? Is there a default IP port? I'm not familiar with BrightAuthor.

     

    Thank You

  • 0
    Avatar
    Alex

    Yes, you can add UDP Input event to the videos. If you double-click on the UDP Input event and go to Advanced tab, you can add "video pause" and "video resume" commands.

    Under File - Presentation Properties - Interactive you can specify UDP settings (port).

    The ip address is assigned to the player when creating the setup files in BrightAuthor (Tools - Setup BrightSign Unit).

    Please view a short video and sample project below. Video shows how to build a project that will play 2 videos and provide ability to switch between the videos via UDP commands, and pause/resume videos by sending other UDP commands to the brightsign unit.

    https://www.brightsignnetwork.com/download/projects-customers/udp%20control%20sample.wmv

  • 0
    Avatar
    TIWA

    Hi, I've follow your instruction. But UDP commands still not working. I'm using the port 24. Everything is well set Inside the Brightsign project. I've run a nmap to check the open port of the HD1010, it's seems that the port 24 is not open. it should be:

    Starting Nmap 6.46 ( http://nmap.org ) at 2014-07-01 10:34 Paris, Madrid (heure d’été)

    NSE: Loaded 118 scripts for scanning.

    NSE: Script Pre-scanning.

    Initiating ARP Ping Scan at 10:34

    Scanning 192.168.1.201 [1 port]

    Completed ARP Ping Scan at 10:34, 0.16s elapsed (1 total hosts)

    Initiating Parallel DNS resolution of 1 host. at 10:34

    Completed Parallel DNS resolution of 1 host. at 10:34, 0.01s elapsed

    Initiating SYN Stealth Scan at 10:34

    Scanning 192.168.1.201 [1000 ports]

    Discovered open port 80/tcp on 192.168.1.201

    Discovered open port 8080/tcp on 192.168.1.201

    Discovered open port 8008/tcp on 192.168.1.201

     

    Any idea?

    Thank you

  • 0
    Avatar
    Lyndon

    at some point in your custom script you had the unit ip address set to 0.0.0.0. Did you fix that? Please send the brightauthor project file you are using.

     

     

  • 0
    Avatar
    TIWA

    Hi, I'm not using the Serial or UDP control script as we can not manage 2 videos. I'm using the UDP events with BrightAuthor, I've set the IP address/UDP ports with brightauhor.

    Here are my files located on my SD card

  • 0
    Avatar
    Alex

    What is the ip address of your brightsign unit? Can you ping it? Try using a pc application called Hercules to send UDP commands and confirm if it works. You can download Hercules here:

    http://www.hw-group.com/products/hercules/index_en.html

  • 0
    Avatar
    TIWA

    the IP adress is 192.168.1.201, yes I can ping it. I've downloaded the brightsign app and the udp control is working fine with this app. I'm using the udp port 5000 on the crestron program. The Brightauthor prject is also set on this port for UDP destination and reception... but still not working thru the Crestron...

  • 0
    Avatar
    Lyndon

    Is crestron sending any terminating character with the udp command? We have many customers who have used crestron, amx, and other controllers without issue. We've used crestron controllers at various trade shows including shows this year without issue.

    The brightsign is expecting a plain string, no carriage return for its command. Do you have access to the log output from the unit?

  • 0
    Avatar
    TIWA

    I've use the autorun script for udp control before, it was working fine. But with only one video file. That's why I want to use the UDP event in BrightAuthor.  I'm using a UDP/IP communication module on the crestron program and a serial I/O to send the string like "pause_video1" as per as the one set on the brightauthor project. I don't send any terminating character... Do you have a crestron program or a part of it that you use for your shows?

  • 0
    Avatar
    Lyndon

    I don't know if the crestron controller was setup by someone from crestron at the show where we used it. I'll check.

    Is the diag server enabled on your unit? If so, you can log into it using the unit ip address and your browser, and click on the log tab to see if the unit is receiving udp events, but for some reason it doesn't think it's a match. When you publish the project, on the publish tab, you can turn on debugging, and check the box to save it to the system log...then, the diag server will have output from brightuathor for all events received..

     

  • 0
    Avatar
    TIWA

    I've done this tests. I've also try Hercule to send UDP events. Hercule is working fine on the UDP port set into brightauthor (I'm using 21076 for Rx). So the brightsign app is working fine, Hercule is working fine, mean there is no pb with the brightsign configuration. I think that the issue is with the syntax send by the crestron system. So If you can have a prog example, that will be great. I'm in touch with Crestron (France) and we're also working on this subject. If i found a solution, I'll let you know, but right now it's not working....

  • 0
    Avatar
    TIWA

    And also, by checking the log, as per as your request, I can see the UDP events recevied from Hercule or the app. Not from the Crestron.

  • 0
    Avatar
    Lyndon

    The log in the control script only cares about matches to the command list. If you set hercules to listen on your computer to udp, can you send a command from the crestron module to your computer? IF nothing else, we can see how long the string is that's received, and if it has non printing characters...

  • 0
    Avatar
    Ludens Origi

    I tried to configure the Terminal in such a way as to send commands and receive even with characters.

Please sign in to leave a comment.