OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Sep 17, 2019 3:22 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Raspberry PI Keyboard
PostPosted: Mon Aug 19, 2019 1:03 am 
Offline
Member
Member

Joined: Tue Oct 01, 2013 2:50 am
Posts: 118
Location: Budapest, Hungary
Hi,

I am planning to by my first Raspberry Pi. I read tutorials and there is one thing I don't understand.
I thought that the first thing we needed to implement was the USB-keyboard driver.
I was surprised to see that the tutorials use the UART to get the keyboard-input.
Do we need to buy extra hardware for the USB-to-UART conversion or the Raspberry Pi does that for us?
I know only a little about hardware ...

Regards,
rob


Top
 Profile  
 
 Post subject: Re: Raspberry PI Keyboard
PostPosted: Mon Aug 19, 2019 1:27 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 3465
Location: Chichester, UK
Those tutorials are referring to serial input via a terminal application running on another computer. Depending upon the computer you need a serial to Pi serial cable or - more likely - a USB to Pi serial cable (e.g. https://uk.farnell.com/adafruit-industr ... gKMTPD_BwE ) These cables connect to the gpio pins on the Pi.

To get input from a USB keyboard you need to write (or find) a USB driver (e.g. https://github.com/rsta2/uspi ).


Top
 Profile  
 
 Post subject: Re: Raspberry PI Keyboard
PostPosted: Mon Aug 19, 2019 1:40 am 
Offline
Member
Member

Joined: Tue Oct 01, 2013 2:50 am
Posts: 118
Location: Budapest, Hungary
Thanks!


Top
 Profile  
 
 Post subject: Re: Raspberry PI Keyboard
PostPosted: Wed Aug 21, 2019 2:42 am 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 11:33 pm
Posts: 3874
Location: Eindhoven
Note that the driver @iansjack linked is relevant for Rpi 1-3 (including 3b+), but not Rpi4 which uses an XHCI controller for the USB ports.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group