Comments (16)
nope... and i have up on it many years ago
i got a new car also and i have decided not to put a heater in to it, its more trouble than its worth and the Peugeot 108 i got heats up so fast on its own that a heater will be a waste of money
from gsm-gprs-gps-shield.
@madmaze sorry for pinging.... but do you have a clue? or know who might know what i do wrong
any pointers are welcome
from gsm-gprs-gps-shield.
hello @boelle , I think your code should be like this..
stat=sms.GetAuthorizedSMS((int)pos,number,strlen(number),message,180,8,10);
from gsm-gprs-gps-shield.
will try during the day, had a harddisk crash to take care of
from gsm-gprs-gps-shield.
sket is now:
tried to solve some {} issues in the main loop but they are still wrong
from gsm-gprs-gps-shield.
one thing that i never understand is this line:
char number[]="3921234567";
its in all the examples even thou example 3 i have based my code on is one that takes the number stored on the sim card pos 8-10... so why tell it a phone number?
from gsm-gprs-gps-shield.
actually its not tell the phone number, it is a pointer to the reserved allocation for a string..
phone_number: a pointer where the tel. number string of received SMS will be placed
so the space for the phone number string must be reserved
from gsm-gprs-gps-shield.
oki doke
can you see how i could clean up the code more?
i still have trouble with {} in last void
from gsm-gprs-gps-shield.
i believe your code missing one curly bracket } at the end of your code
from gsm-gprs-gps-shield.
i posted the wrong link but its still the same: http://pastebin.com/raw/KYRJXCbQ
if i put a } at the very last line i get:
`
C:\Users\Bo\OneDrive\fyr\fyr.ino: In function 'void loop()':
fyr:393: error: expected '}' before 'else'
else{
^
fyr:410: error: expected '}' before 'else'
else{
^
C:\Users\Bo\OneDrive\fyr\fyr.ino: At global scope:
fyr:432: error: expected declaration before '}' token
}}}
^
exit status 1
expected '}' before 'else'`
from gsm-gprs-gps-shield.
if i put } before the last 2 else i'm left with:
fyr:432: error: expected declaration before '}' token
}}
^
exit status 1
expected declaration before '}' token
but google is not my friend... or i'm stupid :-/
from gsm-gprs-gps-shield.
wow what a code.. :) your if.. else syntax is not right.
you can use either
if (condition){
//do something
}else if(condition){
//do something
}else{
//do something
}
or nested if.. else
if (condition){
//do something
}else {
if(condition){
//do something
}else{
if(condition){
//do something
}else{
//do something
}
}
}
hope that will help
from gsm-gprs-gps-shield.
will try...
i'm not any coding expert so i guess it will take a few tries to get right
from gsm-gprs-gps-shield.
this is the code i came up with
http://pastebin.com/raw/Rhb4Tk2E
the logic as i see it or meant it to be:
first it will check for a new sms
then it will check if the sender is stored in pos 8-10 on the sim card
if the sender is in pos 8-10 it will check the word in the sms
if the word is start it should go to turnOn void
if the word is stop it should go to turnOff void
if the word is status1 then it should go to get_status void
if the word is status2 then it should go to get_status2 void
then it should delete the sms
and last if the word was start and it has been to the turnOn void it should now visit the keepAlive void
this whole project is for my car.. it has a petrol driven preheater from webasto
the project is a merge of 2... one is the GSM/GPRS & GPS shield from open electronics, the other is a lib i found in this youtube video https://www.youtube.com/watch?v=6zZjSFef4yA
i dont use the LCD in that video but i use the lib from there and the description on how to connect the webasto heater...
instead of the lcd and buttons i use the GSM module so i can control it from anywhere and not limited by 100meter range on a good day
next step is to get the shield... or maybe i will hardwire direct to the mega.. i allready have the GSM module from a tidigino. if i go with direct wire it i just need the right level shifter for the serial line
and i also need to get the bits for connecting the webasto to the mega
so with some luck i will at least have the GSM connected before end of month
from gsm-gprs-gps-shield.
Q: i could not find this in the examples
is it possible to monitor if the module is connected and automatic power it down and then power it up again?
i had some trouble last time i attempted this, each time i started the car the voltage up and down made it drop gsm connection.. and if i took power off the module and powered it up it worked fine until next time i started the car
from gsm-gprs-gps-shield.
HI Bo @boelle
Did you manage to get it running?
I would very much make the exact same project as you did. It is all I need, but I am not sure, how to do it all.
I have a GSM module (A6) and a Mega. I also have an OBD II module hacked, so i can communicate with my heater.
I am missing instructions on how to do the wiring, and if there is any changes in some libaries.
I hope, that you will help me.
Svend
Denmark.
from gsm-gprs-gps-shield.
Related Issues (20)
- Cant register at forum
- AT+CMGR=1 returns only headers
- Send Custom AT Commands HOT 1
- Pin problem
- Push Data to server HOT 1
- ERROR: SIM900 doesn't answer. Check power and serial pins in GSM.cpp
- GSM AND Esp8266
- Getting IMEI
- Pin Configurations HOT 1
- Not accepting certain characters
- this code doesn't work i successfully uploaded the call program it shows the called number but doesn't hang up the call HOT 1
- Make simpleWrite(char* comm) in SIM900.cpp to be like write(buf,len)
- Library with Nano and sim900 breakout (not shield)
- problem library errors
- Can't parse sms more 140 characters
- Don't know how to make httpPOST request to Ubidots REST API HOT 1
- How to directly to database mysql
- Arduino Mega + sim900
- Using library with Arduino Due
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gsm-gprs-gps-shield.