Product Support

Product FAQs

QUESTION

How can I use the TCP server mode to send break signals from UNIX systems to serial devices?

SOLUTION

To send break signals from a UNIX machine to serial devices using the TCP server mode, do the following:

  1. Establish a TCP connection with the TCP port 966 set as the command port.
    The command/data used to send break signals to serial devices must go through the TCP command port (966) and not the data port (950). For example, in the 16-port NPort 5610, the command ports are TCP 966 (1st serial port) to 981(16th serial port).
  2. Use the following packet formats to control the break signal to the TCP command port of your serial device.
    • To start a break command:
      Send to the serial device: 2 bytes [0x21, 0x00]
      Response from the serial device: 3 bytes [0x21, 'O', 'K']
    • To stop the break command:
      Send to the serial device: 2 bytes [0x22, 0x00]
      Response from the serial device: 3 bytes [0x22, 'O', 'K']
    • Use the UNIX function sleep() to control the duration of the break signal.

Relevant Products

NPort 5100 Series · NPort 5100A Series · NPort 5200 Series · NPort 5200A Series · NPort 5400 Series · NPort 5600 Series · NPort 6100/6200 Series · NPort 6400/6600 Series · NPort S8000 Series · NPort S9450I Series · NPort S9650I Series · NPort W2150A/W2250A Series ·

Was this useful?
Rate this article
Thanks for rating our content. Any comments or suggestions?
 
Thanks for your feedback!
  •   Print this page
  • You can manage and share your saved list in My Moxa
Contact Moxa Support

Still need assistance with your Moxa product? Get help and save time by initiating an online support request and we will connect you to an expert.

CONTACT US
Added To Bag