
Vantron
| Embedded in your success, Embedded in your better life
World-leading provider of embedded/IoT products and solutions
VT-SBC-3568 | User Manual 34
3.5
Use MySQL
1.
Log in MySQL;
mysql -uroot
2.
Use MySQL database;
use mysql;
3.
Set passwords for rootuser;
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('
123456
');
4.
Allow remote connection;
update user set host='%' where user='root' and host='localhost'
;
FLUSH PRIVILEGES;
3.6
Interface Configuration
3.6.1
Serial port
VT-SBC-3568 offers 6 UART ports, including 2 RS485 ports (UART 6 & UART 7, corresponding
to nodes ttyS6 & ttyS7), 1 TTL (UART 9, corresponding to ttyS9), 2 RS232 (UART 3 & UART
4, corresponding to ttyS3 and ttyS4), and 1 RS232 (UART 2) used for debugging.
1.
Input the node of the serial port to enable serial communication (e.g., RS485_1);
# rs485_active /dev/
ttyS6
2.
Send data
(
“TEST”
)
to the serial port and receive the data.
# echo
TEST
> /dev/
ttyS6
# cat /dev/
ttyS6
&
the serial port cannot receive and transmit data at the same time.
3.6.2
CAN
VT-SBC-3568 offers two CAN buses (CAN0 & CAN1).
Configure the CAN buses and run the commands:
# ip link set can0 up type can bitrate 125000
IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
# ip link set can1 up type can bitrate 125000
IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
#ifconfig
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-
00