Last updated: June 5, 2018
For development purposes, you can easily reboot one or more players on the same local network by adding an Event Handler that responds to a UDP message in the presentation(s) scheduled on the player.
Not on the same local network or can't use UDP? See other ways to remotely reboot the player in How do I remotely reboot or restart my player?
This will allow the BrightSign iOS app or any app capable of sending UDP messages to reboot the player with the appropriate message string.
This method can be adapted for other trigger mechanisms like Serial Input and GPIO Input, but we will focus on UDP as it's network-based communication that does not require additional wiring or cables.
Step by Step
- Open your BrightAuthor presentation.
- Click the Edit tab.
- Go to the Layout view.
- Click the Add Zone button.
- Add an Images zone with a suitable name. We're going to use this to house the Event Handler that will listen for our reboot requests.
- Click back to the Playlist view.
- Select the zone you just added from the drop-down or by clicking on its thumbnail.
- Click interactive to make the playlist Interactive
- Click the other tab in Media Library.
- Drag the Event Handler into the empty playlist storyboard.
- Click the events tab under Media Library.
- Scroll down to find the UDP Input event, then drag and drop it onto the Event Handler that we just added.
- The UDP Input Event settings appear.
Enter the message you want to use to trigger the reboot in the Specify UDP input box. Be sure this is unique enough that it won't be triggered by random UDP traffic on your network, if there is any, otherwise your player will be randomly rebooting.
For this example we'll use the message Reboot_Me
The Label will be used in the BrightSign App to identify the command, and by other apps that query the player for available events.
If you want the reboot to appear as a button in the BrightSign iOS App, tick the box. - Click the Advanced tab.
- Click (+) Add Command which adds a command in the list.
- Change the Command drop-down to Other, then change the Command Parameters drop-down to Reboot.
- Click OK and you should have something that looks like this.
- Save, Upload (if necessary), and Publish your presentation.
Now when you send the UDP message Reboot_Me (ensure there are no leading or trailing characters, or line breaks) to the player, it will reboot.
If you have multiple players on the same network subnet and they are all listening on the same UDP port, you can send a UDP message to the subnet's broadcast address (ie, 192.168.1.255 for everything on 192.168.1.x) and all the players that are listening for that command will respond.
Note: Since this command lives in the presentation, if you want it same command to apply to other presentations, you will need to perform the same steps to add the Event Handler and UDP Input event to those other presentations as well.
1 Comments