MATLAB 도움말 센터
Configure bit timing of J1939 channel
configBusSpeed(chan,busspeed)
configBusSpeed(chan,busspeed,SJW,TSeg1,TSeg2,numsamples)
configBusSpeed(chan,busspeed) sets the speed of the J1939 channel chan to busspeed in a direct form that uses default bit timing calculation factors.
chan
busspeed
Note
You can set bit timing only when the channel is offline and has initialization access to the device.
example
configBusSpeed(chan,busspeed,SJW,TSeg1,TSeg2,numsamples) sets the speed of the channel using specified bit timing calculation factors.
SJW
TSeg1
TSeg2
numsamples
Unless you have specific timing requirements provided for your network, you should use the direct form of the function.
collapse all
Use the direct form of syntax to configure a J1939 channel bus speed.
db = canDatabase('MyDatabase.dbc'); chan = j1939Channel(db,'Vector','CANCaseXL 1',1); configBusSpeed(chan,250000)
Use the advanced form of syntax to configure a J1939 channel bus speed with specific calculation factors.
db = canDatabase('MyDatabase.dbc'); chan = j1939Channel(db,'Vector','CANCaseXL 1',1); configBusSpeed(chan,500000,1,4,3,1)
J1939 channel, specified as a channel object. Use the j1939Channel function to create and define the channel.
j1939Channel
Bit rate for channel, specified as a double. Provide the speed of the network in bits per second.
Example: 250000
250000
Data Types: double
double
Synchronization Jump Width, specified as a double. Define the length of a bit on a network.
Time segment 1, specified as a double, which defines the section before a bit is sampled on a network.
Time segment 2, specified as a double, which defines the section after a bit is sampled on a network.
Number of samples for bit state, specified as a double. Specify the number of samples used for determining the bit state of a network.
Introduced in R2015b
start
stop
transmit
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의