Difference between revisions of "Serial Mode"
(Created page with "{{todo| In-progress (06.8.2016-12:40)|Andrew Wichmann| project=OE 5.0}} {{DISPLAYTITLE:Serial Mode}} <!-- /******************************************************************...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 16: | Line 16: | ||
{{:Templateimpl:geninfo | initials=BS | title=Software Overview | desc=EMAC products offer a wide variety of software support from both open source and proprietary sources. | project=OE 5.0 }} | {{:Templateimpl:geninfo | initials=BS | title=Software Overview | desc=EMAC products offer a wide variety of software support from both open source and proprietary sources. | project=OE 5.0 }} | ||
=== Serial Mode === | === Serial Mode === | ||
− | The <code> | + | 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: | |
+ | {{clo}} | ||
+ | {{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 /> | ||
+ | -c --config FILE Use FILE as configuration file<br /> | ||
+ | -p --port PORT Select PORT {names based on config file entries}<br /> | ||
+ | -m --mode MODE Select MODE {'rs232','rs422','rs485','off'}<br /> | ||
+ | -t --toggle TOGGLE Select TOGGLE mode {'auto','manual'}<br /> | ||
+ | -r --rxen RXEN Set rxen = RXEN {'0','1'}<br /> | ||
+ | -h -? --help Help<br /> | ||
+ | {{clos}} | ||
+ | |||
+ | Example usage (switching COM B to RS485): | ||
+ | {{clio | username=developer | hostname=ldc | serial-mode -p comb -m rs485}} | ||
+ | |||
+ | === Carrier Specifics === | ||
+ | The combination serial port location varies depending on the carrier board: | ||
+ | |||
+ | <b>COMC</b> on carriers: | ||
+ | * 200 | ||
+ | * 210 | ||
+ | * 212 | ||
+ | |||
+ | <b>COMB</b> on carrier: | ||
+ | *150 | ||
+ | |||
+ | <b>COM0</b> on: | ||
+ | *iPAC | ||
+ | |||
+ | === 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] |
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