In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
The document introduces the debugging steps of iTOP-4418 CAN experiment under the environment of MiniLinux system. "can_libs.rar", "can_tools.zip" and "iTOP-4418-MiniLinux-CAN_V1.0.rar" compression packages are provided, which are the library files required by can tools, can tool binaries and can experimental C program source code, respectively.
CAN is the abbreviation of Controller Area Network and the international standard serial communication protocol of ISO. In recent years, attention has been paid to its high reliability and good error detection ability, and it has been widely used in automotive computer control systems and industrial environments with bad ambient temperature, strong electromagnetic radiation and high vibration.
1 hardware connection
Test can, using two quick 4418 development boards. Need two optional CAN bus modules, row bus one-segment development board "GPIO/CAN/485", can module + connection,-connection -, as shown in the following figure.
2 canconfig tool configuration
First of all, configure the tools and library files, decompress the compressed packages "can_libs.rar" and "can_tools.zip" to get "can_tools" and "can_libs", and copy the extracted files to the tf card or u disk, as shown in the following figure.
Then mount the tf card or USB disk to the development board (see section 11.3.3 of the user manual), as shown in the following figure.
Copy the tools to the / bin directory and use the command "cp-r can_tools/* / bin/", as shown in the following figure.
Use the command "cp-r can_libs/* / lib/" to copy the library file to the / lib directory, as 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"
The "libsocketcan.so" and "ln-s libsocketcan.so.2.2.1 libsocketcan.so.2" commands generate the link file, as shown in the following figure.
3 the use of testing software
After decompressing "iTOP-4418-MiniLinux-CAN_V1.0", the "can_test" directory recorded the executable text "can_test" and copied it to the U disk, as shown in the following figure.
Then use the command "mount / dev/udisk / mnt/disk/" to mount the u disk to the development board, use the command "cp-r / mnt/disk/can_test / topeet/" to copy the executable file to the "/ topeet" directory, and use the command "umount / dev/udisk" to unmount it, as shown in the following figure.
Copy the executable file to another development board in the same way, use the command "cd / topeet" to enter the "/ topeet" directory, we can use the command "ls" to see "can_test", as shown in the following figure.
On a development board, use the command ". / can_test-r can0 &" to run the receiver, as shown in the following figure.
Then on another development board, use the command first. /
Can_test-s can0 ", run the sender, as shown in the following figure.
The first development board will receive the message, as shown in the following figure.
Transferred from: http://www.topeetboard.com
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.