On 10/19/2017 08:35 PM, Oliver Hartkopp wrote:
We already have this 'dsample-point' implemented in the ip tool:Actually I need some clarification. The sample point of the can core is
$ ip link set vcan0 type can help
Usage: ip link set DEVICE type can
ÂÂÂÂ[ bitrate BITRATE [ sample-point SAMPLE-POINT] ] |
ÂÂÂÂ[ tq TQ prop-seg PROP_SEG phase-seg1 PHASE-SEG1
ÂÂÂÂÂÂ phase-seg2 PHASE-SEG2 [ sjw SJW ] ]
ÂÂÂÂ[ dbitrate BITRATE [ dsample-point SAMPLE-POINT] ] |Â <<-- here!
ÂÂÂÂ[ dtq TQ dprop-seg PROP_SEG dphase-seg1 PHASE-SEG1
ÂÂÂÂÂÂ dphase-seg2 PHASE-SEG2 [ dsjw SJW ] ]
But AFAIK m_can is not using that value in m_can_set_bittiming().
between the two time segments.
I always thought that the "sample point" options of the ip tool are used
in the internal
calculation of the two timing segments and is therefore no individual value.