LOCALIZACAO EM TEMPO REAL AT + CLBS

BANDEIRA ROGERIO on 11 Dec 2021
Latest activity Reply by BANDEIRA ROGERIO on 13 Mar 2022

COMO FACO PARA COLOCAR EM TEMPO REAL VIA CODIGO AT + CLBS a localizacao, alguem pode me ajudar ????

BANDEIRA ROGERIO
BANDEIRA ROGERIO on 5 Feb 2022

nao entendi, se pode colocar o codigo ???

amir sayyad
amir sayyad on 1 Feb 2022

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

BANDEIRA ROGERIO
BANDEIRA ROGERIO on 12 Dec 2021

????? alguem pode ajudar, qual a api de localizacao do site.

BANDEIRA ROGERIO
BANDEIRA ROGERIO on 12 Dec 2021

mais tem como utilizar o campo para que ele seja atualizado de automatica igual os campos da temperatura e umidade, me ajuda por favor .

Christopher Stapels
Christopher Stapels on 12 Dec 2021

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 .

BANDEIRA ROGERIO
BANDEIRA ROGERIO on 12 Dec 2021

amigo qual a api de localizacao do site

Christopher Stapels
Christopher Stapels on 13 Dec 2021

You can set the location of your channel using the Write settings API for channels, using your user API key. You can set the location for feed data in each channel update when you write data . Use the write API endpoint with the parameters &lat=xx&long=yy&elevation=zz.

BANDEIRA ROGERIO
BANDEIRA ROGERIO on 5 Feb 2022

me ajuda, coloca o codigo pra mim.

Christopher Stapels
Christopher Stapels on 7 Mar 2022

Please read the documentation that I linked, and then ask specific questions about the code or documentation.

BANDEIRA ROGERIO
BANDEIRA ROGERIO on 13 Mar 2022

CHRIS E ASSIM ESTOU SOMENTE COM O MODULO GPRS SIM8001 POREM EXISTE ALGUM COMANDO QUE CONSIGO PEGAR A LOCALIZACAO POR IP PARA EU VINCULAR A parâmetros &lat=xx&long=yy&elevation=zz.