29bit filter with data logging

4-Channel CAN Router with Data Logger
Post Reply
Kyle1989
Posts: 1
Joined: Fri 23. Oct 2020, 00:31

29bit filter with data logging

Post by Kyle1989 » Fri 23. Oct 2020, 00:39

I'm trying to accomplish the following.
-CAN1 connects to a 500k bus.
-CAN2 to a 1M bus.
-All CAN1 messages get forwarded to CAN2.
-All CAN2 messages except where id is 0x18FF01AD get forwarded to CAN1.
-All messages get logged to compact flash.

This does not seem possible with either the PPCAN-Editor or with the development package. The PPCAN-Editor doesn't seem to support 29bit ID filters, and the development package doesn't seem to support the compact flash.
Is there any way I can accomplish my goals with the PCAN Router Pro? Perhaps if I could get the microcontroller pinout to the CF interface I could at least write my own CF driver.

User avatar
U.Wilhelm
Sales & Support
Sales & Support
Posts: 1262
Joined: Fri 10. Sep 2010, 19:34

Re: 29bit filter with data logging

Post by U.Wilhelm » Fri 23. Oct 2020, 09:41

You are right - a singel ID Filtering with 29Bit is not possible with this Hardware. We could provide you with the CF Interface infos, but it should be not so easy to implement a real SDK for that ... please contact support[at]peak-system.com for more information.

We offer e new devive, the PCAN-Router Pro FD , with 6 CAN-FD Channels, internal EMMC and SD Card also with a optional ETH Interface (Q1-2021)
Therefor we offer a SDK which will be extend in the next weeks with some new features like SD/EMMC access. So all you need ist then part of the SDK.
Maybe this could be the better solution.
--------------------------------
PEAK-System Technik
Technical Support Team
support@peak-system.com
-------------------------------

stkoehler
Posts: 3
Joined: Mon 2. Aug 2021, 14:59

Re: 29bit filter with data logging

Post by stkoehler » Mon 2. Aug 2021, 15:10

U.Wilhelm wrote:
Fri 23. Oct 2020, 09:41
You are right - a singel ID Filtering with 29Bit is not possible with this Hardware. ...
Hello U.Wilhelm
just to be sure as we are here just struggling with the probably same question:

So my understanding is correct that the PCAN-Router Pro can not support (because of its hardware limitations) a 29Bit message forwarding (only 11bit), as what is descripted also in as "Routing x to y Explicit (11bit)" in the "Benutzerhandbuch" (https://www.peak-system.com/produktcd/P ... an_deu.pdf) on page 63?

So I can not forward 29bit messages by their id, and that can not be fixed with a software update, as it is burned into hardware?


(Whow, that was an precise question, wasn't it? ;) )

stkoehler
Posts: 3
Joined: Mon 2. Aug 2021, 14:59

Re: 29bit filter with data logging

Post by stkoehler » Mon 2. Aug 2021, 16:05

I just had a look into the header files which my colleguages have used to write their own firmware for the Router-PRO to surround the 29bit forwarding limitation.

The header files allows some 29bit filters:

Code: Select all


can.h

////////////////////////////////////////////////////////////
//! @name filtertypes
//! Used with CAN_FilterAddId() as the type for filter entry
//! @{
#define	FILTER_11BIT_ID					0	//!< 11 bit single ID
#define	FILTER_29BIT_ID					1	//!< 29 bit single ID
#define	FILTER_11BIT_ID_RANGE			2	//!< 11 bit ID range
#define	FILTER_29BIT_ID_RANGE			3	//!< 29 bit ID range
/*! @}*/
so I'm just wondering why some self written firmware would allow 29bit filters, but the hardware itself wouldn't? Or is the supplied header file a generic one, which is not applicable to the Router-PRO?

G.Lang
Support
Support
Posts: 145
Joined: Wed 22. Sep 2010, 14:58

Re: 29bit filter with data logging

Post by G.Lang » Mon 2. Aug 2021, 16:19

Hi,

if you want to forward all 29bit messages then you can use the "Routing x to y All" command (with value 2 -> bit 2 is set)

29bit-forwarding.jpg
29bit-forwarding.jpg (203.21 KiB) Viewed 1051 times

If you want to forward only some 29bit IDs then this can be realized via "4.7 Exercise 3b: Translating a CAN ID" and "4.8 Exercise 3c: (Variation 3b)Transmission Only if Source Message was Received" from the PCAN-Router Pro tutorial.

Please note:
-> The amount of "Receive messages" is limited to 120
-> The amount of "Transmit Messages" is limited to 350
-> The amount of "Gateway Messages" is limited to 120

best regards
Gunther

G.Lang
Support
Support
Posts: 145
Joined: Wed 22. Sep 2010, 14:58

Re: 29bit filter with data logging

Post by G.Lang » Tue 3. Aug 2021, 08:26

Hi,

with an own firmware you can filter 29bit messages, it´s not a limitation of the PCAN-Router PRO itself.
It´s a limitation of the PCAN-Router PROs default-firmware + PPCAN-Editor.

best regards
Gunther

stkoehler
Posts: 3
Joined: Mon 2. Aug 2021, 14:59

Re: 29bit filter with data logging

Post by stkoehler » Wed 4. Aug 2021, 08:08

That's maybe a little bit off topic, but the main reason why I'm asking at all is that today we have to tear down a whole vehicle all the time to dismount the router module to reach the "flash" switch inside the module to update our own firmware.

There's still no other way to flash own firmware or a config file for that firmware OTA, means from outside without opening the module and setting the flash switch, isn't it??

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

Re: 29bit filter with data logging

Post by M.Heidemann » Wed 4. Aug 2021, 08:44

Hello,

You can also invoke the bootloader from firmware.

An example for this can be found in the PEAK-Development Package:

https://www.peak-system.com/quick/DLP-DevPack

Under /Hardware/PCAN-Router_Pro/Examples, you will find the example firmware
07_PEAK-FLASH showcasing how you can invoke the bootloader via receiving
a specific extended-ID, this of course can be adjusted to your needs.

For further questions feel free to contact me again.

Best Regards

Marvin

Post Reply