Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure drivers for CAN and RFID

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to configure the drivers of CAN and RFID". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn how to configure the drivers of CAN and RFID.

In the fast development board, in 4412 and 6818, some development boards are configured with RFID by default, and some are configured by default.

Set the CAN driver (IMX6 is configured by default).

The screenshot interface uses the menuconfig interface of the 4418 development board and the configuration methods and paths of 4412 and 6818.

It's exactly the same. Since both CAN and RFID use the SPI interface in these three development boards, CAN and

RFID can only use one of these devices at a time. If you use RFID, you need to remove the driver for CAN. If you make

If you use CAN, you need to drive off the RFID.

For how to use menuconfig, please refer to Chapter 9, Section 9.1-9.3 of the user's manual of the corresponding development board. Ben

The document is introduced after the menuconfig is opened, and the screenshot of the document menuconfig uses 4418 kernel source code.

Driver configuration of 1.RFID

Enter menuconfig as shown in the following figure.

Find "Device Drivers-- >", as shown in the following figure.

Go to the interface "Device Drivers-- >" and find "SPI support" as shown in the following figure.

As shown in the following figure, find "RC522 Module driver support", which corresponds to the driver of RFID. Configuration

Then the RFID driver takes effect, and there will be a RC522 device node in the / dev directory after recompiling and burning; if not configured, the RFID

The driver does not work and there will be no RC522 node.

Driver configuration of 2.CAN

Enter menuconfig as shown in the following figure.

Find "Networking support" as shown in the following figure.

After entering "Networking support", find "CAN bus subsystem support", as shown in the following figure

As shown.

Enter "CAN bus subsystem support" and find "CAN Device Drivers", as shown in the following figure.

Enter "CAN Device Drivers" and find "Microchip MCP251x SPI CAN controllers"

This is shown in the following figure. If you configure "Microchip MCP251x SPI CAN controllers", the CAN driver will take effect and will not be configured.

There is no CAN driver.

At this point, I believe you have a deeper understanding of "how to configure the drivers of CAN and RFID". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report