Re: Modemmanager - how to send sms? - receiving is ok
- From: Dan Williams <dcbw redhat com>
- To: PongráczI <pongraczi pongraczistvan homelinux com>
- Cc: networkmanager-list gnome org
- Subject: Re: Modemmanager - how to send sms? - receiving is ok
- Date: Thu, 22 Mar 2012 11:18:28 -0500
On Fri, 2012-03-16 at 11:23 +0100, PongráczI wrote:
> Hi,
>
> I would like to ask, is there any progress about this issue?
I did test the patch out and concluded that it worked for the modems I
tested; upon receiving an error attempting to send via text mode the
code correctly fell back to PDU mode. So with that test I decided to
push MM 0.5.2. With the new log I see two errors that are interesting,
the first is the failure to parse the CMGL response and the second is
the unknown error. Any chance I can get you to grab a modem-manager
--debug log with latest MM 0.5.x for me?
Dan
> Do you need something to test, check, report?
>
> Please let me know, I will do it.
>
> Thank you!
> István
>
> ----------------eredeti üzenet-----------------
> Feladó: "PongráczI"
> Címzett: "Dan Williams" dcbw redhat com
> CC: networkmanager-list gnome org
> Dátum: Mon, 5 Mar 2012 23:28:54 +0100
> -------------------------------------------------
>
>
> >
> > Hi,
> >
> > Same results with master branch. I tested both cases (pin+empty sms storage, no
> > pin+2 sms in storage).
> >
> > István
> >
> >>>
> >>> I've just pushed a fix to git master and MM_05 that should deal with the
> >>> issue, can you test for me?
> >>>
> >>> Thanks!
> >>> Dan
> >>>
> >>
> >> Hi Dan,
> >>
> >> I tried the announced 0.5.1.97 first and the MM_05 git, after I realized, your
> >> patch does not in .97.
> >> So, I compiled with polkit support, make a deb and installed it to the target
> >> machine (I used the same OS to create deb package).
> >>
> >>
> >> Here are the output of the info.py, sms-get.py and sms-send.py python test
> >> programs.
> >> The use case: PIN enabled, there is no sms in the sim.
> >>
> >>
> >> root@antiX1 :~/test# ./info.py
> >> /org/freedesktop/ModemManager/Modems/0
> >> Type: GSM
> >> Driver: option1
> >> Modem device: /sys/devices/pci0000:00/0000:00:0a.1/usb1/1-2
> >> Data device: ttyUSB2
> >> Device ID: b735f6159cf589e85f8a66cfff7b0bd4eea1a73a
> >>
> >> Vendor: ZTE INCORPORATED
> >> Model: MF668A
> >> Version: BD_MF668AV1.0.1B02
> >>
> >> SIM ID: yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
> >> IMEI: xxxxxxxxxxxxx
> >> IMSI: xxxxxxxxxxxxx
> >> Operator ID: <unavailable>
> >> Signal quality: 80
> >> Reg status: home (21601, 'Telenor Hungary')
> >> Allowed mode: any
> >> Access Tech: EDGE
> >>
> >> root@antiX1 :~/test# ./sms-get.py
> >> /org/freedesktop/ModemManager/Modems/0
> >> Traceback (most recent call last):
> >> File "./sms-get.py", line 54, in <module>
> >> msgs = sms.List()
> >> File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 143, in
> >> __call__
> >> **keywords)
> >> File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line
> >> 630, in
> >> call_blocking
> >> message, timeout)
> >> dbus.exceptions.DBusException:
> >> org.freedesktop.ModemManager.Modem.General: Failed to parse CMGL
> >> response
> >>
> >> root@antiX1 :~/test# ./sms-send.py --number +3620xxxxxxxx "Test sms"
> >> Sending message failed:
> >> org.freedesktop.ModemManager.Modem.SerialResponseTimeout: Serial
> >> command timed out
> >>
> >>
> >> Relevant part from syslog, the end of this is interesting, the connection
> >> made
> >> correctly:
> >>
> >> Mar 3 14:34:05 antiX1 NetworkManager[1792]: <info> starting PPP
> >> connection
> >> Mar 3 14:34:05 antiX1 NetworkManager[1792]: <info> pppd started with pid
> >> 2196
> >> Mar 3 14:34:05 antiX1 NetworkManager[1792]: <info> Activation (ttyUSB2)
> >> Stage 3 of 5 (IP Configure Start) complete.
> >> Mar 3 14:34:05 antiX1 pppd[2196]: Plugin
> >> /usr/lib/pppd/2.4.5/nm-pppd-plugin.so loaded.
> >> Mar 3 14:34:06 antiX1 kernel: [ 274.499079] PPP generic driver version 2.4.2
> >> Mar 3 14:34:06 antiX1 pppd[2196]: pppd 2.4.5 started by root, uid 0
> >> Mar 3 14:34:06 antiX1 pppd[2196]: Using interface ppp0
> >> Mar 3 14:34:06 antiX1 pppd[2196]: Connect: ppp0 <--> /dev/ttyUSB2
> >> Mar 3 14:34:06 antiX1 NetworkManager[1792]: SCPlugin-Ifupdown: devices
> >> added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
> >> Mar 3 14:34:06 antiX1 NetworkManager[1792]: SCPlugin-Ifupdown: device
> >> added
> >> (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown
> >> configuration found.
> >> Mar 3 14:34:06 antiX1 pppd[2196]: CHAP authentication succeeded
> >> Mar 3 14:34:06 antiX1 pppd[2196]: CHAP authentication succeeded
> >> Mar 3 14:34:06 antiX1 kernel: [ 274.615403] PPP BSD Compression module
> >> registered
> >> Mar 3 14:34:06 antiX1 kernel: [ 274.646354] PPP Deflate Compression module
> >> registered
> >> Mar 3 14:34:11 antiX1 pppd[2196]: Could not determine remote IP address:
> >> defaulting to 10.64.64.64
> >> Mar 3 14:34:11 antiX1 pppd[2196]: local IP address 84.225.YYY.XXX
> >> Mar 3 14:34:11 antiX1 pppd[2196]: remote IP address 10.64.64.64
> >> Mar 3 14:34:11 antiX1 pppd[2196]: primary DNS address 217.79.128.40
> >> Mar 3 14:34:11 antiX1 pppd[2196]: secondary DNS address 217.79.128.45
> >> Mar 3 14:34:11 antiX1 NetworkManager[1792]: <info> PPP manager(IP Config
> >> Get)
> >> reply received.
> >> Mar 3 14:34:11 antiX1 NetworkManager[1792]: <info> Activation (ttyUSB2)
> >> Stage 4 of 5 (IP4 Configure Get) scheduled...
> >> Mar 3 14:34:11 antiX1 NetworkManager[1792]: <info> Activation (ttyUSB2)
> >> Stage 4 of 5 (IP4 Configure Get) started...
> >> Mar 3 14:34:11 antiX1 NetworkManager[1792]: <info> Activation (ttyUSB2)
> >> Stage 5 of 5 (IP Configure Commit) scheduled...
> >> Mar 3 14:34:11 antiX1 NetworkManager[1792]: <info> Activation (ttyUSB2)
> >> Stage 4 of 5 (IP4 Configure Get) complete.
> >> Mar 3 14:34:11 antiX1 NetworkManager[1792]: <info> Activation (ttyUSB2)
> >> Stage 5 of 5 (IP Configure Commit) started...
> >> Mar 3 14:34:12 antiX1 NetworkManager[1792]: <info> (ppp0): writing
> >> resolv.conf to /sbin/resolvconf
> >> Mar 3 14:34:12 antiX1 NetworkManager[1792]: <info> (ttyUSB2): device
> >> state
> >> change: ip-config -> activated (reason 'none') [70 100 0]
> >> Mar 3 14:34:14 antiX1 NetworkManager[1792]: <info> Policy set 'Telenor
> >> Mobilnet' (ppp0) as default for IPv4 routing and DNS.
> >> Mar 3 14:34:14 antiX1 NetworkManager[1792]: <info> Activation (ttyUSB2)
> >> successful, device activated.
> >> Mar 3 14:34:14 antiX1 dbus[1778]: [system] Activating service
> >> name='org.freedesktop.nm_dispatcher' (using servicehelper)
> >> Mar 3 14:34:14 antiX1 NetworkManager[1792]: <info> Activation (ttyUSB2)
> >> Stage 5 of 5 (IP Configure Commit) complete.
> >> Mar 3 14:34:14 antiX1 dbus[1778]: [system] Successfully activated service
> >> 'org.freedesktop.nm_dispatcher'
> >> Mar 3 14:34:25 antiX1 ntpdate[2266]: adjust time server 193.225.121.161
> >> offset 0.022305 sec
> >> Mar 3 14:34:41 antiX1 modem-manager[1836]: <error> Couldn't parse
> >> response to
> >> SMS LIST
> >>
> >>
> >> Use case 2: 2 sms in the sim, PIN code disabled:
> >>
> >>
> >> root@antiX1 :~/test# ./info.py
> >> /org/freedesktop/ModemManager/Modems/1
> >> Type: GSM
> >> Driver: option1
> >> Modem device: /sys/devices/pci0000:00/0000:00:0b.1/usb2/2-1
> >> Data device: ttyUSB2
> >> Device ID: 703e74bb62811b78fe0ab5723c22558120a7fca2
> >>
> >> Vendor: ZTE INCORPORATED
> >> Model: MF668A
> >> Version: BD_MF668AV1.0.1B02
> >>
> >> SIM ID: xxxxxxxxxxxxxxxxxxxxxxxxxxx
> >> IMEI: xxxxxxxxxxxxxxxx
> >> IMSI: xxxxxxxxxxxxxxxxx
> >> Operator ID: <unavailable>
> >> Signal quality: 80
> >> Reg status: home (21601, 'Telenor Hungary')
> >> Allowed mode: any
> >> Access Tech: EDGE
> >> root@antiX1 :~/test# ./sms-get.py
> >> /org/freedesktop/ModemManager/Modems/1
> >>
> >> ------------------------------------------------------------------
> >> -
> >> 0: From: +3620xxxxxxxx Time: 12/01/29,23:24:21+04 SMSC:
> >> Francos gsm
> >>
> >>
> >> ------------------------------------------------------------------
> >> -
> >> 1: From: +3620xxxxxx Time: 12/01/31,09:25:04+04 SMSC:
> >> Falevellel kitorlos vadon.
> >>
> >> root@antiX1 :~/test# ./sms-send.py --number +3620xxxxxxxx "Falevellel
> >> kitorlos modem"
> >> Sending message failed:
> >> org.freedesktop.ModemManager.Modem.Gsm.Unknown:
> >> Unknown error
> >>
> >>
> >>
> >> _______________________________________________
> >> 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
> >
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]