Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi... I am facing problem in a co

Status
Not open for further replies.

isaisa

Programmer
May 14, 2002
97
IN
Hi...
I am facing problem in a code which i have written for sending the data using a serial port. I am using 56 kbps external modem for sending the data to the other machine using PSTN network. I am using async mode for data tranfer and the development is in SDK. The modem in this case is a standard Hey's modem.

I could able to send the data and receive the data....but the trouble is a loss of data. What is happening is that my application is running on the NT machine. If i run many applications on the same machine and try to receive the data send by other modem then i some times loose the bytes send by the other modem. I am handling the data byte by byte and my receiver[machine who is receiving the data by answering the ring request from other machines] did not satisfy the exit condition of an infinite loop which i wrote for continuously receiving the data....

I am using the non-overlapped mode and usind ReadFile and WriteFile function for reading and writting to/from port...

Please help....also is there any low level function to achieve the same ... i have done this with DOS using the interrupts and it was very fast as compared to the module developed using windows functoins..

Thanks in advance
Sanjay
 
try using hardware flow control, Please check for proper handshaking between the two modems before starting data send. Verify the baud rate.
If you think you can't do it,You will never be able to do it.
 
try using hardware flow control, Please check for proper handshaking between the two modems before starting data send. Verify the baud rate.


Rahul If you think you can't do it,You will never be able to do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top