All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sms: Add delay before submitting multiple SMS to modem
@ 2012-08-22  9:29 Guillaume Zajac
  2012-08-22 22:57 ` Denis Kenzior
  0 siblings, 1 reply; 7+ messages in thread
From: Guillaume Zajac @ 2012-08-22  9:29 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1040 bytes --]

For 3GPP GSM test case 34.2.9.1 and 34.2.9.1 and WCDMA test
case 16.1.9.1 and 16.1.9.2, we need to transmitmultiple SMS
using same RRC channel.
oFono needs to wait its tx queue to be filled in with the
next SMS before submitting the first one to use +CMMS=1 modem
option.
---
 src/sms.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/sms.c b/src/sms.c
index acfc39b..443e502 100644
--- a/src/sms.c
+++ b/src/sms.c
@@ -50,6 +50,8 @@
 #define TXQ_MAX_RETRIES 4
 #define NETWORK_TIMEOUT 332
 
+#define SMS_TX_NEXT 500
+
 static gboolean tx_next(gpointer user_data);
 
 static GSList *g_drivers = NULL;
@@ -2072,7 +2074,7 @@ int __ofono_sms_txq_submit(struct ofono_sms *sms, GSList *list,
 	g_queue_push_tail(sms->txq, entry);
 
 	if (sms->registered && g_queue_get_length(sms->txq) == 1)
-		sms->tx_source = g_timeout_add(0, tx_next, sms);
+		sms->tx_source = g_timeout_add(SMS_TX_NEXT, tx_next, sms);
 
 	if (uuid)
 		memcpy(uuid, &entry->uuid, sizeof(*uuid));
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-08-24  8:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-22  9:29 [PATCH] sms: Add delay before submitting multiple SMS to modem Guillaume Zajac
2012-08-22 22:57 ` Denis Kenzior
2012-08-23  9:04   ` Guillaume Zajac
2012-08-23 13:48     ` Denis Kenzior
2012-08-23 14:26       ` Guillaume Zajac
2012-08-23 17:33         ` Denis Kenzior
2012-08-24  8:16           ` Guillaume Zajac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.