Problem solved,

ATV1 command has to be called in the enable function.

regards
Jan

Dne Mon, 26 Mar 2012 14:13:51 +0200 Jan Pohanka <[email protected]> napsal(a):

Hello,

I have done deeper investigation why I'm stuck with sms sending. SMS is sent by the function tx_next which registers the callback tx_finished with the line

sms->driver->submit(sms, pdu->pdu, pdu->pdu_len, pdu->tpdu_len,
                                send_mms, tx_finished, sms);

Unfortunately the tx_finished is never called and hence the sms is left in the queue even if it was sent. submit function pointer calls atmodem/sms.c which creates AT command sends it and also registers a callback at_cmgs_cb. I have added some debugging messages there and it seems that it is never called either.

Could please someone give me some advice where to search further? It seems that modem does not respond to the CMGS command, but if I tried it manually in minicom the modem returns +CMGS and OK correctly.


Here is the log
ofonod[253]: src/network.c:ofono_netreg_status_notify() /telit2_0 status 1 tech 0
ofonod[253]: Modem: > AT+COPS=3,2\r
ofonod[253]: Modem: < \r\nOK\r\n
ofonod[253]: src/sms.c:tx_next() tx_next: 0x11dd80
ofonod[253]: Modem: > AT+COPS?\r
ofonod[253]: Modem: < \r\n+COPS: 0,2,"23002",0\r\n\r\nOK\r\n
ofonod[253]: drivers/atmodem/network-registration.c:cops_numeric_cb() Cops numeric got mcc: 230, mnc: 02
ofonod[253]: Modem: > AT+CIND?\r
ofonod[253]: Modem: < \r\n+CIND: 0,99,1,0,0,0,0,0,5\r\n\r\nOK\r\n
ofonod[253]: src/network.c:ofono_netreg_strength_notify() strength 100
ofonod[253]: Modem: > AT+CMGS=41\r
ofonod[253]: Modem: < \r\n>
ofonod[253]: Modem: > 001100098177740744F60000A7206FF3DBFD368741E8373B0C0AB3E76BB2DA0C0AA3C3EC39D9BC06A9D1<CtrlZ>


best regards
Jan


Dne Fri, 23 Mar 2012 14:56:28 +0100 Jan Pohanka <[email protected]> napsal(a):

Excuse me for double posting but I have forgotten one line in the command sequence

test/enable-modem
test/online-modem
test/dial-number xxxxxxxxx
test/hangup-all
test/send-sms xxxxxxxxx "test sms" 0

test/dial-number xxxxxxxxx

the last command (dialing) fails with a timeout






--
Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to