Air200 GSM module have problem with AT commands, Why? - sms

I bought an air200 gsm module and this module won't work properly. in one hand i use the standard at command for sending Unicode SMS, but cant sends Unicode. from the other hand when I send text SMS, for every SMS I send the network less my credit double cost. anybody can please help to solve the problem?
I send the following command for sending SMS:
AT+CMGF=1
AT+CSMP=17,11,0,0
AT+CSCS="GSM"
AT+CMGS="number come here"
SMS body
// Ctrl+Z to send SMS
in this case, I can send SMS message but however, I send just one SMS it decreases my credit double time.
I use the following command to send Unicode SMS but it gets the error:
AT+CMGF=0
AT+CSCS="UCS2"
AT+CSMP=49,167,0,8
AT+CMGS="number come here"
d8b3d984d8a7d985
// Ctrl+Z to send SMS
everything goes OK until I send AT+CMGS="number" and it response ERROR.
anybody please can get an idea? whats happen exactly?
I send at command under raspbian Linux on the raspberry pi.

AT+CMGS="number come here"
I suspect that you have not UCS2 encoded the phone number. Notice that after you run AT+CSCS="UCS2" every single string must be encoded that way, so for instance to switch from UCS2 to UTF-8 would be AT+CSCS="005500540046002D0038".

Related

SMS containing links not delivered by some carriers

My web app sends an SMS text message to users in the US when they enter their phone number, using the Nexmo API. When the SMS contains a link, it does not get delivered to users if their carrier is Verizon or T-Mobile. For other carriers, such as Sprint and AT&T, it does get delivered. It does not generate error messages in any case with Nexmo and I still get charged for the text even if it gets blocked by the carrier.
I contacted Nexmo and they replied:
I would say it is very likely that the link in this sms caused a spam
filter to block this message, especially if other plain content
messages have been delivered to this number successfully. So the issue
with US LVNs is that they are intended for pure P2P traffic and this
is why sending a link might be suspicious and seen as a message
originated from an application. Unfortunately there is nothing we can
do about this as it is set by the US carriers.
These are not definitely not spam or marketing messages. How can I send a link in an SMS message and not get blocked?
I had the same issue recently. All major carriers have some basic checks in place which blocks the SMS from getting delivered if you use short links (e.g.http://abc.gl/1432). The SMS will get delivered as long as you have a .com in the URL (e.g. http://abc.gl.com/1432)
Well, I observed that some carriers mark it as spam if have "Some Message. Click Here http://example/somelink" format.
Removing "Click here" part worked for me.
i.e. "Some Message. http://example/somelink"
Got the same issue. I have been using twilio to a t-mobile phone in the US.
SMS Hello Alan, your code is: 146945 for website.com is not working but
SMS Hello Alan, your code is: 146945 is working fine.

In gsm modems, how to inform when a new message has been received (Interruptly) using at commands like CNMA or CNMI?

I'm developing a winform program in which, I need send and receiving SMS messages, I have no problem in sending SMS, but i don't know how to inform when a new message has been received in a gsm modem? I wanna have an acknowledgement like an interrupt or event, when a new message has been received. As far as I know i should work to at+CNMI or at+CNMA, but unfortunately i cant find an example for those.Furthermore I wanna know how to get delivery message or how to handle that? Thanks in advance.
Depends on device type you are using. Use AT+CNMI=? to see all possible options your device supports.

Can I send a SMS when I reach a location-XCODE

I've read auto sms is not possible, if you send a SMS through an app you need user interaction like pressing a button.
But if my phone shows up at a particular position based on gps and a stored record that has that gps info, would that not be the user interaction I need and the sms just get sent?
From the code I've seen if button pressed run this code and send SMS.
What I'd be doing basically is
If I arrive at this location send SMS. From my view this is not exactly Auto SMS, its sms based on certain variables but without user interaction.
Is this possible, am I making any sense lol
As a workaround, you could use one of the SMS services available to send a SMS. If you would like a free solution, you can use the carrier email-sms to send a SMS. You just have to send an email at this point in your code.

Unsolicited Response (+STCR) from SIM Toolkit not visible

I'm testing a SIM Toolkit application using AT Commands. I have a USB modem that supports SIM Toolkit Class 2 features and is based on the Open AT Firmware. I am able to successfully interact with the SIM Toolkit by using the +STSF, +STGI, and +STGR commands. I also receive +STIN replies as per the message flow shown here. What I do not receive is the Unsolicited Response (+STCR) from the SIM when an SMS message or USSD message is sent out. I am using the following Terminal Profile during initialization:
AT+STSF=2,"5FFFFFFF7F",3,1
Based on the Terminal Profile, the Call Control bit is set to 1 or enabled. You will also notice that the Autoresponse is set to 1. Therefore, I receive an +STGI response when a message is sent. Here is the lead up to when the SIM sends an SMS message:
AT+STGR=6,1,1
OK
+STIN: 9
+STGI: ""
OK
You can see that +STIN: 9 means an SMS message is sent out. I believe based on my initialization, I should also see an +STCR and there should be some text in the +STGI. If anyone is familiar with the SIM Toolkit and accessing it through the AT Command set, then I would appreciate some insight as to why I do not receive a response when an SMS message is sent out. Thanks.
Reference:
1: Wavecom AT Commands Interface Guide for X51a - WM_ASW_OAT_UGD_00016
I think the USB modem is busy for doing other task.
If you send response with 0x91xx instead of 0x9000 again and again while you don't receive Instruction byte ie 0x12 ie FETCH command.
where XX means no of STK byte .

How to send an SMS type message using Processing data?

I have code written up in Processing that works as a serial monitor for my Arduino Fio. I have a few sensors on the Fio that output a warning message when a value surpasses a threshold. How do I get warning statements sent to a phone number as a text message as well?
If you need to send email to just a particular phone (i.e. your own) or a small set of phones known in advance, many carriers have an email SMS gateway. For example, to SMS the Verizon phone 304-555-1212, just send email to 3045551212#vtext.com
See: http://en.wikipedia.org/wiki/List_of_carriers_providing_Email_or_Web_to_SMS
Here is an example on how to send email from Processing: http://www.shiffman.net/2007/11/13/e-mail-processing/
Twitter is a good place to start with this. Your thing -> twitter. Twitter -> SMS (or other clients). Otherwise, it gets expensive and more complicated.

Resources