Search found 17 matches

by awild
Wed 10. Apr 2019, 16:11
Forum: PCAN-UDS
Topic: How to read a UDS Service Response via EVENT
Replies: 3
Views: 9410

Re: How to read a UDS Service Response via EVENT

Hi Keneth,

thank you for the hint, this is indeed much easier and works ok !

However there is something curious in defining the request message for the WaitForSingleMessage() function:

TPUDSMsg request = new TPUDSMsg();
request.NETADDRINFO.SA = ClientAdr;
request.NETADDRINFO.TA = ECUAdr ...
by awild
Wed 10. Apr 2019, 12:14
Forum: PCAN-UDS
Topic: How to read a UDS Service Response via EVENT
Replies: 3
Views: 9410

How to read a UDS Service Response via EVENT

Hi to all,

I trigger a service request via UDSApi.SvcReadDataByIdentifier(). The PID/LEV is 0xFD 0x54.
The reception of the response (33Bytes) workes fine with UDSApi.WaitForService().

However I want the reception to be event driven.
The event fires ok, in the eventhandler I try to pick out the ...
by awild
Tue 9. Apr 2019, 08:22
Forum: PCAN-ISO TP
Topic: ISO-TP mapping problem
Replies: 6
Views: 11656

Re: ISO-TP mapping problem

Good morning Keneth,

It is working perfectly now, thank you so much for your help indeed!

Actually I was pretty aware of the fact that I did NOT swap Source and Target in the two mappings, because
in my non standard application they aren´t swapped on the bus either!
You gave me an example of a ...
by awild
Mon 8. Apr 2019, 12:34
Forum: PCAN-ISO TP
Topic: ISO-TP mapping problem
Replies: 6
Views: 11656

Re: ISO-TP mapping problem

Hello Keneth,

I did the required mapping direct with the ISO-TP Library.
I found this UDS Parameter now: PUDS_PARAM_MAPPING_ADD
Maybe I have to perform the mapping via this parameter, therefore the UDS library gets notified about the mapping at all?

best regards
Andy
by awild
Mon 8. Apr 2019, 12:25
Forum: PCAN-ISO TP
Topic: ISO-TP mapping problem
Replies: 6
Views: 11656

Re: ISO-TP mapping problem

Hello Keneth,
thanks for this important hint!

I did it like this because there is UInt32 required as parameters in SetValue().
iBuffer = 0x47;
UDSApi.SetValue(CanHdlUDS, TPUDSParameter.PUDS_PARAM_SERVER_ADDRESS, ref iBuffer, sizeof(UInt32));

Unfortunately it still doesn´t work. I can say again ...
by awild
Fri 5. Apr 2019, 19:14
Forum: PCAN-ISO TP
Topic: ISO-TP mapping problem
Replies: 6
Views: 11656

ISO-TP mapping problem

Hello to all,
I have an ECU with ISO-TP/UDS with non standard CAN-ID 29Bit and normal adressing.
The ID´s for Request and Response are as follows:


UInt32 Diag_BT_1_Req = 0x17FC0647;
UInt32 Diag_BT_1_Resp = 0x17FE0647; //Please note source and target are still at same position which is correct ...
by awild
Fri 5. Apr 2019, 16:00
Forum: PCAN-ISO TP
Topic: PCANTP_PARAM_CHANNEL_CONDITION problem
Replies: 7
Views: 6630

Re: PCANTP_PARAM_CHANNEL_CONDITION problem

Hello Kenneth,

now everything is ok. In my application the handle was not initialized (= 0).
But as you see in this context the behaviour of the demo program was a bit missleading to me.

The main problem is that, provided there is NO PCAN Basic dll available:
- CanTpApi.GetValue() does´t throw an ...
by awild
Fri 5. Apr 2019, 15:34
Forum: PCAN-ISO TP
Topic: PCANTP_PARAM_CHANNEL_CONDITION problem
Replies: 7
Views: 6630

Re: PCANTP_PARAM_CHANNEL_CONDITION problem

Hello Kenneth,

with your hint that the ISO-TP library does actually use the basic library, I found the reason why the original ISO-TP (CSharp) demo doesn´t work:

In bin/debug there is only the PCAN-ISO-TP.dll.
If you add PCANBasic.dll here, the demo works fine.
But please note that there is no ...
by awild
Fri 5. Apr 2019, 13:09
Forum: PCAN-ISO TP
Topic: PCANTP_PARAM_CHANNEL_CONDITION problem
Replies: 7
Views: 6630

Re: PCANTP_PARAM_CHANNEL_CONDITION problem

Hello,
Regarding the connection status of the channel:
I just start the two demo versions and do not click the "Initialize" button. Therefore the channels are never connected.
Provided this, the PCAN Basic demo detects the hardware, the PCAN ISO-TP doesn´t detect the hardware as I described ...
by awild
Fri 5. Apr 2019, 11:35
Forum: PCAN-ISO TP
Topic: PCANTP_PARAM_CHANNEL_CONDITION problem
Replies: 7
Views: 6630

PCANTP_PARAM_CHANNEL_CONDITION problem

Hello to all,

I am using the newest ISO-TP Library together with a just bought PCAN-USB Hardware.
Before calling CANTP_Initialize I usually check the availability of the channel.
However the call

CanTpApi.GetValue(pctpHandle, TPCANTPParameter.PCANTP_PARAM_CHANNEL_CONDITION, out iBuffer, sizeof ...