Difference between revisions of "Serial Mode"

From wiki.emacinc.com
Jump to: navigation, search
Line 17: Line 17:
 
=== Serial Mode ===
 
=== Serial Mode ===
 
The <code>serial-mode</code> command allows the user to switch between RS232, RS485, and RS422 modes on EMAC carriers that have a combination serial port.
 
The <code>serial-mode</code> command allows the user to switch between RS232, RS485, and RS422 modes on EMAC carriers that have a combination serial port.
 
  
 
=== Usage ===
 
=== Usage ===
 
Output of the serial-mode help command:
 
Output of the serial-mode help command:
 
{{clo}}
 
{{clo}}
{{clio | username=developer | hostname=ldc | serial-mode --help}}
+
{{clio | username=root | hostname=emac-oe | serial-mode --help}}
 
USAGE: serial-mode -p PORT [-m MODE] [-t TOGGLE] [-r RXEN] [-c FILE] [-h -l -s]<br />
 
USAGE: serial-mode -p PORT [-m MODE] [-t TOGGLE] [-r RXEN] [-c FILE] [-h -l -s]<br />
 
-c --config FILE  Use FILE as configuration file<br />
 
-c --config FILE  Use FILE as configuration file<br />
Line 34: Line 33:
 
Example usage (switching COM B to RS485):
 
Example usage (switching COM B to RS485):
 
{{clio | username=developer | hostname=ldc | serial-mode -p comb -m rs485}}
 
{{clio | username=developer | hostname=ldc | serial-mode -p comb -m rs485}}
 
  
 
=== Carrier Specifics ===
 
=== Carrier Specifics ===
Line 49: Line 47:
 
<b>COM0</b> on:
 
<b>COM0</b> on:
 
*iPAC
 
*iPAC
 
  
 
=== Source Code ===
 
=== Source Code ===
 
The source code for the <b>serial-mode</b> command may be found at EMAC's public git [http://git.emacinc.com/OE/serial-mode-tool/tree/master here]
 
The source code for the <b>serial-mode</b> command may be found at EMAC's public git [http://git.emacinc.com/OE/serial-mode-tool/tree/master here]

Revision as of 12:35, 13 April 2017

TODO: {{#todo: In-progress (06.8.2016-12:40)|Andrew Wichmann|OE 5.0}}


This page helps explain the usage of the serial mode utility on EMAC OE 5.X.

General Information

Serial Mode

The serial-mode command allows the user to switch between RS232, RS485, and RS422 modes on EMAC carriers that have a combination serial port.

Usage

Output of the serial-mode help command:

root@emac-oe:~# serial-mode --help

USAGE: serial-mode -p PORT [-m MODE] [-t TOGGLE] [-r RXEN] [-c FILE] [-h -l -s]
-c --config FILE Use FILE as configuration file
-p --port PORT Select PORT {names based on config file entries}
-m --mode MODE Select MODE {'rs232','rs422','rs485','off'}
-t --toggle TOGGLE Select TOGGLE mode {'auto','manual'}
-r --rxen RXEN Set rxen = RXEN {'0','1'}
-h -? --help Help

Example usage (switching COM B to RS485):

developer@ldc:~# serial-mode -p comb -m rs485

Carrier Specifics

The combination serial port location varies depending on the carrier board:

COMB on carriers:

  • 200
  • 210
  • 212

COMC on carrier:

  • 150

COM0 on:

  • iPAC

Source Code

The source code for the serial-mode command may be found at EMAC's public git here