EDN Admin
Well-known member
Hi everyone,,
iam working a project to send SMS messages from my pc to mobiles using GSM modem..
in order to do that i have to write the following commands in hyper terminal..
AT <cr>
responce from the modem is OK
AT+CMGF=1
responce from the modem is OK
AT+CMGS="my mobile number"
responce from the modem is >
then i write the message and press CTRL_Z then Enter
responce from the modem is OK
************************************************************************************
The problem is that in C# it is not sending the message although the commands worked in Hyper terminal..
In C# when i send CTRL_Z in shows me [] symbol although in hyper terminal it shows -> an arrow..
how to send ctrl Z correctly in C#..
i tried the following and they didnt work <font size=2>
serialPort1.Write(</font><font color="#800000" size=2>"u001A"</font><font size=2>);</font> <font size=2><font size=2>
serialPort1.Write(26+</font><font color="#800000" size=2>""</font><font size=2>);</font> <font size=2><font size=2>
serialPort1.Write(</font><font color="#800000" size=2>"CTRL-Z"</font><font size=2>);</font>
<font size=2>???</font>
<font size=2></font>
<font size=2>Please help me if you have any ideas</font>
<font size=2></font>
<font size=2>thnx </font></font></font>
View the full article
iam working a project to send SMS messages from my pc to mobiles using GSM modem..
in order to do that i have to write the following commands in hyper terminal..
AT <cr>
responce from the modem is OK
AT+CMGF=1
responce from the modem is OK
AT+CMGS="my mobile number"
responce from the modem is >
then i write the message and press CTRL_Z then Enter
responce from the modem is OK
************************************************************************************
The problem is that in C# it is not sending the message although the commands worked in Hyper terminal..
In C# when i send CTRL_Z in shows me [] symbol although in hyper terminal it shows -> an arrow..
how to send ctrl Z correctly in C#..
i tried the following and they didnt work <font size=2>
serialPort1.Write(</font><font color="#800000" size=2>"u001A"</font><font size=2>);</font> <font size=2><font size=2>
serialPort1.Write(26+</font><font color="#800000" size=2>""</font><font size=2>);</font> <font size=2><font size=2>
serialPort1.Write(</font><font color="#800000" size=2>"CTRL-Z"</font><font size=2>);</font>
<font size=2>???</font>
<font size=2></font>
<font size=2>Please help me if you have any ideas</font>
<font size=2></font>
<font size=2>thnx </font></font></font>
View the full article