How to can to eth?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to can to eth?

1,511 Views
fenghua_jiang
Contributor IV

Hi Teams,

  The CAN2ETH feature performs the off-loaded encapsulation which packs configured CAN frames into
Ethernet frames in IEEE1722 format. The following steps are taken by CAN2ETH for encapsulations of
the CAN frames:
• CAN frames are packed into IEEE1722 packet (Compliant to AVTP Time-Synchronous / Non
time synchronous control format. Packed as ACF CAN Brief /Full messages) or packed into
UDP packet.
• LLCE packs the message and put it on the buffers in the SRAM.
The packet length is controlled by the configuration of the buffer size.
• Stream ID is constant, Not configurable.

When the buffer size set 134, 7 can frames  are packed into AVTP packet(UDP packet) is sent.

If the size of can frames less than seven, the can frames are saved in the buffer.

Can the LLCE send AVTP packet every 1ms?

 

regards,

 

 

 

0 Kudos
Reply
6 Replies

1,500 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We may not be understanding your specific question. If provided with enough information, should be able to.

Please, help us elaborate more on the specifics of what you are looking for.

0 Kudos
Reply

1,495 Views
fenghua_jiang
Contributor IV
Hi,
CAN2ETH: When the configured frame ID is coming
into the configured CAN channels, LLCE encapsulates
the CAN frame into the Ethernet frame in IEEE1722
format and UDP packet. PFE sends it to the Ethernet.
The UDP packet length is controlled by the configuration of the buffer size.

Now,the buffer size is full,then the UDP packet will be sent out.
Is there a time trigger for each MS to send an UDP packet?
regards,
jiang
0 Kudos
Reply

1,483 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

The time trigger can be programmed to be done with the FTM module inside the S32G, which then should be able to issue the command to send a UDP packet every ms, if that is the intend of the application.

Again, could be that we are misunderstanding your requirement, for which we apologize.

Please, let us know.

0 Kudos
Reply

1,476 Views
fenghua_jiang
Contributor IV
HI,
CAN to ETH:frame routing on LLCE (CAN to Ethernet Route).
The CAN packets are sent from Linux and received on the LLCE. The packet
will then be routed by the LLCE firmware to the output LLCE CAN instance.
The packet will then be formatted into AVTP format and sent to the PFE. The
packets sent to the PFE firmware are then captured on the AUX0 interface
as inbound traffic.
How many can frames are packed into UDP packet depends on the size of the buffer(or
The packet length is controlled by the configuration of the buffer size).Is there a time trigger mechanism?
When 1ms is up, all the can frames packed into the UDP packet and send the UDP packet.
for example, there is 10 can frames in buffer, 1ms is up ,then send them as one UDP packet,but the buffer size is 1314.
for example,there is 2 can frames in buffer,1ms is up,then send them as one UDP packet,but the buffer size is 1314.
0 Kudos
Reply

1,474 Views
fenghua_jiang
Contributor IV
If a time trigger mechanism exists, which file should be modified?or how to modify ?
0 Kudos
Reply

1,465 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

We have misunderstood the original request. We apologize for it.

Under LLCE itself, there is no time mechanism that can be set to send the information on the buffer. Under the current standard firmware, there are only rules that are to be applied (look-up tables) that the module itself will follow. Under the LLCE Firmware User Guide there is no command that the host can send (from what we can see) to apply certain rule on a time basis or simply to activate a rule.

Still, the following is provided on the LLCE Firmware User Guide [Page 30]:

"Custom commands from the host may be used to trigger on-demand special actions inside LLCE." 

Which are provided on the LLCE FDK, which is a Premium Software. If needed, help us sending this inquiry to your local NXP representative.

Please, let us know.

0 Kudos
Reply