I can't find what is status mean? And what needs to be done so that initialization is successful?
Status should be analyzed as hex for ease:
- (uint)-2147476480 is 0x80001c00,
- Flag 0x80000000 means this is a PCAN-Basic API status,
- 0x01C00U is PCAN_ERROR_ILLCLIENT.
PCUServer initializes a 2nd USB PEAK CAN device: PUDS_USBBUS2 (line 312), whereas PCUClient initializes the 1st USB PEAK CAN device (PUDS_USBBUS1).
Make sure you have two PEAK USB CAN interfaces connected to your PC in order to be able to use these examples.