need help to write a comedi-driver for a serial connected device

Hi!

I want to write a comedi-driver for a simple (self-made) DAQ-Device
which is connectet via the serial port. A µC is already managing a lot
of the internal stuff so I only have to send a specific byte-sequence
and the device starts sampling, sending the data bytes over the serial
line to the PC.

My questions is:
 * Is there a simple way to integrate such a device into the comedi-
   framework _without_ having to dig into linux-kernel-module hacking?

In principle there is no additional kernel-driver necessary. I already
have a small userspace-program to open the/dev/ttyXYZ,and demultiplex
and print out the values. My main intention is to acces the device via
LabView so I need acces to it through the comedi-API (right?).

I've already had a look at drivers/serial2002.c in hope to to adapt it
for my purposes but I'm seeing no beginning and no end.

 * Has anyone some hints or example code for this case?

 * If I can't avoid kernel-programming, where in serial2002.c
   I have to put my decoding routine (that takes the serial bytes and
   transforms them into channel-value pairs)?

 * Is there any additional documentation apart from www.comedi.org/doc/
   on how to write comedi-drivers.


Thanks for helping!
(and sorry for my bad english :-)

Christian Richter
-- 
------------------------------------------------------
      Technische Universität Berlin - Fakultät IV
 Insitut für Technische Informatik und Mikroelektronik
  - Fachgebiet Prozessdatenverarbeitung und Robotik -
            Einsteinufer 17 - 10587 Berlin
                  Sekreteriat: EN 10
 ------------------------------------------------------
    _/_/_/   _/_/_/    Christian Richter <uni_at_ch-r.de>
   _/       _/  _/     Homepage: http://www.ch-r.de/
  _/       _/_/        ICQ#: 13698124   GPG: 5368 832C
 _/_/_/   _/  _/

Received on 2004-07-26Z10:52:37