> Hi all,
> I have a problem with running MS-Kermit 3.13 under Windows 3.1. I'm
> developing a program with Borland Pascal for Windows that uses Kermit
> to call a central computer, transfer files etc. The com port settings
> seem correct ('SET COM1 \x3F8 IRQ 4'), because Kermit works ok in DOS
> and when executed directly from the Program Manager.
> The problem is that after running Kermit once (to dial central computer)
> on the second invokation, after 'SET PORT COM1' I get "?Warning: unknown
> hardware for port. Using Bios as BIOS1". After this communication fails.
> It seems that somehow Kermit is unable to verify the UART. I don't know
> what causes this: Windows, Kermit or my program. So, is it possible to
> disable the UART check (chkport routine in the assembler source code) by
> patching KERMIT.EXE ? Or maybe there's some combination of PIF & .INI
> settings that I'm missing ? Or perhaps I should somehow reset the UART
> after running the first script ?
> The modem is an external V.32 modem (8250 UART, but I use it at 2400 bps).
> I've also tried this with an internal modem (V.32 & 16550), but same results.
> The PC is a 486DX-33.
> Thanks in advance,
> Teemu Mottonen.
> Teemu Mottonen - Department of Computer Science, University of Helsinki
It's kind of difficult to guess here. Windows is controlling the
physical serial ports and presents virtualized images to Kermit. One item
needed by Kermit is the port i/o address (such as \x3f8), and Kermit obtains
that either from the Bios work area in segment 40h (first four words are
COM1...COM4 i/o addresses) or from the SET COMx Kermit command. If Windows
or your Pascal program clears the seg 40h area then Kermit will produce
this message. If Windows has the port allocated to some other task Windows
may report 0's in seg 40h. Looking down their with debug or other means
is a quick way to see what's happening.
Does your Pascal program access the ports in any way?
Source code for MSK 3.13 is available on kermit.columbia.edu,
cd kermit/a. If modified then the patch file won't work anymore.