Re: DIO with the parport

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If I remember correctly this is because you probably have the kernels parallel 
port driver installed.

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.

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...

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!

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)?
>
> If for instance I set the parport for I/O base 0x378 IRQ 7 in the bios, if
> I issue the command comedi_config /dev/comedi0 comedi_parport 0x378,7, it
> won't work. Syslog complains of an IO conflict.
>
> Instead if I issue comedi_config /dev/comedi0 comedi_parport 0x278,7 it
> works. cat /proc/comedi shows the device and demo/info shows information
> which appears correct. However, I am not able to control the parport using
> the dio.c example.
>
> Any ideas what I'm doing wrong?
>
> Thanks,
> Matt

- -- 
Martyn Welch (welchm_at_comp.lancs.ac.uk)

PGP Key : http://ubicomp.lancs.ac.uk/~martyn/pgpkey/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFDHbZuQPzYXciChNcRAs4XAKCpuMeaUczCYoIjZcNI9MPZxaE71gCfcfyt
/N7cDyZSSmpI2VU1xZsMzmo=
=RipR
-----END PGP SIGNATURE-----

Received on 2005-09-06Z14:31:55