0

Video command (fast forward / rewind) with RS232 incremental encoder

Hello,

I want to use a incremental encoder (handwheel MR190 from Micronor)  linked in RS232 to a HD1024 to command video (go forward / go backward). To be precise, I want the video always on pause, and the user able to go forward/backward at the speed he moves the wheel.

 

1. My first problem is the to tell my player in which direction the wheel rotates. I am able to read the data from the wheel : this one increase or decrease according to the direction. But is there a way to program an "if event" with a comparison of variables ? For instance :

if currentState < lastState : go backward, elseif currentState > lastState : go forward, else : pause.

But I didn't find nothing on this topic, and I think I don't have another way to dissociate the direction.

 

2. My second problem is the command associated to this "if event" I will use (go forward/backward). I was looking for such a command, but after some researches I found out it doesn't exist (but posts I read were about 10 years old ...). Anyway, I was not able to find it in BrightAuthor today. I only found the possibility to go to a specific time frame, but this no answer to my needs. 

So is there another way to do this ? Is it possible to create a variable or something and tell for instance :

if currentState < lastState : time=time+1 (and so on)

 

Otherwise, I have thought to "convert" my video into images and create a Image list, then associate the command "previous/next" to the direction of rotation. But I think it is not ideal, I will have a huge image list and I don't know if it will be smooth enough.

Maybe there is a simpler way but I struggle to figure out how to do with these tools, this is the first time I use BrightAuthor ...

Sorry for the long post, I hope I was clear. Thanks in advance !

4 comments

  • 0
    Avatar
    Nick Young

    Have a read up on BrightScript. You can write plugins for brightauthor, however it might be simpler to create an autorun.brs just containing code for your specific requirement, removing the need for brightauthor.

    This link below shows there is a seek method on the video player object, however you'd have to create code to parse the commands from your control wheel.

    https://docs.brightsign.biz/display/DOC/roVideoPlayer#roVideoPlayer-Seek(positionAsInteger)AsBoolean

    Also, have a look at

    https://docs.brightsign.biz/display/DOC/roSerialPort

    Good luck!

  • 0
    Avatar
    Maxime Christiano

    Ok nice, many thanks ! I will take a look on this :-)

  • 0
    Avatar
    dellissen

    Hi,

    Maxime, did you succeed in your project?
    I try to do the same thing with key presses

  • 0
    Avatar
    Maxime Christiano

    Hi,

    No unfortenaly I didn't succeed. The RS232 communication between my encoder and the BS was too complicated, I think my encoder was not adapted to work with BS. 

    So I've changed for something simpler using a basic 4 pins incremental encoder, an Arduino and the GPIO ports. 

Please sign in to leave a comment.