Help me in Matlab, Port, AT commands

Thread Starter

Eng_Bandar

Joined Feb 27, 2010
46
Hi all,

I want make code by matlab to send SMS through Nokia mobile and this mobile support AT commands. I use usb cable to connect mobile with computer. ( I think problem from usb but I am not sure )

Rich (BB code):
s = serial('COM3');
set(s,'BaudRate',9600);
fopen(s);
tx='AT+CMGS="xxxxxxxxx"'; 
// where xxxxxxxx mobile number and AT+CMGS protocol to send sms by mobile 
fprintf(s,'%s',tx);
a = 'ss';
fprintf(s,'%s',a);
fclose(s) 
delete(s) 
clear s
but when I run the code nothing happen.
 
Top