Eng_Bandar
Junior Member level 3
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 )
but when I run the code nothing happen.
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 )
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.