Git Product home page Git Product logo

Comments (15)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
On svn-69 this function is:

void CallGSM::Call(char *number_string)
{
  if (CLS_FREE != gsm.GetCommLineStatus()) return;
  gsm.SetCommLineStatus(CLS_ATCMD);
  // ATDxxxxxx;<CR>
  gsm.SimpleWrite("ATD");
  gsm.SimpleWrite(number_string);    
  gsm.SimpleWrite(";\r");
  // 10 sec. for initial comm tmout
  // 50 msec. for inter character timeout
  gsm.WaitResp(10000, 50);
  gsm.SetCommLineStatus(CLS_FREE);
}

No SimpleWriteWOln, but last '\r' seems odd.

Original comment by aapo.rantalainen on 16 Jan 2012 at 6:11

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
Why? You tested the command on the real SIM900?

Original comment by [email protected] on 16 Jan 2012 at 6:32

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
[deleted comment]

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
The difference between SimpleWriteWOln and SimpleWrite is the \r at the end ;) 
the first is without so the command is ATD+3933282343;

Original comment by [email protected] on 18 Jan 2012 at 10:03

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024


void SIMCOM900::SimpleWrite(char *comm)

{

    _cell.println(comm);

}



void SIMCOM900::SimpleWrite(const char *comm)

{

    _cell.println(comm);

}



void SIMCOM900::SimpleWrite(int comm)

{

    _cell.println(comm);

}



void SIMCOM900::SimpleWriteWOln(char *comm)

{

    _cell.print(comm);

}



http://arduino.cc/en/Serial/Println
Description
Prints data to the serial port as human-readable ASCII text followed by a 
carriage return character (ASCII 13, or '\r') AND A NEWLINE CHARACTER (ASCII 
10, or '\n').


Original comment by [email protected] on 18 Jan 2012 at 10:54

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
[deleted comment]

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
You send this: ATD/r/n+3933282343/r/n;/r/r/n

Original comment by [email protected] on 18 Jan 2012 at 10:59

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
From sniffer

Original comment by [email protected] on 18 Jan 2012 at 11:05

Attachments:

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
Yes... but pay attention that the last one is _cell.print(comm); and not 
_cell.println(comm)
it is WithOut ln at the end ;)

Original comment by [email protected] on 18 Jan 2012 at 11:06

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
Which code is correct?

1)
 gsm.SimpleWrite("ATD");
 gsm.SimpleWrite(number_string);    
 gsm.SimpleWrite(";\r");

2)
 gsm.SimpleWriteWOln("ATD");
 gsm.SimpleWriteWOln(number_string);    
 gsm.SimpleWrite(";");


Original comment by [email protected] on 18 Jan 2012 at 11:14

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
Cool the sniffer program.. Which is its name? :) 
OK I've checked...the solution is that the correct one is 
 gsm.SimpleWriteWOln("ATD");
 gsm.SimpleWriteWOln(number_string);    
 gsm.SimpleWrite(";");
But if you ask me why in the last version there is the first..I don't know. 
Sorry, I didn't understood your right suggestion in the first comment!
Thank you :)

Original comment by [email protected] on 18 Jan 2012 at 11:24

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
> Which is its name? :) 
http://www.saleae.com/Logic

ps/ check all code, for example:

  gsm.SimpleWrite("GET ");

  gsm.SimpleWrite(path);

  gsm.SimpleWrite(" HTTP/1.0\nHost: ");

  gsm.SimpleWrite(server);

  gsm.SimpleWrite("\n");

  gsm.SimpleWrite("User-Agent: Arduino");

  gsm.SimpleWrite("\n\n");

  gsm.SimpleWrite(end_c);

and etc...

pps/ see attachment for email, HTTP, FTP for SIM900

Original comment by [email protected] on 18 Jan 2012 at 11:48

Attachments:

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
Thank you! 
For the PS (get method) it works, but now I'm going to check all the code.
I also fixed another point where there was the same mistake.
For PPS: For now I want to improve the stability and try to fix all bugs before 
start new implementations (I haven't a lot of time in this months). But if you 
want to try or just to publish some your functions, I can add you at the 
project. Let me know :)

Original comment by [email protected] on 18 Jan 2012 at 11:59

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024

Original comment by [email protected] on 21 Jan 2012 at 4:45

  • Changed state: Fixed

from gsm-shield-arduino.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
This issue section is not longer supported.
Please check the support page www.gsmlib.org 

Original comment by [email protected] on 6 Jul 2013 at 11:27

from gsm-shield-arduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.