Establish Connection

This topic describes the following functions:

E6651_Init

Declaration

int E6651_Init(int PortNum);

Parameter

Port Num [in]: Is the port number of the local PC = 10000

Return Value

Success: STATE_SUCCESS(1)

Failure: STATE_ERROR(-1)

Description

This command initializes the Remote API Library.

E6651_RegisterMachine

Declaration

int E6651_RegisterMachine(BYTE MID, char* IPAddr, int PortNum);

Parameter

MID [in]: User defined E6651A Machine ID.

char* IPAddr [in]: E6651’s IP address

int PortNum [in]: E6651’s Port Number

Return Value

Success: STATE_SUCCESS(1)

Failure: STATE_ERROR(-1)

Description  

Maps the Machine ID (MID) to the specified IP Address and Port Number.  IP Address = E6651A IP Address e.g. 100.100.100.100 and Port Number = 16000 which is the UDP Port Number of the E6651A.

Note that the Port Number is fixed at 16000. This constant for this value is defined in the header file (iwRegisterPortNum) and should be used where applicable.

E6651_RemoteStart

Declaration

int E6651_RemoteStart(BYTE MID);

Parameter

MID [in]: User defined E6651A Machine ID.

Return Value

Success: STATE_SUCCESS(1)

Failure: STATE_ERROR(-1)

Description

API command to connect to the specified E6651A (Machine ID) and initialize remote control of that E6651A.