Solved

XP and serial communications breakdown.

Posted on 2004-09-30
6
426 Views
Last Modified: 2010-04-17
I am running embedded XP on a Pentium Windows computer. After moving from Windows 98 to XP all serial comm from the serial port fails. WriteFile sets the correct number of characters written, but no output.  I can remotely debug my program on the pentium machine with my PC, and WriteFile reports the correct number of chracters send, but nothing comes from the serial port. I have tried a NULL modem cable and a straight cable connection while running hyper-terminal on both machines with no luck at all. What are the issues in migrating serial comm from Windows 98 to XP? What do you think I should try to fix my problem? After 2 days I'm out of guesses.
0
Comment
Question by:royonlanier
[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
  • 2
6 Comments
 

Author Comment

by:royonlanier
ID: 12195154
Also, VC++ WriteFile returns a true, non-zero value.
0
 

Author Comment

by:royonlanier
ID: 12195421
Also, I tried   type com.ini > com1   that returns without error, but no data comes from any of the embedded computer's serial ports to the PC. The same NULL modem cable and the same command works when I replace the embedded computer with a notebook.
0
 
LVL 6

Accepted Solution

by:
vadim_ti earned 125 total points
ID: 12196030
it is looking like a problem with BIOS setup of your embedded,
i have seen such a problem with DLOG computers

check BIOS setup, may be you think your port (port you connect a cable) is  COM1 and really it is another port.
so you write to one port, and cable is connected to another one
0
 
LVL 55

Assisted Solution

by:Jaime Olivares
Jaime Olivares earned 125 total points
ID: 12196504
Have seen the same problem, serial communications in XP is more strict. But I recommend you to use a ready-made serial library. You can find many at codeproject.com (for Visual C++):
http://www.codeproject.com/system/chaiyasit_t.asp
http://www.codeproject.com/system/serial.asp
http://www.codeproject.com/system/cserialport.asp
http://www.codeproject.com/system/serial_com.asp
http://www.codeproject.com/system/simpleserialcomm.asp
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Starting up a Project

688 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