Re: mm/test/mm-send-sms.py has the same problem and does not work
Hi, On Tue, 2010-06-22 at 00:56 -0700, Dan Williams wrote: On Mon, 2010-06-21 at 09:32 +0200, Tom wrote: The test-script from test/mm-send-sms.py has the same problem. this script does not work, too. Fixed that now in git; but not that not all devices support SMS text mode (AT+CMGF=1), and MM does not yet implement PDU mode. i tried the latest git snapshot, but the sms send does still not work. Exception is: org.freedesktop.ModemManager.Modem.SerialResponseTimeout: Serial command timed out The Modem (Siemens TC63) supports AT+CMGF=1. The modem is enabled and it's also possible to connect to the internet over ppp (so simcard pin is correct). The debug output of MM is: ** (modem-manager:21862): DEBUG: 1277214420.136745 (ttyUSB1): -- 'AT +CMGF=1CR' ** (modem-manager:21862): DEBUG: 1277214420.201782 (ttyUSB1): -- 'CRLFOKCRLF' ** (modem-manager:21862): DEBUG: 1277214420.201886 (ttyUSB1): -- 'AT +CMGS=017012345678CRTestmessage\26CR' ** (modem-manager:21862): DEBUG: 1277214420.269763 (ttyUSB1): -- 'CRLF+' ** (modem-manager:21862): DEBUG: 1277214420.273746 (ttyUSB1): -- 'CMS ERROR: 538CRLF' ** (modem-manager:21862): DEBUG: 1277214448.17802 (ttyUSB1): -- 'AT +CSQCR' ** (modem-manager:21862): DEBUG: 1277214448.77766 (ttyUSB1): -- 'CRLF+CSQ: 25,0CRLF' When i use the modem with minicom, i can send the sms with the following commands: ^SYSSTART at+cpin=2607 OK at+cmgf=1 OK at+cmgs=017012345678 hello +CMGS: 1 OK Any ideas? Cheers, Tom Dan Cheers, Tom On Fri, 2010-06-18 at 17:41 +0200, Tom wrote: Hi, i tried to use the test program from ModemManager git repository to send an sms. The modem works and i can connect to the internet. But when i try to use test/mm-send-sms.py , i get: $ python test/mm-send-sms.py 016012345678 hallo Sending message failed The exception is: org.freedesktop.ModemManager.Modem.General: Missing number In the python code, the number is set by: msg_dict = dbus.Dictionary({ dbus.String('number') :dbus.String(number), dbus.String('text') : dbus.String(message) }, signature=dbus.Signature(sv)) sms_iface = dbus.Interface(proxy, dbus_interface='org.freedesktop.ModemManager.Modem.Gsm.SMS') and the sms send with: sms_iface.Send(msg_dict) Any ideas why this does not work? Cheers, Tom ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: mm/test/mm-send-sms.py has the same problem and does not work
On Wed, 2010-06-23 at 11:42 +0200, Tom wrote: Hi, On Tue, 2010-06-22 at 00:56 -0700, Dan Williams wrote: On Mon, 2010-06-21 at 09:32 +0200, Tom wrote: The test-script from test/mm-send-sms.py has the same problem. this script does not work, too. Fixed that now in git; but not that not all devices support SMS text mode (AT+CMGF=1), and MM does not yet implement PDU mode. i tried the latest git snapshot, but the sms send does still not work. Exception is: org.freedesktop.ModemManager.Modem.SerialResponseTimeout: Serial command timed out The Modem (Siemens TC63) supports AT+CMGF=1. The modem is enabled and it's also possible to connect to the internet over ppp (so simcard pin is correct). The debug output of MM is: ** (modem-manager:21862): DEBUG: 1277214420.136745 (ttyUSB1): -- 'AT +CMGF=1CR' ** (modem-manager:21862): DEBUG: 1277214420.201782 (ttyUSB1): -- 'CRLFOKCRLF' ** (modem-manager:21862): DEBUG: 1277214420.201886 (ttyUSB1): -- 'AT +CMGS=017012345678CRTestmessage\26CR' ** (modem-manager:21862): DEBUG: 1277214420.269763 (ttyUSB1): -- 'CRLF+' ** (modem-manager:21862): DEBUG: 1277214420.273746 (ttyUSB1): -- 'CMS ERROR: 538CRLF' ** (modem-manager:21862): DEBUG: 1277214448.17802 (ttyUSB1): -- 'AT +CSQCR' ** (modem-manager:21862): DEBUG: 1277214448.77766 (ttyUSB1): -- 'CRLF+CSQ: 25,0CRLF' Yeah, I'll need to look more into this. Probably need to wait for the before sending the message body. Even better, use PDU mode instead of text but that's more complicated. Dan ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: mm/test/mm-send-sms.py has the same problem and does not work
On Wed, 2010-06-23 at 17:20 -0700, Dan Williams wrote: On Wed, 2010-06-23 at 11:42 +0200, Tom wrote: Hi, On Tue, 2010-06-22 at 00:56 -0700, Dan Williams wrote: On Mon, 2010-06-21 at 09:32 +0200, Tom wrote: The test-script from test/mm-send-sms.py has the same problem. this script does not work, too. Fixed that now in git; but not that not all devices support SMS text mode (AT+CMGF=1), and MM does not yet implement PDU mode. i tried the latest git snapshot, but the sms send does still not work. Exception is: org.freedesktop.ModemManager.Modem.SerialResponseTimeout: Serial command timed out The Modem (Siemens TC63) supports AT+CMGF=1. The modem is enabled and it's also possible to connect to the internet over ppp (so simcard pin is correct). The debug output of MM is: ** (modem-manager:21862): DEBUG: 1277214420.136745 (ttyUSB1): -- 'AT +CMGF=1CR' ** (modem-manager:21862): DEBUG: 1277214420.201782 (ttyUSB1): -- 'CRLFOKCRLF' ** (modem-manager:21862): DEBUG: 1277214420.201886 (ttyUSB1): -- 'AT +CMGS=017012345678CRTestmessage\26CR' ** (modem-manager:21862): DEBUG: 1277214420.269763 (ttyUSB1): -- 'CRLF+' ** (modem-manager:21862): DEBUG: 1277214420.273746 (ttyUSB1): -- 'CMS ERROR: 538CRLF' ** (modem-manager:21862): DEBUG: 1277214448.17802 (ttyUSB1): -- 'AT +CSQCR' ** (modem-manager:21862): DEBUG: 1277214448.77766 (ttyUSB1): -- 'CRLF+CSQ: 25,0CRLF' Yeah, I'll need to look more into this. Probably need to wait for the before sending the message body. Even better, use PDU mode instead of text but that's more complicated. yes, Documentation of the modem says that mm should wait for . Is that possible with the actual mm source? Cheers, Tom ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: mm/test/mm-send-sms.py has the same problem and does not work
On Mon, 2010-06-21 at 09:32 +0200, Tom wrote: The test-script from test/mm-send-sms.py has the same problem. this script does not work, too. Fixed that now in git; but not that not all devices support SMS text mode (AT+CMGF=1), and MM does not yet implement PDU mode. Dan Cheers, Tom On Fri, 2010-06-18 at 17:41 +0200, Tom wrote: Hi, i tried to use the test program from ModemManager git repository to send an sms. The modem works and i can connect to the internet. But when i try to use test/mm-send-sms.py , i get: $ python test/mm-send-sms.py 016012345678 hallo Sending message failed The exception is: org.freedesktop.ModemManager.Modem.General: Missing number In the python code, the number is set by: msg_dict = dbus.Dictionary({ dbus.String('number') :dbus.String(number), dbus.String('text') : dbus.String(message) }, signature=dbus.Signature(sv)) sms_iface = dbus.Interface(proxy, dbus_interface='org.freedesktop.ModemManager.Modem.Gsm.SMS') and the sms send with: sms_iface.Send(msg_dict) Any ideas why this does not work? Cheers, Tom ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: mm/test/mm-send-sms.py has the same problem and does not work
The test-script from test/mm-send-sms.py has the same problem. this script does not work, too. Cheers, Tom On Fri, 2010-06-18 at 17:41 +0200, Tom wrote: Hi, i tried to use the test program from ModemManager git repository to send an sms. The modem works and i can connect to the internet. But when i try to use test/mm-send-sms.py , i get: $ python test/mm-send-sms.py 016012345678 hallo Sending message failed The exception is: org.freedesktop.ModemManager.Modem.General: Missing number In the python code, the number is set by: msg_dict = dbus.Dictionary({ dbus.String('number') :dbus.String(number), dbus.String('text') : dbus.String(message) }, signature=dbus.Signature(sv)) sms_iface = dbus.Interface(proxy, dbus_interface='org.freedesktop.ModemManager.Modem.Gsm.SMS') and the sms send with: sms_iface.Send(msg_dict) Any ideas why this does not work? Cheers, Tom ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list