17
TPC-71W Series User Manual
Chapter 3
Linux Ubuntu
Check can0 status:
Send message (“123#11") to socket can0:
Recv message from socket can0:
3.6
Watchdog Setting
Enable wdt with timeout value:
Enable wdt for keepalive mode (timeout=20s, feed wdt each 10s):
Disable wdt:
root@tpc71wn10pa:~#
ip -details link show can0
3: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT
group default qlen 10
link/can promiscuity 0
can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
bitrate 125000 sample-point 0.875
tq 500 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
flexcan: tseg1 4..16 tseg2 2..8 sjw 1..4 brp 1..256 brp-inc 1
clock 30000000
root@tpc71wn10pa:~# cansend can0 123#11
root@tpc71wn10pa:~# candump can0
root@tpc71wn10pa:~#
cd /usr/Advantech/EAPI_test
root@tpc71wn10pa:/usr/Advantech/EAPI_test#
./testdl_wdt -s <timeout>
# For example(enable wdt & set timeout=10s):
root@tpc71wn10pa:/usr/Advantech/EAPI_test#
./testdl_wdt -s 10
MaxDelay:0 MaxEventTimeout:0 MaxResetTimeout:6553
WDT start.
WDT timeout has been set to 10 seconds.
After that, WDT will reset CPU.
root@tpc71wn10pa:~#
cd /usr/Advantech/EAPI_test
root@tpc71wn10pa:/usr/Advantech/EAPI_test#
./testdl_wdt -k
MaxDelay:0 MaxEventTimeout:0 MaxResetTimeout:6553
WDT start.
WDT timeout has been set to 20 seconds.
After that, WDT will reset CPU.
WDT keep alive.
WDT keep alive.
......
root@tpc71wn10pa:~#
cd /usr/Advantech/EAPI_test
root@tpc71wn10pa:/usr/Advantech/EAPI_test#
./testdl_wdt -d
MaxDelay:0 MaxEventTimeout:0 MaxResetTimeout:6553
WDT stop.
Содержание TPC-71W Series
Страница 1: ...User Manual TPC 71W Series 7 ARM Cortex A9 Touch Panel Computer 26 20 1 02 27927818...
Страница 10: ...TPC 71W Series User Manual x...
Страница 12: ...TPC 71W Series User Manual xii...
Страница 13: ...Chapter 1 1 General Information...
Страница 19: ...Chapter 2 2 System Setup...
Страница 24: ...TPC 71W Series User Manual 12...
Страница 25: ...Chapter 3 3 Linux Ubuntu...
Страница 32: ...TPC 71W Series User Manual 20...
Страница 33: ...Appendix A A Pin Assignments...