Delay between CAN frames within same TCP packet

CAN to LAN gateway in DIN rail plastic casing
Post Reply
hwvsl
Posts: 1
Joined: Fri 25. Aug 2023, 12:05

Delay between CAN frames within same TCP packet

Post by hwvsl » Fri 25. Aug 2023, 12:21

We configured PCAN-Ethernet gateway to use TCP for CAN2LAN. On CAN interface side, we have a device that requires minimum delay between CAN frames (at least for specific CANopen object). From host side, several CAN frames might be sent together in same TCP packet.
Is there any parameter to set minimum delay between sending two CAN frames from PCAN-Ethernet gateway to the device, when CAN frames come from same TCP packet?

Thanks!

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Delay between CAN frames within same TCP packet

Post by PEAK-Support » Fri 25. Aug 2023, 14:31

On the PCAN-Ethernet Gateways, you switch to Expert Mode and set the TCP Delay to "Inactive".
Then all on the Gateway received CAN Frames will be send in separate IP Frames.
If you talk about incoming TCP Packages with multiple CAN Frames in one Frame, the PCAN-Ethernet Gateways could not create a "delay" between sending each of them.
It will send out to the CAN Bus as fast as possible.
When using the Virtual Gateway, with our CAN APIs then the setting, also the TCP-DELAY, is configured by your Route in the Virtual Gateway.
If you use a own host / application, you need to set the Socket Paramter TCP_NODELAY - see Socket API.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply