[PARPORT] Problems with parallel port

From: Luis LLN (letona79@yahoo.es)
Date: Tue Aug 12 2003 - 13:10:50 EDT

  • Next message: Norberto Garcia Prieto: "Re: [PARPORT] NetMos parallel port lost after unplugging of another PCI card"

    Hello from Spain, this is my first message to this
    list (sorry if my English is not very good...).

    I want to use parallel port to communicate with a 3D
    Laser. My linux version is Debian Woody 2.2.20 and I
    programming using C++.

    I created "parport0" making "mknod parport0 c 99 0" as
    I saw in internet.

    My code is:

    fd=open("/dev/parport0", 0_RDONLY | O_NOCTTY);

    mode = IEEE1284_MODE_ECP;

    ioctl(fd,PPCLAIM);

    ioctl(fd,PPSETMODE,&mode);

    but "fd=open(.....)" return -1 and errno = 19 (No such
    device).

    What can I do? Why parport0 isn't recognized if I
    created it correctly?

    Thanky you very much.

    PD: I don't know anything about linux (only the use of
    ls, cp, clear...)

    ___________________________________________________
    Yahoo! Messenger - Nueva versión GRATIS
    Super Webcam, voz, caritas animadas, y más...
    http://messenger.yahoo.es

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Tue Aug 12 2003 - 13:19:00 EDT