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
Solved

XP and serial communications breakdown.

Posted on 2004-09-30
6
413 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
  • 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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Suggested Solutions

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

792 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