VOGONS


Dongles?? PCAD, PSAVE

Topic actions

  • This topic is locked. You cannot reply or edit posts.

First post, by dozer

User metadata
Rank Newbie
Rank
Newbie

howdy,

Have any of you guys ever tested DosBox with any dongles or dongle-eliminator software?

I spent some time reading the FAQ, and looking through a number of the forums here; but I couldn't find anything related to Apps....just games. The forum titled "Games/Apps" didn't seem to cover Apps either.

I'm trying to run an old PCB-layout software called PCAD 4.55; which I have owned for many years; and in which I have done almost a hundred circuit-board layouts since the 1980's.

Now I am trying to get it running so that I can modify an old board design and make another small batch. I need to modify it because some of the parts aren't even available any more <grin>.

Anyway, originally this software used some stupid dongle-system; where there was a "chassis" which took up to a dozen plug-in "keys". The damn thing never did work right; and the keys had a nasty habit of failing after a while. So everyone who used this software back then always bought the "dongle eliminator" software called PSAVE. A company called "Safesoft" made it....out of Canada I think.

I'm not sure what this PSAVE does exactly, but it can't be much, because it is -tiny-...only about 3K. I've run it on a dozen different PC's; from a 386-25, to 486's, to a dual Pentium-Pro, to the last one, an HP Visualize dual-Xeon workstation. Never had a lick of trouble with it. You run PSAVE, then you start PCAD.

All I have for a PC now is an HP6000 Omnibook laptop (we're living off-grid in a cabin in the mountains now); running windows2000. I've downloaded and installed DosBox, and was pleased at how smoothly it went. And PSAVE -looks- like it's running fine. And PCAD -starts- fine.

But when it leaves the initial menu and goes into graphics-mode to actually edit a board, I get the "Security device not found" message, or the "Security device port not found". Two different graphics-mode programs; one for schematics and one for board-layouts....two different messages.

I'm wondering if one of you guys would be willing to take a quick look at this PSAVE thing and see what it's trying to do, that DosBox isn't emulating quite right.

thanks much!

dozer

edit: PS, I meant to include that I went through each item in the DosBox config file; turned off the sound-emulation to save cycles, tried several settings for the 'cpu type' all the way to dynamic, and made sure that the 'direct serial' emulation was set to 'true'. (I can't remember for sure, but I think this was a serial-port type dongle system). I didn't really see anything else in the config that I thought would affect things.

edit2: I checked PCAD's own config, and there's a field for selecting which COM-port the dongle is on; so it was definitely a serial-type system. I also noticed that if I type "PSAVE" at the dos prompt after it's been loaded once, it tells me: "PSAVE 1.3b already in memory!"....so it's obviously some kind of TSR that probably intercepts I/O to the COM-port. I don't think it's anything that modifies the actual app EXE's.

Anyway, I thought there might be a conflict between the mouse usage in windows being on COM-1, and the PSAVE/PCAD trying to use COM1 (although I never had problems in that regard on native DOS), so I changed PCAD's config to look for dongle on COM2. No difference.

Reply 2 of 45, by dozer

User metadata
Rank Newbie
Rank
Newbie

hello eL Pusher,

Yes, I thought it should work. Especially with the TSR running to intercept the dongle-calls (presumably).

Last night I tried -disabling- the serial-port emulation in DosBox; thinking that perhaps that would keep Dosbox from 'blocking' PSAVE; but no change. Still acts like PSAVE isn't running at all.

Reply 4 of 45, by dozer

User metadata
Rank Newbie
Rank
Newbie

hey wd, thanks for the thought.

That never even occurred to me!

I didn't realize one could do that....I thought DosBox was already a "loaded DOS".

I will dig up msdos6.22 and try running that in dosbox.

I'm still curious what DosBox is doing differently than a real native DOS, which is causing it to block PCAD from 'talking to' the Psave TSR. Interesting...

Reply 5 of 45, by dozer

User metadata
Rank Newbie
Rank
Newbie

PS: Here is the PSAVE.COM for examination, attached to this post

whups, the board wouldn't let me attach a .COM, so I changed the extension to .bak. Just change it back to .COM

whups2, the board doesn't like .bak either... 🙄

ok, i'll try it with .txt extension...

Attachments

  • Filename
    PSAVE.txt
    File size
    3.46 KiB
    Downloads
    660 downloads
    File license
    Fair use/fair dealing exception

Reply 7 of 45, by dozer

User metadata
Rank Newbie
Rank
Newbie

howdy hal9000, and thanks for taking a look at it.

that's a little text file which holds the locations of the drivers that PCAD uses. That file IS present in the root of C, which I'm mounting as "C" in DosBox.

PCAD is apparently finding it OK, because it gives an error if it doesn't, plus PCAD -is- opening OK, starting the graphics-editor OK; so it must be finding its drivers OK.

Contents of PCADDRV.SYS are:

SYSTEM c:\PCAD455\DRV\SIBMPC.DRV
INPUT c:\PCAD455\DRV\IMsser.DRV
DISPLAY c:\PCAD455\DRV\dibmvga.DRV

Reply 9 of 45, by dozer

User metadata
Rank Newbie
Rank
Newbie

hi wd,

SIBMPC is pcad's "driver" for the PC hdw, i.e. mobo...it's very generic...works on any mobo I've ever run or heard of anyone running.

Presumably pcad does its serial-i/o via this driver?

I wonder why DosBox isn't letting psave make its usual mods to sibmpc.drv ??

Or if it is, why the heck it's not working?

Note that those pcad 'drivers' are not something that's loaded in config.sys like a regular DOS driver. Pcad itself apparently loads them at runtime. And that's -after- psave is already in memory.

So Psave must be hooked into some call which allows it to see/find/modify the sibmpc.drv when pcad loads it later on...

Reply 10 of 45, by dozer

User metadata
Rank Newbie
Rank
Newbie

whups....just re-read your post wd.

you say it -opens- sibmpc.drv ? On disk ??

i had at first assumed you meant it was modifying it -in ram- after it was loaded.

I wish I understood it better. All I know is that there's still something in DosBox emulation that isn't 100%. This psave thing works flawlessly under a normal DOS boot environment.

Reply 11 of 45, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

They open the file sibmpc.drv on the disk, insert some code (cd e0)
and stay resident (hooking int e0+), now when that code in sibmpc.drv
is executed, the int e0 calls psave. At this point i can't really tell what
it does exactly, changes some registers for one call, and looks like it
does memory patching on other cases as well.

Reply 12 of 45, by dozer

User metadata
Rank Newbie
Rank
Newbie

huh....interesting that it changes the file on disk every time it runs.

just making sure, I guess....grin...

I looked through psave in an editor and saw the list of error msgs. psave is running without displaying any error msgs; so I'm assuming that it's finding the pcaddrv.sys and ibmpc.drv files ok....and likely writing the changed version back OK.

Unless Dosbox is not letting the changed version actually get back to disk? Is psave using dos disk i/o, or direct bios calls?

Perhaps dosbox or Win2K isn't allowing the changed version to make it back to disk...so when PCAD runs after Psave, it's loading an unchanged version into memory??

Could one of the DoxBox developers take a look and see if they can spot what DosBox is doing differently than DOS in this case?

Reply 16 of 45, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

No idea what's happening then, as most code is executed in the
main program/driver files. Could be that the drivers are loaded
through a device driver interface, which isn't supported down to
the lowest level in dosbox. Trying the program under dosbox when
booting msdos should be working then.
Otherwise it might be something with the emulated hardware,
as HAL suggested you should try a CVS build of dosbox.

Reply 17 of 45, by dozer

User metadata
Rank Newbie
Rank
Newbie

hi wd,

I believe that the pcad exe's are loading the drivers themselves.

I didn't find anything about HOW to load/run/start a regular DOS within DosBox. Maybe I missed a link somewhere?

I don't know anything about "CVS", sorry.

I find much of the sourceforge stuff to be simply impenetrable; as if it's purposely written to be obscure; understandable only to linux/C programmers....keep the club exclusive or whatever.

I have worked with computers since keying in my first octal on the front-panel of a DEC PDP-11/45 in 1974...and have written various small things in BASIC and 8086/6502/PIC assy over the years, for testing hardware products. So I'm not totally ignorant software-wise.

But not much on sourceforge is written from a motivation to be CLEAR and EASY TO USE to those who are NOT C-programmers.

It may be great for the 1% exclusive-club, but 99% of the people in the world can't make use of it, and never get a chance to appreciate the coding-skills etc.....so 99% of the stuff on sourceforge just sits there and never gets used and loved....unfortunately.

Appreciate you taking a look at this pcad/psave thing. I could probably post the pcad exe itself...I think it's only 300-400K, if I remember right. I'd have to try a new dir with only the EXE, and see what else it yells for, if anything.

Reply 19 of 45, by TeaRex

User metadata
Rank Member
Rank
Member
dozer wrote:

I didn't find anything about HOW to load/run/start a regular DOS within DosBox. Maybe I missed a link somewhere?

There are basically two steps: Mount a disk image, then boot from it. I hope you know about disk images, they're basically dumps of whole floppies or hard disks to a file, partition table, headers, file allocation table, root directory, and all. A real dos inside dosbox can work only with files contained inside such images, not with files in your file system. This is because of the way a real dos works: it expects to see a hard disk or floppy that's simply divided into evenly sized sectors readable through the BIOS. You mount an image using the IMGMOUNT command in dosbox (only needed for hard drive images, not for floppies), and boot from it with the BOOT command. Both commands will give short explanation texts when you type them without any arguments. Images can be made from real disks with WinImage or similar software; or you can simply create a large enough file with whatever kind of junk in it (zeros for example), and then treat it like you would a factory new, empty hard drive: Boot your dos from floppy images, then FDISK and FORMAT the hard drive image, install DOS to it, and then copy in your software with DOSBOX's COPY command (this has to happen between IMGMOUNT and BOOTing).

I don't know anything about "CVS", sorry.

CVS is a system for managing a changing source code tree. "CVS builds" are versions of dosbox created directly from the source tree as it is at the time, basically you can think of them as unofficial releases of dosbox. You don't need to create them yourself from the source code, there are several people who offer ready-made CVS builds on their web pages with some regularity. There is a "sticky" thread about these somewhere in the forums.

I find much of the sourceforge stuff to be simply impenetrable; as if it's purposely written to be obscure; understandable only to linux/C programmers....keep the club exclusive or whatever.

Well, sourceforge is a source site as the name implies. Not limited to linux and C by any means. But you should have and know how to run a compiler. And C and C++ are simply the most commonly used language on sourceforge. C is pretty easy to pick up if you have some experience with assembly.

But not much on sourceforge is written from a motivation to be CLEAR and EASY TO USE to those who are NOT C-programmers.

Well it's *source*forge, not *executable*forge.

It may be great for the 1% exclusive-club, but 99% of the people in the world can't make use of it,

Most of the popular projects have fairly regular releases, and the Windows versions of those usually don't require any compiling. Just download and install.

tearex