Send sms to API

  • 1
  • Question
  • Updated 2 years ago
So how do you send an SMS to the AerFrame APIs?  What phone number do we put in the AT command shown below from Adafruit?

================

Test Send SMS
Finally, you can try to text your phone! Sending an SMS is pretty darn easy. 

  • AT+CMGF=1 - this will set it to TEXT mode not PDU (data) mode. You must do this because otherwise you cannot just type out the message.
  • AT+CMGS="nnnnnn" - send a text message! You will get a '>' prompt for typing. Type out your message and when you are done send a [Control-Z] on an empty line to send
It may take a few seconds after the Control-Z character for the module to send the SMS (you'll get a +CMGS) and verify it was sent (OK reply)
Photo of Greg Owen

Greg Owen

  • 5 Posts
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of Jesse Hamus

Jesse Hamus, Official Rep

  • 24 Posts
  • 0 Reply Likes
Hi Greg,

Good question.  NEO documentation provides users a guide to API's.  Please see the link here:
http://neo.aeris.com/support/apis/api-overview/

If that doesn’t address your concerns please reply.

Thanks,
Jesse
Photo of Greg Owen

Greg Owen

  • 5 Posts
  • 0 Reply Likes
Thanks Jesse-
That is the guide to the API side, how do I send the SMS on the device side?
Greg
Photo of Bob Heckmann

Bob Heckmann, Official Rep

  • 349 Posts
  • 12 Reply Likes
Hi Greg,

Thanks for the question. Correct me if I'm wrong but it sounds like you've put your Neo SIM in an Adafruit device and you're attempting to send SMS to a mobile phone from the device. Assuming that's the case, please note the Neo connectivity service does NOT support SMS with a device that's not registered on the network. It's an important security feature that protects connected devices from potentially abusive network activity originating from external devices.

For a tutorial demonstrating the use of AerFrame, our SMS API, please consult this page.


Regards,
Bob
Photo of Greg Owen

Greg Owen

  • 5 Posts
  • 0 Reply Likes
Thanks for the fast response, Bob.  Yes the SIM is in an Adafruit device, but I see from your other replies that I can't send to a mobile phone.  I want to send to the API, but the source is a module.  I thought that is what the IOT is all about.  I can send a SMS from the web page, but I need to send data from the device to the API / server.

Greg 
Photo of John Merlino

John Merlino

  • 1 Post
  • 0 Reply Likes
Hi Greg, I also wanted to use a 2G SIM card for a device to alert my user's cell phones.  Have you found any other service provider that actually delivers an alert to a cell phone?  Sounds like a basic requirement for M2M monitoring.  Thanks, John@siriusintegrator.com
Photo of Greg Owen

Greg Owen

  • 5 Posts
  • 0 Reply Likes
Hi John, I really want to get it working with aeris, but for now am having better luck with a sim from Truphone.  Be sure to check out the awesome http://m2msupport.net/m2msupport/module-tester/
You can play with that to make sure all your commands work, then program with mbed processor or raspberry pi (depends how strong your batter is).
Photo of Greg Owen

Greg Owen

  • 5 Posts
  • 0 Reply Likes
Hi Bob, can we send an SMS with AT commands from a device to the API?