30
Customize the embedded system based on
Your Idea
7.10 CAN
Connect CAN ports of Board A and Board B with the test line.
For Board A, execute the follow commands at
Serial terminal A
to set CAN_A as Receiver.
#
ip link set can0 down
#
ip link set can0 type can bitrate 1000000 dbitrate 3000000 fd on
#
ip link set can0 up
#
candump can0
(set CAN0 as receive)
For Board B, execute the follow commands at
Serial terminal B
to set CAN_B as Transmitter.
#
ip link set can0 down
#
ip link set can0 type can bitrate 1000000 dbitrate 3000000 fd on
#
ip link set can0 up
#
cansend can0 123##1DEADBEEF
(CAN0 send characters 0xDE 0xAD 0xBE 0xEF)
The Transmitter and receiver can be converted by execute the command
#
candump can0
(Receiver)
or
#
cansend can0 123#DEADBEEF
(Transmitter)
7.11 RS485
Connect the RS485 ports of Board A and B with the test line.
For Board A, execute the follow commands at
Serial terminal A
to set RS485 as Receiver or send.
# com /dev/ttyS7 115200 8 0 1
For Board B, execute the follow commands at
Serial terminal B
to set RS485 as Receiver or send.
# com /dev/ttyS7 115200 8 0 1
Summary of Contents for EM3568
Page 1: ...EM3568 Debian10 User Manual V1 0 www boardcon com Boardcon Embedded Design ...
Page 8: ...7 Customize the embedded system based on Your Idea ...
Page 9: ...8 Customize the embedded system based on Your Idea ...
Page 27: ...26 Customize the embedded system based on Your Idea ...
Page 28: ...27 Customize the embedded system based on Your Idea 7 9 Bluetooth Click the red box below ...
Page 29: ...28 Customize the embedded system based on Your Idea Click Devices Click Search ...
Page 36: ...35 Customize the embedded system based on Your Idea ...