Difference between revisions of "Serial Mode"

From wiki.emacinc.com
Jump to: navigation, search
 
Line 37: Line 37:
 
The combination serial port location varies depending on the carrier board:
 
The combination serial port location varies depending on the carrier board:
  
<b>COMB</b> on carriers:
+
<b>COMC</b> on carriers:
 
* 200
 
* 200
 
* 210
 
* 210
 
* 212
 
* 212
  
<b>COMC</b> on carrier:
+
<b>COMB</b> on carrier:
 
*150
 
*150
  

Latest revision as of 14:44, 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:

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