Page 1 of 1

Reading send messages

Posted: Mon 15. Jul 2024, 16:30
by matthieu
Hello,

I'm currently using worker to read and send messages to CAN network but I don't get how I can read the messages that I'm sending.

Matthieu.

Re: Reading send messages

Posted: Mon 15. Jul 2024, 17:23
by M.Maidhof
Hi,

by default you won't receive your send messages in a CAN system. But there are features available in our API to return the transmitted messages again. Which API and PCAN hardware (firmware) do you use?

regards

Michael

Re: Reading send messages

Posted: Tue 16. Jul 2024, 08:55
by matthieu
Hi,

thanks for the response, I'm currently using Peak.PCANBasic.NET (v. 4.9.0.942).
I'm using the worker on the namespace Peak.Can.Basic.

Br,
Matthieu

Re: Reading send messages

Posted: Tue 16. Jul 2024, 09:41
by M.Heidemann
Hello Matthieu,

Which hardware do you use and which firmware is on the device?

Depending on this, you might be able to use "ALLOW_ECHO_FRAMES" in PCANBasic.

Best Regards

Marvin

Re: Reading send messages

Posted: Tue 16. Jul 2024, 10:33
by matthieu
PCAN-USB
Firmware version: 8,6,1

Re: Reading send messages

Posted: Tue 16. Jul 2024, 10:45
by M.Heidemann
Hello Matthieu,

In this case you can use the AllowEchoFrames property of the worker class:

https://docs.peak-system.com/API/PCAN-B ... d756cf.htm

This parameter helps the user to allow / disallow the reception of echo messages within a
PCAN-Channel, this is, the reception of frames sent by itself. This parameter doesn’t affect
the acceptance filter of the PCAN-Channel. Furthermore, other applications working with the
same PCAN-Hardware can individually configure the reception of echo frames.
Note that disabling the PCAN_RECEIVE_STATUS parameter also suppresses the reception of
echo frames.

Best Regards

Marvin