LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-19-2007, 07:34 AM   #1
ramesh6056
Member
 
Registered: May 2007
Posts: 89

Rep: Reputation: 15
Red face USB interfacing


Hi.. all...

I want to interface a switch with the USB port.. so that i can receive the interrupt from that switch and use it in my application...

Could any one please help me in guiding the procedure??
 
Old 05-19-2007, 10:54 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,965

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
Need some additional information. What is this switch you would like to connect to the USB port?
 
Old 05-19-2007, 11:12 PM   #3
ramesh6056
Member
 
Registered: May 2007
Posts: 89

Original Poster
Rep: Reputation: 15
Usb interfacing

Actually we are developing an application in LINUXwhich needs only one key for its operation... i.e., only one key acts as the input... we can not interface an keyboard for that purpose... so i need to attacth a simple key to the usb(a switch..just a simple ON/OFF switch)..so that i can interact with the application...how do i proceed?
 
Old 05-20-2007, 02:35 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,965

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
I found these devices.
http://www.delcom-eng.com/products_USBFSW.asp
or
http://www.orin.com/access/swifty/index.htm

These devices still use the hid USB modules. If your wanting something very simple you could connect a switch to the parallel port. No extra modules are required.
 
Old 05-20-2007, 10:52 PM   #5
ramesh6056
Member
 
Registered: May 2007
Posts: 89

Original Poster
Rep: Reputation: 15
Usb interfacing

Hi... thanks for your reply...

But...This is like a project and i don't need to buy a readymade switch...I need to do it on my own..and my project needs the switch only on the USB..because the final product is like an embedded system which does not have parallel or serial but only the USB...

So, i don't know in what manner the data (high or low) is accepted by the LINUX..(protocol mechanisms) and what signal will be generatedby the kernel for that appropriate action etc...

I think you have understood what i mean.. please help me in solving this problem...Any links? or any one have tried this before?
 
Old 05-21-2007, 01:14 AM   #6
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
You cannot just directly connect a switch to the USB bus and receive data from it. You will need an interface chip (like an HID chip) or a microcontroller that speaks USB.
 
Old 05-21-2007, 11:11 PM   #7
ramesh6056
Member
 
Registered: May 2007
Posts: 89

Original Poster
Rep: Reputation: 15
USB interfacing...

thanks for your reply...

Is there any opensource program (firmware)available for this project?(i.e the basic protocol inititation program)...that has to be flashed into the microcontroller....any examples and links??
 
Old 05-23-2007, 03:58 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,965

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
Since you desire to create a project from scratch.
http://www.lvr.com/usb.htm
http://www.futurlec.com/USBDevBoard.shtml
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AX.25 interfacing alek66 Linux - Hardware 0 12-01-2006 09:19 AM
Interfacing with devices worldgnat Programming 9 07-17-2006 11:35 PM
interfacing TI-83 1337 Twinkie Programming 2 10-15-2004 07:09 PM
Interfacing with websites in C smackboy Programming 2 01-29-2004 03:38 AM
Interfacing Video camera with USB port Tanyakolee Linux - General 1 06-12-2001 02:17 AM


All times are GMT -5. The time now is 08:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration