Time And Date Setting; Can Setting - Advantech TPC-71W Series User Manual

7" arm cortex-a9 touch panel computer
Table of Contents

Advertisement

Disconnect from network:
root@tpc71wn10pa:~# cd /usr/Advantech/Wifi_test
root@tpc71wn10pa:/usr/Advantech/Wifi_test# ./wpa_off.sh
3.4

Time And Date Setting

Set system time (2019/01/01 13:25:00):
root@tpc71wn10pa:~# date -s "2019/01/01 13:25:00"
Synchronize time from the NTP server:
root@tpc71wn10pa:~# ntpdate <NTPSERVERIP>
Reset RTC hardware clock time (use current system time):
root@tpc71wn10pa:~# hwclock -w
Reset system time (use RTC hardware clock time):
root@tpc71wn10pa:~# hwclock -s
Set system time zone (use Shanghai time):
root@tpc71wn10pa:~# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
root@tpc71wn10pa:~# sync
3.5

CAN Setting

TPC-71W support flexCAN. The below table shows the detailed information of flex-
CAN on TPC-71W and here we list the basic command to use CAN on TPC-71W.
HW
flexCAN0
Setting: Open flexCAN device (125000 biterate, loopback off)
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
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)
Interrupt:31
TPC-71W Series User Manual
DEVICE
can0
MTU:16
Metric:1
TX bytes:0 (0.0 B)
16
MODE
socket can

Advertisement

Table of Contents
loading

Table of Contents