=====> 輸出信息:
Starting send data...finish
Starting receive data:
ASCII: 0x77 Character: w
ASCII: 0x77 Character: w
ASCII: 0x77 Character: w
ASCII: 0x2e Character: .
ASCII: 0x6d Character: m
ASCII: 0x79 Character: y
ASCII: 0x7a Character: z
ASCII: 0x72 Character: r
ASCII: 0x2e Character: .
ASCII: 0x63 Character: c
ASCII: 0x6f Character: o
ASCII: 0x6d Character: m
ASCII: 0x2e Character: .
ASCII: 0x63 Character: c
ASCII: 0x6e Character: n
ASCII: 0x0 Character:
測(cè)試結(jié)果
執(zhí)行測(cè)試指令后,應(yīng)用輸出如上類(lèi)似信息即正常。
2.15 CAN 測(cè)試
【測(cè)試說(shuō)明】:采用CAN1發(fā)送,CAN0接收的方式。
【接口標(biāo)識(shí)】:CAN1,CAN2
【系統(tǒng)接口】:can0,can1
測(cè)試準(zhǔn)備
將CAN1的CAN_L與CAN2的CAN_L連接。
將CAN1的CAN_H與CAN2的CAN_H連接。
測(cè)試命令
配置 CAN1(can0):
=====> 輸入指令:
ip link set can0 up type can bitrate 125000
配置 CAN2(can1):
=====> 輸入指令:
ip link set can1 up type can bitrate 125000
CAN1 (can0) 后臺(tái)接收:
=====> 輸入指令:
candump can0 &
CAN2(can1)發(fā)送數(shù)據(jù):
=====> 輸入指令:
cansend can1 1F334455#1122334455667788
=====> 輸出信息:
Starting wdt_driver (timeout: 10, sleep: 15, test: write)
Trying to set timeout value=10 seconds
The actual timeout was set to 10 seconds
Now reading back -- The timeout is 10 seconds
測(cè)試結(jié)果
運(yùn)行測(cè)試命令10秒后,WatchDog超時(shí),系統(tǒng)被復(fù)位。會(huì)在終端看到系統(tǒng)重新啟動(dòng)輸出的信息類(lèi)似如下:
U-Boot 2016.03-svn351 (Jan 25 2019 - 10:13:51 +0800)
=====> 輸出信息:
[1] 1026
Starting wdt_driver (timeout: 4, sleep: 2, test: write)
Trying to set timeout value=4 seconds
The actual timeout was set to 4 seconds
Now reading back -- The timeout is 4 seconds