Page 1 of 1

Raspberry + Arduino

Posted: Thu Aug 13, 2015 8:35 am
by Metalistik
Hi

I wanted to create a automated login system with an RFID-System. So I need to emulate a USB keyboard from the raspy to the computer.

Question: Is it possible to emulate a usb keyboard from the raspy to the computer or do I need for example an arduino who plays the USB client and types the serial signals from the raspy to the computer?

Re: Raspberry + Arduino

Posted: Thu Aug 13, 2015 1:23 pm
by KLL
i think i am not the only one who has problems to understand what you want to do.
the serial signals from the raspy to the computer
you can not connect a PC USB with a RPI USB.
automated login system with an RFID-System
i play arduino and RFID, but to emulate a keyboard for answering a login window i did not try.
but if there is a way it might be the arduino "leonardo" family ( micro pro has the same chip )
what can be mouse or keyboard.

i see no use of a RPI in that project unless it will be the computer you want login to??

Re: Raspberry + Arduino

Posted: Thu Aug 13, 2015 1:38 pm
by Metalistik
So basically the username and the password are stored encrypted on the badge for example. And the keyboard emulator should just types these data into the login screen. Like <Username><Tab><Password><Enter>.
The user should be still able to use the keyboard on the computer, so the first time the user logs in and holds his badge to the rfid writer the data will be transmitted. Thats the difficulty about that (make it possible to still use the keyboard).

Re: Raspberry + Arduino

Posted: Thu Aug 13, 2015 1:44 pm
by Metalistik
I'm new in microcontrollers anyways but I need to order my hardware soon.

So im just evaluating different opportunities of combinations, because I didnt find a single board that manages all the points.

Re: Raspberry + Arduino

Posted: Thu Aug 13, 2015 4:17 pm
by KLL
Metalistik wrote: Thats the difficulty about that (make it possible to still use the keyboard).
actually i think when i connect a USB keyboard to my laptop i can use both keyboards parallel?

but the keyboard emulator you want to build would be as stupid as a keyboard,
it would not know if there is a login window where it sends the user password combination to,
it could be, that you are logged in already, use word ...
and the keyboard emulator detects your "batch" and sends your user and password in clear text into that word document! so while a RFID should add a additional security level
( user, password AND RFID batch ID ) your keyboard emulator only brings more risks??
Metalistik wrote:a single board that manages all the points
again, you could start with a arduino leonardo and a RFID reader shield

Re: Raspberry + Arduino

Posted: Thu Aug 13, 2015 4:46 pm
by drgeoff
Restating and amplifying a point KLL made earlier. You cannot (to all reasonable intents and purposes) emulate any USB peripheral using a RPi.

USB is a master-slave protocol. Peripherals are slaves. Computers and RPis are masters. RPis cannot readily be configured as slaves.

Re: Raspberry + Arduino

Posted: Thu Aug 13, 2015 4:49 pm
by Metalistik
KLL wrote:but the keyboard emulator you want to build would be as stupid as a keyboard,
it would not know if there is a login window where it sends the user password combination to,
it could be, that you are logged in already, use word ...
and the keyboard emulator detects your "batch" and sends your user and password in clear text into that word document!
Yes you are right. That is pretty stupit :roll:
But thanks for your support.