i changed the number and com port but unable to send sms,i get my modem details displayed in command window ,but sms is not sent,i want to send sms to indian mobiles kindly help
%%%%%%%%%%%%%%%%Matlab code for sending SMS%%%%%%%%%%%% try clc; clear all; global BytesAvail; global A; global B; tx ='AT'; tx1=char(13); tx2=char(26); tx3='AT+CMGS="923159076826"'; % You have to replace this with the Receiver's Phone number tx4= ' This is a test msg '; %This is the msg body tx5='AT+CMGF=1';
s = serial('COM4', 'BaudRate', 230400); % You have to replace this with your 3G modem's COMport number fopen(s); s.Terminator = 'CR';
ya i tried even this ,the messgae is sent to mail,but in the in box ,it says that the message cannot be delivered,i changed the my carrie name ,even though message is not sent,kindly help
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/120618-how-to-send-an-sms#comment_516775
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/120618-how-to-send-an-sms#comment_516775
Sign in to comment.