Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7596

C/C++ • Advice on hardware "device" with kernel module driver

$
0
0
Hey all.
I want to build a usb device to read RFID key fobs/cards. It should plug into a usb port and run under Linux.
I plan on building a device to allow you to log in and authenticate in linux with a fob rather than re-entering your password every time you want to log in or "sudo" etc.

I plan to use a Pico2040 to connect to the reader. This should be fairly simple. I've used the reader before with other micros.

On the PC side I have some code running that implements a Loadable Kernel Module that will output a string of characters/bytes when opened. This is written in C.
I now need to decide how this module will talk to the pico hardware. Should it be serial or should I go more exotic with some form of usb ?
The next bit will be making it authenticate.....

Anyone tried anything like this ?
Any thoughts are welcome.

Thanks in advance.

Statistics: Posted by robsbots — Sat Jun 21, 2025 10:05 am



Viewing all articles
Browse latest Browse all 7596

Trending Articles