Difference between revisions of "Serial Mode"
(One intermediate revision by the same user not shown) | |||
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= | + | {{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 === | ||
The combination serial port location varies depending on the carrier board: | The combination serial port location varies depending on the carrier board: | ||
− | <b> | + | <b>COMC</b> on carriers: |
* 200 | * 200 | ||
* 210 | * 210 | ||
* 212 | * 212 | ||
− | <b> | + | <b>COMB</b> on carrier: |
*150 | *150 | ||
<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] |
Latest revision as of 14:44, 13 April 2017
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:
COMC on carriers:
- 200
- 210
- 212
COMB 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