LOCALIZACAO EM TEMPO REAL AT + CLBS
COMO FACO PARA COLOCAR EM TEMPO REAL VIA CODIGO AT + CLBS a localizacao, alguem pode me ajudar ????
10 Comments
Time Descendingnao entendi, se pode colocar o codigo ???
MATLAB Code:
clc; clear all close all arduino = serialport("COM4",9600); pause(2) writeline(arduino,'AT+SAPBR=3,1,"Contype","GPRS"'); pause(2) writeline(arduino,'AT+SAPBR=3,1,"APN","mtnirancell"'); pause(2) writeline(arduino,'AT+SAPBR =1,1'); pause(2) writeline(arduino,'AT+CLBS=1,1'); pause(4) for x = 1:8 gpsstring = readline(arduino); end splitgps = strsplit(gpsstring,','); Y_Loc = splitgps(3); X_Loc = splitgps(2); disp("http://maps.google.com/maps?q=" + Y_Loc +","+X_Loc);
Arduino Code :
#include SoftwareSerial.h SoftwareSerial Sim800l(10,11); //10->TX sim800 , 11->RX sim800 void setup() { // put your setup code here, to run once: Serial.begin(9600); Sim800l.begin(9600); }
void loop() {
while(Sim800l.available()){
Serial.write(Sim800l.read());
} while(Serial.available()){
Sim800l.write(Serial.read());
}
}// use 4.2v power for sim800l and connect arduino ground and sim800 power to eachother
????? alguem pode ajudar, qual a api de localizacao do site.
mais tem como utilizar o campo para que ele seja atualizado de automatica igual os campos da temperatura e umidade, me ajuda por favor .
I'm sorry I cant help very well in Portuguese, but I recommend trying the getting started tutorial. Here is a translated version . There is also an example with AT commands in the ThingSpeak library .