Skip to contentSkip to conversation

add commandline support for Transmitter Delay Compensation (TDC) in iproute

PATCH Superseded Vincent Mailhol 1 participant 2 messages Feb 23, 2021 CAN network drivers

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

cover add commandline support for Transmitter Delay Compensation (TDC) in iproute

This additional patch adds command line support in userland for below patch series:
https://lore.kernel.org/linux-can/[email protected]/T/#t

For now, only sending the patch to the CAN mailing list.

Yours sincerely,
Vincent Mailhol

Vincent Mailhol (1):
iplink_can: add new CAN FD bittiming parameters: Transmitter Delay
Compensation (TDC)

 include/uapi/linux/can/netlink.h |  6 ++++
 ip/iplink_can.c                  | 58 ++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 iplink_can: add new CAN FD bittiming parameters: Transmitter Delay Compensation (TDC)

At high bit rates, the propagation delay from the TX pin to the RX pin of the transceiver causes measurement errors: the sample point on the RX pin might occur on the previous bit.

This issue is addressed in ISO 11898-1 section 11.3.3 "Transmitter delay compensation" (TDC).

This patch brings command line support to six TDC parameters which were recently added to the kernel's CAN netlink interface in order to implement TDC:
- IFLA_CAN_TDCV: Transmitter Delay Compensation Value
- IFLA_CAN_TDCO: Transmitter Delay Compensation Offset
- IFLA_CAN_TDCF: Transmitter Delay Compensation Filter window
- IFLA_CAN_TDCV_MAX_CONST: Transmitter Delay Compensation Value maximum value
- IFLA_CAN_TDCO_MAX_CONST: Transmitter Delay Compensation Offset maximum value
- IFLA_CAN_TDCF_MAX_CONST: Transmitter Delay Compensation Filter window maximum value

---
 include/uapi/linux/can/netlink.h |  6 ++++
 ip/iplink_can.c                  | 58 ++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)
include/uapi/linux/can/netlink.h +6 -0
index 00c763df..b85d5248 100644
@@ -134,6 +134,12 @@ enum {
 	IFLA_CAN_BITRATE_CONST,
 	IFLA_CAN_DATA_BITRATE_CONST,
 	IFLA_CAN_BITRATE_MAX,
+	IFLA_CAN_TDCV,
+	IFLA_CAN_TDCO,
+	IFLA_CAN_TDCF,
+	IFLA_CAN_TDCV_MAX_CONST,
+	IFLA_CAN_TDCO_MAX_CONST,
+	IFLA_CAN_TDCF_MAX_CONST,
 	__IFLA_CAN_MAX
 };
 
ip/iplink_can.c +58 -0

94 lines not on this page · raw message

Signature · 1 line
2.26.2