Reading send messages

This forum covers issues concerning multiple software products.
Post Reply
matthieu
Posts: 9
Joined: Mon 15. Jul 2024, 16:25

Reading send messages

Post by matthieu » Mon 15. Jul 2024, 16:30

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.

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Reading send messages

Post by M.Maidhof » Mon 15. Jul 2024, 17:23

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

matthieu
Posts: 9
Joined: Mon 15. Jul 2024, 16:25

Re: Reading send messages

Post by matthieu » Tue 16. Jul 2024, 08:55

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

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Reading send messages

Post by M.Heidemann » Tue 16. Jul 2024, 09:41

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
---
Marvin Heidemann
PEAK-Support Team

matthieu
Posts: 9
Joined: Mon 15. Jul 2024, 16:25

Re: Reading send messages

Post by matthieu » Tue 16. Jul 2024, 10:33

PCAN-USB
Firmware version: 8,6,1

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Reading send messages

Post by M.Heidemann » Tue 16. Jul 2024, 10:45

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
---
Marvin Heidemann
PEAK-Support Team

Post Reply