Different speeds between channels

Programmable 6-channel router and data logger for CAN and CAN FD with I/O and optional Ethernet interface
Post Reply
goia12
Posts: 4
Joined: Mon 23. Jan 2023, 07:14

Different speeds between channels

Post by goia12 » Tue 4. Apr 2023, 07:45

Hi,

I would like to know how to modify the speed of the information that is received through a channel to route it and send it through another channel at a different speed.

For example:
In channel 2 I receive the information at a speed of 125Mbit/s and I want to route that information so that it can be sent through channel 4 at 500Mbit/s.

Is this possible?
If possible, could it also be bidirectional between both channels?
Could you share an example please?

----------------------------------------------
Another question.
Could it be translated from a J1939 250KB/S CAN protocol to another CAN protocol?


Thanks for any answer!

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

Re: Different speeds between channels

Post by M.Maidhof » Tue 4. Apr 2023, 09:42

Hi,

yes, please see 01_Routing example for the PCAN-Router Pro FD we deliver in the PEAK-Dev pack. In the file src\can-user.c line 11 (Timing_CANx[6]) the bitrate definitions are set.

Code: Select all

// timings for CAN1 to CAN6
static const CANTiming_t  Timing_CANx[6] = {
_40M_500K_80____4M_80_ISO,	  // CAN1
_40M_500K_80____4M_80_ISO,	  // CAN2
_40M_500K_80____4M_80_ISO,	  // CAN3
_40M_500K_80____4M_80_ISO,	  // CAN4
_40M_500K_80____4M_80_ISO,	  // CAN5
_40M_500K_80____4M_80_ISO	  // CAN6
};
you will find some common definitions in inc\can_user.h or you can also generate a new one with the BitrateCalculationTool we offer on our support website:

https://www.peak-system.com/fileadmin/m ... onTool.zip

And yes, you could also use the PCAN-Router to transfer data between different CAN protocols (J1939 to CAN etc.). However, you have to program the protocol specific parts in the firmware by yourself.

regards

Michael

Post Reply