Home   Products

Comet Serial Gateway




The Comet Serial Gateway is a software interface that allows an Internet Basic program to communicate with an external serial device connected to the COM port of the Comet system. This product is an add-on for Comet2000/Comet2002 systems.


Using the serial gateway


The following steps provide a brief overview of how to use the serial gateway:


1.                  Configure the gateway via the following entries in the SYSGEN INI file:



GATEWAY = 6,0;


2.                  In your Internet Basic program:


a.                   open the serial gateway (in this example, using the G01 device name on logical unit number 1)


OPEN (1) G01


b. send a control to the gateway to set the communication parameters (in this example, use the Com1 port with a baud rate of 9600, no parity bit, 8 data bits, and 1 stop bit)


RESULT$ = CONTROL(1, "Open Com1:9600,n,8,1")


c. read and write to the external serial device by reading and writing to the logical unit number associated with the gateway (in this example, logical unit number 1)


d. the STS function provides valuable information regarding the status of the serial port


For additional information, including installation instructions, please see the serial gateway documentation.