Home AMX User Forum NetLinx Studio

Newb: Commands for new device

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"
}
}
}

Comments

  • jjamesjjames Posts: 2,908
    Not quite following . . . are you looking for the protocol of the Canon?
  • Well, for example, how do I tell the projector to turn on or switch inputs? I feel like I'm just missing a piece of the puzzle. I used an old Pronto I had and captured the IR codes from the remote that came with the Canon. Am I going to use the IR codes even though the control for the projector will be hooked up via serial?

    I'm sure that I have a big DUH moment coming, but like I said, I feel like missing something.

    Thanks for the help.
  • jjamesjjames Posts: 2,908
    Well first - if you're going to control the unit by serial, you'll need to send strings to it. (That's what all those SEND_STRINGs are in the code you posted.) Next, you'll need to find the protocol for it - possibly do a search at Canon's website, or read their manual - sometimes it's in there.

    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.
  • ryanwwryanww Posts: 196
    If you say you are using an Axcent 3 controller, you are not able to use the Duet or Netlinx modules, as this processor runs an older coding system which isn't compatible. Are you sure there is not another box that is connected to the system which is a Netlinx controller? Did you pull the pre-existing code off of the Axcent 3 itself?

    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.
  • tkurshintkurshin Posts: 11
    Sorry for the late reply, I got called off to another project.

    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!
  • DHawthorneDHawthorne Posts: 4,584
    In a system like that, all you need to do is rplace the hex strings for the Barco with the ones for your new projector; any line with "SEND_STRING PROJ " in it. The on and off functions are pretty obvious, and the inputs are done in the 'VP_INPUT' (SLOT) call. That one will probably have to be edited, since the Barco looks to use the same command with one digit changed for the input number, and that isn't typical. But that's where you are going to have to start.
Sign In or Register to comment.