Solved

Serial Port?

Posted on 2002-07-13
8
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

This is about my first experience with programming Arduino.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

630 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