Home AMX User Forum NetLinx Studio

Sending RS-232 through IR Port

I need to control an RS-232 device and don't have enough serial ports on the controller. Here is what I've setup.

DEFINE_DEVICE
dvDevice1 =5001:7:0

DATA_EVENT[dvDevice1]
{
ONLINE:
{
SEND_COMMAND DATA.DEVICE,"'SET MODE SERIAL'"
SEND_COMMAND DATA.DEVICE,"'CARON'"
SEND_COMMAND DATA.DEVICE,"'SET BAUD 9600,N,8,1'"
}
}

Are these the correct commands? Whenever I send strings to the port I'm not seeing the LED light. Should I?

Comments

  • You want SET MODE DATA. I'd also remove the CARON command, as that's only pertinent to IR, and might possibly screw up data mode...

    I haven't used this in ages myself, so I can't say whether you should expect to see the activity LED blink when you send data. Best bet for debugging might be to run the cable back into a real RS232 port, or run it to your computer's COM port and either open the terminal in Studio or use Hyperterminal.

    - Chip
  • That worked like a charm and getting LED activity as well, thanks Chip.
  • J.Y.J.Y. Posts: 34
    Chip Moody wrote:
    You want SET MODE DATA. I'd also remove the CARON command, as that's only pertinent to IR, and might possibly screw up data mode...

    I haven't used this in ages myself, so I can't say whether you should expect to see the activity LED blink when you send data. Best bet for debugging might be to run the cable back into a real RS232 port, or run it to your computer's COM port and either open the terminal in Studio or use Hyperterminal.

    - Chip

    Dear Chip,

    Can I use AXB-IRS4 to control RS232 Device ??

    J.Y.
  • J.Y. wrote:
    Dear Chip,

    Can I use AXB-IRS4 to control RS232 Device ??

    J.Y.
    No. Only AXcent3, and the NetLinx IR devices (depending on firmware version) are cabable to use the IR port as RS232.
  • viningvining Posts: 4,368
    undrtkr wrote:
    I need to control an RS-232 device and don't have enough serial ports on the controller.
    If this device is something you want feedback strings from I would recommend an Ethernet to RS-232 adapter. There are many brands and some can be had online for as little as $100 dollars. For slightly more you can get multiple RS-232 to to IP adapters. There are models that can do 422 & 485 as well.

    Some brands:
    DIGI
    Lantronix
    Moxa
  • BinuBinu Posts: 49
    IR to receive Feed backs

    HI
    Can i use the IR port to receive feed back from a device. I dont want to control the device
    i mean can i use either as TX or RX??
  • Binu wrote:
    HI
    Can i use the IR port to receive feed back from a device. I dont want to control the device
    i mean can i use either as TX or RX??
    No. IR ports in data mode are only oneway transmit, this is because the original IR mode and so the hardware of the port is only transmitting.
Sign In or Register to comment.