CLPE-G-Series API list
- 1 Int Clpe_Connection(string password, int isAttachedSlave)
- 2 Int Clpe_Connection(int isAttachedSlave)
- 3 int Clpe_GetMicomVersion(unsigned char* version_master, unsigned char* version_slave)
- 4 int Clpe_GetXavierVersion(unsigned char* versison_master, unsigned char* versison_slave)
- 5 int Clpe_GetSDKVersion (unsigned char* version)
- 6 int Clpe_GetCamStatus(int* status)
- 7 int Clpe_SetXavierPowerOff()
- 8 int Clpe_CheckPci()
- 9 int Clpe_CheckNetwork()
- 10 int Clpe_CheckPing()
- 11 int Clpe_CheckTimeSyncStatus()
- 12 int Clpe_ReqResyncTime()
- 13 int Clpe_StartStream (T_CB_APP cb_app, int use_cam_0, int use_cam_1, int use_cam_2, int use_cam_3, int use_cam_4, int use_cam_5, int use_cam_6, int use_cam_7, int display_on)
- 14 int Clpe_StopStream ()
- 15 int Clpe_GetFrameAllCam (int *p_camera_id, unsigned char **p_buffer, unsigned int *p_size, struct timeval *pt_camera_timeStamp)
- 16 int Clpe_GetFrameOneCam (int camera_id, unsigned char **p_buffer, unsigned int *p_size, struct timeval *pt_camera_timeStamp)
- 17 int ClpeClientApi::Clpe_SelectFormat(int format)
Int Clpe_Connection(string password, int isAttachedSlave)
Description |
|
Parameters |
Ex ) “password1234”
|
Returns |
0 = no error. -1 = can not probe driver. -2 = can not find network. -3 = can not set address. -4 = can not ping. -5 = can not create socket. -6 = can not connect socket. |
Example code
ClpeClientApi clpe_api;
string password = “password1234”;
int ret = clpe_api.Clpe_Connection(password, 1);
if(ret == 0)
{
printf("Connection successed\n");
}
해당 함수는 다른 함수들이 호출하기 전에 반드시 수행하여야 한다.
Int Clpe_Connection(int isAttachedSlave)
Description |
|
Parameters |
|
Returns |
0 = no error. -4 = can not ping. -5 = can not create socket. -6 = can not connect socket. |
Example code
ClpeClientApi clpe_api;
int ret = clpe_api.Clpe_Connection(1);
if(ret == 0)
{
printf("Connection successed\n");
}
해당 함수는 다른 함수들이 호출하기 전에 반드시 수행하여야 한다.
해당 함수를 사용하고자 할 경우 반드시 첨부파일의 no_password.sh 파일을 실행하거나 해당 쉘 파일이 수행하고자 하는 작업을 API 실행 전 수행하여야 한다.
int Clpe_GetMicomVersion(unsigned char* version_master, unsigned char* version_slave)
Description |
|
Parameters |
|
Returns |
0 = no error. -1 = invalid command id. -3 = failed communication. -4 = error data checksum. |
Example code
ClpeClientApi clpe_api;
unsigned char *master_micomVer = (unsigned char*) malloc(6);
unsigned char *slave_micomVer = (unsigned char*) malloc(6);
int ret = clpe_api.Clpe_GetMicomVersion(master_micomVer, slave_micomVer);
if(ret == 0)
{
printf("Master Micom Version = %s\n", master_micomVer);
printf("Slave Micom Version = %s\n", slave_micomVer);
}
‘version_master’ 와 ‘version_slave’ 의 buffer 크기는 6bytes 이상이어야 한다.
int Clpe_GetXavierVersion(unsigned char* versison_master, unsigned char* versison_slave)
Description |
|
Parameters |
|
Returns |
0 = no error. -1 = invalid command id. -3 = failed communication. -4 = error data checksum. |
Example code
int Clpe_GetSDKVersion (unsigned char* version)
Description |
|
Parameters |
|
Returns |
0 = no error. |
Example code
int Clpe_GetCamStatus(int* status)
Description |
|
Parameters |
|
Returns |
0 = no error. -1 = invalid command id. -3 = failed communication. -4 = error data checksum. |
Example code
int Clpe_SetXavierPowerOff()
Description |
|
Parameters |
|
Returns |
0 = no error. -1 = invalid command id. -3 = failed communication. -4 = error data checksum. |
int Clpe_CheckPci()
Description |
|
Parameters |
|
Returns |
0 = no error. -1 = pci device is not connected. |
Example code
int Clpe_CheckNetwork()
Description |
|
Parameters |
|
Returns |
0 = no error. -1 = network device is not connected. |
Example code
int Clpe_CheckPing()
Description |
|
Parameters |
|
Returns |
0 = no error. -1 = ping failed. |
Example code
int Clpe_CheckTimeSyncStatus()
Description |
|
Parameters |
|
Returns |
0 = no error. -1 = time sync failed. |
Example code
int Clpe_ReqResyncTime()
Description |
|
Parameters |
|
Returns |
0 = no error. -1 = time sync failed. |
Example code
int Clpe_StartStream (T_CB_APP cb_app, int use_cam_0, int use_cam_1, int use_cam_2, int use_cam_3, int use_cam_4, int use_cam_5, int use_cam_6, int use_cam_7, int display_on)
Description |
|
Parameters |
|
Returns |
0 = no error. -1 = Fail to create task. |
Example code
int Clpe_StopStream ()
Description |
|
Parameters |
|
Returns |
0 = no error. -1 = Stop error. |
Example code
int Clpe_GetFrameAllCam (int *p_camera_id, unsigned char **p_buffer, unsigned int *p_size, struct timeval *pt_camera_timeStamp)
Description |
|
Parameters |
|
Returns |
0 = no error. -2 = There is no the updated frame. |
Example code
int Clpe_GetFrameOneCam (int camera_id, unsigned char **p_buffer, unsigned int *p_size, struct timeval *pt_camera_timeStamp)
Description |
|
Parameters |
|
Returns |
0 = no error. -2 = There is no the updated frame. -3 = Not available camera id |
Example code
int ClpeClientApi::Clpe_SelectFormat(int format)
Description |
|
Parameters |
|
Returns |
0 = no error. -1 = invalid command id. -3 = failed communication. -4 = error data checksum. |
Example code