Is it possible to log echo frames with PCAN-Ethernet Gateway DR?

CAN to LAN gateway in DIN rail plastic casing
Post Reply
formenergy
Posts: 3
Joined: Wed 23. Aug 2023, 16:09

Is it possible to log echo frames with PCAN-Ethernet Gateway DR?

Post by formenergy » Tue 20. May 2025, 14:54

This manual states that PCAN_ALLOW_ECHO_FRAMES is supported by PCAN-LAN devices if using the PCAN Basic API v 4.6.0+: https://www.peak-system.com/produktcd/D ... tation.pdf

The PCAN-Ethernet Gateway I'm using is hardware version 2.0 and has software version 2.11.1. Can this feature be used on my HW? If so, can it only be enabled with the API? I cannot find mention of "echo" in the user manual (https://www.peak-system.com/produktcd/P ... an_eng.pdf) or the developer documentation (https://www.peak-system.com/produktcd/P ... on_eng.pdf).

Ideally, I'd like to be able to enable logging echo frames with an http request or through the device's configuration file.

Thank you!

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: Is it possible to log echo frames with PCAN-Ethernet Gateway DR?

Post by S.Grosjean » Tue 20. May 2025, 16:53

Hello,

Yes, echoing a *written* frame on CAN is possible but only with the PCAN-Ethernet Gateway FD.

The PCAN-Ethernet Gateway CAN 2.0 version you have can only do something like an internal loopback (the frame is copied into the controller Rx fifo only, but is not written on the wire).

Best regards,
— Stéphane

formenergy
Posts: 3
Joined: Wed 23. Aug 2023, 16:09

Re: Is it possible to log echo frames with PCAN-Ethernet Gateway DR?

Post by formenergy » Tue 20. May 2025, 23:13

Ah, so when I write a frame, should I be able to read it back in my Rx data along with all of the other frames I receive from my device under test? Is there a special way to access the Rx FIFO? Do I need to enable this somehow?

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: Is it possible to log echo frames with PCAN-Ethernet Gateway DR?

Post by S.Grosjean » Wed 21. May 2025, 14:07

Hi,

As you said, by using PCAN-Basic, or as written in https://www.peak-system.com/produktcd/P ... on_eng.pdf in page 19 as well as in page 23.

Best regards,
— Stéphane

Post Reply