0

Master slave event handling

Hi there,

Ive read through all the documentation and support forums the past week but I can't get BrightSign players to do what I need. Im in a real tight schedule and was hoping to find an answer here

 

What I have:
BrightSign XD1032
BrightSign LS423

Raspberry Pi that receives UDP commands.

 

What I need:
I need the player to play a list of videos randomly.
I select to send a zone message with filename on every start of video.

Master needs to receive this zone message and send a UDP signal to the raspberry pi. This because the raspberry needs to know what file is being played.


I cant for the love of god get this to work.
Ive tried super states, event handlers connected to zone messages but the zone messages simply dont seem to arrive at the master.

8 comments

  • 0
    Avatar
    Bright Scripters

    This shouldn't be too hard to do.

    While I look into that, let me ask you a question:

    Can you generate UDP messages from a BrightSign, that are received by the Pi?

    Not automatically when a video is playing, but rather manually. For example:

    Add a keyboard event, that when you press the letter u, it sends out a UDP...

     

  • 0
    Avatar
    Jeffrey von Grumbkow

    Hi there,

    I did a quick test. If I have an event handler and attach a keyboard event im able to switch to a video and send a UDP command on both the keypress and video start that are received by the raspberry pi

  • 0
    Avatar
    Jeffrey von Grumbkow

    So my only real issue is that I can\t seem to receive zone messages on the devices. 
    The playlist btw plays on the player and the master is responsible for receiving the zone message and sending a UDP command out

  • 0
    Avatar
    Bright Scripters

    A zone message does not go across players, if that is what you are trying to do. A zone message can be sent between zones, on the same player. If you need to communicate between players, it has to be via either UDP, or serial. There could be other ways too.

    So the player that is playing the videos, and sends a zone message every time a video starts to play, would capture the zone message, and convert it to UDP. If applicable, you could send that UDP to the Pi, without going through the master...

    I'll post some more info showing how.

  • 0
    Avatar
    Jeffrey von Grumbkow

    Right, I get it now.
    I should simply make an audio zone that has just an event handler that listens to the zone message to send out the UDP command.

    Basically the zone message is the only way of knowing what file is playing randomly right?
    Thanks for clearing that up :)

  • 0
    Avatar
    Bright Scripters

    That would be almost accurate.

    It seems like the challenge now, would be to convert the zone message to UDP.

    The easiest way to do that would be with a custom BrightAuthor plugin.

    There could be such a plugin somewhere, but also should not be to hard to create one from scratch.

    Is that something you have done before?

  • 0
    Avatar
    Jeffrey von Grumbkow

    No, I have no idea how to wirte plugins. We got these brightsigns last monday and the event is friday so im quite stressed about how to get this stuff working.

     

    I currently have the zone messages sending out UDP commands, but this is done per message manually so that would be a chore if there will be 100's of video's playing randomly :)

    Is writing a plugin very time consuming? I am a developer so the idea behind it shouldnt be difficult, but mostly the research time that goes into it

  • 0
    Avatar
    Bright Scripters

    Writing a plugin has a bit of a learning curve, but is well worth the effort.

    If I haven't not missed anything, I may be able to create one within the hour.

    Please email info@brightscripters.com

Please sign in to leave a comment.