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!
Delay between CAN frames within same TCP packet
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: Delay between CAN frames within same TCP packet
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.
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
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------