Closed GoogleCodeExporter closed 8 years ago
Hi, sorry but where is the difference between the two codes? Seems they are the
same code. Marco
Original comment by martines...@gmail.com
on 14 Apr 2012 at 8:14
Hi
Exactly, this is a mistake, sorry
I will change the first upload
But the problem is on the code GSM_AUTO_PUMP_VALVE. If I add 2 conditions for
the valve in the code GSM_AUTO_PUMP
if (memcmp(smsbuffer,vanne_on,7)==0)
{
Serial.println("VANNE ON");
digitalWrite(12, HIGH);
}
if (memcmp(smsbuffer,vanne_off,7)==0)
{
Serial.println("VANNE OFF");
digitalWrite(12, LOW);
}
I upload the new code in Arduino. And the Arduino no start. I delete the code and now the Arduino start.
It's really strange. I don't see the reason
If you have a idea why ?
Thanks in advance
Original comment by f.tisser...@wanadoo.fr
on 15 Apr 2012 at 5:48
Attachments:
I think that this can be a memory's problem. Do you have the DEBUG turned off
(it takes a lot of ram)? Try reducing SMS buffer and let me know ;)
Marco
Original comment by martines...@gmail.com
on 15 Apr 2012 at 11:59
Any news?
Original comment by martines...@gmail.com
on 21 Apr 2012 at 9:29
Hi all,
may be this will help:
i used Uno. after i changed mega, working fine.
and also for sting variable(Serial print) i used flash memory. i attached flash library. may be it will reduce the usage of ram.
the library taking 8K to 10K of memory and lot of internal variables. i am trying to reduce usage of variables.
My suggestion is,
use flash library and add like this for sting.
For example
_cell << "AT+CMGL=\"REC UNREAD\",1" << endl;
_cell << F("AT+CMGL=\"REC UNREAD\",1") << endl;
it will reduce usage of ram.
Original comment by sjk...@gmail.com
on 24 Apr 2012 at 6:10
Attachments:
You're right next step will be this. Did you use software or hardware serial
for mega?
Original comment by martines...@gmail.com
on 24 Apr 2012 at 8:14
[deleted comment]
can you tell me how to use flash library with arduino uno?
Original comment by veezo201...@gmail.com
on 2 May 2012 at 6:32
i have the same problem how to debug turn off?
Original comment by veezo201...@gmail.com
on 2 May 2012 at 10:06
Which problem do you have?
To turn off the debug mode, open GSM.h and comment the line #define DEBUG_ON
Original comment by martines...@gmail.com
on 2 May 2012 at 10:18
sir i was trying to build same project to turn on led through sms then i have
uploaded this code that i have attached down there after that i modified some
code, now whenever i upload new code same mesage keep repeating its self i dont
know something like this.....i need help please its my final year project i m
trying since morning i dont know how to get rid of this problem
GSM Shield testing.
status=READY
60172543861
Pompe_on
60172543861
Pompe_on
60172543861
Pompe_on
60172543861
Pompe_on
60172543861
Pompe_on
60172543861
Pompe_on
60172543861
Pompe_on
Original comment by veezo201...@gmail.com
on 2 May 2012 at 10:25
Attachments:
Because each time it reads the message in the buffer.
Original comment by martines...@gmail.com
on 2 May 2012 at 10:30
so how to get rid if this ?
Original comment by veezo201...@gmail.com
on 2 May 2012 at 10:38
Or you delete it after you read it with sms.DeleteSMS(byte position) (you have
to include an sms object, see SMS example)or modify line 142 in SIM900.cpp
from
SimpleWriteln("AT+CMGL=\"REC UNREAD\",1");
to
SimpleWriteln("AT+CMGL=\"REC UNREAD\",0");
it should work.
Let me know, Marco
Original comment by martines...@gmail.com
on 2 May 2012 at 10:46
ok ill try thanks you very much i have another issue please check "issue 21"
ill be thankful to u.
Original comment by veezo201...@gmail.com
on 2 May 2012 at 11:22
Hi all
Thank you very much, Martines, the line of code "SimpleWriteln("AT+CMGL=\"REC
UNREAD\",0");" has resolved one by problems.
I have rewrited the code and I use "#ifdef..#endif" for no compiled the code
for debug.
two level
#define DEBUG_CODE_ON for to see the initialisation sequence.
#define DEBUG_ACTION_ON for to see the action with a sms
If define DEBUG_CODE_ON and DEBUG_ACTION_ON the
after verify I have
"Binary sketch size: 10448 bytes (of a 32256 byte maximum)"
If no define DEBUG_CODE_ON and DEBUG_ACTION_ON the
after verify I have
"Binary sketch size: 10050 bytes (of a 32256 byte maximum)"
the code in Arduino works correctly. I send a SMS "Pompeon" the led attached
at the pin 13 is on and after a SMS "Pompeoff" the led is off.
With no define DEBUG_CODE_ON and DEBUG_ACTION_ON and
if I open the code for valve
after verify I have
"Binary sketch size: 10428 bytes (of a 32256 byte maximum)"
this is lower with debug on.
but the arduino is stop ..no start.
I think that this is a problem of memory.
I have several tracks and several questions
Can I reduce the buffer of SMS (160bytes) ?
Can I use the flash RAM ?
Can I use a link with a other Arduino cart ?
Thanks in advance
Sorry, I m french and my English is not very well.
Original comment by f.tisser...@wanadoo.fr
on 2 May 2012 at 8:56
Attachments:
I'm happy that it worked :)
For the memory problem, pay attention that your're watching the FLASH memory
not the RAM memory. The flash is dedicated to store the sketch (sequence of
istructions) but the problem is the RAM for string, int, ecc...
for example:
if you define in your sketch
int test[999];
int test2[999];
int test3[999];
int test4[9999];
these are very few instructions, so not many bytes for the sketch (that you can
read after verifying it) but a lot of RAM and arduino doesn't work.
Unfortunately there is no way to know (for my knowledge) how many RAM have you
used. However above there is the trick of sjkr06 (that i haven't tried for now)
for reduce RAM usage.
Marco
Original comment by martines...@gmail.com
on 2 May 2012 at 9:13
This issue section is not longer supported.
Please check the support page www.gsmlib.org
Original comment by martines...@gmail.com
on 6 Jul 2013 at 11:27
Original issue reported on code.google.com by
f.tisser...@wanadoo.fr
on 11 Apr 2012 at 11:20Attachments: