Menu

#228 Raw lpt1 access failed

open
nobody
None
5
2012-11-02
2008-01-03
jkvjkv
No

Hello

I would like to run an old DOS CAD program with dosemu 1.4.0. This program is protected by a dongle attached to lpt1 and in the config.sys the command c:/cvbox.sys has to be added and a security number is checked by the dongle which is in a file cvoption.fil.

On my computer Win98 and Gentoo-Linux with kernel 2.6.22-r9 is running. Under Win98 the program runs perfectly. Under Linux with dosemu 1.4.0 (start with dosemu -s)the program runs perfectly as well but only in the demo version because the dongle is not recognized.

I have configured the kernel so that lpt1 is recognized.
parport_pc 00:0a: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP(,...)]
The modules lp,parport,and parport_pc are loaded.

I installed an Canon BJC-4550 printer attached to the dongle. It runs without any problems under Linux.

The only change in the file dosemu.conf is

$_ports = $_ports, " device /dev/lp0 range 0x378 0x37a"

To my opinion with this change the raw access to lpt1 should work and the dongle should be recognized.

Since three days I have desperatly tried all reasonable possibilities to get the dongle running
for example I unloded all modules etc.

Now my request, please could anyone give the precise changes which I have to make to get the dongle running.

Discussion

  • John Coppens

    John Coppens - 2008-01-04

    Logged In: YES
    user_id=21667
    Originator: NO

    try this - it works here:

    $_ports = "device /dev/lp1 fast range 0x378 0x37a"

    (The $_ports after the = is not necessary if this is the first $_ports statement.
    The 'fast' word does give the actual access to the post (as I understand it)

     
  • jkvjkv

    jkvjkv - 2008-01-04

    Logged In: YES
    user_id=1972524
    Originator: YES

    Thank you for your quick reply
    Unfortunately I did't have success until now. Please could you tell me your adjustments in the section:

    Printer and parallel port settings

    Everything commented out?
    and have you loaded or unloaded the modules:
    lp
    parport_pc
    parport
    and last but not least is lp1 really correct? Should it not be lp0?

    Thank's and best regards

     
  • John Coppens

    John Coppens - 2008-01-06

    Logged In: YES
    user_id=21667
    Originator: NO

    and last but not least is lp1 really correct? Should it not be lp0?

    At this time, I've disabled all printers in dosemu.conf (by setting
    all $_lpt's to "".

    The assignment of lp1/lp0 depends on the way the parallel ports are recognized in your system. If you only have one, it will surely be
    lp0. If you have two, things are numbers (I think) in the order they are detected. Check 'dmesg' for messages on the detection of the parallel
    ports. Also, /proc/ioports may help you in identifying which port is which.

    Also, this seems to depend on the version of the kernel and on the distribution, as port assignations are now done dynamically (udev)
    but this has migrated a couple of times lately. I remember a case where
    the name changed erratically, depending on the order of detection. I had to add a rule to make it more systematic.

    John

     
  • jkvjkv

    jkvjkv - 2008-01-07

    Logged In: YES
    user_id=1972524
    Originator: YES

    Thanks John for your answer

    I have only one parallel port. I'm using CUPS.
    dmesg reports
    parport_pc 00:0a: reported by Plug and Play ACPI
    parport0: PC-style at =x378,irq 7 [PCSPP]
    In /proc/ioports I can find
    0378-0378: parport0
    In dosemu.conf
    $_lpt1 = ""
    $_ports = "device /dev/lp0 fast range 0x378 0x37a"
    With these settings the dongle ist not recognized.

    If I load lp and change in dosemu.conf
    #$_lpt1 = ""
    then I get the message after leaving dosemu:
    ERROR: PORT: conflicting devices: Parallel printer &
    std port io for port =0x378
    The dongle is not recognized, either.
    It seems that the kernel 2.6.22 with udev is the problem.
    Please could you give further assistance. Thanks very much for your help. Best regards Jean

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.