Details of Error Code

■Initialization Errors

Definition

Value
[Dec]

Description

CAN_ERR_SUCCESS

0

Normality completion

CAN_ERR_INI_RESOURCE

1

Failed in the acquisition of the resource.
Please confirm whether the used device has been registered in Device Manager normally.

CAN_ERR_INI_INTERRUPT

2

Failed in the registration of the interruption routine.
Please confirm whether the IRQ duplicates with another device.

CAN_ERR_INI_MEMORY

3

Failed in the allocation of the memory. This error would hardly occur. If this error occurred, please extend the memory.

CAN_ERR_INI_REGISTRY

4

Failed in the access of registry.

Please confirm whether the setting is available in property page.
If this error still occurred, please reinstall the device.

CAN_ERR_SYS_RECOVERED_FROM_STANDBY

7

Execute CanResetDevice function because the device has recovered from standby mode.

CAN_ERR_INI_NOT_FOUND_SYS_FILE

8

Initialization failed because ccan.sys is not found

CAN_ERR_INI_DLL_FILE_VERSION

9

Initialization failed because the file version of ccan.dll cannot be acquired

CAN_ERR_INI_SYS_FILE_VERSION

10

Initialization failed because the file version of ccan.sys cannot be acquired

CAN_ERR_INI_NO_MATCH_DRV_VERSION

11

Initialization failed because the file version of ccan.dll is not same as ccan.sys

  

■DLL Errors

Definition

Value
[Dec]

Description

CAN_ERR_DLL_DEVICE_NAME

10000

The devicename which wasn't registered by a device manager was specified.

Please confirm the property page settings.

CAN_ERR_DLL_INVALID_ID

10001

Invalid ID was specified.

Please confirm whether the initialization function has completed normally.
And confirm the scope of variable that stores ID.

CAN_ERR_DLL_CALL_DRIVER

10002

Driver can't be called (Failed in the device I/O control).

Please confirm whether the initialization function has completed normally.
And confirm the scope of variable that stores ID.

CAN_ERR_DLL_CREATE_FILE

10003

Failed in the creation of the file (Failed in CreateFile).

Please confirm whether the device driver can activate normally using Device Manager.
When the device driver cannot activate normally, please delete the device and reinstall it.

CAN_ERR_DLL_CLOSE_FILE

10004

Failed in the closing of the file (Failed in CloseFile).

It is possible that you have executed the termination processing for the device which was not initialized.
It does not matter even if this error is ignored.

CAN_ERR_DLL_CREATE_THREAD

10005

Failed in the creation of the thread (Failed in CreateThread).

This error would hardly occur. If this error occurred, please confirm the number of threads activated by the application.

CAN_ERR_INFO_INVALID_DEVICE

10050

Specified device name is not found. Please check spelling.

Please confirm the device name used in the application and the device name set in Device Manager.

CAN_ERR_INFO_NOT_FIND_DEVICE

10051

Not find the available device.

Please confirm whether the device has been registered in Device Manager.

CAN_ERR_INFO_INVALID_INFOTYPE

10052

Infomation type is invalid.

CAN_ERR_INFO_NOT_FOUND_DEVINFO

10053

Not found device infomation.

CAN_ERR_DLL_BUFF_ADDRESS

10100

Invalid data buffer address.

The buffer address is NULL(0). Please make sure of the application's source code.

CAN_ERR_DLL_HWND

10200

 Window handle is invalid.

Error occurred in the message notice function.
It is possible that the window handle is not valid when the function is executing.
Adjust the timing for function calling.

CAN_ERR_DLL_EVENT_TYPE

10300

Event type beyond the limit.

CAN_ERR_DLL_CALLBACK

10400

Callback function address is invalid.

 

■Driver Errors

Definition

Value
[Dec]

Description

CAN_ERR_SYS_MEMORY

20000

Failed to allocate memory.

This error would hardly occur. If this error occurred, please extend the memory.

CAN_ERR_SYS_NOT_SUPPORTED

20001

This board couldn't use this function.

CAN_ERR_SYS_BOARD_EXECUTING

20002

Board is behaving, not execute.

CAN_ERR_SYS_USING_OTHER_PROCESS

20003

Other process is using the device, not execute. Please confirm the restrictions on using more than one process.

The trigger function cannot be executed by two or more processes on the same device.

CAN_ERR_SYS_NOT_FOUND_PROCESS_DATA

20004

Process information is not found.

CAN_ERR_SYS_MONITOR_MODE

20100

Monitor mode is outside the settable range.

CAN_ERR_SYS_CH_NO

20101

Channel number is outside the settable range.
Please check the channel number.

CAN_ERR_SYS_DATA_FRAME_FORMATT

20102

The data frame format is outside the settable range.

CAN_ERR_SYS_BITRATE

20110

The bit rate is outside the settable range.

CAN_ERR_SYS_TSEG1

20120

Time segment 1 is outside the settable range.

CAN_ERR_SYS_SJW

20121

Synchronization Jump Width is outside the settable range.

CAN_ERR_SYS_TSEG2

20122

Time segment 2 is outside the settable range.

CAN_ERR_SYS_ARB_BITRATE

20130

Arbitration bit rate is outside the settable range.

CAN_ERR_SYS_ARB_TSEG1

20131

Arbitration time segment 1 is outside the settable range.

CAN_ERR_SYS_ARB_SJW

20132

Arbitration Synchronization Jump Width is outside the settable range.

CAN_ERR_SYS_ARB_TSEG2

20133

Arbitration time segment 2 is outside the settable range.

CAN_ERR_SYS_DATA_BITRATE

20140

Data bit rate is outside the settable range.

CAN_ERR_SYS_DATA_TSEG1

20141

Data time segment 1 is outside the settable range.

CAN_ERR_SYS_DATA_SJW

20142

Data Synchronization Jump Width is outside the settable range.

CAN_ERR_SYS_DATA_TSEG2

20143

Data time segment 2 is outside the settable range.

CAN_ERR_SYS_TIMING_COMBINATION

20144

This is a combination in which the communication parameters cannot be set.

CAN_ERR_SYS_MESSAGE_NUM

20150

The number of messages is outside the settable range.

CAN_ERR_SYS_MESSAGE_TYPE

20151

The messages type is outside the settable range.

CAN_ERR_SYS_DATA_LEN

20160

Data length is outside the settable range.

CAN_ERR_SYS_CAN_ID

20170

CAN ID is outside the settable range.

CAN_ERR_SYS_TIMEOUT_TIME

20180

The timeout time is outside the settable range.

CAN_ERR_SYS_BUSON

20200

Cannot execute because the bus is on.

CAN_ERR_SYS_BUSOFF

20201

Cannot execute because the bus is off.

CAN_ERR_SYS_BUS_DISCONNECT

20202

Cannot execute because the bus is disconnected.

CAN_ERR_SYS_REC_FIFO_OVERFLOW

20220

Receive FIFO overflowed.

CAN_ERR_SYS_TIMEOUT

20250

A timeout occurred

CAN_ERR_SYS_DEVICE_ACCESS

20500

The device could not be accessed successfully.

 

■NET Errors

Definition

Value

[Dec]

Description

CAN_ERR_NET_BASE

22000

Failed to access device.

CAN_ERR_NET_ACCESS

22001

Access rights violation.

CAN_ERR_NET_AREA

22002

Area error.

CAN_ERR_NET_SIZE

22003

Access size error.

CAN_ERR_NET_PARAMETER

22004

Parameter error.

CAN_ERR_NET_LENGTH

22005

Length error.

CAN_ERR_NET_RESOURCE

22006

Insufficient resources.

CAN_ERR_NET_TIMEOUT

22016

A communication timeout has occurred.

CAN_ERR_NET_HANDLE

22017

Handle error.

CAN_ERR_NET_CLOSE

22018

Close error.

CAN_ERR_NET_TIMEOUT_WIO

22064

A wireless communication timeout has occurred.

CAN_ERR_NET_NOT_DEVICE

22065

Device does not exist.