Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 07-26-2006, 02:52 AM   #1
LQ Newbie
Registered: Dec 2005
Location: Hong Kong
Distribution: Ubuntu 8.08
Posts: 10

Rep: Reputation: 0
Unhappy How to start with programming serial device drivers in Linux

Hello all,

I'm a newbie to Linux. I have installed Ubuntu 6.06
gcc 4.03

I need to write a device driver for serial card reader.

Please help me on what are the things i need to consider or the information that i need to gather to start on this.

I'm able to talk to the device on Hyperterminal.

I currently have the device datasheets.
Old 07-27-2006, 01:40 AM   #2
Registered: May 2004
Posts: 552

Rep: Reputation: 31
If all you need to do is send bytes to the card reader and read bytes from the card reader you don't have to create your own device driver. The one supplied with your Linux distro can be used.
I have an example user program that opens the serial port for IO, you can download it here.

Last edited by randyding; 03-19-2009 at 11:46 PM. Reason: web site is now gone, removed url
Old 08-21-2006, 02:45 AM   #3
LQ Newbie
Registered: Dec 2005
Location: Hong Kong
Distribution: Ubuntu 8.08
Posts: 10

Original Poster
Rep: Reputation: 0


I'll get started with it..
and will post if i face difficulties


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
Serial Port Programming/virtual Device MikeGra Programming 3 04-16-2006 04:35 PM
I want some guide to know the basic about device drivers programming in linux. kadhiravan.r Linux - Software 2 07-18-2005 08:07 AM
Kernel Programming/Device Drivers Matir Programming 2 04-06-2005 04:07 PM
Linux serial port programming clash Onyx^ Programming 10 09-01-2004 06:15 AM
Problem Programming Serial Ports in Linux 7.2 esi-eric Linux - Hardware 1 07-19-2004 01:03 PM

All times are GMT -5. The time now is 06:18 PM.

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