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
Send Multi-Frame Messages to Other Devices
Re: Send Multi-Frame Messages to Other Devices
Hello,
Note: post moved to the right place in the forum, PCAN-ISO-TP API.
Note: post moved to the right place in the forum, PCAN-ISO-TP API.
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.
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.
Best regards,
Keneth
Keneth
Re: Send Multi-Frame Messages to Other Devices
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
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
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.
I'm unsure as to why the remaining data is not sent.
Re: Send Multi-Frame Messages to Other Devices
Hello,
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.
then the device and your app are using the right configuration. Multi frame communication is possible.
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.
Best regards,
Keneth
Keneth
Re: Send Multi-Frame Messages to Other Devices
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
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
Thanks for the feedback. Closed.
Best regards,
Keneth
Keneth