Adds a CAN Channel to the current measurement setup.
canchannel [--access-mode] [-a|--all-connected] [-r|--bit-rate] [--bit-rate-data] [-l|--language] [--name] [-n|--number] [--phase1] [--phase1-data] [--phase2] [--phase2-data] [--prescaler] [--prescaler-data] [--prop] [--silent-mode] [--sjw] [--sjw-data]
Adds a CAN Channel to the current measurement setup.
--access-mode
The access mode to be used. 1 (Init Access), 2 (No Init Access) and 3 (Exclusive Access). Default value is 1 (Init Access).
-a|--all-connected
Add all connected channels. Use this option or the --number option.
-r|--bit-rate
The bit rate in bits per second.
--bit-rate-data
The data phase bit rate in bits per second. Specify this option to indicate that CAN FD will be used.
-l|--language
Specify the preferred language to be used in all output strings. Default value is English (en).
--name
Name of the node. Default value is 'CAN {X}' where X is a number
-n|--number
The canlib channel number.
--phase1
Specifies the Phase Segment 1 length. The tq (1 + Prop + Phase1 + Phase2) needs to be greater than or equal to 3.
--phase1-data
Specifies the Phase Segment 1 length for the data phase. The tq_data (1 + Phase1Data + Phase2Data) needs to be greater than or equal to
--phase2
Specifies the Phase Segment 2 length. The tq (1 + Prop + Phase1 + Phase2) needs to be greater than or equal to 3.
--phase2-data
Specifies the Phase Segment 2 length for the data phase. The tq_data (1 + Phase1Data + Phase2Data) needs to be greater than or equal to
--prescaler
Specifies the Prescaler value. The Prescaler needs to greater or equal to 1.
--prescaler-data
Specifies the Prescaler value for the data phase. The prescaler_data must be equal to the prescaler of the arbitration phase.
--prop
Specifies the Propagation Segment length. The tq (1 + Prop + Phase1 + Phase2) needs to be greater than or equal to 3.
--silent-mode
Specifies if Silent Mode should be used.
--sjw
Specifies the Sync Jump Width value. The sjw needs to be less than or equal to the smallest of Phase1 and Phase2.
--sjw-data
Specifies the Sync Jump Width value for the data phase. The sjw_data needs to be less than or equal to the smallest of Phase1Data and Phase2Data.
ck add canchannel --name "CAN 1" --number 0 -r 1000000
ck add canchannel --number 1 -r 1000000
ck add canchannel --number 1 -r 1000000 --bit-rate-data 2000000