Serial Communication Library and components for rs-232, tcp/ip communication. Date transfer and file transfer Protocols ZMODEM, YMODEM, KERMIT, MODBUS, 3964, RK512, LSV2. Supporting NET, C#, VB Net

Some SuperCom - Functions ...

The SuperCom API (also called DLL API) contains more than 200 functions for serial data communication, TCP/IP and ISDN.

The functions are grouped logically with respect to their functionality and portability. Some of the SuperCom API functions are specific to seriel communications (RS-232, RS-422/485, TAPI, Modem), but nearly all of them are platform independent thus also available in ISDN and TCP/IP. This enables developing of portable applications without extra effort and costs.

ComInit

Setup a communication link (see also RS_OpenLink)

ComPortPresent

Returns availability of a device

ComPortPresentEx

Returns name and availability of a device

ComSaveState

Saves the current device state in order to be able to reset the device to this state later

ComSetState

Sets transmission parameters

ComBufCount

Returns the number of characters in each buffer

ComBufClear

Clear the specific Rx or Tx buffer

ComSetBufSize

Changes the buffer size

ComGetBufSize

Returns the buffer size

ComEnableFIFO

Set 16550 and compatible FIFO size

ComRS485

Enables RS-485 automated data flow

ComDTROn

Set DTR on logical high level

ComRTSOn

Set RTS on logical high level

ComGetFlow

Gets the current flow control

ComSetFlow

Sets the flow control

ComGetInfo

Retrieves link information e.g. RS-232 info, ISDN Caller Id, TCP/IP socket information etc.

ComRead

Reads a data byte

ComWrite

Send a data byte

ComGetSetEventMask

Defines the events that are expected to be reported - other events will be suppressed

ComGetSetEventProc

Installs a user event function in order to process the comm events

ComSpyChar

Reads a data byte without removing it from the receive buffer

ComStateRTS

Returns the state of RTS

ComStateDTR

Returns the state of DTR

ComStateCTS

Returns the state of CTS

ComStateDSR

Returns the state of DSR

ComStateRI

Returns the state of RI

ComUngetChar

Places a character back into the receive buffer

RS_OpenLink

A high level and intelligent function. Setup and connect through one call. Replaces many single function calls e.g. ComInit, ComSetState, RS_ConnectEx.

RS_RXInTime

Attempts to receive a character with timeout

RS_TXInTime

Transmits a character using timeout

RS_RXPacket

Receives a data packet

RS_TXPacket

Transmits a data packet

RS_TXQPacket

Transmits a data packet as fastest as possible

RS_RXPInTime

Receives a data packet with timeout detection

RS_TXPInTime

Transmits a data packet with timeout detection

RS_RXPXMODEM

Receives a data packet according to the XMODEM protocol

RS_TXPXMODEM

Transmits a data packet according to the XMODEM protocol

RS_TXFile_ZMODEM

Transmits one or more files using the ZMODEM protocol

RS_TXFile_...

Transmits a file using the specified protocol (ZMODEM, XMODEM, YMODEM, KERMIT, ASCII)

RS_RXFile_...

Receives one or more files using the specified protocol (ZMODEM, XMODEM, YMODEM, KERMIT, ASCII)

RS_Dial

Dials a remote subscriber via Modem, ISDN or TCP/IP

RS_Connect

Runs after the dial the connection loop

RS_ConnectEx

Establish the connection in blocking mode or completely in background. Both modes can provide status events.

RS_Ringing

Detects whether an incoming call is present

RS_Carrier

Detects whether a carrier signal is present (successful connection)

RS_GetCRC_CCITT

Calculates an 16 bit checksum according to the CCITT polynomial

RS_GetChkSum

Calculates an 8 bit checksum

RS_GetDataPacket

Receive complete data packets according to come criteria

RS_ANSIInit

Activates the ANSI/VT100 terminal emulation

RS_VT52Init

Activates the VT52 terminal emulation

RS_TTYInit

Activates the TTY terminal emulation

RS_WaitString

Activate data trigger events or wait for a string

... some of the Trigger Helper API

TriggerAdd

Define a trigger (byte sequence) that will report event when received

TriggerDel

Remove a trigger. It will no more report.

TriggerGetKERMIT

Query the trigger used to signal KERMIT.

TriggerGetZMODEM

Query the trigger used to signal ZMODEM.

:

:

More samples on setting a data connection with SuperCom can be found here.


Home    Back
Modified at:

ADONTEC