bluevia / official-arduino Goto Github PK
View Code? Open in Web Editor NEWArduino GPRS/GSM Shield Sample Code
License: GNU Lesser General Public License v3.0
Arduino GPRS/GSM Shield Sample Code
License: GNU Lesser General Public License v3.0
This lib can't receive chinese sms successfully on arduino mini pro . here is my changes.
set pdu mode in GSM3ShieldV1AccessProvider.cpp
else if(ct==5)
{
// 5: Wait IFC OK
if(theGSM3ShieldV1ModemCore.genericParse_rsp(resp))
{
//Delay for SW flow control being active.
theGSM3ShieldV1ModemCore.delayInsideInterrupt(2000);
// 9: SMS pdu Mode
theGSM3ShieldV1ModemCore.setCommandCounter(6);
theGSM3ShieldV1ModemCore.genericCommand_rq(PSTR("AT+CMGF=0"));
change the debug code
void GSM3CircularBuffer::printCharDebug(uint8_t c)
{
Serial.print(" [");Serial.print(c);Serial.print("] ");
if((c>31)&&(c<127))
Serial.print((char)c);
else if(c == 13){
Serial.print('\r');
}
else if(c == 10){
Serial.print('\n');
}else{
Serial.print('%');
Serial.print(c);
Serial.print('%');
}
}
------------------BUG------------------------------
when receive SMS.
66 62> [13]
[10]
[43] + [67] C [77] M [71] G [76] L [58] : [32] [49] 1 [44] , [49] 1 [44] , [44] , [56] 8 [56] 8 [13]
[10]
[48] 0 [56] 8 [57] 9 [49] 1 [54] 6 [56] 8 [51] 3 [49] 1 [49] 1 [48] 0 [51] 3 [48] 0 [52] 4 [55] 7 [48] 0 [53] 5 [70] F [48] 0 [50] 2 [52] 4 [49] 1 [50] 2 [65] A [48] 0 [48] 0 [49] 1 [53] 5 [54] 6 [57] 9 [53] 5 [50] 2 [49] 1 [48] 0 [53] 5 [57] 9 [52] 4 [48] 0 [49] 1 [49] 1 [54] 6 [54] 6 [56] 8 [48] 0 [48] 0 [48] 0 [56] 8 [56] 8 [49] 1 [49] 1 [49] 1 [48] 0 [50] 2 [49] 1 [50] 2 [52] 4 [49] 1 [57] 9 [53] 5 [50] 2 [51] 3 [52] 4 [50] 2 [51] 3 [48] 0 [49] 1 [48] 0 [53] 5 [70] F [65] A [69] E [55] 7 [54] 6 [68] D [70] F [51] 3 [48] 0 [49] 1 [49] 1 [48] 0 [48] 0 [51] 3 [55] 7 [48] 0 [48] 0 [51] 3 [55] 7 [48] 0 [48] 0 [51] 3 [57] 9 [48] 0 [48] 0 [51] 3 [57] 9 [70] F [70] F [48] 0 [56] 8 [48] 0 [48] 0 [51] 3 [49] 1 [48] 0 [48] 0 [34] " [48] 0
chop start head,tail=66,62
chop stop head,tail=74,62
Receive a message.
extractSubstring:
chop start head,tail=74,62
chop stop head,tail=84,62
0891683110304705F02412A00156952105940116680008811102124195234230105FAE76DF30110037003700390039FF08003100"05206949F518567096548FF09FF0C8BF74E0D89815C0677ED4FE19A8C8BC17801900F97327ED94ED64EBA3002
sms text has a bug after 103 string ,such as ".
0891683110304705F02412A00156952105940116680008811102124195234230105FAE76DF30110037003700390039FF08003100?405206949F518567096548FF09FF0C8BF74E0D89815C0677ED4FE19A8C8BC17801900F97327ED94ED64EBA3002
When i run this program it always give me PINManager.isPIN() value as -2. I have tried many sim cards. Tried setting PIN and resetting it, but unable to get any other output.
Please help.
When I try to use this version, I get...
....../libraries/GSM/MemoryFree.cpp:6:25: error: MemoryFree.h: No such file or directory
The standard installed copy doesn't even have MemoryFree.cpp, so wondering what version this is.
Is there a commit/tag that corresponds to the "official" version?
I wonder : in the file GSM3IO.h, on these lines :
#elif defined(AVR_ATmega2560) || defined(AVR_ATmega1280)
#define TXPIN 3
#define RXPIN 10
#define RXINT 4
Why RXPIN is 10 ? Shouldn't it be 2 ? As INT4 is on PIN2 ?
I get an error when I compile with my board
#error This version of GSM3SoftSerial supports only 20, 16 and 8MHz processors
I have a 48 MHz board
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.