za gprs odma mozes da zaboravis "stare telefone" :)
Ja bi ti (zbog brzine) preporucio
http://www.seeedstudio.com/dep...hield-p-779.html?cPath=132_134
to je klasican SIM900 na arduino shield pcb-u
pogledaj ovde:
http://www.seeedstudio.com/wiki/index.php?title=GPRS_Shield_v0.9b
imas brdo informacija o njemu, slike sa svih strana...
onda pogledaj:
http://www.seeedstudio.com/wiki/Seeeduino_Stalker_v2.1
on je kao arduino kompatibilna platforma na koju mozes da zabodes GPRS SHIELD od malopre (ti ovu celu platvormu mozes da napravis sam sa svojim mcu-om po zelji, npr sa picom i basicom), ono sto je korisno je primeri koji postoje za ovu platformu a koji pricaju sa onim shieldom i koriste gprs (pogledaj taj wiki trebalo bi da su primeri tu)
dalje pogledaj:
http://www.libelium.com/squidb...for_Arduino_%28Hilo_-_Sagem%29
Code:
/*
* ------Arduino connection to the internet using GPRS shield from Libelium------
*
*
*
* Copyright (C) 2009 Libelium Comunicaciones Distribuidas S.L.
* http://www.libelium.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Version: 0.1
* Design: Marcos Yarza
* Implementation: Marcos Yarza
*/
int onModulePin = 2; // the pin to switch on the module (without press on button)
void switchModule(){ // Funtion to switch the module ON
digitalWrite(onModulePin,HIGH);
delay(2000);
digitalWrite(onModulePin,LOW);
}
void setup(){
pinMode(onModulePin, OUTPUT);
Serial.begin(19200); // the GPRS baud rate
switchModule(); // swith the module ON
for (int i=0;i<2;i++){ // Wait 20 sec for connection
delay(10000);
}
Serial.println("AT&k3");
delay(1000);
Serial.print("AT+KCNXCFG=0,");
Serial.print(34,BYTE);
Serial.print("GPRS");
Serial.print(34,BYTE);
Serial.print(",");
Serial.print(34,BYTE);
Serial.print("internetmas");
Serial.print(34,BYTE);
Serial.print(",");
Serial.print(34,BYTE);
Serial.print(34,BYTE);
Serial.print(",");
Serial.print(34,BYTE);
Serial.print(34,BYTE);
Serial.println();
delay(1000);
Serial.println("AT+KCNXTIMER=0,60,2,70");
delay(1000);
Serial.println("AT+KCNXPROFILE=0");
delay(1000);
Serial.println("AT+CGATT=1");
delay(1000);
Serial.print("AT+KTCPCFG=0,0,");
Serial.print(34,BYTE);
Serial.print("www.google.com");
Serial.print(34,BYTE);
Serial.println(",80");
delay(1000);
Serial.println("AT+KTCPCNX=1");
delay(7000);
Serial.println("AT+KTCPSND=1,18");
delay(2000);
Serial.println("GET / HTTP/1.0");
Serial.print(10,BYTE);
Serial.print(13,BYTE);
Serial.print("--EOF--Pattern--");
delay(2000);
Serial.println("AT+KTCPRCV=1,807");
delay(1000);
Serial.println("AT+KTCPCLOSE=1,1");
delay(1000);
}
void loop(){
}
kao sto vidis nije neka komplikacija, samo prodji sve AT komande