Portál AbcLinuxu, 16. července 2025 03:09
4.8. How can I get the parallel ports to work? The dosemu.conf has lines at the end to redirect printers to either lpr or a file. If you want direct access to the bare metal, comment out these emulation lines, and add the line: $_ports = "device /dev/lp0 fast range 0x3bc 0x3bf" # lpt0 for the "monitor card" printer port (corresponds to /dev/lp0), or: $_ports = "device /dev/lp1 fast range 0x378 0x37f" # lpt1 or: $_ports = "device /dev/lp1 fast range 0x278 0x27f" # lpt2 for LPT1 (/dev/lp1) or LPT2 (/dev/lp2) respectively(97/2/9). Hans Lermen writes: But NOTE: these lines should not be _added_ simply, the string should be concatenated such as: $_ports = "...." $_ports = $_ports, " device /dev/lp0 fast range 0x3bc 0x3bf" = This blank is important Note: newer kernels don't have hardcoded dependencies between /dev/lp* and ioports. Check /proc/ioports for lines such as 0378-037a : parport0.
$_ports = $_ports, " device /dev/lp0 fast range 0x378 0x37a"Range je zavisla od toho jaky LPT port mate nebo jestli mate dva atd. Ale myslim, ze tato range je asi nejpouzivanejsi. Pokud chcete videt jeste nejake priklady range, mrknete se tady. Muzete take pridat parametr na IRQ passing.
$_irqpassing = "cislo_IRQ".Vse pak muzete otestovat pod dos emulatorem jiz zminenym programem. Zrovna u sebe nemam dongle, abych vyskousel jestli primi pristup funguje na dongle. Ale hned jak ho budu mit, tak zase napisu vysledek.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.