Hello,
I'm currently developing a program on C# using your APIs and I need to send not standard messages, like 8 bytes consisting only of units and twos. Units I'm sending by UDSApi Write(), where set request.LEN (0x111) and request.DATA(6 bytes with 0x11). I understand that this is only possible because Write() has send first frame Is it possible to transfer message which consisting only of twos? May I send consecutive frame with given number without sending FF, FC?
Best Regards,
Katerina
Sending non standard messages
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: Sending non standard messages
Dear, we are sorry - we do not understand what exact you want to do ! Please contact our support by E-Mail to clear in detail your request.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
Re: Sending non standard messages
I' m using CAN and want to send messages like on this photo. To send first message in my program on C# I use your service UDSApi.Write(UDSApi.PUDS_USBBUS1, ref request). Your services are made according to ISO 14229 and 15765, it means that if I want to send message like in your example in documentation, first byte will be 0x1x. This "1" means that according to the ISO, your service is sending First Frame. However, I sometimes need to send message that consisting only of "2", like on photo. In PEAK-View I can do this, but is it possible using your library and services, like UDSApi.Write()?
- Attachments
-
- pcan.PNG (7.6 KiB) Viewed 6123 times
-
- Support
- Posts: 14
- Joined: Tue 31. Aug 2010, 12:42
Re: Sending non standard messages
After you have init the PCAN-UDS API, you could use the Handle of the Hardware also for using with the PCAN-Basic API, and so could also send RAW CAN Frames - thats possible without any limitation.
But keep in mind that the Receive Function of PCAN-Basic should not be used. If you do, then these CAN Frames will no longer received by the UDS API. Only one API could readCAN Frames !
But keep in mind that the Receive Function of PCAN-Basic should not be used. If you do, then these CAN Frames will no longer received by the UDS API. Only one API could readCAN Frames !
Re: Sending non standard messages
Thanks for Your answer!
Nice to hear that it possible, but I don't understand until the end how I can make do this. Can you give me an example how to send RAW CAN Frame? Or maybe which parameters, functions are need to it.
Best Regards,
Katerina
Nice to hear that it possible, but I don't understand until the end how I can make do this. Can you give me an example how to send RAW CAN Frame? Or maybe which parameters, functions are need to it.
Best Regards,
Katerina
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: Sending non standard messages
As we wrote - you need to use the PCAN-Basic DLL (the CAN Layer 2 API) LINK.
You simply do NOT use the CAN-Init of the PCAN_Basic API but use the CAN_Write funcion to send CAN Layer 2 Messages. It is no problem to use both DLLs in one code.
You simply do NOT use the CAN-Init of the PCAN_Basic API but use the CAN_Write funcion to send CAN Layer 2 Messages. It is no problem to use both DLLs in one code.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
Re: Sending non standard messages
A-a-a-a, thank you so much!