Solved

XP and serial communications breakdown.

Posted on 2004-09-30
6
386 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

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

Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
A short article about a problem I had getting the GPS LocationListener working.
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

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