Page 1 of 1

Sending non standard messages

Posted: Tue 15. Jan 2019, 07:04
by KateS
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

Re: Sending non standard messages

Posted: Tue 15. Jan 2019, 08:38
by PEAK-Support
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.

Re: Sending non standard messages

Posted: Tue 15. Jan 2019, 09:08
by KateS
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()?

Re: Sending non standard messages

Posted: Tue 15. Jan 2019, 09:15
by PEAK-System
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 !

Re: Sending non standard messages

Posted: Tue 15. Jan 2019, 09:36
by KateS
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

Re: Sending non standard messages

Posted: Tue 15. Jan 2019, 09:39
by PEAK-Support
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.

Re: Sending non standard messages

Posted: Tue 15. Jan 2019, 09:46
by KateS
A-a-a-a, thank you so much!