User`s guide

24
K
A
DAK
KwikNet Overview
Serial I/O Terminal as the Console Device
The KwikNet sample program includes a UART serial I/O driver which can be used with
the KwikNet console driver to provide access to a terminal. The driver supports the
INS8250 (NS16550) USART as implemented in PC compatible hardware. To select this
device for console driver use, edit the sample program's application header file
KNZZZAPP.H and change the definition of symbol KN_CS_DEVTYPE to be KN_CS_DEVUART.
This serial I/O driver can also be used with the KwikNet sample programs for AMX.
The UART driver KN8250S.C is located in the toolset dependent installation directory
TOOLXXX\SAM_COMN (see Chapter 3.6). Compile the console driver KNCONSOL.C and the
UART driver KN8250S.C and link the resulting object modules with the sample program.
PC Display/Keyboard as the Console Device
When used on PC hardware with MS-DOS, the KwikNet console driver can be directed to
use the PC display and keyboard as a terminal. Edit the sample program's application
header file KNZZZAPP.H and change the definition of symbol KN_CS_DEVTYPE to be
KN_CS_DEVPC. The PC display and keyboard can only be used with a C library that
supports the non-standard _putch(), _kbhit() and _getch() functions. This console
device can also be used with the KwikNet sample programs for AMX 86.
Telnet as the Console Device
If the KwikNet sample program is modified to provide access to a real network, the
KwikNet console driver can be directed to use the Telnet protocol to access a remote
terminal. Edit the sample program's application header file KNZZZAPP.H and change the
definition of symbol KN_CS_DEVTYPE to be KN_CS_DEVTELNET. The KwikNet Library must
have TCP support included. The console driver will listen on the well known Telnet port
number 23 for a connection. It then uses the TCP socket to communicate with the remote
terminal to which it is connected. The Telnet console device can also be used with the
KwikNet sample programs for AMX.
AMX Console Devices
When using
KwikNet with AMX, the KwikNet console driver can be used with the KwikNet
serial UART driver described above. However, if you have already ported the AMX
Sample Program serial I/O driver to your hardware, you can direct the console driver to
use it to access a terminal. Edit the sample program's application header file KNZZZAPP.H
and change the definition of symbol KN_CS_DEVTYPE to be KN_CS_DEVAMX. Compile the
console driver KNCONSOL.C and link the resulting object module and your AMX serial
driver object module with the sample program.
If you are using AMX 86, the KwikNet console driver can use the AMX PC Supervisor to
access the PC display and keyboard as a terminal. Edit the sample program's application
header file KNZZZAPP.H and change the definition of symbol KN_CS_DEVTYPE to be
KN_CS_DEVAMXPCS. Be sure to link the sample program with the AMX PCS
Configuration Module and the PC Supervisor Library.