Mca527 – GBS Elektronik MCA-166 Communication DLL User Manual
Page 6

MCA527
Name
GET_COMM_PARAM
Description
The function returns the communication parameters.
Declaration
void CALLBACK GET_COMM_PARAM(MCA_COMM_PARAM* param);
param
Pointer to a MCA_COMM_PARAM structure.
Name
MCA_COMM_PARAM
Description
The structure contains the MCA communication parameters. A pointer of the structure is passed to the
GET_COMM_PARAM
function
.
Declaration
struct MCA_COMM_PARAM
{ unsigned short unSize;
unsigned short unInterfaceId;
unsigned long ulBaudrate;
unsigned short unComPortNumber;
};
unSize
Size of the structure.
unInterfaceId
This parameter identifies the used communication interface.
0
= Ethernet
1 … 256 = RS232 (COM1 … COM256)
257
= USB, the MCA battery cannot be charged
258
= USB, the MCA battery can be charged
ulBaudrate
The baud rate is valid with RS232 and USB interface.
unComPortNumber
The virtual port number (COM1 … COM256) of the USB interface.
Name
SET_TIMEOUT
Description
The function sets the time out for the communication.
Declaration
void CALLBACK SET_TIMEOUT(clock_t lTimeOut);
lTimeOut
Time out [milliseconds] for the communication. It should be set to about 1000 milliseconds, because
there are commands that run a short measurement before they return. The parameter can be set to a
higher value if needed.
1 The MCA can only be charged over USB if the computer is connected directly with the USB connector
and not only via a USB adapter with the RS232 connector.
6