Hey ppl,
I'm doing a project which needs serial communication. I'm sending and receiving data from a PIC through the serial port. I'm using Windows XP and dev cpp.
I'm succesfully sending data by my program to the PIC. I'm using inpout32.dll file to access serial port because windows dosen't give direct access to those ports.
The problem occurs when reading the data I get from the PIC. I need to read 30 characters sent by the PIC, but I couldn't do it by my program. But I get all that data to hyperterminal.
So is there any syntax or header file in c to read data from serial port????
vathsala1
0
Newbie Poster
Recommended Answers
Jump to PostMost likely your program is losing data because it does not have an interrupt driven input driver. If you used win32 api functions you would not have that problem. See this article
Jump to Postas an aside, check out TeraTerm. its probably the best Serial/FTP/SSH terminal interface available. if you're going to do any amount of serial work, you really need to get away from HyperTerm.
All 5 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Banfa
597
Posting Pro
Featured Poster
vathsala1
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
jephthah
1,888
Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.