iRule  Universal Remote Control

Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Polycom Query for power and conditional action.

mohillic Jan 26, 2017 12:11PM EST

I'm sure people have run into this before, but i'm having problems trying to find detailed information on how to make this happen.

My client wants the polycom to turn on when the activity button is selected (push polycom button, it turns on tv, polycom, etc) Polycom however, has a power toggle for the IR command not a power on or power off command. So I need to run a query to make sure the system is on or off before issuing the power toggle command. This is the only way I know how to tell the system status, through rs232 I can get these replies:

->ping 5.5.5.5
testlan ping 5.5.5.5: passed = 1; failed = 0 <-this means power is on and do nothing

->ping 5.5.5.5
testlan ping 5.5.5.5: passed = 0; failed = 1 <-this means power is off and unit must be powered on


I would like, hopefully with some pictures, to see an example of what this conditional query and command would look like. If anyone could help I would be greatly appreciative!

Up 0 rated Down
Alex Milogradov Jan 26, 2017 12:14PM EST Builder & App Support Support
Paul,

If you are using RS232 for feedback why not use it for control also? Typically, there are discrete power on and off commands via RS232. Which model of Polycom is this?
Up 0 rated Down
mohillic Jan 26, 2017 12:17PM EST
it's an hdx8000 unit. in the integrator reference and according to polycom support there is no power on/power off via rs232 only IR. the only thing I have found is a wake and sleep option but that is not what they want.
Up 0 rated Down
Alex Milogradov Jan 26, 2017 12:30PM EST Builder & App Support Support
Hi Paul,

Ok so in that case, you will need actions based on conditions. Take a look at the following tutorial: http://support.oncontrols.com/customer/portal/articles/1663618
Up 0 rated Down
mohillic Jan 26, 2017 01:00PM EST
Ok so that tells me how to set up feedback for a device. What I need, is an action or no action based on a condition.

Example:
If I hit the power on button on the irule remote, and the unit is already on, I need it to do nothing. That's the part I need because the power is a toggle and it will turn the unit off if it's already on.
Up 0 rated Down
Alex Milogradov Jan 26, 2017 01:01PM EST Builder & App Support Support
If you look at that tutorial it talks about action based on feedback.
Up 0 rated Down
mohillic Jan 26, 2017 02:25PM EST
I can get the status of the unit, but it's not clear HOW I then send the command to turn the unit on if the status is returned that it's off. That piece is either not there or I don't understand it.
Up 0 rated Down
Alex Milogradov Jan 26, 2017 02:30PM EST Builder & App Support Support
You would need to declare the POWER TOGGLE data field as variable (call it power) and then call that variable. If you are using database device where all the codes are under Database Codes section let me know and I will send you the pronto hex code.

So if POWER feedback = POWER ON then set variable "power"=blank else set variable "power"=paste the pronto hex code in here. What that should do is send power on Hex only if the feedback for Power is not POWER ON.
Up 0 rated Down
mohillic Jan 26, 2017 03:31PM EST
That clears things up! thank you! I am using database codes so I would need the POWER TOGGLE code for "Cisco/Scientific Atlanta Cable 8600HD Series All Models"

I know that's not the Polycom but i'm testing it on our cable box first to make sure it works.
Up 0 rated Down
Alex Milogradov Jan 26, 2017 03:40PM EST Builder & App Support Support
Here you go 0000 0046 0000 0018 00C7 00C7 0031 0096 0031 0096 0031 0031 0031 0096 0031 0096 0031 0096 0031 0096 0031 0096 0031 0031 0031 0031 0031 0031 0031 0031 0031 0031 0031 0096 0031 0031 0031 0031 0031 0031 0031 0031 0031 0031 0031 0096 0031 0096 0031 0096 0031 08A5
Up 0 rated Down
mohillic Jan 26, 2017 04:10PM EST
I have a feeling I put things in the wrong order. I still get a on/off status but it doesn't do anything based on the status. did I use a wrong command? this is on the entrance page when you push the cable box button

Entrance Page: CableTV Control

Command: execute 'Port 6 Sensor Query' code on 'GC-100-12/18 Sensor Query' device
IF CableBoxPower = CableBoxSensorOff
Set Variable: $CBPower$ = 0000 0046 0000 0018 00C7 00C7 0031 0096 0031 0096 0031 0031 0031 0096 0031 0096 0031 0096 0031 0096 0031 0096 0031 0031 0031 0031 0031 0031 0031 0031 0031 0031 0031 0096 0031 0031 0031 0031 0031 0031 0031 0031 0031 0031 0031 0096 0031 0096 0031 0096 0031 08A5

ENDIF CableBoxSensorOn
Up 0 rated Down
Alex Milogradov Jan 26, 2017 04:21PM EST Builder & App Support Support
Can you send me your backup to support@iruleathome.com
Up 0 rated Down
mohillic Feb 01, 2017 09:12AM EST
Hello, this question can be marked closed. I finally got the power on to work based on the feedback. I realized that I put the original IF loop inside of the entrance page query (which also loops) so that created a problem of the unit continually powering because it would see the feedback as off before it switched to ON. anyway, the way I actually got the power on command to work was to copy the actual power toggle command from the device commands and paste it into the IF statement... I wish I had known it was that easy all along!!! I never did get the variable method to work other than to get the correct on/off feedback based on those variables. in the end I also set the actual ON and OFF status as variable. if you want to see the end code i'd be happy to share. thanks for all your help alex.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Recent Discussions

Ajax-loader-small
customer-service@iruleathome.com
https://cdn.desk.com/
false
iruleathome
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
true
Invalid characters found
/customer/en/portal/articles/autocomplete
There was an error contacting Get Satisfaction
View All
0
discussions
replies
Questions
Ideas
Problems
Praise