Hi has anyone been able to connect Blynk via GPRS? theres alot of examples on how to connect through usb, ethernet and wifi... but i cant figure out how to do it via GPRS... could anyone help out ?
This would be the basic routine for connecting to a website , yet im not sure how to use this to connect to Blynk and control my Arduino via my smartphone.
void SubmitHttpRequest()
{
SIM900.println("AT+CSQ"); // Signal quality check
delay(100);
ShowSerialData();// this code is to show the data from gprs shield, in order to easily see the process of how the gprs shield submit a http request, and the following is for this purpose too.
SIM900.println("AT+CGATT?"); //Attach or Detach from GPRS Support
delay(100);
ShowSerialData();
SIM900.println("AT+SAPBR=3,1,\"CONTYPE\",\"GPRS\"");//setting the SAPBR, the connection type is using gprs
delay(1000);
ShowSerialData();
SIM900.println("AT+SAPBR=3,1,\"APN\",\"CMNET\"");//setting the APN, Access point name string
delay(4000);
ShowSerialData();
SIM900.println("AT+SAPBR=1,1");//setting the SAPBR
delay(2000);
ShowSerialData();
SIM900.println("AT+HTTPINIT"); //init the HTTP request
delay(2000);
ShowSerialData();
SIM900.println("AT+HTTPPARA=\"URL\",\"sim900test.net46.net/getstate.php?color=All\"");// setting the httppara, the second parameter is the website you want to access
delay(1000);
ShowSerialData();
SIM900.println("AT+HTTPACTION=0");//submit the request
delay(10000);//the delay is very important, the delay time is base on the return from the website, if the return datas are very large, the time required longer.
//while(!SIM900.available());
ShowSerialData();
SIM900.println("AT+HTTPREAD");// read the data from the website you access
delay(300);
changeLed();
ShowSerialData();
SIM900.println("");
delay(100);
}
Gprs would provide a much greater cover.. so im really hoping someone could help.
looking at the wifi & ethernet interface libraries from these guys you have to create your own implementation of communication custom made for your selected GPRS/3G module.
ps: i also looked at your project robin , Ezscrn ... very impressive i just want something , where i can control my arduino, without having it plugged into a pc or wifi, thats why i need help with this.
hi Robin2... i have researched stuff like RemoteXY, but these applications work off of bluetooth and wifi/ethernet....
im looking at using my android smartphone , to control my arduino through gprs , but not sms... getting sms to work is easy, im trying to control it through the smartphone itself.
This is what the Blynk application does... except it connects through wifi/ethernet and it has libraries that you can modify , to connect to their server and control you arduino thorugh other means, such as gprs... but i cant figure out how to do this.
I used your Ezscrn as well (which is a very good application)_... but this requires my arduino to be connected to the pc.
The main thing is that the arduino will be placed somewhere , that doesnt have usb, ethernet or wifi... it will only run off of gsm and gprs.
Smsing it will be 2 costly, so the alternative would be to use gprs.
I guess I don't know enough / much about GPRS. I thought it was the system used for sending data from a phone before the higher speed mobile broadband came along. I seem to remember using my phone to connect my PC to the internet using GPRS in times gone by.
Can modern smartphones use GPRS ?
Have you got a GPRS device for your Arduino ?
What is it?
Is there a library for using it?
Have you a link to that library?
I am writing this connected to the Internet via a 4G smartphone.
GPRS used to be the standard of data transmission for 2G networks with the coming of 3G its quit old(though in most of the developed world even 3G signals are like half of the time available only!)
The OP needs a data and voice compliant GSM module like the latest sim808 or sim900 and he needs to port the library of the Blynk utility to actually support this GSM module by looking at the way these Blynk guys did WiFi and ethernet he should be able to port it to GSM module of his choice if only he has any Good embedded systems and networking experience.
NI$HANT:
The OP needs a data and voice compliant GSM module like the latest sim808 or sim900 and he needs to port the library of the Blynk utility to actually support this GSM module by looking at the way these Blynk guys did WiFi and ethernet he should be able to port it to GSM module of his choice if only he has any Good embedded systems and networking experience.
Thanks for your info on GPRS.
I get the impression the OP does not need to use Blynk - he just thought it would be a simple solution.
My guess is that with a GSM Module and an account with a phone company he can connect to any website anwhere just as I am doing with this PC and my Smartphone.
I get the impression the OP does not need to use Blynk - he just thought it would be a simple solution.
My guess is that with a GSM Module and an account with a phone company he can connect to any website anywhere just as I am doing with this PC and my Smartphone.
Hi Robin
Well the OP wants the Arduino to be accessible remotely at the same time using a utility like Blynk thats already there! (with an app and Arduino library)
So what Im saying that blynk guys defintiely are having a library that makes the ethernet & WiFi connected modules driven by it, so to add a GSM unit the OP has to port the library part from ethernet & WiFI (or maybe just take hints and cues) and augment the library to support a GSM module like sim808 or 800 or 900 etc!
A PC and a smartphone to make Arduino accessible from anywhere is so much of size and power invested.
I have done all that but with my own apps nothing like Blynk (because I have to eventually cater to clients and they dont pay for some app already out there! they need some proprietary)
so he should try to make GSM modules GPRS tapped and communicated to fill some data table online on services like ThinkSpeak & Xively and then extract the info using a XML parser (bcz all of these services put out a XML version of any data you load on em!) should be less work than writing the Blynk add on for a GSM module.
NI$HANT:
A PC and a smartphone to make Arduino accessible from anywhere is so much of size and power invested.
I did not mean the OP should use a PC and a smartphone.
I meant that I assume an Arduino and a GSM device could connect to the internet in the same way that my PC and smartphone can. I am not limited to any specific website such as Blynk.
There must be dozens of Forum Threads about Arduinos with GSM devices.
I meant that I assume an Arduino and a GSM device could connect to the internet in the same way that my PC and smartphone can
Yes TCP/IP protocols are implemented in these modules also UDPs and using them HTTP secure etc calls can be made to a online API called xively or thingspeak.
NI$HANT:
Yes TCP/IP protocols are implemented in these modules also UDPs and using them HTTP secure etc calls can be made to a online API called xively or thingspeak.
Sorry to keep this going, but I am curious if you can only contact xively and thingspeak ?
I thought you could connect to any website including, for example, this Forum one (not that that would be sensible). In other words can't you just connect to http://www.whatever
Sorry to keep this going, but I am curious if you can only contact xively and thingspeak ?
I thought you could connect to any website including, for example, this Forum one (not that that would be sensible). In other words can't you just connect to http://www.whatever
It's fine no need for the courteous sorry!
NO NO I didnt mean you can only connect to xively & thingspeak ,I just mentioned these sites because they have the necessary API/Infrastructure to deal with the communication and security of the connection in concern while giving you all the functions of loading data in separate datastreams for all different purposes and maintaining the data respository in such a way that it can be parsed and ported to XML ,csv etc formats for easy data extraction etc.
You could possibly build your own utility on your own site! too, I did several years ago where I had a page with a colorful graph showing my labs temperature! wherein a PHP file was parsing data and putting it into a database from where another php file was populating the data plotting it on the graph. here it is >> http://winacro.com/index.php/playingprojects (not used since 2 years!) and I did it with GPRS! without any blynk etc shit in between. or even xively and thingsPeak etc were not used.