UK Vintage Radio Repair and Restoration Powered By Google Custom Search Vintage Radio and TV Service Data

Go Back   UK Vintage Radio Repair and Restoration Discussion Forum > Specific Vintage Equipment > Vintage Computers

Notices

Vintage Computers Any vintage computer systems, calculators, video games etc., but with an emphasis on 1980s and earlier equipment.

Closed Thread
 
Thread Tools
Old 4th May 2014, 12:09 am   #21
G0HZU_JMR
Dekatron
 
Join Date: Sep 2010
Location: Cheltenham, Gloucestershire, UK.
Posts: 3,077
Default Re: Unable to use COM1 port on IBM PC/AT

Quote:
Originally Posted by Dave Moll View Post
For reference, the software and instructions are available at https://sites.google.com/site/herald...mming-software.
I had a quick look at your link and downloaded PDS and unzipped it
I looked inside the unzipped folder and found several DOS exe files

eg V10one.exe. Is this the correct exe file?

If I disassemble this program I can see how it communicates to the serial port using the INT14 interrupt and how it sets the COM port number in the code in the exe file. I think it should be quite easy to alter the data word that holds the COM port address for different COM ports.

eg 0, 1, 2 or 3 probably refer to COM ports 1, 2, 3 or 4

At the minute it is set to 0000 which is presumably COM1. It moves this word into the dx register which INT14 uses as the pointer to the COM port for serial port comms.

To change it away from COM1 would just mean editing one byte in the exe file using any simple hex file editor.
Attached Thumbnails
Click image for larger version

Name:	COMport.jpg
Views:	95
Size:	63.5 KB
ID:	92376  
__________________
Regards, Jeremy G0HZU

Last edited by G0HZU_JMR; 4th May 2014 at 12:19 am.
G0HZU_JMR is offline  
Old 4th May 2014, 1:01 am   #22
paulsherwin
Moderator
 
paulsherwin's Avatar
 
Join Date: Jun 2003
Location: Oxford, UK
Posts: 27,975
Default Re: Unable to use COM1 port on IBM PC/AT

The MODE command has no effect on the IRQ number or IO address. It is used to set parity and data rate when the port is accessed via the BIOS, but most DOS programs ignore the BIOS and access the hardware directly.

When the AT was young it was never envisaged that end users would want to mess around with the serial port hardware settings.
paulsherwin is online now  
Old 4th May 2014, 12:00 pm   #23
mike_newcomb
Rest in Peace
 
Join Date: Apr 2012
Location: West London, UK.
Posts: 665
Default Re: Unable to use COM1 port on IBM PC/AT

Hi Paul, I would disagree with you on this.

When the IBM PC XT first came out, we purchased a Bristol Compatible for around £1000 which was half the IBM price, and is now in stored in a friend's attic. This had a multi function I/O card which had many straps, for the various settings as referred to by yourself and others earlier in this thread.

However I found its straps never required changing from the default settings. Only time I had a problem with IRQ and /or address was when an internal modem card was added which itself wanted to be COM1 or 2. As these were already in existence, using the straps on the modem card, I set it to COM 3 and 4.

Yesterday to refresh my memory on the MODE command, I referred back to the Bristol's DOS 3.3 manual.

The command was needed for the Bristol's serial ports as we had serial printers and other devices. If an incorrect MODE parameter was used (e.g. 6 data bits, intstead of 8) things did not work as expected. I found handshaking methods quite a learning curve - e.g. did anyone use XON/XOFF?

Had to do same when the AT's appeared.

I still have my RS232 Breakout box which helped greatly when there were problems.

As the MODE command is used to switch/redirect a LPT hardware port to a COM port, I suggested it might work on COM ports only. Although ideally here the aim is to use COM1.

Regards - Mike

Last edited by mike_newcomb; 4th May 2014 at 12:05 pm. Reason: Add detail
mike_newcomb is offline  
Old 4th May 2014, 1:02 pm   #24
paulsherwin
Moderator
 
paulsherwin's Avatar
 
Join Date: Jun 2003
Location: Oxford, UK
Posts: 27,975
Default Re: Unable to use COM1 port on IBM PC/AT

The MODE command changes values in the BIOS code for programs which use a BIOS interrupt to access the serial port - 7 or 8 bit bytes, odd, even or no parity, xon/xoff flow control, data rate etc. It's ages since I looked at this, but I think the BIOS code uses a very small data buffer - 2 bytes? - leading to lost data, and the application has to perform an interrupt for each byte. Commercial software generally didn't use the BIOS interface and addressed the hardware directly.
paulsherwin is online now  
Old 4th May 2014, 6:28 pm   #25
Dave Moll
Dekatron
 
Dave Moll's Avatar
 
Join Date: Feb 2005
Location: West Cumbria (CA13), UK
Posts: 6,131
Default Re: Unable to use COM1 port on IBM PC/AT

Here is the serial/parallel I/O card from the AT:
Click image for larger version

Name:	PC-AT serial-parallel card.jpg
Views:	100
Size:	61.3 KB
ID:	92411

Having had a closer look at the above, I have a confession to make! The 9-pin connector is, in fact COM1 rather than COM2, and the 25-pin connector is a parallel port rather than serial. If my memory of such ports hadn't been so hazy, I would have realised that the gender is wrong for a serial port! I claim as additional mitigating circumstances that a) the card for the monitor also has a parallel port (I think that's what that one is), and b) that the 9-pin to 25-pin adapter that I grabbed from my box of such things happened to be the one that was a gender-bender.

Although nothing is connected to the "ASYN2" connector on the board, I do have a spare 25-pin male connector (on a back-plane strip) which I can connect to it. I may, therefore end up going down the route suggested above by G0HZU_JMR of locating and changing the COM settings in the various programs used by the PDS system. N.B. V10ONE.EXE is only one of the nine programs used - one for each phase of the customisation (V10ZERO.EXE to V10SEVEN.EXE plus V10NINE.EXE - phase eight being "exit to DOS" and not requiring a program).

I have tried substituting other I/O cards from my box of spares, but those that I have tried so far appear to be incompatible with the AT - causing it to claim that it cannot access the floppy drives.
__________________
Mending is better than Ending (cf Brave New World by Aldous Huxley)
Dave Moll is online now  
Old 4th May 2014, 9:47 pm   #26
cmjones01
Nonode
 
Join Date: Oct 2008
Location: Warsaw, Poland and Cambridge, UK
Posts: 2,681
Default Re: Unable to use COM1 port on IBM PC/AT

What are the I/O settings for the COM ports on that board? There is a whole row of jumpers along the top which are probably the ones to set the I/O ports for the serial and parallel ports, but I can't read the legends to see how they're set. COM1 should be 3F8 and COM2 should be 2F8. If you're getting write errors, I would suspect the I/O port setting as being wrong rather than the IRQ setting. I can remember that incorrect IRQ settings for serial ports generally stopped them receiving data, rather than causing write errors. Have you got the manual for that I/O card?

By the way, it's quite normal for the video card (especially if it's a Hercules or MDA one) to have a parallel port on it. This was mapped at I/O 3BC and was LPT1:. The one on the I/O card is probably at I/O 378 and will be LPT2: in your system, but would automagically become LPT1: if there wasn't one on the video card. I always found that confusing.

Chris
__________________
What's going on in the workshop? http://martin-jones.com/
cmjones01 is offline  
Old 4th May 2014, 11:18 pm   #27
Dave Moll
Dekatron
 
Dave Moll's Avatar
 
Join Date: Feb 2005
Location: West Cumbria (CA13), UK
Posts: 6,131
Default Re: Unable to use COM1 port on IBM PC/AT

Quote:
Originally Posted by cmjones01 View Post
There is a whole row of jumpers along the top which are probably the ones to set the I/O ports for the serial and parallel ports, but I can't read the legends to see how they're set.
Therein lies the problem. There do not appear to be any legends on this row of jumpers other than saying "P2-15" along the top.
__________________
Mending is better than Ending (cf Brave New World by Aldous Huxley)
Dave Moll is online now  
Old 5th May 2014, 1:18 am   #28
G0HZU_JMR
Dekatron
 
Join Date: Sep 2010
Location: Cheltenham, Gloucestershire, UK.
Posts: 3,077
Default Re: Unable to use COM1 port on IBM PC/AT

Quote:
Originally Posted by Dave Moll View Post
N.B. V10ONE.EXE is only one of the nine programs used - one for each phase of the customisation (V10ZERO.EXE to V10SEVEN.EXE plus V10NINE.EXE - phase eight being "exit to DOS" and not requiring a program).
I had a look through the way these exe files are launched/managed and it looks like you can change the COM port number inside the text in the various batch file(s) in that folder?

Have you already tried this?
__________________
Regards, Jeremy G0HZU
G0HZU_JMR is offline  
Old 5th May 2014, 1:33 am   #29
arjoll
Dekatron
 
arjoll's Avatar
 
Join Date: May 2006
Location: Invercargill, New Zealand
Posts: 3,458
Default Re: Unable to use COM1 port on IBM PC/AT

Quote:
Originally Posted by Dave Moll View Post
Here is the serial/parallel I/O card from the AT:
That card has IDE, floppy and a game port as well - so if those are original PC/ATs the card is quite a bit newer.

Quote:
Originally Posted by Dave Moll View Post
I have tried substituting other I/O cards from my box of spares, but those that I have tried so far appear to be incompatible with the AT - causing it to claim that it cannot access the floppy drives.
I'd assume this one has its floppy port disabled and the others you tried may not have, hence the issue with the built-in floppy controller. Try disabling everything except the COM ports in the other ones you have.

Quote:
Originally Posted by Dave Moll View Post
Therein lies the problem. There do not appear to be any legends on this row of jumpers other than saying "P2-15" along the top.
I can see the jumpers for IRQ and DMA channel selection, but yes I'd guess the ones along the top pick the other functions, one of them would have disabled the floppy and probably IDE is disabled as well. I've found references to the chip, but it's a generic part on lots of controllers. I'm guessing you've goggled the Winbond part numbers to see if any of the boards found match yours?

One thing with these cards is that they often had a selection for COM1/COM2 and IRQ4/IRQ3 separately, with the COM selection just being the port address.
arjoll is offline  
Old 5th May 2014, 7:47 am   #30
Dave Moll
Dekatron
 
Dave Moll's Avatar
 
Join Date: Feb 2005
Location: West Cumbria (CA13), UK
Posts: 6,131
Default Re: Unable to use COM1 port on IBM PC/AT

I had a bit more of a play last night. First, I found another I/O card that seems to be compatible with the current setup of the AT. Unfortunately, the symptoms are identical: write failure to COM1 and reportedly successful copy to COM2.

Now we get to the point where I am becoming totally confused. I happened to notice that the startup was attempting to initialise a serial mouse in COM1. I knew that I had been using such a mouse when firing up Windows (1.0 to 3.0) on that machine, but had forgotten that it also had a DOS mouse driver. Anyway, I disabled the mouse driver and rebooted - unfortunately to no avail. I then reinstated the mouse driver and connected the mouse to COM1. Hey presto, on reboot it reports that the serial mouse is successfully initiated on COM1 address 3F8, IRQ4. I have confirmed that the mouse does indeed work in both DOS and Windows (3.0).

This would seem to indicate that the problem is specific to the way PDS is attempting to set up the port. My brain hurts!

I think my next experiment is to dig out my copy of PCKermit and see whether I can get the two ATs talking to each other via a null modem cable - which will also need finding.
__________________
Mending is better than Ending (cf Brave New World by Aldous Huxley)
Dave Moll is online now  
Old 5th May 2014, 8:13 am   #31
Dave Moll
Dekatron
 
Dave Moll's Avatar
 
Join Date: Feb 2005
Location: West Cumbria (CA13), UK
Posts: 6,131
Default Re: Unable to use COM1 port on IBM PC/AT

Quote:
Originally Posted by G0HZU_JMR View Post
I had a look through the way these exe files are launched/managed and it looks like you can change the COM port number inside the text in the various batch file(s) in that folder?

Have you already tried this?
I didn't think that the MODE commands affected which port was used by the V10... programs, merely setting up the speed and format of the communication. Now that I have a COM2 port connected, however, I will have another go with my COM2 version of the PDS BAT file later on today.
__________________
Mending is better than Ending (cf Brave New World by Aldous Huxley)
Dave Moll is online now  
Old 5th May 2014, 11:00 am   #32
mike_newcomb
Rest in Peace
 
Join Date: Apr 2012
Location: West London, UK.
Posts: 665
Default Re: Unable to use COM1 port on IBM PC/AT

Hi Dave,

if the PC is configured for a serial mouse using COM1, I would think to disable the mouse, changes to *both* CONFIG.SYS *and* AUTOEXEC.BAT are required.

Once the mouse is disabled, COM1 should be completely available for your tests.

Regards - Mike
mike_newcomb is offline  
Old 5th May 2014, 11:48 am   #33
Dave Moll
Dekatron
 
Dave Moll's Avatar
 
Join Date: Feb 2005
Location: West Cumbria (CA13), UK
Posts: 6,131
Default Re: Unable to use COM1 port on IBM PC/AT

There is no mention of the mouse driver in CONFIG.SYS - I checked.
__________________
Mending is better than Ending (cf Brave New World by Aldous Huxley)
Dave Moll is online now  
Old 5th May 2014, 1:12 pm   #34
Paul Stenning
Administrator
 
Paul Stenning's Avatar
 
Join Date: Dec 2002
Location: Cardiff
Posts: 9,073
Default Re: Unable to use COM1 port on IBM PC/AT

Quote:
Originally Posted by Dave Moll View Post
Quote:
Originally Posted by cmjones01 View Post
There is a whole row of jumpers along the top which are probably the ones to set the I/O ports for the serial and parallel ports, but I can't read the legends to see how they're set.
Therein lies the problem. There do not appear to be any legends on this row of jumpers other than saying "P2-15" along the top.
Have a look at "Total Hardware 99" - there's several copies online including here http://th99.bl4ckb0x.de/ - it has info on thousands of cards, motherboards etc.
__________________

Paul Stenning
Forum Admin/Owner and BVWS Webmaster
Paul Stenning is offline  
Old 5th May 2014, 1:42 pm   #35
Dave Moll
Dekatron
 
Dave Moll's Avatar
 
Join Date: Feb 2005
Location: West Cumbria (CA13), UK
Posts: 6,131
Default Re: Unable to use COM1 port on IBM PC/AT

Thanks for the link, Paul. I am wondering, however, whether the I/O card is something of a red herring - with the problem actually lying elsewhere.

I think the next step is to see whether, as I mentioned above, I can get the two ATs to talk to each other via their serial ports - once I have located the appropriate cable and software.
__________________
Mending is better than Ending (cf Brave New World by Aldous Huxley)
Dave Moll is online now  
Old 5th May 2014, 1:55 pm   #36
Alistair D
Nonode
 
Alistair D's Avatar
 
Join Date: Jan 2010
Location: Edinburgh, UK.
Posts: 2,008
Default Re: Unable to use COM1 port on IBM PC/AT

All you need to know about interlnk(correct spelling) seems to be covered in this link.

http://www.pcxt-micro.com/dos-interlink.html

All you need is a null modem cable.

Al
__________________
I won't tell you how I discovered that.
Alistair D is offline  
Old 6th May 2014, 11:45 am   #37
Dave Moll
Dekatron
 
Dave Moll's Avatar
 
Join Date: Feb 2005
Location: West Cumbria (CA13), UK
Posts: 6,131
Default Re: Unable to use COM1 port on IBM PC/AT

Quote:
Originally Posted by Dave Moll View Post
I think the next step is to see whether, as I mentioned above, I can get the two ATs to talk to each other via their serial ports.
With the help of a copy of LAPLINK and a null modem cable I have confirmed that the two ATs are indeed on speaking terms via their respective COM1 ports, so it would appear that the issues reside within the PDS suite of programs.

Now here comes the bit that really has me scratching my head: despite having an I/O card with both COM1 and COM2 enabled and set to IRQ4 and IRQ3 respectively, neither LAPLINK nor a program I came across in the meantime, called CHECKIT, recognise the presence of a COM2 port - yet this is the one that claims to have received a test byte successfully! Again, I have tried both of the I/O cards - one of which, an "Everex Magic I/O" card, specifically describes itself as "for the IBM PC/XT/AT". Any thoughts on why COM2 is not being recognised?

I think it may be more appropriate for me to raise my PDS problems with the Telephone Heritage Group now that I have established that this issue does not appear to be with my computer hardware, and concentrate here on the COM2 issue.
__________________
Mending is better than Ending (cf Brave New World by Aldous Huxley)
Dave Moll is online now  
Old 5th Mar 2015, 4:34 pm   #38
Dave Moll
Dekatron
 
Dave Moll's Avatar
 
Join Date: Feb 2005
Location: West Cumbria (CA13), UK
Posts: 6,131
Default Re: Unable to use COM1 port on IBM PC/AT

After leaving this project in limbo for ten months, as mentioned in my thread on an Amstrad SM2400 modem, I have now circumvented this problem by using modems at each end - in fact at the Pentara end a pukka BT Test Equipment And Modem (TEAM) recently acquired - and have successfully copied the Pentara database to a floppy disc.

For some reason, it would only successfully complete at the painfully slow 300 baud. When copying at 1200 baud (the so-called "fast" option) it gets 50% through and gives a data error.

Now that I know it works when connecting via modems, I suspect that the problem I was having with the direct link is with the way I've wired the connecting cable. I'm pretty sure I've wired it as per the instructions, but it is just possible there's an error in those instructions. I shall go back and check my wiring against both the instructions and the way the TEAM's data cable is wired.
__________________
Mending is better than Ending (cf Brave New World by Aldous Huxley)
Dave Moll is online now  
Old 5th Mar 2015, 8:06 pm   #39
paulsherwin
Moderator
 
paulsherwin's Avatar
 
Join Date: Jun 2003
Location: Oxford, UK
Posts: 27,975
Default Re: Unable to use COM1 port on IBM PC/AT

It sounds as if there may be a flow control problem. This was always one of the less well standardised parts of modem operation. Some modems use RTS/CTS signalling, some waggle DSR on and off, some do it in software with XON/XOFF characters, and so on. The devices at each end have to be correctly configured to use the appropriate handshaking with their modems or buffer overruns will take place.

This can be a real headache when connecting differing devices and modems, and I'm profoundly grateful I don't have to deal with it any more. Now you've found a solution that works I suggest you stick with it
paulsherwin is online now  
Old 5th Mar 2015, 11:11 pm   #40
JohnBHanson
Heptode
 
Join Date: Aug 2009
Location: Worthing, Sussex, UK.
Posts: 662
Default Re: Unable to use COM1 port on IBM PC/AT

When in dos run debug
A>debug
-d40:0
(Note output)
-q


This will display the bios data area. The first 4 words (8 bytes) are the addresses of
the com ports that the bios has detected. This should help. Com 1 should be
at address 3f8 and com2 at address 2f8

Hope that helps.
JohnBHanson is offline  
Closed Thread




All times are GMT +1. The time now is 9:16 pm.


All information and advice on this forum is subject to the WARNING AND DISCLAIMER located at https://www.vintage-radio.net/rules.html.
Failure to heed this warning may result in death or serious injury to yourself and/or others.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright ©2002 - 2023, Paul Stenning.