Comments (15)
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.
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.
[deleted comment]
from gsm-shield-arduino.
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.
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.
[deleted comment]
from gsm-shield-arduino.
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.
From sniffer
Original comment by [email protected]
on 18 Jan 2012 at 11:05
Attachments:
from gsm-shield-arduino.
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.
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.
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.
> 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:
- [SIM900_IP_Application Note_V1.02.pdf](https://storage.googleapis.com/google-code-attachments/gsm-shield-arduino/issue-7/comment-12/SIM900_IP_Application Note_V1.02.pdf)
- [SIM900_Email_AT Command Manual_V1.02.pdf](https://storage.googleapis.com/google-code-attachments/gsm-shield-arduino/issue-7/comment-12/SIM900_Email_AT Command Manual_V1.02.pdf)
from gsm-shield-arduino.
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.
Original comment by [email protected]
on 21 Jan 2012 at 4:45
- Changed state: Fixed
from gsm-shield-arduino.
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)
- sms.DeleteSMS((int)pos); didn't work as well
- Gboard problem..SIM900 doesn't answer. HOT 2
- GPRS/SMS Shield notable to control relay HOT 1
- "GetSms" & "ReadSms": Not Working, but the start it's ok HOT 1
- Problem switching library from Arduino ONE to Arduino Mega 2506
- get long sms
- SIM900, erro ao salvar manipular SMS(mensagem)
- Receive calls with GSM SHIELD and let me listen
- build errors
- gsm shield not working HOT 1
- read() on GSM HOT 1
- Output configuration wrong
- GSM_GPRSLibrary_SMS prints blank received SMS
- real-time-arduino-gps-tracker with your library??
- gsm does not power on
- Problems compiling the library HOT 1
- httpGET() always returns empty array, even though data has been read. HOT 1
- Patch for /branches/GSMSHIELD/GSM.cpp
- httpGET() sends wrong header info HOT 1
- DTMF detection problem ?
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-shield-arduino.