Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Query : USB Keyboard
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
chetan patil  
View profile  
 More options Apr 4 2012, 1:51 am
From: chetan patil <chtpa...@gmail.com>
Date: Wed, 4 Apr 2012 11:21:47 +0530
Local: Wed, Apr 4 2012 1:51 am
Subject: Query : USB Keyboard

Hi,

Anyone here knows proper working of a Keyboard. What I know is that
there are make and break code for every key. However where does the scan
code is : D+ or D- PIN of USB ?

I want to understand this in terms of interfacing it to some MCU not MPU.

Please share your prowess.

Thanks.

--
Thank You and Warm Regards,

Chetan Arvind Patil,
www.chetanpatil.info


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Surendra Kumar  
View profile  
 More options Apr 4 2012, 3:54 am
From: Surendra Kumar <p.surendraku...@gmail.com>
Date: Wed, 4 Apr 2012 13:24:26 +0530
Local: Wed, Apr 4 2012 3:54 am
Subject: Re: Query : USB Keyboard

Chetan,

Best Gude : http://retired.beyondlogic.org/keyboard/keybrd.htm

helped me in interfacing a At Keyboard to the 8051 a decade ago

Regards,
Surendrakumar

On 4 April 2012 11:21, chetan patil <chtpa...@gmail.com> wrote:

--
regards
Surendra Kumar

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J T Dsouza  
View profile  
 More options Apr 4 2012, 5:36 am
From: J T Dsouza <jtd1...@gmail.com>
Date: Wed, 4 Apr 2012 15:06:55 +0530
Local: Wed, Apr 4 2012 5:36 am
Subject: Re: Query : USB Keyboard

You are mixing up two things (or rather several things).

The original keyboard i/f was a simple 2 wire i2c like interface. It later
aquired bidirectional capabilities.

The usb device is a phy layer with a software stack (USB HID, storage, bulk
etc). Keboard scan codes have to be picked up by he software stack (USB
HID) and sent over the phy layer.  D+ and D- act as balanced differential
lines and carry data.

On Wed, Apr 4, 2012 at 1:24 PM, Surendra Kumar <p.surendraku...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
chetan patil  
View profile  
 More options Apr 4 2012, 5:41 am
From: chetan patil <chtpa...@gmail.com>
Date: Wed, 4 Apr 2012 15:11:00 +0530
Subject: Re: Query : USB Keyboard

Hi,

On Wed, Apr 4, 2012 at 3:06 PM, J T Dsouza <jtd1...@gmail.com> wrote:

> You are mixing up two things (or rather several things).
> The original keyboard i/f was a simple 2 wire i2c like interface. It later
> aquired bidirectional capabilities.
> The usb device is a phy layer with a software stack (USB HID, storage,
> bulk etc). Keboard scan codes have to be picked up by he software stack
> (USB HID) and sent over the phy layer.  D+ and D- act as balanced
> differential lines and carry data.

So you mean to say standalone MCU can't capture USB Keyboard scan codes and
store or display it ?

> On Wed, Apr 4, 2012 at 1:24 PM, Surendra Kumar <p.surendraku...@gmail.com>wrote:

>> Best Gude : http://retired.beyondlogic.org/keyboard/keybrd.htm

>> helped me in interfacing a At Keyboard to the 8051 a decade ago

My query is for USB type Keyboards. Not AT Keyboard.

--
Thank You and Warm Regards,

Chetan Arvind Patil,
www.chetanpatil.info


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anant Gokhale  
View profile  
 More options Apr 4 2012, 7:10 am
From: Anant Gokhale <anant.v.gokh...@gmail.com>
Date: Wed, 04 Apr 2012 16:40:40 +0530
Local: Wed, Apr 4 2012 7:10 am
Subject: Re: Query : USB Keyboard

Chetan,

The web link referred by Surendra Kumar is excellent link to understand
how PC AT keyboards used to work with PS/2 interface. PS/2 keyboards
have normally 80C51 compatible CPU inside which communicates with PC
CPU. This CPU generates scan codes and sends them to BIOS of PC which
interprets the keys correctly. With USB keyboard, same legacy scan codes
are used, but physical layer is USB. Keyboard gets enumerated as HID
class device to PC. So to interface PC USB keyboard to your MCU, your
MCU needs to do whatever PC does with its USB host stack for HID class.
You will need to select a MCU already having a USB host with HID class
device driver.  Microchip has one demo board with similar application
and quite a few devices to select from. Visit www.microchip.com/usb for
further info.

Thanks,
Anant.

On 04-04-2012 15:11, chetan patil wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J T Dsouza  
View profile  
 More options Apr 4 2012, 7:39 am
From: J T Dsouza <jtd1...@gmail.com>
Date: Wed, 4 Apr 2012 17:09:30 +0530
Local: Wed, Apr 4 2012 7:39 am
Subject: Re: Query : USB Keyboard

Not without usb hid software and usb hardware OR bitbanged io pretending to
be usb hardware. search for avr usb bit banging.

>> On Wed, Apr 4, 2012 at 1:24 PM, Surendra Kumar <p.surendraku...@gmail.com
>> > wrote:

>>> Best Gude : http://retired.beyondlogic.org/keyboard/keybrd.htm

>>> helped me in interfacing a At Keyboard to the 8051 a decade ago

> My query is for USB type Keyboards. Not AT Keyboard.

USB type keyboards are almost always AT keyborads - AT scan codes.

There are  some exceptions like newton  keyboards and HMI keyboards. But we
will let that pass as insignificant.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
chetan patil  
View profile  
 More options Apr 4 2012, 8:57 am
From: chetan patil <chtpa...@gmail.com>
Date: Wed, 4 Apr 2012 18:27:17 +0530
Local: Wed, Apr 4 2012 8:57 am
Subject: Re: Query : USB Keyboard

Hi,

Considering the scenario :

1) USB female port is connected to MCU via Rx & Tx at D+ & D-
2) Keyboards USB Male port gets attached to above USB Female connector.

Now if I press a key on Keyboard then a make and brake code will be formed
and can't the
MCU just use a loop to scan the code and gather the make brake code and
with a look up table
send that to lets say a LCD display ?

After all its a serial communication.

On Wed, Apr 4, 2012 at 5:09 PM, J T Dsouza <jtd1...@gmail.com> wrote:

--
Thank You and Warm Regards,

Chetan Arvind Patil,
www.chetanpatil.info


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anant Gokhale  
View profile  
 More options Apr 4 2012, 9:04 am
From: Anant Gokhale <anant.v.gokh...@gmail.com>
Date: Wed, 04 Apr 2012 18:34:47 +0530
Local: Wed, Apr 4 2012 9:04 am
Subject: Re: Query : USB Keyboard

Well Chetan,

USB world is not so easy as you think. Because USB offers plug and play
features, companies have agreed on protocol stack and device drivers
long time back and all manufacturers are adhering to that. So unless you
implement a USB host driver, you will not get from third party keypad,
which faithfully adheres to HID class implementation which works
seamlessly with any make PC motherboard.

Thanks,
Anant.

On 04-04-2012 18:27, chetan patil wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J T Dsouza  
View profile  
 More options Apr 4 2012, 3:35 pm
From: J T Dsouza <jtd1...@gmail.com>
Date: Thu, 5 Apr 2012 01:05:45 +0530
Local: Wed, Apr 4 2012 3:35 pm
Subject: Re: Query : USB Keyboard

Why dont you try out and tell us the results. As I said in my previous
mail, all you need is a little bit banging on the D+D- to simulate a USB
HID endpoint.

Also trim the irrelevant portions of your mail and do not top or bottom
post.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »