Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
why i can use AT command in microsoft visual C# 2008 express edition?
i make program that send SMS using GSM modem.

C#
string command = "AT+CMGS=";
            string command2 = "+6";
            string comand3 = "\r";
            string SMS = richTextBox1.Text;
            string phoneNum = textBox1.Text;
            serialPort2.WriteLine(command + "\"" + command2 + phoneNum + "\"" + comand3 + SMS + char.ConvertFromUtf32(26));
Posted
Updated 8-May-10 11:15am
v3
Comments
[no name] 8-May-10 15:43pm    
How are you trying to use it?
mat_saleh87 8-May-10 15:50pm    
before this i use visual c# 2005. i can run the at command.
when i use visual C# 2008 express edition, it can't run the at command.
let say i type AT.
the text box should the GSM shold rply ok.
but it not show.

1 solution

First, you need to provide more code. Second, did you run it under the debugger to see if there's an exception being thrown?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900