Search found 11 matches

by luliily
Mon 8. May 2017, 04:09
Forum: PCAN-UDS
Topic: About UDS_WaitForMultipleMessage and UDS_SvcTesterPresent
Replies: 6
Views: 8499

Re: About UDS_WaitForMultipleMessage and UDS_SvcTesterPresen

Great!
Now I understand how UDS session works!I admire very much! :D I rewrited my code.The TesterPresent was disable.Thank you! ;)
by luliily
Wed 3. May 2017, 05:50
Forum: PCAN-UDS
Topic: About UDS_WaitForMultipleMessage and UDS_SvcTesterPresent
Replies: 6
Views: 8499

Re: About UDS_WaitForMultipleMessage and UDS_SvcTesterPresen

Hello Fabrice,

I updated my code:

TPUDSStatus result;
TPUDSMsg MsgUDS_WRITE = {};
TPUDSMsg MsgUDS_READ[2] = {};
TPUDSMsg MsgUDS_READ_TEMP = {};
DWORD count;

MsgUDS_WRITE.NETADDRINFO.SA = 0xFB;
MsgUDS_WRITE.NETADDRINFO.TA = 0x00;
MsgUDS_WRITE.NETADDRINFO.RA = 0x00;
MsgUDS_WRITE ...
by luliily
Fri 28. Apr 2017, 04:14
Forum: PCAN-UDS
Topic: About UDS_WaitForMultipleMessage and UDS_SvcTesterPresent
Replies: 6
Views: 8499

Re: About UDS_WaitForMultipleMessage and UDS_SvcTesterPresen

Hello,

I did read that Post.

TPUDSStatus result;
TPUDSMsg MsgUDS_WRITE = {};
TPUDSMsg MsgUDS_READ[2] = {};
DWORD count;

MsgUDS_WRITE.NETADDRINFO.SA = 0xFB;
MsgUDS_WRITE.NETADDRINFO.TA = 0x00;
MsgUDS_WRITE.NETADDRINFO.RA = 0x00;
MsgUDS_WRITE.NETADDRINFO.PROTOCOL = PUDS_PROTOCOL_ISO_15765 ...
by luliily
Thu 27. Apr 2017, 11:24
Forum: PCAN-UDS
Topic: About UDS_WaitForMultipleMessage and UDS_SvcTesterPresent
Replies: 6
Views: 8499

About UDS_WaitForMultipleMessage and UDS_SvcTesterPresent

Hello,

In my case,the ECU's TesterPresent (0x3E) service is not standard.

Here is what I need:
搜狗截图20170427170118.png

But the PCAN UDS API does not match:
搜狗截图20170427170011.png

I want to disable the TesterPresent function,So I set to the default session:

TPUDSSessionInfo session;
result ...
by luliily
Mon 6. Mar 2017, 05:28
Forum: PCAN-ISO TP
Topic: Having Trouble Sending CAN Messages
Replies: 7
Views: 10265

Re: Having Trouble Sending CAN Messages

PROBLEM SOLVED!!THANK YOU!!!

My Basic and TP API Version was outdated.Then I update the TP API and BASIC API to the latest version.The message is finally normal.

Again,thanks for your patience.Thank you very much!
by luliily
Thu 2. Mar 2017, 10:26
Forum: PCAN-ISO TP
Topic: Having Trouble Sending CAN Messages
Replies: 7
Views: 10265

Re: Having Trouble Sending CAN Messages

I used the code you wrote.But the result is still the same,like yesterday.
Screenshot:
20170302170956.png

Code:

void CUDSDlg::OnBnClickedButtonBoschTp()
{
TPCANTPMsg MsgTP_READ = {};
TPCANTPMsg MsgTP_WRITE = {};
TPCANTPStatus result;

MsgTP_WRITE.SA = 0xFA;
MsgTP_WRITE.TA = 0x00;
MsgTP ...
by luliily
Wed 1. Mar 2017, 10:17
Forum: PCAN-ISO TP
Topic: Having Trouble Sending CAN Messages
Replies: 7
Views: 10265

Re: Having Trouble Sending CAN Messages

I add the function CANTP_AddMapping which returns code 0.And the function CANTP_Write returns code 0,too.

But the CAN message that the API acctually send is quite weird.Is there something wrong?
20170301164926.png

Another question,when the program runs to function CANTP_Uninitialize,it means ...
by luliily
Wed 1. Mar 2017, 09:08
Forum: PCAN-UDS
Topic: Having Trouble Reading CAN Messages
Replies: 4
Views: 6886

Re: Having Trouble Reading CAN Messages

I think you just solve my problem perfectly! :lol: ;) Thank you!

Here is my code:

void CUDSDlg::OnBnClickedButtonBoschUds()
{
TPUDSMsg MsgUDS_READ = {};
TPUDSMsg MsgUDS_WRITE = {};
TPUDSStatus result;

MsgUDS_WRITE.LEN = 2;
MsgUDS_WRITE.DATA.RAW[0] = 0x10;
MsgUDS_WRITE.DATA.RAW[1] = 0x81 ...
by luliily
Wed 8. Feb 2017, 10:57
Forum: PCAN-UDS
Topic: Having Trouble Reading CAN Messages
Replies: 4
Views: 6886

Re: Having Trouble Reading CAN Messages

Hello,

First all of,thank you it's so kind of you to answer my question. :)

I use the function UDS_SetValue,but UDS_Read still return error code 0x07.

Here's my code:

void CUDSDlg::OnBnClickedButtonBoschUds()
{
TPUDSMsg MsgUDS_READ;
TPUDSMsg MsgUDS_WRITE;
TPUDSStatus result;

MsgUDS_WRITE ...
by luliily
Sat 4. Feb 2017, 09:10
Forum: PCAN-UDS
Topic: Having Trouble Reading CAN Messages
Replies: 4
Views: 6886

Having Trouble Reading CAN Messages

Hello,

When I used PCAN-UDS TP API to send a request message to the ECU and try to read the respond message,the UDS_Read returned PUDS_ERROR_NO_MESSAGE.Actully,the ECU did respond with a POSITIVE_RESPOND_MESSAGE.

Here CAN Message screenshot:
Request&Respond.png

Here's my code:

void CUDSDlg ...