Newb: Commands for new device
tkurshin
Posts: 11
OK . . . I'm a newb at this. I have to update my system to replace a Barco projector that died.
I jsut want to replace the barco code with the code for the new projector. All I see in the source file for the barco in NetLinx is below. I don't understand where to get the string info for the new Canon Realis SX7. My equipment is an AXCENT3 PRO and a AXT-CA10 touchscreen. The new projector will be hooked up via serial.
Thanks for the help.
DEFINE_CALL 'VP_MUTE_TOGGLE'
{
IF([VP_MUTE_F])
{
SEND_STRING PROJ,"$FE,$01,$26,$3E,$65,$FF"
OFF[VP_MUTE_F]
}
ELSE
{
IF([VP_ON_F])
{
SEND_STRING PROJ,"$FE,$01,$27,$3E,$66,$FF"
ON[VP_MUTE_F]
}
}
}
(* BARCO PROJ ON *)
DEFINE_CALL 'VP_ON'
{
CANCEL_WAIT_UNTIL 'VP_OFF_REQ'
IF([VP_OFF_F])
{
SEND_STRING PROJ,"$FE,$01,$65,$66,$FF"
PULSE[VP_WARMING_F]
PULSE[RELAY,8]
WAIT 200 (* 20 SECOND WARM CYCLE *)
{
PULSE[VP_ON_F]
}
}
ELSE IF([VP_COOLING_F])
{
WAIT_UNTIL ([VP_OFF_F]) 'VP_ON_REQ'
{
SEND_STRING PROJ,"$FE,$01,$65,$66,$FF"
PULSE[VP_WARMING_F]
WAIT 200 (* 20 SECOND WARM CYCLE *)
{
PULSE[VP_ON_F]
}
}
}
}
(* BARCO PROJ OFF *)
DEFINE_CALL 'VP_OFF'
{
CANCEL_WAIT_UNTIL 'VP_ON_REQ'
IF([VP_ON_F])
{
SEND_STRING PROJ,"$FE,$01,$66,$67,$FF"
PULSE[VP_COOLING_F]
WAIT 600 (* 60 SECOND COOL CYCLE *)
{
PULSE[VP_OFF_F]
}
}
ELSE IF([VP_WARMING_F])
{
WAIT_UNTIL([VP_ON_F]) 'VP_OFF_REQ'
{
SEND_STRING PROJ,"$FE,$01,$66,$67,$FF"
PULSE[VP_COOLING_F]
WAIT 600 (* 60 SECOND COOL CYCLE *)
{
PULSE[VP_OFF_F]
}
}
}
}
DEFINE_CALL 'VP_INPUT' (SLOT)
{
SEND_STRING 0,"'PROJ INPUT : SLOT ',ITOA(SLOT),$0D,$0A"
IF([VP_ON_F])
{
SEND_STRING PROJ,"$FE,$01,$31,SLOT,(SLOT+$32),$FF"
}
ELSE
{
WAIT_UNTIL([VP_ON_F]) 'VP_INPUT_REQ'
{
SEND_STRING PROJ,"$FE,$01,$31,SLOT,(SLOT+$32),$FF"
}
}
}
I jsut want to replace the barco code with the code for the new projector. All I see in the source file for the barco in NetLinx is below. I don't understand where to get the string info for the new Canon Realis SX7. My equipment is an AXCENT3 PRO and a AXT-CA10 touchscreen. The new projector will be hooked up via serial.
Thanks for the help.
DEFINE_CALL 'VP_MUTE_TOGGLE'
{
IF([VP_MUTE_F])
{
SEND_STRING PROJ,"$FE,$01,$26,$3E,$65,$FF"
OFF[VP_MUTE_F]
}
ELSE
{
IF([VP_ON_F])
{
SEND_STRING PROJ,"$FE,$01,$27,$3E,$66,$FF"
ON[VP_MUTE_F]
}
}
}
(* BARCO PROJ ON *)
DEFINE_CALL 'VP_ON'
{
CANCEL_WAIT_UNTIL 'VP_OFF_REQ'
IF([VP_OFF_F])
{
SEND_STRING PROJ,"$FE,$01,$65,$66,$FF"
PULSE[VP_WARMING_F]
PULSE[RELAY,8]
WAIT 200 (* 20 SECOND WARM CYCLE *)
{
PULSE[VP_ON_F]
}
}
ELSE IF([VP_COOLING_F])
{
WAIT_UNTIL ([VP_OFF_F]) 'VP_ON_REQ'
{
SEND_STRING PROJ,"$FE,$01,$65,$66,$FF"
PULSE[VP_WARMING_F]
WAIT 200 (* 20 SECOND WARM CYCLE *)
{
PULSE[VP_ON_F]
}
}
}
}
(* BARCO PROJ OFF *)
DEFINE_CALL 'VP_OFF'
{
CANCEL_WAIT_UNTIL 'VP_ON_REQ'
IF([VP_ON_F])
{
SEND_STRING PROJ,"$FE,$01,$66,$67,$FF"
PULSE[VP_COOLING_F]
WAIT 600 (* 60 SECOND COOL CYCLE *)
{
PULSE[VP_OFF_F]
}
}
ELSE IF([VP_WARMING_F])
{
WAIT_UNTIL([VP_ON_F]) 'VP_OFF_REQ'
{
SEND_STRING PROJ,"$FE,$01,$66,$67,$FF"
PULSE[VP_COOLING_F]
WAIT 600 (* 60 SECOND COOL CYCLE *)
{
PULSE[VP_OFF_F]
}
}
}
}
DEFINE_CALL 'VP_INPUT' (SLOT)
{
SEND_STRING 0,"'PROJ INPUT : SLOT ',ITOA(SLOT),$0D,$0A"
IF([VP_ON_F])
{
SEND_STRING PROJ,"$FE,$01,$31,SLOT,(SLOT+$32),$FF"
}
ELSE
{
WAIT_UNTIL([VP_ON_F]) 'VP_INPUT_REQ'
{
SEND_STRING PROJ,"$FE,$01,$31,SLOT,(SLOT+$32),$FF"
}
}
}
0
Comments
I'm sure that I have a big DUH moment coming, but like I said, I feel like missing something.
Thanks for the help.
I see that AMX has a Duet module for the SX6, I'm not sure if the protocol would be the same for the SX7 - but you can check it out. (Go to Tech Center -> Search Third Party Devices, then put in Canon as the manufacturer. You'll see one for the SX6. Try that out and see if it works.) That might save you some time trying to figure out how to control the thing.
But if that doesn't work and you'll be controlling it through serial - you'll need to find the serial control protocol (IR cannot be translated into that), and write some code to control it.
The IR codes are NOT compatible with serial commands. They are not the same. If you changed the code to send it out the IR ports with the right channel numbers and used an IR emitter, then it would work. But since you already have the projector connected up with serial, it is pointless to switch it over unless you absolutely needed to due to the new projector not supporting serial.
It is an Accent3 Pro, no other box in the system. I did get the code off of it and been working on modifying it for the new equipment.
I do want to use serial to control the projector, I'm just not quite "gettin" it yet on where to put the code.
I also need to modify some of the code for the IR stuff (DVD player, etc.)
Does anyone know of a sample app(s) that would have the source file, includes and the touch panel file? I find I can figure stuff out better if I can follow code from one file to the other to see how they relate.
Thanks again for all the help!