Advantech TPC-71W handleiding
Handleiding
Je bekijkt pagina 29 van 36

17 TPC-71W Series User Manual
Chapter 3 Linux Ubuntu
Setting: Open flexCAN device (125000 biterate, loopback off)
Check can0 status:
Send message (“123#11") to socket can0:
Recv message from socket can0:
3.6 Watchdog Setting
Enable wdt with timeout value:
root@tpc71wn10pa:~# ip link set can0 down
root@tpc71wn10pa:~# ip link set can0 up type can bitrate 125000 loopback off
root@tpc71wn10pa:~# ip link set can0 up
root@tpc71wn10pa:~# ifconfig can0
can0
Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:31
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.
Bekijk gratis de handleiding van Advantech TPC-71W, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.
Productinformatie
Merk | Advantech |
Model | TPC-71W |
Categorie | Niet gecategoriseerd |
Taal | Nederlands |
Grootte | 4217 MB |