Solved

XP and serial communications breakdown.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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 post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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 …

863 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

19 Experts available now in Live!

Get 1:1 Help Now