LifeSize Room VTC Remote Control Protocols
playskool1
Posts: 64
i am trying to use the command protocols for the remote control buttons. i know that my communication is working fine but the way i am inputting my command protocols are still unsure of if i am doing it correctly. if anybody has some kind of experience with LifeSize Room VTC please chime in.
examples of what i been trying:
examples of what i been trying:
BUTTON_EVENT[dvTP,166] { PUSH: { SEND_STRING dvVTC,"'control remote -p call'" //CALL } RELEASE: { SEND_STRING dvVTC,"'control remote -r call'" } } BUTTON_EVENT[dvTP,45] { PUSH: { SEND_STRING dvVTC,"'control remote -p back'" //BACK } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p back'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r back'" } } BUTTON_EVENT[dvTP,130] { PUSH: { SEND_STRING dvVTC,"'control remote -p 0'" //0 } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p 0'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r 0'" } } BUTTON_EVENT[dvTP,131] { PUSH: { SEND_STRING dvVTC,"'control remote -p 1'" //1 } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p 1'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r 1'" } } BUTTON_EVENT[dvTP,132] { PUSH: { SEND_STRING dvVTC,"'control remote -p 2'" //2 } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p 2'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r 2'" } } BUTTON_EVENT[dvTP,133] { PUSH: { SEND_STRING dvVTC,"'control remote -p 3'" //3 } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p 3'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r 3'" } } BUTTON_EVENT[dvTP,134] { PUSH: { SEND_STRING dvVTC,"'control remote -p 4'" //4 } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p 4'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r 4'" } } BUTTON_EVENT[dvTP,135] { PUSH: { SEND_STRING dvVTC,"'control remote -p 5'" //5 } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p 5'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r 5'" } } BUTTON_EVENT[dvTP,136] { PUSH: { SEND_STRING dvVTC,"'control remote -p 6'" //6 } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p 6'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r 6'" } } BUTTON_EVENT[dvTP,137] { PUSH: { SEND_STRING dvVTC,"'control remote -p 7'" //7 } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p 7'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r 7'" } } BUTTON_EVENT[dvTP,138] { PUSH: { SEND_STRING dvVTC,"'control remote -p 8'" //8 } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p 8'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r 8'" } } BUTTON_EVENT[dvTP,139] { PUSH: { SEND_STRING dvVTC,"'control remote -p 9'" //9 } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p 9'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r 9'" } } BUTTON_EVENT[dvTP,140] { PUSH: { SEND_STRING dvVTC,"'control remote -p *'" //* } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p *'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r *'" } } BUTTON_EVENT[dvTP,141] { PUSH: { SEND_STRING dvVTC,"'control remote -p #'" //# } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p #'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r #'" } } BUTTON_EVENT[dvTP,213] { PUSH: { SEND_STRING dvVTC,"'control remote -p near'" //NEAR CAMERA } RELEASE: { SEND_STRING dvVTC,"'control remote -r near'" } } BUTTON_EVENT[dvTP,214] { PUSH: { SEND_STRING dvVTC,"'control remote -p far'" //FAR CAMERA } RELEASE: { SEND_STRING dvVTC,"'control remote -r far'" } } BUTTON_EVENT[dvTP,174] { PUSH: { SEND_STRING dvVTC,"'control remote -p zin'" //ZOOM IN } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p zin'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r zin'" } } BUTTON_EVENT[dvTP,175] { PUSH: { SEND_STRING dvVTC,"'control remote -p zout'" //ZOOM OUT } HOLD[2,REPEAT]: { SEND_STRING dvVTC,"'control remote -p zout'" } RELEASE: { SEND_STRING dvVTC,"'control remote -r zout'" } }
0
Comments
If I remember correctly, the -p and -r flags refer to push and release. if you don't care about holding down the button, you don't need to do that.
so you could do something like this.
In this example, nVTCButtons is an array of buttons, and all the case statements are constants defined elsewhere.
There's nothing wrong with how you're doing it that I can see, but for a lot of the buttons, do you really care that it keeps sending for as long as you push it down? Just send the command once and you're done.
J
on NLS2 "Control a Device" i tried these strings for example:
i tried the <> brackets because in their PDF manual it showed that they were using those parameters for example:
<verb> <object> <target> [optional]
were those strings you used for an example working from a previous project you had?
The LifeSize Room has some really goofy ways it handles the setup of the RS232 baud rate. Are you sure you're using the correct baud rate and the correct serial port?
The first string you had listed is correct
And yes, those strings I had were lifted directly from a functioning project.
J
What exactly are you getting back when the Rx led lights up?
J
i personally think they should have reversed the ports, have port 1 active by default.