Parallel port passthrough (Windows only)

Here you can discuss the development of patches.

Parallel port passthrough (Windows only)

Postby mirekluza » 2006-4-29 @ 10:50

This is not exactly a patch, I think that h-a-l-9000 has only patched binary on his web (hopefully sources will be added later).
However since it is a feature often asked for by DOSBOX users, I think it deservers its own thread here, so that it can be found without extensive search.
If h-a-l-9000 or any other developer/moderator disagrees then feel free to close/delete this thread. Also if the web traffic on hal's site should be a problem, maybe the binary can be uploaded directly here...

The windows binary containg the paralel passthrough is on:
http://home.arcor.de/h-a-l-9000/, below are some details of what it can do:
Parallel Port Passthrough
Parallel port access through Dosbox. Emulates I/O-Access, BIOS access, DOS API access, DOS file (lptx) access.
First you need to install the PortTalk driver from http://www.beyondlogic.org/porttalk/porttalk.htm, then set parallel1=reallpt like in the example dosbox.conf.
Although this ran fine on my system, using the I/O-Access driver could theoretically mess up your system, so use at your own risk.
Tested with Win3.11 (I/O Access), Simcity (BIOS access), Checkit(DOS file access), command line redirection, HP Laserjet 3p and 4, IBM Proprinter, Epson SQ 870.
Contains parts of Fizzban's printer patch.


I have just made this thread, otherwise I have nothing to do with this feature, all credits belong to h-a-l-9000.

Mirek
mirekluza
DOSBox Moderator
 
Posts: 1697
Joined: 2003-8-21 @ 04:19

Re: Parallel port passthrough (Windows only)

Postby eL_PuSHeR » 2006-4-29 @ 14:31

A neat idea. Now some real life examples would come in handy. Provided instructions are somewhat vague.

PS - Woohoo! Tested and worked sending a PCL file directly to my Laserjet printer. Good Work HAL9000 and others.

I will make a brief example of the installation procedure:

- Download DOSBox with LPT passthrough from the link in the first post (HAL9000 webpage).

- Download the DLL package if needed (from same site).
- Download the Porttalk driver. (Link in the quote from first post)
- Unpack the Porttalk driver ZIP package to any folder you like and execute ALLOWIO.EXE
- Configure LPT port (only needed if different than default LPT1=378h) by editting dosbox.conf using notepad (look at the paralllel section)
- Run DOSBox.
Last edited by eL_PuSHeR on 2006-4-29 @ 14:53, edited 3 times in total.
Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)
User avatar
eL_PuSHeR
Moderator
 
Posts: 6466
Joined: 2003-6-20 @ 16:39

Re: Parallel port passthrough (Windows only)

Postby h-a-l-9000 » 2006-4-29 @ 14:42

Patch will be added when Sourceforge CVS is up again...
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Parallel port passthrough (Windows only)

Postby eL_PuSHeR » 2006-4-29 @ 14:52

Hey, Mirek!

I editted your post because the Porttalk address link wasn't working because of a comma. I hope you don't mind. :cool:
Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)
User avatar
eL_PuSHeR
Moderator
 
Posts: 6466
Joined: 2003-6-20 @ 16:39

Re: Parallel port passthrough (Windows only)

Postby h-a-l-9000 » 2006-5-20 @ 22:53

Patch file is up.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Parallel port passthrough (Windows only)

Postby h-a-l-9000 » 2007-1-19 @ 13:52

Could somebody please test if it compiles with MinGW?
You do not have the required permissions to view the files attached to this post.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Parallel port passthrough (Windows only)

Postby Dominus » 2007-1-19 @ 14:45

Well, I could have reported about half an hour earlier if I weren't too stupid to use patch.exe correctly :(
Code: Select all
if g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -I../../../include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main  -g -O2 -MT porttalk.o -MD -MP -MF ".deps/porttalk.Tpo" -c -o porttalk.o porttalk.cpp; \
then mv -f ".deps/porttalk.Tpo" ".deps/porttalk.Po"; else rm -f ".deps/porttalk.Tpo"; exit 1; fi
porttalk.cpp:13:20: ioctrl.h: No such file or directory
porttalk.cpp: In function `bool initPorttalk()':
porttalk.cpp:90: error: `METHOD_BUFFERED' was not declared in this scope
porttalk.cpp:90: error: `FILE_ANY_ACCESS' was not declared in this scope
porttalk.cpp:90: error: `CTL_CODE' was not declared in this scope
porttalk.cpp: In function `bool setPermissionList()':
porttalk.cpp:118: error: `METHOD_BUFFERED' was not declared in this scope
porttalk.cpp:118: error: `FILE_ANY_ACCESS' was not declared in this scope
porttalk.cpp:118: error: `CTL_CODE' was not declared in this scope
porttalk.cpp:128: error: `METHOD_BUFFERED' was not declared in this scope
porttalk.cpp:128: error: `FILE_ANY_ACCESS' was not declared in this scope
porttalk.cpp:128: error: `CTL_CODE' was not declared in this scope
make[4]: *** [porttalk.o] Error 1
make[4]: Leaving directory `/d/cvs/dosboxp/src/hardware/serialport'

Seems to miss the file "ioctrl.h" included in porttalk.cpp

Edit: should that be "winioctl.h"? (with that it compiles fine and runs, though I haven't tested if the passthrough works)
User avatar
Dominus
DOSBox Moderator
 
Posts: 7539
Joined: 2002-10-03 @ 09:54
Location: Vienna or Ludwigsburg

Re: Parallel port passthrough (Windows only)

Postby h-a-l-9000 » 2007-1-19 @ 15:49

Thanks for testing. I must have misunderstood something with the ioctrl.h there... so <winioctl.h> is probably right.

If you type parallel1 reallpt it should say it can't find porttalk in the status window. Then it actually got compiled in.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Parallel port passthrough (Windows only)

Postby Dominus » 2007-1-19 @ 17:01

hmm, it doesn't say that but that you notice it working and then you get the prompt again.
The console says (after executing the command) "Parallel Port: Assuming ECP port."
User avatar
Dominus
DOSBox Moderator
 
Posts: 7539
Joined: 2002-10-03 @ 09:54
Location: Vienna or Ludwigsburg

Re: Parallel port passthrough (Windows only)

Postby h-a-l-9000 » 2007-1-19 @ 17:05

Oops, I assumed you never used it before and thus no porttalk ;)
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Parallel port passthrough (Windows only)

Postby Dominus » 2007-1-19 @ 18:25

well,that's the strange thing you actually assumed right. There is no porttalk on my windows (at least afaik). Something else must be working like that on my pc...
User avatar
Dominus
DOSBox Moderator
 
Posts: 7539
Joined: 2002-10-03 @ 09:54
Location: Vienna or Ludwigsburg

Re: Parallel port passthrough (Windows only)

Postby mf2hd » 2007-1-19 @ 21:27

Could somebody please test if it compiles with MinGW?


Hi h-a-l,
I've tried your direct_lpt2.diff (is it a new one?) downloaded from your website with two new cvs downloaded from:
http://pcnwstage.phys.rug.nl/dosboxcvs.tgz
http://www.aep-emu.de/cvscompile/dosbox.htm

there are a lot of "Hunk FAILED" (see attachment).

The same diff but with an old cvs was compiled fine after added the missed things and the asm as we saw in other thread (stack segment).
I have tried with winioctl.h in place of ioctrl.h and mingw shows many errors like these ones:

include/winioctl.h:116: error: `WORD' does not name a type
include/winioctl.h:119: error: `LARGE_INTEGER' does not name a type
...

maybe the my winioctl.h is wrong...

_mf2hd_
You do not have the required permissions to view the files attached to this post.
mf2hd
Newbie
 
Posts: 41
Joined: 2006-12-23 @ 22:21

Re: Parallel port passthrough (Windows only)

Postby h-a-l-9000 » 2007-1-19 @ 21:44

I attached a directlpt3.diff here to be tested (you can only see it if logged in in the forum, see the can/cannot in the bottom right box). It is intended for latest CVS.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Parallel port passthrough (Windows only)

Postby mf2hd » 2007-1-20 @ 01:23

you can only see it if logged in in the forum,


I'm sorry ,not refreshed the page after login...:sly:

Test the new diff with cvs source from aep-emu.de :patch+compiled without problems (don't forget to copy "ioctrl.h" into ...\include dir).
I've tried it with "winioctl.h" and it seem compiled without error (but not tested if the passthrough works).

Great!
mf2hd
Newbie
 
Posts: 41
Joined: 2006-12-23 @ 22:21

Re: Parallel port passthrough (Windows only)

Postby h-a-l-9000 » 2007-1-21 @ 13:58

Ok thanks, this can be considered as "release" then I guess.
You do not have the required permissions to view the files attached to this post.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Parallel port passthrough (Windows only)

Postby Dominus » 2007-1-26 @ 01:48

I found out now that the software PTBSync installed porttalk on my system :)
Interesting...
User avatar
Dominus
DOSBox Moderator
 
Posts: 7539
Joined: 2002-10-03 @ 09:54
Location: Vienna or Ludwigsburg

Re: Parallel port passthrough (Windows only)

Postby h-a-l-9000 » 2007-1-26 @ 13:03

This one?

Atomic Clock Synchronization
-- Adjusts the PC clock with an accuracy of 1/50 second!
-- Fetching date and time from Atomic clock via internet.
-- Runs as service unter Win NT / 2000 / XP.
-- Drift compensation of Windows clock.

Looks like they go for the clock hardware directly. At least they don't use the most primitive form of the hack (giveio.sys, ...).
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Parallel port passthrough (Windows only)

Postby Dominus » 2007-1-26 @ 13:18

yes, that one, I *used* to use that as a desktop calendar. Nowadays I don't use it anymore but have it still installed :)
User avatar
Dominus
DOSBox Moderator
 
Posts: 7539
Joined: 2002-10-03 @ 09:54
Location: Vienna or Ludwigsburg

Re: Parallel port passthrough (Windows only)

Postby urbantaz » 2007-12-10 @ 03:43

this keeps crashing my dosbox
urbantaz
Newbie
 
Posts: 15
Joined: 2007-12-10 @ 03:14

Re: Parallel port passthrough (Windows only)

Postby wd » 2007-12-10 @ 07:20

NO!
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Next

Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 1 guest