Sending non standard messages

A free API for the communication with control devices according to UDS (ISO 14229-1)
Post Reply
KateS
Posts: 8
Joined: Mon 23. Jul 2018, 12:48

Sending non standard messages

Post by KateS » Tue 15. Jan 2019, 07:04

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

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Sending non standard messages

Post by PEAK-Support » Tue 15. Jan 2019, 08:38

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
-------------------------------

KateS
Posts: 8
Joined: Mon 23. Jul 2018, 12:48

Re: Sending non standard messages

Post by KateS » Tue 15. Jan 2019, 09:08

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
pcan.PNG (7.6 KiB) Viewed 6123 times

PEAK-System
Support
Support
Posts: 14
Joined: Tue 31. Aug 2010, 12:42

Re: Sending non standard messages

Post by PEAK-System » Tue 15. Jan 2019, 09:15

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 !

KateS
Posts: 8
Joined: Mon 23. Jul 2018, 12:48

Re: Sending non standard messages

Post by KateS » Tue 15. Jan 2019, 09:36

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

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Sending non standard messages

Post by PEAK-Support » Tue 15. Jan 2019, 09:39

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.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

KateS
Posts: 8
Joined: Mon 23. Jul 2018, 12:48

Re: Sending non standard messages

Post by KateS » Tue 15. Jan 2019, 09:46

A-a-a-a, thank you so much!

Post Reply