Android REST SMS Gateway and Arduino Control Center

It sounds awkward? In short, REST SMS Gateway allows to change your phone into a powerful SMS Gateway which you can control from Arduino Control Center desktop application for sending alarm SMS messages.
For testing purposes, I've installed on my smart phone Android application called very intuitive - REST SMS Gateway :). I got this app from my friend, but you can download it from Android APK(install packages) download sites. This, and many other applications with similar purpose, are not available on Google Play store anymore due to Google Play Developer Policy which restricting SMS, CALL_LOG access only to default phone applications.

After downloading and installing APK Android package for REST SMS Gateway application, you will get this window:



NOTICE: your phone MUST be connected in LAN (local, home network over wireless connection!!!) Otherwise, this will not work.
After pressing Start button, this window bellow will show up. But, application will request from you access to Contacts, Images, SMS and to phone Calls. As I mention before, for this reason this application(and many other similar apps) are removed from Google Play store. Will you trust this or any other application made for this purpose, it's up to you. Be sure to download application from trusted source.


As you can see, the web address in this case is http://192.168.1.101:8080. Blue number is port, and it is hard-coded and it cannot be changed.
Green number is IP address, obtained automatically from home router or other device with DHCP (protocol for assigning IP address to devices within Local Network).
Green number, in your case, will be different. It can be 10.x.x.x:8080, 172.x.x.x:8080, 192.168.x.x:8080...
That's all you need from this Android application.

Of course, SIM card is in the phone. Right? :)
Arduino Control Center Application
I use this application to integrate SMS alarm notifications - Arduino device is not available, sensor, input or output alarm status is activated and user has to be informed about that change.
How to setup alarms in Arduino Control Center is out of scope for this blog. Tutorial about Alarms setup will be subject in another topic.
I only want to show you how easy is to setup and test Android REST SMS Gateway in Arduino Control Center with demo version and not configured any Arduino device.
- First, download and install Arduino Control Center from Downloads page.
- Open application and close, required for creating sms.ini file.
- Open installation folder and open sms.ini file.
- Copy lines below to sms.ini file, replace 192.168.1.101 with address from Android REST SMS Gateway application.

[RESTSMS]
urllabel=SMS service url
url=http://192.168.1.101:8080/v1/sms/
param1=
param1_text=
param2=
param2_text=
param3=message
param3_text=REST SMS application test
param4=phone
param4_text=38161xxxxxx number to send sms
parameters_info_url=
error_codes_link=
web_page=
logo_link=
param5=
param5_text=
param6=
param6_text=


Open up Preferences setup window, SMS Setup tab:


- Select RESTSMS from dropdown menu.
- Test SMS service:


- SMS with message on the phone with assigned number in sms.ini file:




That's it. Easy and very useful option. You can turn on your old smart phone with Android from 4.1.2 up to latest version into SMS Gateway for messaging in Arduino Control Center!!!

Comments

Popular posts from this blog

Secure way to control Arduino devices from anywhere in Arduino Control Center(Part I)

Why Arduino Control Center support only NANO,UNO and MEGA compatible boards?

Secure way to control Arduino devices from anywhere in Arduino Control Center(Part III)