Home AMX User Forum AMX Technical Discussion

Optoma HD72 Projector RS-232 Axcent Control

I am have a heck of a time getting this this to work via a serial connection. I have reviewed a lot of advice here on this site. I can connect to the projector via Hyperterminal and I can make it work. I have hyper terminal set to send CR and LF, and send * 0 IR 008 for the menu, I get back and appropriate response 000 (command excepted) the menu comes on and the hyperterminal responds with someting like *0IR008(0D) sent. I understand that the 0D is the Hyperterminal sending the CR. So I turn off CR in Hyperterminal and try to resend any form that has a CR embedded (like * 0 IR 008,$0D or * 0 IR 008,13 or "'* 0 IR 008', $0D" or * 0 IR 008,10,13) and the projector responds 001 (invalid command). I think I have the other programming side working.

SEND_STRING dvPROJ, "'* 0 IR 008', $0D"


This string does not work for me. The cable is a straight through 3 pin cable.
Any Idea's???
Thanks
Bruce

Comments

  • maxfli500 wrote:
    I can connect to the projector via Hyperterminal and I can make it work. I have hyper terminal set to send CR and LF

    SEND_STRING dvPROJ, "'* 0 IR 008', $0D"

    This string does not work for me. /QUOTE]

    The first statement says it works with CRLF and the second says it doesn't work with just CR. This seems correct. Am I confused?
  • Sorry If I am not making myself clear. I get nothing from the projector when I send via AMX the following:
    SEND_STRING dvPROJ, "'* 0 IR 008', $0D" I think the code here is working ok, it just is not seeing the CR.

    When I am in Hyper terminal (Hyper terminal set CR on) and Send * 0 IR 008 it works fine. Then I turn off CR in Hyperterminal and I cannot get the projector to respond to the same * 0 IR 008 string that has the CR embedded. I have tried "'* 0 IR 008', $0D" and many others, it simply does not see the CR. I am most certian this CR issue is why the AMX side isn't working.
  • Optoma HD72 Projector Serial Control

    Try this. The spaces may be the problem. They represent a null, and while the example strings show spaces, this may be incorrect. The documentation says nothing about null spaces in the strings.

    SEND_STRING dvPROJ, "'*0IR008',13"

    Good luck,

    Rex
  • Thanks Rex

    SEND_STRING dvPROJ, "'*0IR008',13" did work either. Think everything is going out to the projector fine, AMX rs-232 light Blinks when the TP is pressed. Not very experienced with Netlinx Studio Diagnostics. I did try all kinds of variations in the RS232 program I am using. The only combo that works is with the spaces * 0 IR 008 and CR provided by the RS232 program.

    Don't know if this is legal, but I tried.

    {
    SEND_STRING dvPROJ, '* 0 IR 008' SEND_STRING dvPROJ,'$0D'
    }

    Nothing works

    PROGRAM_NAME='OPTOMA,Rev 0,Rev 0'
    (******************************************************)
    (* DEVICE DEFINITIONS GO BELOW *)
    (******************************************************)
    DEFINE_DEVICE


    VPROJ = 2
    TP2 = 128

    (******************************************************)
    (* COMBINE DEFINITIONS GO BELOW *)
    (******************************************************)


    (********************************)
    (* CONSTANT DEFINITIONS GO BELOW *)
    (******************************************************)
    DEFINE_CONSTANT

    S_DATE = '01/28/2002'
    S_TIME = '18:51:10'

    (******************************************************)
    (* VARIABLE DEFINITIONS GO BELOW *)
    (******************************************************)
    DEFINE_VARIABLE



    (* GENERAL *)
    MASTER_MSG_BUFFER[100] (* BUFFER FOR 'MSG.LIB' *)

    (******************************************************)
    (* CONNECT LEVEL DEFINITIONS GO BELOW *)
    (******************************************************)

    (******************************************************)
    (* LATCHING DEFINITIONS GO BELOW *)
    (******************************************************)
    DEFINE_LATCHING

    (******************************************************)
    (* MUTUALLY EXCLUSIVE DEFINITIONS GO BELOW *)
    (******************************************************)
    DEFINE_MUTUALLY_EXCLUSIVE

    (******************************************************)
    (* TOGGLING DEFINITIONS GO BELOW *)
    (******************************************************)
    DEFINE_TOGGLING

    (******************************************************)
    (* SUBROUTINES GO BELOW *)
    (******************************************************)

    (******************************************************)
    (* STARTUP CODE GOES BELOW *)
    (******************************************************)
    DEFINE_START

    CREATE_BUFFER 0, MASTER_MSG_BUFFER

    (* MODEM INITIALIZATION STRING *****************************)
    WAIT 50 (* wait for other stuff *)
    {
    SEND_STRING 0,"13,13" (* CLEAR *)
    WAIT 10 SEND_STRING 0,"'ATE0',13" (* Echo Off *)
    WAIT 20 SEND_STRING 0,"'AT&F',13" (* Factory Default *)
    WAIT 30 SEND_STRING 0,"'ATE0',13" (* Echo Off *)
    WAIT 40 SEND_STRING 0,"'ATS0=3',13" (* Auto Answer=3 rings *)
    WAIT 50 SEND_STRING 0,"'AT&D0',13" (* Ignore DTR Handshaking *)
    WAIT 60 SEND_STRING 0,"'AT&Q6',13" (* Select Asynchronous mode *)
    }
    (* END *****************************************************)

    SEND_COMMAND VPROJ, 'SET BAUD 115,200,N,8,1'
    SEND_COMMAND VPROJ, 'XOFF'

    *)
    (******************************************************)
    (* PROGRAM GOES BELOW *)
    (******************************************************)
    DEFINE_PROGRAM


    PUSH[TP2,248] (* Menu***********************************)
    {
    SEND_STRING VPROJ,"'* 0 IR 008',$0D"
    }

    (***********************************************************)
    (* END OF PROGRAM *)
    (* DO NOT PUT ANY CODE BELOW THIS COMMENT *)
    (***********************************************************)
  • Bruce,

    what I have seen in your code is that the syntax of the SET BAUD is wrong:
    SEND_COMMAND VPROJ, 'SET BAUD 115,200,N,8,1'

    On an AXcent3(pro), the syntax is
    SEND_COMMAND VPROJ, 'SET BAUD 115k,N,8,1'
    
    And I would also add
    SEND_COMMAND VPROJ, 'HSOFF' (* hardware handshake off *)
    
  • maxfli500 wrote:
    Sorry If I am not making myself clear. I get nothing from the projector when I send via AMX the following:
    SEND_STRING dvPROJ, "'* 0 IR 008', $0D" I think the code here is working ok, it just is not seeing the CR.

    When I am in Hyper terminal (Hyper terminal set CR on) and Send * 0 IR 008 it works fine. Then I turn off CR in Hyperterminal and I cannot get the projector to respond to the same * 0 IR 008 string that has the CR embedded. I have tried "'* 0 IR 008', $0D" and many others, it simply does not see the CR. I am most certian this CR issue is why the AMX side isn't working.

    If you have HyperTerminal set to "Send line ends with line feeds" it sends CR then LF (you originally wrote that you had this switched on) and some equipment inexplicably needs both of them.
  • Marc,

    Your suggestion fixed the problem.

    Code:
    SEND_COMMAND VPROJ, 'SET BAUD 115k,N,8,1'

    Thanks for the help.

    Bruce
  • yuriyuri Posts: 861
    Try this. The spaces may be the problem. They represent a null, and while the example strings show spaces, this may be incorrect. The documentation says nothing about null spaces in the strings.

    SEND_STRING dvPROJ, "'*0IR008',13"

    Good luck,

    Rex

    a space is no problem.

    SEND_STRING dvProjector, "'POWR 1',$0D"
    works the same as
    SEND_STRING dvProjector, "'POWR 1', $0D"
Sign In or Register to comment.