Re: DIO with the parport

On 06/09/05 16:31, Martyn Welch wrote:
> If I remember correctly this is because you probably have the kernels parallel 
> port driver installed.

Sounds likely!

> If this is a module (can see by using "lsmod"- as root - to show the modules 
> in use, think its called "parport") you are in luck. Remove it with "rmmod 
> parport". You will need to remove the modules with depend on it first.

There's another module called "parport_pc" which sits on top of "parport".

> If this is not the case then you will have to check whether it is compiled 
> into the kernel. This might depend a little on which distribution you are 
> using - might need to do a bit of googling...

If it's compiled into the kernel, it should be possible to disable it by 
  using the kernel option "parport=0" when you boot the kernel.

> This should allow the parallel port module to be installed with the correct 
> base address for the parallel port.
> 
> I believe that 0x278 is reserved for use by the parallel port as is 0x378. 
> Since your parallel port is using 0x378, using 0x278 is probably binding the 
> comedi driver to an unused address space - hence nowt is gonna happen!

Indeed!

> I might be wrong, but this is my understanding of the situation. (Can anyone 
> confirm this???)
> 
> Hope this helps,
> 
> Martyn
> 
> - ------ Original message ------
> On Tuesday 06 Sep 2005 16:03, Matt Kubilus wrote:
> 
> 
>>I'm trying to setup Comedi for digital io using the parallel port. I have
>>successfully compiled and installed the modules and can configure the
>>comedi device, but I cannot control the parallel port.
>>
>>What mode do I need to set the parallel port on (Bi-directional, EPP, ECP,
>>Disabled)?

I'd pick "Bi-directional" as it's the most basic mode (apart from 
"Disabled" :-).

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2005-09-06Z15:26:38