majerle / gsm_at_commands_parser Goto Github PK
View Code? Open in Web Editor NEWPlatform independent, ANSI C AT commands parser for SIMcom GSM modules
Platform independent, ANSI C AT commands parser for SIMcom GSM modules
Hi
i'm compiling the http example in order to send data to a server. unfortunately i only get "GSM Init Status: 1" and also "Could not attach to GPRS: 11". i'm using sim800 module.
what is causing this problem?
i really appreciate your help.
thanks
File gsm.h
Line 293 :
change GSM_CONN_Type_UPD to GSM_CONN_Type_UDP
Best Regards,
Saif
Hi Tilen.
Firstly, thanks for your work on this project. It's awesome.
I'm trying testing your project with my devices, and there is a problem as the tittle.
The debugging shows:
"GSM commands parser; Compiled: Feb 10 2017 08:50:18
GSM Init status: 0
Call disconnected, trying to call someone!
Calling!
Call finished!"
Then I used USB to UART converter to test with module SIM, it works normally.
I'm using F429 Discovery, module SIM800A, and CALL_RTOS_EXAMPLE.
Could you tell me what problem is in my case? Is it an issue? Or you just make it like this?
Thankyou very much.
Regards,
Vinh.
Hi,
Do you have STM32F2 support ?
Currently we have no information about the cause when GPRS attaching fails. From the AT command description:
AT+CREG AT command gives information about the registration status and access technology of the serving cell.
Possible values of registration status are,
0 not registered, MT is not currently searching a new operator to register to
1 registered, home network
2 not registered, but MT is currently searching a new operator to register to
3 registration denied
4 unknown (e.g. out of GERAN/UTRAN/E-UTRAN coverage)
5 registered, roaming
6 registered for "SMS only", home network (applicable only when indicates E-UTRAN)
7 registered for "SMS only", roaming (applicable only when indicates E-UTRAN)
8 attached for emergency bearer services only (see NOTE 2) (not applicable)
9 registered for "CSFB not preferred", home network (applicable only when indicates E-UTRAN)
10 registered for "CSFB not preferred", roaming (applicable only when indicates E-UTRAN)
For return code '2' no immediate action is required, registration may succeed later on. But when return value is different, the user should be able to determine the next action according to the failure cause. If return code is '3', there is probably permanent error so it is useless to try again. If return code is '0', maybe there is bad reception and user can restart the GSM module?
Hi,
I am using Telit GSM Click and stucks at GSM_Init()
. I tried some of the AT commands manually which are given at GSM_init()
, then got this responses:
AT&F
OK
AT+CMEE=1
OK
AT
OK
AT+CLCC=1
+CME ERROR: 10
AT+CPIN?
+CME ERROR: 10
AT+GMR
10.01.150
I have disabled call, SMS, etc at gsm_config.h
, but GSM_Init()
have some call related commands.
#define GSM_HTTP 0
#define GSM_FTP 0
#define GSM_PHONEBOOK 0
#define GSM_CALL 0
#define GSM_SMS 0
I thing you should return error code, if got any at these calls:
while (i) {
__ACTIVE_CMD(GSM, CMD_INFO_GMR); /* Enable auto notification for call, +CLCC statement */
GSM_WaitReady(GSM, 1000);
if (GSM->ActiveResult == gsmOK) {
break;
}
else { if (i < 0) return GSM->ActiveResult; } // return at here ?
i--;
}
I will try to do these changes.
Hi Tilen,
My device is AI-Thinker's A7 module, and I found that when request a command "AT+CPIN?" it
returns "+CPIN:READY", but in line 1062 on file "gsm.c", I think the 2nd parameter should be
"str + 6" instead of "str + 7". But maybe your device return is diffrent from mine. I don't have
other GSM device to test currently, would you like to have a look?
Regards,
GeeMing.
Hi Majerle,
I dont find the function that read the responce coming form the GSM module after the AT Command,
the function that write in the Received variable.
Can you specify it please?
Thanks
Best Regards
Saif
BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
{
TCB_t * const pxTCB = ( TCB_t * ) pxMutexHolder;
BaseType_t xReturn = pdFALSE;
if( pxMutexHolder != NULL )
{
/* A task can only have an inherited priority if it holds the mutex.
If the mutex is held by a task then it cannot be given from an
interrupt, and if a mutex is given by the holding task then it must
be the running state task. */
configASSERT( pxTCB == pxCurrentTCB );
pxTCB : 0x20000B30 pxCurrentTCB: 0x20003738
Hello Tilen,
I want to ask you, if can i upload any type of file with this drivers? pdf, doc, jpg ...
Best Regards,
Saif
Hi Tilen,
My problem is when i want to list all SMS( I have 3 long SMS in my sim), I have an overflowing memory and the attribute of the GSM struct are modified.
Best Regards,
Saif.
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.