From: Viallard Anthony <viallard@syscom-instruments.com>
To: ofono@ofono.org
Subject: Re: Randomly SMS sent passes or fails
Date: Tue, 02 Apr 2013 15:49:25 +0200 [thread overview]
Message-ID: <515AE1E5.5040606@syscom-instruments.com> (raw)
In-Reply-To: <5154867B.5000506@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2604 bytes --]
Hi Denis and ofono guys,
I hope you enjoy Easter celebration !
>
> Actually, this is peculiar, the CRSM command is not failing and the
> result is fine. Just that it is empty. Perhaps you need to quirk the
> CRSM behavior in this case. Does adding your modem to the list in
> at_sim_read_info()
>
> /* Maximum possible length */
> len += sprintf(buf + len, ",0,0,255");
> break;
>
> make it work properly?
I added the quirk as above and Yes ! I've got values now:
-------------------------------------
ofonod[11230]: Data: > AT+CRSM=178,28614,1,4,8\r
ofonod[11230]: Data: < \r\n+CRSM: 144,0,"62F2100000FFFE01"\r\n\r\nOK\r\n
ofonod[11230]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90,
00, 8
-------------------------------------
and SMS work ! Actually, It works if GPRS isn't Active... If I enable
GPRS, It fails with message CMS ERROR: 500 (Unknown error):
-------------------------------------
ofonod[11230]: Data: > AT+CMGS=49\r
ofonod[11230]: Data: < \r\n>
ofonod[11230]: Data: >
0011000B911487584414F70000A728C8329BFD0699E5EF368858AED3C76866D84D06DDD3743468DA9C82DEF6B21C74844AA7<CtrlZ>
ofonod[11230]: Data: < \r\n
ofonod[11230]: Data: < \r\n+CMS ERROR: 500\r\n
ofonod[11230]: src/sms.c:tx_finished() tx_finished 0xfecf8
ofonod[11230]: src/sms.c:sms_tx_queue_remove_entry() 0xfecf8
-------------------------------------
So, I guess when I enable GPRS, my GSM module wants to send SMS over
GPRS... And maybe, I can't because ofono always fails on provisioning:
-------------------------------------
ofonod[7135]: src/gprs-provision.c:__ofono_gprs_provision_get_settings()
Calling provisioning plugin 'Provisioning'
ofonod[7135]: plugins/provision.c:provision_get_settings() Provisioning
for MCC 262, MNC 01, SPN 'Telekom.de'
ofonod[7135]:
/usr/share/mobile-broadband-provider-info/serviceproviders.xml:1562
Duplicate context detected
ofonod[7135]: Provisioning failed
-------------------------------------
I read the source code which can explain the issue. I guess the problem
isn't really a problem. There 2 apn tags in serviceproviders.xml for
T-Mobile. This is why I've got "Duplicate context detected" message.
As I understand, the provision plugin wants only 1 apn (allow_duplicates
is FALSE) by MCC/MNC. Why ? There are many others operators (according
to serviceproviders.xml) who have more than 1 apn. So, for these, the
provisioning always fails ?
Maybe I must write an another provision plugin which supports multiples
apn entries ? It's tricky to implement this ?
Regards,
Anthony.
next prev parent reply other threads:[~2013-04-02 13:49 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-05 15:27 Randomly SMS sent passes or fails Viallard Anthony
2013-03-05 20:43 ` Denis Kenzior
2013-03-06 9:23 ` Viallard Anthony
2013-03-11 14:53 ` Viallard Anthony
2013-03-12 18:13 ` Denis Kenzior
2013-03-13 16:11 ` Viallard Anthony
2013-03-28 9:02 ` Viallard Anthony
2013-03-28 14:24 ` Denis Kenzior
2013-04-12 13:08 ` Viallard Anthony
2013-05-02 16:40 ` Viallard Anthony
2013-05-02 18:36 ` Denis Kenzior
2013-05-21 14:20 ` Viallard Anthony
2013-03-28 14:29 ` Viallard Anthony
2013-03-28 14:42 ` Denis Kenzior
2013-03-28 16:29 ` Viallard Anthony
2013-03-28 18:05 ` Denis Kenzior
2013-04-02 13:49 ` Viallard Anthony [this message]
2013-04-02 15:08 ` Denis Kenzior
2013-04-02 15:25 ` Viallard Anthony
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=515AE1E5.5040606@syscom-instruments.com \
--to=viallard@syscom-instruments.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox