There's no limit to the number of serial/UDP commands you can send to or from the BrightSign player. You setup the player to receive serial/UDP commands using BrightAuthor, where you define the serial/UDP strings that are acceptable. The strings can be used to change from one file to another, pause, resume, change volume, send output, etc.
Creating Presentations that accept UDP (Ethernet/Wireless) commands
Controlling Displays (sending serial commands)
Importing a list of Commands and file names as a csv:
This video (based on BrightAuthor 2.0) shows you how you can send commands to playlists created using BrightAuthor.
For new control options available on BrightAuthor versions 2.2 and later watch this video.
Additionally, you can control the BrightSign unit using a script. The link below points to a sample control script and readme. This control script defines a fixed set of playback commands (Play, Stop, Search, Loop, Pause, Resume, etc). Just copy the autorun.brs script and your content to a flash card, and you're ready to send/receive commands. The script also provides feedback when a command is received, when a file is found, when a file loops, etc.
You can also download the files from this link: Brightsign Control Script
Note: For serial commands, BrightAuthor assumes the incoming string is terminated with a carriage return. This can be changed under File > Presentation Properties.
can you add the UDP port we need to broadcast on to this article please
THere's no fixed UDP port. You can use any udp port you want in the brightauthor project, and if you're using a script, you can use any port you want to there as well.
This udp control script works fantastic on my new HD220 units. The response time is great and it seems to loop very well. It's plays back files noticeably better than my 210 unit.
It does work a little differently with the newer machines. The Play command would loop forever, and I couldn't get the download function to work. It would grab the downloads.txt file, but wouldn't actually start to download the media files.
Any ideas why the download function wouldn't work. I tried using just filenames, and then tried whole URLS in the downloads.txt file.
I've uploaded a new control script file with the play function fixed. The download should work also.
Are there any notable changes to this with either BrightSign Author 3.5 or the XD line?
With the units no.
With brightauthor, there are now more advanced commands you can issue. Listening for udp commands is still the same. Sending is the same too except the udp commands are grouped under sub categories in the advanced commands section.
Does anyone have any tips on using the 'Download' function? I am having trouble making that work.
Specifically, I get download to work, I get a '200' and 'list confirmed' but I keep getting 'Files Found = 0'
Could be the format of your text file. That feature was written into that sample script a while back. But, I know it reads the text file looking for what to download. If the file is formatted so that each file isn't on a line, then it could fail.
Can you attach the text file?
There you go, just one filename and a CR.
The "brightsign control script" work fine with one video file, how can I use it with 2 separate video file and use the loop function (end of the second video loop to the first video...)
That script doesn't have a playlist feature. It just plays one file. If you can use brightauthor, I've been working on a plugin you can publish with a brightauthor project that would support some playback features. One of the features I added is to play a folder. So, if you put a folder of files on the card, publish any brightauthor proejct to the card with the plugin attached, you can send a playfolder command to play the contents of the folder, like a playlist...
Let me know if you want to try that.
Should be great! I need to send the play command and pause.
Does the control script work with the new line of products like the LS422?
Also, can you use this same script in addition to a BrightAuthor project? Atm, once I copy the script on the SD card, BrightAuthor no longer wants to connect to the unit and, hence, I cannot load any project on it.
This question is for BrightSign Sr. Support. How can we use the PlayFiles() subroutine that is commented out in the autorun.brs file? Is there another way to play all videos that are in the root of the memory stick or card? Is the plugin mentioned above available for use?
Marius, yes, the newest version of the control script works with the latest players. I've attached a link. No, you can't use it with brightauthor. It's a standalone script, not a modified brightauthor autorun or a plugin. What is it you're trying to do?
Link to latest control script I promised
Troy, the playfiles subroutine wasn't completed. That's why it's commented out. What kind of playback are you looking to do? You should be able to do what the script does in brightauthor using he playfile widget or a media list. I can provide a brightauthor project example.
The play plugin (playfolder) is posted on brightsign github. If you google brightsign github, you can find it there.
Has anyone tried triggering this UDP script for a standard HTML5 page running on the same local network as the Brightsign player?
I'm trying to have a kiosk running local web content trigger different videos on the Brightsign. The script seems perfect since I just want an attract loop, and then separate video loops when the user interacts with elements on the HTML5 page on the kiosk.
You want to send the udp commands from a pc on the local network using html?
Jason, that's how we have it set up. A tablet pointed to a local web server, the links on that page call PHP scripts which send UDP commands to the BrightSign.
EDIT: Local web content should work as long as you have PHP (or whatever) running on that computer.
Sr. Support America: Yes.
Shawn Maddock: Would you be wiling to share some sample files? I work for the Audubon Nature Institute, and I am trying to create an interactive kiosk where a user can interact with a local HTML5 page running on a Mac mini that triggers different videos on the Brightsign. UDP is completely foreign to me, and I'm new to Brightsign devices. Thanks.
You can email me if you want.
Let me know if you need something more comprehensive, but if you create anchor tags in your HTML page like:
And have udp.php contain this:
Then clicking on "LINK" would send the UDP packet "whatever" to 192.168.0.1:5000, again assuming you have PHP scripting set up on your Mac mini.
Thanks, Shawn! I'll give that a try.
please note that port number in readme are not the port numbers set in the latest autorun.brs
the correct ports are:
settings.udpPortSend=23 'for sending udp commands
settings.udpPortReceive=24 'for receiving UDP commands
The UDP ports are also found in the setup in the Presentation Properties. Go to the Interactive tab and look for the UDP section. To broadcast from the BrightSign you can set a specific IP destination or all devices on the local subnet. We typically use the all devices because the systems are usually on a closed network setup.
In this same panel, there are two open text fields where you can set your UDP Send/Receive ports.
"UDP Destination Port" and "UDP Receiver Port". You can listen on one and send on another, or use the same port for both. Note -- if you have a firewall in place make sure these ports are open if they need to route through the firewall.
I'm trying to set up a BrightSign to listen for a UDP command, using that file attached above. I tried all the UDP ports I found (the readme showed 21075/21076, but the code itself showed: 23/24). I also tried that 5000 default shown in the Send/Receive mentioned above. I can connect to all of the ports but none respond or do anything. Suggestion for troubleshooting/setting to check?
You should use the ports from the script so you should send the commands to port 24. Did you set your computer or the brightsign IP in the same subnet? Try one of these options
1) The IP in the script is set to manual 10.103.3.237 the subnet is 255.255.255.0 so for example set your PC to 10.103.3.238 and restart your UDP program.
2) change the IP in the script to a IP in your range (check your ip in cmd type "ipconfig") but is not given out by your DHCP server.
3) Set settings.ManualIp=false to use dhcp. Check with a IP scanner or in your router what IP is given to the player and use it
I'd like to control the HD1023 player from another PC on the same LAN.
Is there any other script(python is preferred) that I can use?