Solved

Serial Port?

Posted on 2002-07-13
8
390 Views
Last Modified: 2012-05-04
I have a Sony Vaio laptop that came with Windows XP. I hooked in a peripheral to the serial port and the software that comes with it won't communicate with the device. I tested it on my desktop which is running Windows 2000 and it worked fine. I ran HyperTerminal and connected to COM1. When I tried to type nothing happened (nothing showed up on the screen). If I connect to COM3 I can type (words show up). Is there some other software using the serial port by default or is there a known problem with the sreial port? I really need this fixed fast. Thanks!

Note: HyperTerminal successfully opens the serial port. It doesn't complain about it being in use or having any problems.
0
Comment
Question by:xebra19
  • 4
  • 4
8 Comments
 
LVL 31

Expert Comment

by:rid
ID: 7151677
Is there a modem involved here (PCMCIA or on-board)? You may have a conflict with IRQ of COM1 and COM3, which is often the same (IRQ4). This would be the first thing to settle, as the "device" seems to be in working order. Many laptops have a serial port (COM1), an infrared port (COM2) and possibly an built-in modem that occupies COM3.

Check BIOS settings for COM ports and your manual for anything about modems.

Regards
/RID
0
 

Author Comment

by:xebra19
ID: 7151714
both the serial port and the modem are built in. Serial is COM1 and modem is COM3.

The device manager is XP lists the following:
Serial Port:
COM: COM1
IRQ: 04
Conflicts: None

Modem:
COM: COM3
IRQ: 09
Conflicts: None
0
 
LVL 31

Expert Comment

by:rid
ID: 7151727
The setup looks like it should work OK. Since it isn't clear what kind of "device" is involved here, and how it is supposed to be set up or respond to input from COM1, I can only suggest you first find a way of testing this port, including the connector etc. Something really simple, like from a DOS prompt, to bypass all software issues. If HW checks out OK, the program setup may need to be changed.

Regards
/RID
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

Author Comment

by:xebra19
ID: 7151730
I know the program works fine. I wrote it :-). It works fine on all other versions of Windows and uses simple serial port I/O API that is supported by all versions of Windows. I already checked out the software end. It must be a hardware problem. What about the issue with HyperTerminal? Does this indicate a problem with Windows or the hardware?
0
 

Author Comment

by:xebra19
ID: 7151980
I know that the hardware device and the software work. It must be a problem with the one of the following:
*Windows
*Serial port Interface
*Other conflicting software
0
 
LVL 31

Expert Comment

by:rid
ID: 7152004
Testing the serial interface with hyperterminal requires that there is a loopback of the characters you type in (they "bounce" from the device), in which case you should get single characters on screen when typing something in. (and ddoouubbllee characters if local echo is enabled...). Is your device supposed to do this? If it is, and you know it works, and you know the cable is OK, and you get nothing when typing, it is a hardware problem or a windows problem. To eliminate windows you need to test the COM port without windows interference, using something like a DOS based terminal or test program. Or you could try using the COM port in win XP for something else - try installing an external modem on the COM1. If that works, I'd say hardware is OK. You may be faced with an incompatibility issue between your software and XP.

If your program uses serial I/O by the I/O address, make sure BIOS setup shows the COM1 to be on the expected address.

Regards
/RID
0
 

Author Comment

by:xebra19
ID: 7152091
I use the CreateFile() and WriteFile() API. Wasn't sure about how Hyperterminal was working, but this is a "dumb" device and has nothing but some electrical wiring in it. I have a spare serial modem around somwhere. I will try that tomorrow. If that doesn't work do you know of any DOS programs that will let me test the serial port?
0
 
LVL 31

Accepted Solution

by:
rid earned 100 total points
ID: 7152327
One really simple way of testing a COM port:

Connect a known good modem that uses standard AT commands.
Boot to DOS (use a DOS or win9X bootable floppy).
Type the following at the A:\> prompt:

copy con com1 [Enter]
atz [Enter]
[Ctrl]+[Z] [Enter]

This should reset the modem; you should see the indicators flash a bit.

If you can connect to a line you could try using:
atdt 1222345656 (or whatever), instead of atz, and listen for dialling on the loudspeaker.

If you get no reaction, you may have a hardware problem or a COM1 port setup anomaly. Make sure BIOS doesn't assign COM1 to the IR port, if one is present.

Regards
/RID
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
general question about new tv 7 65
Looking for a laptop computer  that match my needs 5 36
Hypervisor 1 U 10 35
assignment of laptops - risks 6 48
In this article we have discussed the manual scenarios to recover data from Windows 10 through some backup and recovery tools which are offered by it.
Does your iMac really need a hardware upgrade? Will upgrading RAM speed-up your computer? If yes, then how can you proceed? Upgrading RAM in your iMac is not as simple as it may seem. This article will help you in getting and installing right RA…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question