0

separate scheduling for GPIO output

Hi Guys,

 

I have a fairly simple setup on an HD1025: various video files with AC3 5.1 Audio that are played according to a remotely administered schedule. Now I need to add a few GPO controls independently of the main schedule. I can get the GPIO pins and the connected mains control hardware to turn on and off by putting an Event Handler into a  presentation of its own and setting the state accordingly. But this will not work if I need to turn something on or off while a video is running. If I allow the presentation that does the GPIO to interrupt other it will work, but it will obviously stop the video that is playing. If Ido not allow the GPIO presentation to do that it won´t work...

What am I missing here?

9 comments

  • 0
    Avatar
    Lance Lander

    I'm not sure what you are trying to achieve but I've done some similar presentations. The "main zone" has a video on a loop and an "audio only" zone has event handlers to control the monitor and lights with GPIO inputs. The initial (home) Event handler has "Enable Power Save Mode" and sets the GPIO output to "on". Then use the GPIO input to goto the next event handler which is set to "Disable Power Save Mode" and sets the GPIO to "off". You can then use a timer or GPIO input to return to the initial (home) event. Now, when you press the connected GPIO button it will turn on the monitor and the GPIO output. Is this close to what you are trying to do? 

  • 0
    Avatar
    Stefan Reck

    No, I need to do something different. The GPIO pins are configured as outputs and need to be pulsed on for about 500ms to turn the connected equipment on or off. All this while the scheduled video continues to run on the screen.

    Here´s an example:

    - video file is scheduled to run in a loop from 1700 to 1900.

    - I need GPIO 1 and 2 pulsed on some time before the video starts, and pulsed on again some time after it has stopped.

    So I make a presentation with one zone, stick the video in it and schedule it from 1700 to 1900.

    Then I make another presentation with one zone, put an event handler in it and make that command the GPIO pulses. I schedule this twice: Once from 1655 to 1656 and a second time from 1905 to 1906. This works with no issues.

    - However I also need to have GPIO 3 pulsed on at 1730 and again at 1800. If I do it the same way as above and make a separate presentation with an event handler that has the command for GPIO 3 on/off and try to schedule it accordingly I run into a scheduling conflict. If I allow that presentation to interrupt others it will execute correctly, but it will stop the video while it is running. If I do not tick the box that allows it to interrupt others it will not run as scheduled at all...

     

  • 0
    Avatar
    Monica Knutson

    Have you considered a single presentation and then separate zones?

    I would try:

    Video zone - have a black solid for your "off time".  Use the video as the play time state.

    Audio zone - put your timed event handlers in here.  You can use the BrightAuthor Time/Clock event to send an event at a certain time.    

    If you need more detail, let me know.  I could probably whip up a sample.

    Cheers,
    Monica

  • 0
    Avatar
    Stefan Reck

    Ok, so basically moving all the scheduling from the actual scheduler level into the presentation itself? I assume that the BrightAuthor Time/Clock event  has the same functionality as the scheduler? Probably minus the nice calender-style overview I get there.

  • 0
    Avatar
    Monica Knutson

    It's an event, so you can use the event on your zone / presentation with the Video on it to trigger the GPIO output at 1730 and 1800.  You likely can keep the rest the same as you have it.

  • 0
    Avatar
    Stefan Reck

    Hmm, maybe I should add that I'm trying to to this in BA:connected...

  • 0
    Avatar
    Monica Knutson
  • 0
    Avatar
    Stefan Reck

    Ok, that should do it... Thank you for your support.

    BTW, is there a way to a) remotely actuate a GPIO configured as an output for test purposes outside the normal presentation/schedule system? And b) is there a way to remotely monitor the actual status of such a GPIO?

     

     

  • 0
    Avatar
    Stefan Reck

    ...and another thing: there does not seem to be an obvious way to save and recall different schedules; that would be really handy for switching between a regular schedule with various presentations set up as needed and a schedule with only a special "test" presentation scheduled all day for setup and troubleshooting.

Please sign in to leave a comment.