BAPITCP - Implementation Specifics
BAPITCP - Implementation Specifics
1.Introduction
This document describes implementation specific details of the TCP/IP to BAPI gateway
server implemented by mocom software, Aachen.
BAPITCP was designed to meet the BAPI and the “TCP/IP to Bitbus” standards. In case
these standards conflict, the BAPI standard meaning has been implemented.
2.Structure BitbusOpenData
The BAPI (and the TCP/IP to Bitbus) standard define an optional and implementation
specific parameter of BitbusOpenMaster(), BitbusOpenSlave() functions, the
BitbusOpenData structure. For mocom softwares implementation of BAPI and BAPITCP
(TCP/IP to BAPI gateway server) this data structure is used (in bapi.h):
typedef PACKED_STRUCTURE struct {
INT32 len; /* fill in the length of the structure
before calling BitbusOpen(), on return it
contains the length of copied data */
char name[10]; /* device name string: IPCBITxx, USBBITxx, COMxx */
char serno[7]; /* ELZET80 serial number: IPC123 */
} GNU_PACKED_STRUCTURE BitbusOpenData;
This parameter is optional. If you want to get the information you must append the len of
the BitbusOpenData structure to your data. The return value will then contain the
complete BitbusOpenData strucure filled with device information.
3.References
(a)BITBUS APPLICATION PROGRAMMERS INTERFACE (BAPI)
http://www.bitbus.org/dnl/bapi.pdf
(b)A modest proposal for a TCP/IP to Bitbus Gateway
http://www.bitbus.org/dnl/TCPIP_BAPI.pdf
(c)bapi.h