204
W&T
network inventory via UDP
typedef struct _BOX_DESCRIPT
// ( 22 byte)
{
unsigned char mac_addr[6];
// MAC address of the Com-Server
unsigned long IP_number;
// IP address of Com-Server
unsigned long gateway;
// Gateway
unsigned long subnet_mask;
// Subnet Mask
unsigned int MTU;
// MTU
unsigned int port_anz;
// Number of ports in the Com-Server
}BOX_DESCRIPT;
// (port_anz * 10 byte)
typedef struct _PORT_DESCRIPT
// ( 10 bytes )
{ union
{ unsigned int wState;
struct _new_type
{ unsigned char port_type;
// 0x01 = serial port (Serial CPU-Port)
// 0x02 = serial port (UART Port)
// 0x03 = reserved
// 0x04 = Digital I/O
// 0x05 = Analog I/O (in development)
// 0x06 = W&T Dual Port RAM
unsigned char state;
// 0=free, 1=connect, 2=waits
};
};
unsigned int mode;
// 0x0001 = TCP-Client
// 0x0002 = TELNET-Client
// 0x0003 = FTP-Client
// 0x0004 = Box2Box-Client (aktiv)
// 0x0005 = UDP Send/ReceiveMode
// 0x0006 = MULTI PORT (DPRAM, SERIAL PROTOCOL)
// 0x0007 = SNMP-Agent
// 0x0008 = Box2Box Server (passive)
// 0x0010 = SLIP Router
// 0x0020 = PPP Router (in development)
// 0x0030 = Box2Box Bus System: Slave Box
// 0x0040 = Box2Box Bus System: Master Box
unsigned long remote_IP;
// if state == CONNECT, otherwise 0
unsigned int remote_port;
// if state == CONNECT, otherwise 0
}PORT_DESCRIPT;
typedef struct _WT_INTERN3
// ** all parameters in Hostorder / Low Byte First **
{
BOX_VERSION bv;
// Port = UDP_BOX_INFO_8513
BOX_DESCRIPT bd;
PORT_DESCRIPT pd[ACT_PROCESS];
} WT_INTERN3;
#pragma pack()
The structure PORT_DESCRIPT does not have to be evaluated
for the Web-IO. It is intended only for information pertaining to
W&T Com-Servers.
Summary of Contents for 57630
Page 8: ...8 W T Content...
Page 22: ...22 W T Assigning the IP address...
Page 44: ...44 W T configuring the network parameters...
Page 194: ...194 W T Diacnostics and testing...