I'm developing a monitoring XCP-DAQ application-spftware use PEAK-CAN-USB and PCAN-XCP APIs on Windows.
Call SetDAQListPointer() to StartStopSynchronizedDAQList().
The slave node start to output DTO frames.
After, How do read DTO pakct?
When use CAN_Read() API, any part of DTO frames were thined outs.
When use XCP_DequeuePacket() API, error return XCP_ERR_QUEUE_EMPTY.
Please let me konw rightly method of to read DTO pakct.
How do read DTO pakct?
Re: How do read DTO pakct?
Hello,
first of all makes sure that you are using the last version, Version 2.2.1 from 2018-12-13, since older version had a problem receiving DTOs.
Note that you have to use the XCP_TransportLayerCommand so that dedicated DTOs can be included in the receiving filter. After this, dedicated DTOs can be read over the function XCP_DequeuePacket.
Here an extract of the help (TransportLayerCommand)
first of all makes sure that you are using the last version, Version 2.2.1 from 2018-12-13, since older version had a problem receiving DTOs.
Note that you have to use the XCP_TransportLayerCommand so that dedicated DTOs can be included in the receiving filter. After this, dedicated DTOs can be read over the function XCP_DequeuePacket.
Here an extract of the help (TransportLayerCommand)
Best regards,
Keneth
Keneth
Re: How do read DTO pakct?
Hi.
Tahnk you for your advice.
I add a statement of calling XCP_TransportLayerCommand() to after SET_DAQ_LIST_MODE.
(subcommand:SET_DAQ_ID, slave Response:0xFF, Block(with wait) mode).
I download newist DLLs form your web-site.
I tried to use PXCP.dll ver. 2.2.1.33. (with PCANBasic.dll 4.3.2.161 and the driver 4.1.4.262)
However XCP_DequeuePack() is returend XCP_ERR_QUEU_EMPTY yet.
What do you think other cause?
Tahnk you for your advice.
I add a statement of calling XCP_TransportLayerCommand() to after SET_DAQ_LIST_MODE.
(subcommand:SET_DAQ_ID, slave Response:0xFF, Block(with wait) mode).
I download newist DLLs form your web-site.
I tried to use PXCP.dll ver. 2.2.1.33. (with PCANBasic.dll 4.3.2.161 and the driver 4.1.4.262)
However XCP_DequeuePack() is returend XCP_ERR_QUEU_EMPTY yet.
What do you think other cause?
Re: How do read DTO pakct?
I found that when packetBufferLength of XCP_DequeuPacket() is smaller then 8, return error.
The packetBufferLength is equal 8, I can read DTOs from XCP_DequeuPacket().
Thank you for your good support.
The packetBufferLength is equal 8, I can read DTOs from XCP_DequeuPacket().
Thank you for your good support.