LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 04-04-2004, 06:15 PM   #1
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
simplest type of device driver to learn?


i've been reading 'linux device drivers' for a bit now, and i need to create a driver for some sort of device for my project for school. i originally wanted to do this for a infrared receiver / remote, but decoding IR signals is like a whole project itself. i need to do something a bit simpler but im not sure of what device i could use?? it would be some sort of character device as i havent gotten to block/network drivers yet, any ideas?
 
Old 04-04-2004, 07:27 PM   #2
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
if you view the bit patterns from the IR remote-control on a CRT, and accordingly write the controller, it shouldnt take too long.
all you need is a remote-controller, some ir/photo diodes, and an oscilloscope to view the patterns. each key/button is just a bunch of voltage levels with a 'start' and 'stop' level at the ends.

maybe you can even start writing drivers from scratch for some new product? that'll be fun.
 
Old 04-04-2004, 09:24 PM   #3
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Original Poster
Rep: Reputation: 30
oscilloscopes, those are not too cheap it seems.
 
Old 04-05-2004, 12:37 AM   #4
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
ohh, i thought since u were doin a school project, u might find them in the labs (i had done a very similar project in my undergrad as project.)
 
Old 04-05-2004, 01:01 AM   #5
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Original Poster
Rep: Reputation: 30
hm, maybe u're right, i hadn't thought of that. but other than that, what is a real basic simple device that works on either serial or parallel port?
 
Old 04-06-2004, 12:09 AM   #6
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Original Poster
Rep: Reputation: 30
w0000000000000t.. i finally got my infrared receiver to actually show some signs of life!! i was really getting frustrated the last week b/c i couldnt even establish if i had a broken remote or if i just wasnt probing for it correctly. anyhow i finally got it to generate interrupts correctly so i'll stick with this.
 
  


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
mouse device type iskiri Suse/Novell 3 11-18-2005 07:53 PM
How To Learn IDE Device Driver mehuljv Programming 2 10-26-2005 03:57 PM
Hotplug, USB device type identification tlaresearch Programming 2 07-21-2005 09:55 AM
/dev (file type: socket device?) blackzone Linux - Networking 1 08-10-2004 05:15 AM
determine type of device for USB devices lyar1031 Linux - Newbie 2 07-29-2004 09:02 PM


All times are GMT -5. The time now is 08:13 PM.

Main Menu
Advertisement
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