Home AMX User Forum AMXForums Archive Threads AMX Hardware
Options

EMP 81 return code

Hi everyone

Has anybody experince this issue before ? I'm using NI700 to control EPSON EMP81 via serial connection, the problem is i manage to control the projector but not getting the status return code. When i use hyperterminal to send the get command code ..... it return back the status even with the same serial cable.

Comments

  • Options
    DHawthorneDHawthorne Posts: 4,584
    Hi everyone

    Has anybody experince this issue before ? I'm using NI700 to control EPSON EMP81 via serial connection, the problem is i manage to control the projector but not getting the status return code. When i use hyperterminal to send the get command code ..... it return back the status even with the same serial cable.
    It may be a handshaking issue, but I'm not familiar enough with the Epson to say for sure it's needed. Hyperterminal is not a valid comparison to a NetLinx, there are more pins used on the RS-232 connector and wire. If the Epson requires any of them, HT may work where the NetLinx does not.
  • Options
    EMP 81 return code

    I've tried today using only Tx,Rx and Ground on hyper terminal and on NI700
    Both can actually control the projector but for getting the return code, the hyper terminal could get them and not the NI700. i'm using the latest firmware for the Ni700.
  • Options
    Joe HebertJoe Hebert Posts: 2,159
    Hi Jason,

    Does the Rx LED of the NI-700 serial port flicker after the Tx LED flickers when you send a command to the projector?

    How are you trapping for the return code?

    Joe
  • Options
    EMP 81 return code

    Hi Joe

    The Tx flickered but not on the Rx LED. But for the HYPER-TERMINAL MODE, i got those return codes ...... weird. Tests are conducted using the same cable with Tx,Rx,Gnd pin config.
  • Options
    Joe HebertJoe Hebert Posts: 2,159
    Jason,

    Re-reading your first post it sounds like there are two commands issued to the projector; one command to control and one to get status. Is this true?

    If so, is it possible that you?re missing a terminating byte (like a CR) for the get status query? When you use HyperTerminal it might be sending out a CR by default and your code may not be sending it. I?m not familiar with your projector nor the protocol for it so I might be way off base.

    Only other thing I would try (a long shot) is to use the other serial port on the NI-700 and see if you have the same results. And if you want to rule out the hardware then talk to some other RS-232 device to verify that the port can both send and receive.

    Joe
  • Options
    Chip MoodyChip Moody Posts: 727
    Wow. Deja Vu. I've seen this question before. This morning, in fact. :)

    Jason, I'll reiterate what I mentioned earlier:

    In your program, MAKE SURE that you either have a CREATE_BUFFER for the projector in DEFINE_START and/or a STRING: handler in the projector's DATA_EVENT.

    Otherwise, are you literally moving the cable from the NI-700 over to your laptop when you're doing this test, or are you using a completely different cable?

    - Chip
  • Options
    Also make sure you only use pins 2, 3, 5 and (only when 'HSON' has been set and the device requies hardware handshaking) pins 7 & 8 on the DB9 connecting to the NI700. The other four pins (1, 4, 6, and 9) are designed to carry RS422 data and the NI700 may get confused if it sees any data there. Your PC's RS232 port has a different pinout on those pins.
  • Options
    EMP 81 return code

    Thanks guys, got it working already.
  • Options
    Chip MoodyChip Moody Posts: 727
    Jason, don't keep us in suspense - what was the fix?!?

    - Chip
  • Options
    EMP 81 return code
    Chip Moody wrote:
    Jason, don't keep us in suspense - what was the fix?!?

    - Chip

    Sorry guys . I'm not quite sure what happen but i'm sure that i was using the same cable all the while ..... i try to load a simple program in and reboot the master ..... and it worked.
    I think might be due to memory problem or something. By the way, the pin config for the cable i'm using is only 2,3,5. That's all as per EPSON manual.
Sign In or Register to comment.