In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
ITOP-iMX6UL development board-MiniLinux-CAN test use analysis, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.
This introduces the debugging steps of iTOP-iMX6UL CAN experiment for iMX6UL development board under the environment of MiniLinux system. Mention to the user
"can_libs.rar", "can_tools.zip" and "can_test.zip" packages are provided, which are required by can tools.
Library files, can tool binaries and can experimental C program source code.
CAN is the abbreviation of Controller Area Network and the international standard serial communication protocol of ISO. In recent years
Recently, its high reliability and good error detection ability have been paid attention to, and it has been widely used in automobile computer control system.
And the industrial environment with bad ambient temperature, strong electromagnetic radiation and high vibration.
1 hardware connection
The author tests can, using an iTOP-iMX6UL development board. IMX6UL comes with two can buses, close to
The network card is can1 (corresponding node can0), and near the serial port is can2 (corresponding node can1). The board is can +.
Connect +,-Connect -, as shown in the following figure.
2 canconfig tool configuration
First configure the tools and library files, and extract the compressed packages "can_libs.rar" and "can_tools.zip" to get
"can_tools" and "can_libs", copy the extracted files to the tf card or u disk, as shown in the following figure.
Copy the tools under can_tools to the / bin directory and use the command "cp-r can_tools/* / bin/", as shown in
This is shown in the following figure.
Copy the library files under the can_libs.rar package to the / lib/ directory and use the command "cp-r can_libs/* / lib/"
This is shown in the following figure.
Use the command "cd / lib" to go to the / lib directory and use "ln-s libsocketcan.so.2.2.1"
Libsocketcan.so "and" ln-s libsocketcan.so.2.2.1 libsocketcan.so.2 "commands to generate link text
Pieces, as shown in the following figure.
3 the use of testing software
Use the command "ifconfig-a" to query all network devices under the serial console, as shown in the following figure, you can query
To can0 and can1 devices.
Extract the executable file from "iTOP-IMX6UL-MiniLinux-CAN_V1.0" to "can_test" directory
"can_test" is copied to the development project, as shown in the following figure.
On the serial console, first use the command ". / can_test-r can0 &" to make the can0 receive, as follows
As shown in the figure.
Then on the serial console, use the command ". / can_test-s can1", use can1 to send data, and develop the board.
Can0 can receive the program sent by can1, as shown in the following figure, you can see the print message. The box is printed by can1.
Send a message, and the circle is the prompt message received by can0.
More technical posts can follow http://bbs.topeetboard.com/.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.