471,325 Members | 1,111 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

SerialPort.DataReceived "Problem"

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
0 3642

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by newbie_mw | last post: by
reply views Thread by Miki Tebeka | last post: by
2 posts views Thread by Alexander Bartzas | last post: by
6 posts views Thread by Fao | last post: by
1 post views Thread by Shapper | last post: by
1 post views Thread by eggie5 | last post: by
3 posts views Thread by katieh | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.