How to limit the number of CAN frames per packet

CAN to LAN Gateway in DIN Rail Plastic Casing
Post Reply
flobig
Posts: 4
Joined: Mon 27. Feb 2017, 13:00

How to limit the number of CAN frames per packet

Post by flobig » Tue 28. Mar 2017, 09:00

Hello,
Is there any way to limit the number of CAN frames per packet sent by the gateway? Following the developer documentation, I changed the parameter FPP = 1 in the .ini file that I am using to configure the gateway, but once I analyze the data that I receive, I can still see that two or three packets are sent in the same frame sometimes.
What is the limit/condition for which the gateway is going to send one or several CAN frames in a single packet? Is it possible to limit to only one frame per packet even if the data rate is high?
Here is my configuration: 250kbit/s transfer rate on my CAN2LAN route, TCP protocol. The device that I use is sending to the gateway at the maximum between 2 and 5 CAN messages every 100ms, but at a random interval. (e.g two messages can be spaced by only a few milliseconds sometimes)
Thanks for your help.

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

Re: How to limit the number of CAN frames per packet

Post by G.Lang » Wed 29. Mar 2017, 15:42

Hi,

it´s not possible to set the "FPP" for the TCP protocol, this will be automatically handled by the TCP stack. Please use the UDP protocol instead and then you can set the "FPP".

Best regards
Gunther

flobig
Posts: 4
Joined: Mon 27. Feb 2017, 13:00

Re: How to limit the number of CAN frames per packet

Post by flobig » Wed 29. Mar 2017, 16:48

Ok thank you for the clarification!

Post Reply