public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* writing device drivers for commercial hardware
@ 2001-12-26 17:57 toxischerabflussreiniger
  2001-12-26 18:48 ` Alan Cox
  2001-12-26 18:50 ` Bjoern A. Zeeb
  0 siblings, 2 replies; 6+ messages in thread
From: toxischerabflussreiniger @ 2001-12-26 17:57 UTC (permalink / raw)
  To: linux-kernel

As I'm new to linux kernel development I wonder how to write a 
device driver, say for a card reader, if you don't have some 
documentation about it.
How do you manage that? Searching for it in the web? I really don't 
know ... there's a small book with my card reader but you won't find 
a single line about technical stuff in it.
It's a (pretty simple and cheap) card reader connected to serial port.

Many thanks.


-----------------
Marc,
<toxischerabflussreiniger@gmx.net>

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: writing device drivers for commercial hardware
@ 2001-12-26 18:36 Manfred Spraul
  0 siblings, 0 replies; 6+ messages in thread
From: Manfred Spraul @ 2001-12-26 18:36 UTC (permalink / raw)
  To: toxischerabflussreiniger; +Cc: linux-kernel

I'd start with:

- read the existing smartcard drivers
- check the windows driver - there is software that monitors the serial port and logs all calls.
http://www.sysinternals.com/ntw2k/freeware/portmon.shtml
Try to reverse engineer the protocol between the driver and the smartcard reader.
- open the smartcard reader, and check if you can identify the producer of the ICs that are used. Then try to find the datasheet.
google often helps.
- Ask the company that makes the smartcard reader - perhaps they'll help you?

I'm not sure if the driver should be user space or kernel space, but I'd definitively start in userspace.

Good luck,
--
    Manfred



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: writing device drivers for commercial hardware
@ 2001-12-31 10:08 Sven Geggus
  0 siblings, 0 replies; 6+ messages in thread
From: Sven Geggus @ 2001-12-31 10:08 UTC (permalink / raw)
  To: linux-kernel

In article <3C2A2BF6.9718.4C5955@localhost> you wrote:

> As I've said, this is a really cheap one, I don't think that it's well-
> known.
> It's from ELV and called 'GSM- und Chipkartenlesegerät', so, it's a 
> German one. Sorry for that.
> But thanks for all your hints and tips. I'll keep on trying.

Wegen diesem teil hab ich schon bei ELV angefragt:

Keinerlei Doku im Gegensatz zu den sonstigen ELV Produkten. Ich nehme an,
dass es sich um Taiwan Schrott handelt, den die selbst nur durchreichen.

Wie die Vorredner schon sagten: Meist braucht man fuer seriell
angeschlossenen Geraete definitiv keinen Kernelreiber. Der vorhandene
Treiber fuer die serielle Schnittstelle reicht aus.

Conrad verkauft ein ebensobilliges Teil von Towitoko, fuer das es
Linuxtreiber gibt (stichwort scez).

Gute Links rund um das Thema Programmierung der seriellen Schnittstelle
unter Linux hat die Homepage eines ganz anderen Projektes:

http://wth.berlios.de

Sven


-- 
"I'm a bastard, and proud of it"
                          (Linus Torvalds, Wednesday Sep 6, 2000)

/me is giggls@ircnet, http://geggus.net/sven/ on the Web

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-12-31 10:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-26 17:57 writing device drivers for commercial hardware toxischerabflussreiniger
2001-12-26 18:48 ` Alan Cox
2001-12-26 18:50 ` Bjoern A. Zeeb
2001-12-26 18:58   ` toxischerabflussreiniger
  -- strict thread matches above, loose matches on Subject: below --
2001-12-26 18:36 Manfred Spraul
2001-12-31 10:08 Sven Geggus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox