Overview of the Serial Gateway
The 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 Comet systems.
Using the serial gateway
The following steps provide a brief overview of how to use the serial gateway:
- Configure the gateway via the following entries in the SYSGEN INI file:
[GATEWAYS]
GATEWAY = 6,0;
- In your Internet Basic program:
-
open the serial gateway (in this example,
using the “G01” device name on logical unit number 1)
OPEN (1) “G01”
-
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")
-
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)
-
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 at www.signature.net.