Hi guys
I am struggling to get the following info.
I want when I send a SMS to the device to get the following info
Speed in kmh and readable gps location.(link to Google maps)
Also that the devices reads the phone number that has send the sms and if it's not a "linked" number to not send nothing, something like
If(sms 1 received and phone n xxddd)
Do this and that
Clear and memory
Else
(Nothing)
Clear sms memory
Thank you guys
What devices do you have ?
Arduino ?
GPS ?
GPRS ?
Can you read from the GPS ?
Can you send a text ?
It's this device #Aliexpress € 1,52 7%OFF | New SIM800L GPRS GSM Module w/ PCB Antenna SIM Board Quad band for Arduino
https://a.aliexpress.com/_UbnB5
It does send receive SMS.
Board is Arduino nano
GPRS, have used a posted code to control a led via sms
GPS module? Have ordered this one on the way
#Aliexpress € 1,06 | ! GY-NEO6MV2 new NEO-6M GPS Module NEO6MV2 with Flight Control EEPROM MWC APM2.5 large antenna for
https://a.aliexpress.com/_UtEwR
Can't I get GPS location via the sin card module? Gprs?
They are posts that you can get location using the sim800l module...but not clear for me
Danny1000:
They are posts that you can get location using the sim800l module...but not clear for me
You may be able to get a rough position but not the 'GPS' position which, by definition, is only available from a GPS receiver
Ahhh I see, every day something ner is learned. With the module that is on the way I guess it's possible
With the module that is on the way I guess it's possible
I would certainly hope so. A Global Positioning System module that could not give you its position would be a bit useless, don't you think ?
hi guys im back
im still waiting for the gps module...
i am testing some coding but have these problems
-how do i set the pin code to the sim800l (at+cpin"xxxx" ? ) wat the void setup? just with this works or is there something missing?
-How do i respond to a received concrete sms ? if i receive for example, on, performs an action with the arduino and sends me a sms that it is done BUT to any number to sends this message to the device, so i need to be able to id the sender and use this as the number to respond to, the current code i am testing a published one but not much results there
/*[//***************************************************
This code is an open source and can be modefied for better use
created 16 Feb 2017
by Noel Orbong Jr.
I have modified this code slightly - Deon Steyn
****************************************************/
#include <SoftwareSerial.h>
SoftwareSerial mySerial(9,10);
char incomingByte;
String inputString;
int led = 7;
mySerial.print("AT+CPIN="1212");
void setup()
{
pinMode(led, OUTPUT);
pinMode(LED_BUILTIN, OUTPUT);
//Serial.begin(9600);
mySerial.begin(9600);
// Check if you're currently connected to SIM800L
while(!mySerial.available()){
mySerial.println("AT");
delay(1000);
//Serial.println("connecting....");
}
//Serial.println("Connected..");
mySerial.println("AT+CMGF=1\r\n"); //Set SMS Text Mode
delay(1000);
mySerial.println("AT+CNMI=1,2,0,0,0"); //procedure, how receiving of new messages from the network
delay(1000);
mySerial.println("AT+CMGL=\"REC UNREAD\""); // Read unread messages
delay(1000);
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on
delay(1000);
}
void loop()
{
if(mySerial.available()){
delay(100);
// Serial buffer
while(mySerial.available()){
incomingByte = mySerial.read();
inputString += incomingByte;
}
delay(10);
////Serial.println(inputString);
inputString.toUpperCase(); // uppercase the message received
//turn LED ON or OFF
if (inputString.indexOf("ON") > -1){
digitalWrite(led, HIGH);
delay(100);
mySerial.write("AT+CMGS=\"082xxxxxxxx\"\r\n");////////////// here in need it to send to any sender, id the number and use it to reply
delay(1000);
mySerial.write("Switched ON");
delay(1000);
mySerial.write((char)26);
delay(1000);
////Serial.println("SMS sent");
}
if (inputString.indexOf("OFF") > -1){
digitalWrite(led, LOW);
mySerial.write("AT+CMGS=\"082xxxxxxxx\"\r\n");
delay(1000);
mySerial.write("Switched OFF");
delay(1000);
mySerial.write((char)26);
delay(1000);
////Serial.println("SMS sent");
}
delay(50);
//delete messages to save memory
if (inputString.indexOf("OK") == -1){
mySerial.println("AT+CMGDA=\"DEL ALL\"");
delay(1000);}
inputString = "";
}
}
Thanks guys