ilikecats567 / gsm-shield-arduino

Automatically exported from code.google.com/p/gsm-shield-arduino
0 stars 0 forks source link

Library_Client-test not working on 1.0.0, always receive 0 data. #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version-1.0.0 (SMS-sending test works)

Library_Client-test:
-changed my APN (nothing more)

*but it isn't working.
This is full log:
-----------------------------
GSM Shield testing.

status=READY

status=ATTACHED

Number of data received:

0

Data received:

--

Original issue reported on code.google.com by aapo.rantalainen on 16 Jan 2012 at 3:47

GoogleCodeExporter commented 9 years ago
Of course not work, because library has a lot of mistakes...

Original comment by dmg...@gmail.com on 16 Jan 2012 at 3:58

GoogleCodeExporter commented 9 years ago
Hmm, I see only 9 open issues. And SMS-test works.

Original comment by aapo.rantalainen on 16 Jan 2012 at 4:12

GoogleCodeExporter commented 9 years ago
It works, but not all!

For example, look my issues7 and source code. How module can execute commands 
if he received:

ATD
+420123456789
;

not a ATD+420123456789;

???

Look GSM.cpp, int GSM::begin(long baud_rate){
Always return true, if module not answer or not connected...

And etc...

Original comment by dmg...@gmail.com on 16 Jan 2012 at 4:30

GoogleCodeExporter commented 9 years ago
dmg244 you are right and we need also your help with testing and debugging. Now 
the begin should be very stable. Check the new version and let me know!

Original comment by martines...@gmail.com on 18 Jan 2012 at 9:57

GoogleCodeExporter commented 9 years ago
OK!

Original comment by dmg...@gmail.com on 18 Jan 2012 at 11:51

GoogleCodeExporter commented 9 years ago
Hi,
  i downloaded new version "GSM_Shield_GPRS_Ver_3_06_(IDE100).zip".
   now also same problem.
  i think 
          "int res= gsm.read(result, resultlength);" - the problem.

Original comment by sjk...@gmail.com on 9 Feb 2012 at 6:35

GoogleCodeExporter commented 9 years ago
Hi, 
1) Do the other sketch work?
2) If you remove it, and use the same sketch, does it work? 
3) Use also the debug mode (decomment in GSM.h the line DEBUG_ON) re-compile e 
post the results
Marco

Original comment by martines...@gmail.com on 9 Feb 2012 at 8:38

GoogleCodeExporter commented 9 years ago
I got LibraryClient testing working with version 3.06.
Just changed my APN.

Original comment by aapo.rantalainen on 17 Feb 2012 at 8:20

GoogleCodeExporter commented 9 years ago
I changed address of httpGET and it received 0. I changed it back to google, 
and it received 0. 

Log with debug enabled:

GSM Shield testing.
DB:ELSE
DB:ELSE
DB:ELSE
DB:CORRECT BR

status=READY
DB:STARTING NEW CONNECTION
DB:APN OK
DB:CONNECTION OK
DB:ASSIGNED AN IP
status=ATTACHED

85.76.207.23
DB:RECVD CMD
DB:OK TCP
DB:>
DB:SENT

Number of data received:
0

Data received:

CLOSED

Original comment by aapo.rantalainen on 17 Feb 2012 at 8:31

GoogleCodeExporter commented 9 years ago
Mhh seems that everything work except for the last step. Try this ways:
1)Change baudrate (use 1200 or 2400) for gsm.begin
2)After the first attempt without result, try the reset button on the shield 
(without turning off the power source).
3)If these solutions don't work, open the inetHTTP.cpp file and in the function 
httpGET comment the line where it save the reply (line 54) and decomment the 
line 58 just for the return value.
Let me know if some of these solutions work ;)
Marco

Original comment by martines...@gmail.com on 19 Feb 2012 at 5:46

GoogleCodeExporter commented 9 years ago
Seem there is a problem in the function inetGSM::attachGPRS, when command 
"AT+CSST" is invoked.  The original code is:   

  gsm.SimpleWriteln("AT+CSTT");
  gsm.SimpleWriteln(domain);
  gsm.SimpleWriteln("\",\"");
  gsm.SimpleWriteln(dom1);
  gsm.SimpleWriteln("\",\"");
  gsm.SimpleWriteln(dom2);
  gsm.SimpleWriteln("\"\r");  

but don't work for me.  I decided send the command in a unic line, for my 
specific case:  

gsm.SimpleWriteln(domain,\"\",\"\")

and worked.

Original comment by osteve...@gmail.com on 6 Apr 2012 at 5:25

GoogleCodeExporter commented 9 years ago
Thank you very much! I try to put the command in a unic line.
Marco

Original comment by martines...@gmail.com on 6 Apr 2012 at 6:21

GoogleCodeExporter commented 9 years ago
Of course that construction will not be worked. Because Writeln send data to 
SIM module immediately. Marco you say that review all code and will repair this 
errors.

Original comment by dmg...@gmail.com on 6 Apr 2012 at 7:28

GoogleCodeExporter commented 9 years ago
Yen man i said this. But on my system it works perfectly. However dear dmg244 I 
don't receive money for this job. As you can see it's an open suorce project. 
So if you want to collaborate I'm happy but I can't fix all the library without 
help of you.

Original comment by martines...@gmail.com on 6 Apr 2012 at 7:39

GoogleCodeExporter commented 9 years ago
The change for this is done now.

Original comment by martines...@gmail.com on 24 Apr 2012 at 1:03

GoogleCodeExporter commented 9 years ago
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