The demo on the website only accepts input from touch, mouse, or the GPIO input.
You can do a script that mimics the behavior of the demo on the website, but accepts serial input. The script would simply start by playing an image, and then wait for serial input.
From the computer, you would have to send the serial commands. The serial commands you send are arbitrary. They can be anything. The script just needs to interpret what you send and play the appropriate video.
For example, you can decide you want to send the numbers 1 - 4. Where each # corresponds to a video. Once the appropriate number is received from your computer, the brightsign would then respond.
I can send you a sample script that listens to the serial port, and then plays a video based on the information it receives from the serial port.
Are you trying to convert the brightsign demo to serial for a project, or just an exercise to better understand how serial input works?
0
borcherta
well ... i am trying to get whatsoever to work with the HD600.
I understand that there will be no ethernet support and only the compact flash card can be used with the hd600.
Lets start from the very beginning:
i created a file called "autorun.bas" with notepad, with only 1 line that says print "hello"
i copied it to the cards root dir, when i power on the hd600 the only thing i keep seeing for days is ROKU v. 1.1.28 - thats it.
Pls help!
0
RokuLyndon
borcherta,
The print command prints to the shell, to the serial output, not to the screen.
There are code samples in the object reference guide.
For example, the following displays an image:
image=CreateObject("roImagePlayer")
image.DisplayFile("picture1.bmp")
This will play a file named picture1.bmp that's in the root of your flash card. To do the same for video:
vid=CreateObject("roVideoPlayer")
vid.PlayFile("video1.mpg")
In the object reference guide, you'll see the code under rovideoplayer and rovideoevent, that shows how to check if the video had ended.
0
borcherta
now i got
image=CreateObject("roImagePlayer")
image.DisplayFile("picture1.bmp")
in a file called autorun.bas
I got "autorun.bas" and a picture "picture1.bmp" in the root of my card.
I still get the ROKU v1.1.28
What Im doing wrong?
0
RokuLyndon
Please confirm your computer is set to show known extensions. If it's not, your autorun.bas would actually be autorun.bas.txt, but you wouldn't be able to see the .txt.
Please email me the autorun.bas that you created. Thank you.
I'm not sure yet if this is a bug, but the image buffer is clearing automatically in this instance where we are playing a single image. So, if you add a sleep statement, you'll see your image for the amount of time the unit is set to sleep.
For example:
Image=CreateObject("roImagePlayer")
Image.DisplayFile("1.bmp")
Sleep(5000) 'sleeps for 5 seconds
This also works-----------
Image=CreateObject("roImagePlayer")
Play_image:
Image.DisplayFile("1.bmp")
Goto play_image
In this example, I put an arbitrary label/tag before the line that plays the image. After the image plays, I send the script back to the tagged position. I've never noticed this behavior before, and I'm sorry I didn't catch it before telling you to try it.