Jump to content
C4 Forums | Control4

Driver development - power commands


Nick2021

Recommended Posts

Hi everyone,

I have started writing a driver to control an NVR, based from a DVD proxy template using Driver Editor 3.

The NVR has an HDMI out that can be used to view the cameras on a TV.

I am trying to make the NVR show a less CPU intensive screen when nobody is currently viewing the cameras on a TV (like a standby page).

This way the NVR wont generate as much heat or use lots of power unnecessarily when not in use.

I have the stanby page setup and I have the commands all working to get to the standby page.

My question is related to how and when power commands are sent to the device.

When I push "room off" on my sr-260 remote, I can make the NVR go to the standby page.

When I select the NVR as a source from a room OFF state, the NVR goes back to viewing the camera it was on previously. So far so good.

When I change source on my TV to watch something else other than the NVR, the NVR does not go to the stanby page. No OFF command is being sent to the NVR.

What is the best way to get C4 to send an OFF command to my driver when it is not the currently connected source any more?

To go one step further, what if my NVR driver was connected to 2x TV's with an HDMI splitter, how can I make C4 send an OFF command ONLY if both the TV's do not have the NVR as the currently connected source?

I am wondering if I need to use API's like C4:GetDeviceVariables etc or if this feature is already built in and I am just doing something wrong in my driver or in the xml file.

Thanks in advance for any assistance.

 

Link to comment
Share on other sites


This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.