LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-12-2006, 11:28 PM   #1
nick021
Member
 
Registered: Jan 2005
Location: india
Distribution: slackware 10.0 (kernel 2.4.26)
Posts: 104

Rep: Reputation: 15
source code prob.


hi there ..

the printer can be connected to system through serial-port,parallel-port or throug usb..
so i want to know whether the source code for all three connection would be different or would they be same.

regards..
 
Old 02-13-2006, 02:23 AM   #2
oulevon
Member
 
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 438

Rep: Reputation: 30
Quote:
Originally Posted by nick021
hi there ..

the printer can be connected to system through serial-port,parallel-port or throug usb..
so i want to know whether the source code for all three connection would be different or would they be same.

regards..
Do you mean the drivers? Yes I believe they would be different because they are all different interfaces.
 
Old 02-13-2006, 03:21 AM   #3
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
Do you mean the drivers? Yes I believe they would be different because they are all different interfaces.
I don't think this is true. The whole idea of having module drivers is that they are implementation independant. That is, the printer driver will sit on top of, and communicate to either the usb, pp, or serial port driver. As long as the interfaces put out a standard API for communication, the printer driver does not need to know the specifics of how it works.
 
Old 02-13-2006, 09:52 AM   #4
mehuljv
Member
 
Registered: Nov 2004
Posts: 72

Rep: Reputation: 15
I guess it shold be diffrent, when you are connecting printer to usb that means to say you have to write a usb driver, normal printer driver which simply outputs character on parallel port will not work.

Regards...
 
  


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
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 12:48 PM
Source Code help palbox2003 Linux - Newbie 1 02-23-2004 04:10 AM
cooker kernel source prob highhighs Mandriva 1 01-24-2004 10:47 AM
source code vishal_iet Linux - General 5 12-26-2002 11:37 AM
rpm Kernel Source instal prob lcadwell Linux - Distributions 2 07-04-2002 09:15 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

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
Open Source Consulting | Domain Registration