By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,483 Members | 1,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,483 IT Pros & Developers. It's quick & easy.

SerialPort.DataReceived "Problem"

P: n/a
I am using my mobile phone as modem to send some SMS using modem AT commands
and have the SerialPort.DataReceived to get the "reply" from the Port using
private void SerialPort_DataReceived(object sender,
SerialDataReceivedEventArgs e)
m_ReceivedAnswer = true;
m_ReceivedText = m_SerialPort.ReadExisting();

However, I sometimes cannot get the expected "reply" from it... the value of
m_ReceivedText may become partial of the expected result and sometimes even
as part of the command that I was sending.

Is there any way that I can get the "full reply" and/ or to distinguish
whether the port is "sending" or "receiving"?

Feb 7 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.