1

Topic: Can gateway Canny7.2 with extended can id

Hi,


For a project i am trying to relay all can data that is received on CAN0 to CAN1 if it doens't hit the selector. As soon as the selector has been hit the existing data in bite D3 needs to be converted. For this i used the example dynamic gateway as a base program.
The original program has been used for standard CAN ID and for dat in byte D1. For my project i need to use it with a extended format can id and with the data in Byte D3 instead of D1. To do so i have added the CAN IDH selector value and the CAN IDH value mask. Also CAN Rx D1:D0 has been replaced for CAN Rx D3:D2.

With this changes i can't get the system to work and to me it seems that the CAN IDH value isn't read by the program.

What can be wrong ?

2

Re: Can gateway Canny7.2 with extended can id

To work with extended identifiers, the most significant bit (bit 15 - EXT mark) of the "CAN Gateway Selector X Value Setup Register, CAN ERL" must be set equal to 1. Accordingly, in the "CAN Gateway Selector X Mask Setup Register, CAN ERL", bit 15 must also be set equal to 1 .