Pages: [1]   Go Down
Author Topic: multitasking with a GPRS shield  (Read 786 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have my GPRS module sending data to my server correctly however there is so much latency in its responses, i cannot read data from my sensors on another uart.  Has anybody else experienced this?
Logged

ਪੰਜਾਬ
Offline Offline
Edison Member
*
Karma: 12
Posts: 1574
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

use software serial, and there has to be latency because till the module connects with the service it can't do any good to you it has to connect so that it fullfills your requests.
Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i have multiple serial ports on my arduino mega.  My concern is that when i send data out to a remote server, there are multisecond delays occurring.  I have to pull data from other sources while these delays happen.  I have not really seen any examples with this happening. 
Logged

ਪੰਜਾਬ
Offline Offline
Edison Member
*
Karma: 12
Posts: 1574
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The AT command send when gives instruction then at the other side its not just the module gets the instructions and those instructions are directly fullfilled HOW it actually works is like after you give a specific AT command based on the service you seek its instructed to the GSM module ASAP but then the GSM needs to connect to the network and then break up things in small chunks and process them also the biggest lag is that GSM needs to connect to the service provider NOW that's going to happen always.

I will suggest you upon my experience that if you are seeking the fastest way to communicate using the GSM shield is to go folllowing ways with the top one listed fastest:

1) SMS
2) calling
3) GPRS

so sms is the fastest and the GPRS is the slowest due to TCP/IP stack processing needed.

I have utilised SparkFun's SMB5100(Sucks! + too costly) and also the NOT NOW OUT Exclusive Telefonica GSM/GPRS official shield from Arduino.
Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

Switzerland
Offline Offline
Faraday Member
**
Karma: 108
Posts: 5144
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I guess you're communicating with your GSM module using the serial (UART) interface. There's nobody holding you back to change your code that way that you send a command to your GSM shield and do other stuff while it's processing it. After a while go and look if it has an answer for you and go on doing other stuff if it hasn't. You don't have to wait for your shield to complete it's task before you can do other stuff.
Logged

Pages: [1]   Go Up
Jump to: