Search found 11 matches

by lslahrs_
Tue 20. Aug 2013, 15:01
Forum: PCAN-XCP
Topic: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER
Replies: 15
Views: 26700

Re: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER

Hello Keneth,

it works! Your patched version fixed my problem.

Thank you very much for all your help. Very nice support!

Best regards
Thomas
by lslahrs_
Mon 19. Aug 2013, 09:21
Forum: PCAN-XCP
Topic: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER
Replies: 15
Views: 26700

Re: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER

Hello Keneth,

sorry for my long absence.
I'm interested in the patched DLL. I've sent a mail to info@peak-system.com to leave my mail-address.
by lslahrs_
Thu 1. Aug 2013, 21:42
Forum: PCAN-XCP
Topic: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER
Replies: 15
Views: 26700

Re: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER

Thanks for all your effort!
by lslahrs_
Tue 30. Jul 2013, 17:42
Forum: PCAN-XCP
Topic: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER
Replies: 15
Views: 26700

Re: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER

Hello Keneth,

here is my "minimalistic" example: http://pastebin.com/1R4YHdep
Unfortunately it's not really short and looks ugly with all those magic numbers flying around.
But now I used pure C++ without the qt library and the code doesn't produce any threads.

I just realised that this code does ...
by lslahrs_
Tue 30. Jul 2013, 15:47
Forum: PCAN-XCP
Topic: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER
Replies: 15
Views: 26700

Re: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER

Hello Keneth,

I'm not really using threads. I am using the Qt-GUI-framework which produces some threads but all the xcp functions get called inside one thread. But I will write a minimalistic example without using Qt. Thanks for the tip!

In the last minutes it got even weirder. I temporarily ...
by lslahrs_
Tue 30. Jul 2013, 14:26
Forum: PCAN-XCP
Topic: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER
Replies: 15
Views: 26700

Re: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER

Hello Keneth,

For some reason I used the wrong byte order - I set the TXCPProtocolLayerConfig::MotorolaFormat to true instead of false.
After fixing that XCP_DequeuePacket doesn't return 0x800 anymore but the program crashes due to a segmentation fault in the call of XCP_DequeuePacket.
I have no ...
by lslahrs_
Tue 30. Jul 2013, 09:44
Forum: PCAN-XCP
Topic: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER
Replies: 15
Views: 26700

Re: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER

Hello Keneth,

Thanks for your reply!
I double rechecked the return code of XCP_DequeuePacket and it really gives me 0x800.
When would the XCP_ERR_INSUFFICIENT_BUFFER error normally occur?

Thanks for your help!
by lslahrs_
Fri 26. Jul 2013, 15:33
Forum: PCAN-XCP
Topic: XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER
Replies: 15
Views: 26700

XCP_DequeuePacket returns XCP_ERR_INSUFFICIENT_BUFFER

Hello,

After connecting (successfully) to an ECU, dynamically allocating one dto-entry in one dto in one daq-list and calling XCP_StartStopDAQList, I call XCP_DequeuePacket and get XCP_ERR_INSUFFICIENT_BUFFER as result.

The call of XCP_DequeuePacket looks like that:

WORD packet_buffer_length ...
by lslahrs_
Wed 26. Jun 2013, 10:13
Forum: PCAN-CCP
Topic: CCP_Read on daqlist results in PCAN_ERROR_QRCVEMPTY
Replies: 5
Views: 12432

Re: CCP_Read on daqlist results in PCAN_ERROR_QRCVEMPTY

Hello,

thanks a lot! The ECU uses dedicated DTOs and I did not know about that. I called CCP_GetDAQListSize with the standard CAN-Id, which was obviously wrong. Now - using the daqlist-specific DTO - it works.

Do you know where I can read more about those dedicated/non-dedicated DTOs? I haven't ...
by lslahrs_
Tue 25. Jun 2013, 16:04
Forum: PCAN-CCP
Topic: CCP_Read on daqlist results in PCAN_ERROR_QRCVEMPTY
Replies: 5
Views: 12432

Re: CCP_Read on daqlist results in PCAN_ERROR_QRCVEMPTY

Thanks a lot for your fast response!

Hello lslahrs_,

About the Event:
Registering an event through CAN_SetValue will signalizes that CAN data has arrived. This signal is also received internally by the CCP API in order to work out CAN Frames (convert it to a CCP Frame). It is possible that you ...