beautypg.com

Com ports on pigtail cable – AML Guardian Vehicle-Mounted Computer User Manual

Page 8

background image


AML

V 1.0.0

800.648.4452

www.amltd.com

COM Ports on Pigtail Cable

COM1(RS232 DB9 male)-----Standard configuration is RS232. Debug port(hardware signal:
Pin 2---TXD, Pin 3---RXD, Pin 5---GND) can be for service port.

COM2(RS422/RS485 DB 9male)----------Standard is RS422(hardware signal: Pin 1---TX+, Pin 2---
TX-, Pin 3---RX+, Pin 4---RX-, Pin 5---GND), optional is RS485(hardware signal: Pin 1---RX485+,
Pin 2---RX485-, Pin 5---GND).

422 interface

o

[DllImport("Wrapper.dll")]

public static extern int Zed422();
Set com2 422 mode. In this mode com2 is set 422 mode. COM2 can read and
write.

485 interface

//485 422


o

[DllImport("Wrapper.dll")]

public static extern bool ZedInit();
This function can only load once.

o

[DllImport("Wrapper.dll")]

public static extern int Zed485RX();
Set com2 485 Rx mode. In this mode com2 can only read.

o

[DllImport("Wrapper.dll")]

public static extern int Zed485STX();
Set com2 485 TX mode. In this mode com2 can only write.

COM3 (RS232 DB9 male)-----Standard is service port(hardware signal: Pin 2---TXD, Pin 3---
RXD, Pin 5---GND, Pin 6---5V, Pin 9---GND).

COM4(RS232 DB9 male)-----Standard is service port(hardware signal: Pin 2---TXD, Pin 3---
RXD, Pin 5---GND).