Solved

Serial Port?

Posted on 2002-07-13
8
381 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
 

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now