Page 1 of 1
Send Multi-Frame Messages to Other Devices
Posted: Mon 28. Mar 2022, 14:03
by K1890350
Hi,
Following the thread 'Send Multi-Frame Messages', is it any way possible to send Multi-Frame messages (from PCAN USB) to another device that isn't a PCAN USB?
I've understood from the previous conversation that the 06_Segmented_Messages example only works with x2 PCAN USB devices.
I've been supplied with a device from an Automotive OEM that also sends and receives via CAN. Is it possible at all to communicate with it providing the mapping address are correct?
Best,
K1890350
Re: Send Multi-Frame Messages to Other Devices
Posted: Mon 28. Mar 2022, 14:26
by K.Wagner
Hello,
Note: post moved to the right place in the forum, PCAN-ISO-TP API.
K1890350 wrote: ↑Mon 28. Mar 2022, 14:03
I've understood from the previous conversation that the 06_Segmented_Messages example only works with x2 PCAN USB devices
The
"example" is written using two PCAN channels (for instance, two PCAN-USB devices) for didacting purposes: the example acts itself as client and server, so that multi-frame communication takes place. IF you own a PCAN-PCI card for instance, then you can just change the Pcan channels used in the code to match your hardware.
K1890350 wrote: ↑Mon 28. Mar 2022, 14:03
Following the thread 'Send Multi-Frame Messages', is it any way possible to send Multi-Frame messages (from PCAN USB) to another device that isn't a PCAN USB?
ISO-TP is a CAN high layer protocol. The PCAN-ISO-TP library receives data from and sends to the CAN network (not to a device directly). This means, any device that support ISO-TP, that is connected to the same CAN network and is well configured (same bit rate, mappings, etec.) will be able to take part of the ISO-TP communication.
Re: Send Multi-Frame Messages to Other Devices
Posted: Tue 29. Mar 2022, 12:39
by K1890350
Hi,
Thank you for the corrections.
I've currently connected 1x PCAN-USB to the OEM supplied, ISO-TP compatible device via a bespoke harness. (Setup: ISO-TP Compatible Device (not connected to PC) -- Harness with 9-pin connector w/ 120ohm resistor -- PCAN-USB ).
Can Tx/Rx of multi-frame messages be achieved only using 1 PCAN-USB? I'm a little unsure about adding mapping for sender and receiver in this way.
Your time and efforts are much appreciated.
Best,
K1890350
Re: Send Multi-Frame Messages to Other Devices
Posted: Tue 29. Mar 2022, 12:58
by K1890350
I should add on, I'm able to send 1 frame of 8 bytes. I receive the response of 30 08 0A AA AA AA AA AA, indicating it's ready to receive consecutive frames.
I'm unsure as to why the remaining data is not sent.
Re: Send Multi-Frame Messages to Other Devices
Posted: Tue 29. Mar 2022, 13:28
by K.Wagner
Hello,
K1890350 wrote: ↑Tue 29. Mar 2022, 12:58
I'm able to send 1 frame of 8 bytes. I receive the response of 30 08 0A AA AA AA AA AA, indicating it's ready to receive consecutive frames.
then the device and your app are using the right configuration. Multi frame communication is possible.
K1890350 wrote: ↑Tue 29. Mar 2022, 12:58
I'm unsure as to why the remaining data is not sent.
If the multi frame communication doesn't work, then you should get an error. Check return codes of the API functions for more information. If a timeout is happening, then it is more likely because your address mappings are not correct. When using physical adressed communication, mappings are defined in pairs. Check that you are doing this and that you are using the correct CAN-IDs. Check the configuration of your device if you do not know which CAN-ID to use.
More information about address mapping can be found in the help file, chapter 4.4.
Examples of address mapping can be see in almost any of the sample projects.
Re: Send Multi-Frame Messages to Other Devices
Posted: Thu 31. Mar 2022, 13:54
by K1890350
Hi,
I appreciate your time and support.
Mapping issues are solved and I can now send Multi-Frame messages using 1 PCAN USB to my target.
Best,
K1890350
Re: Send Multi-Frame Messages to Other Devices
Posted: Thu 31. Mar 2022, 14:02
by K.Wagner
Thanks for the feedback. Closed.