Cannot connect to Simple Mobile APN

Bug #1504992 reported by delete
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
Undecided
Unassigned
ofono (Ubuntu)
Confirmed
Undecided
Unassigned
ubuntu-system-settings (Ubuntu)
Confirmed
High
Jonas G. Drange

Bug Description

phablet@ubuntu-phablet:~$ system-image-cli -i
current build number: 4
device name: arale
channel: ubuntu-touch/stable/meizu.en
last update: 2015-09-06 05:21:39
version version: 4
version ubuntu: 20150825.1
version device: 20150818-0b38025
version custom: 20150814-887-8-46

The APN settings provided by the carrier are:
FIELD SETTINGS
APN SIMPLE
MMSC HTTP://SMPL.MMS.MSG.ENG.T-MOBILE.COM/MMS/WAPENC
MMS_APN SIMPLE
which is exactly what I see listed in the cellular settings on my phone.

phablet@ubuntu-phablet:~$ /usr/share/ofono/scripts/list-contexts
[ /ril_0 ]
    [ /ril_0/context1 ]
        MessageProxy =
        Type = internet
        Name = SIMPLE
        Active = 0
        AccessPointName = simple
        Username =
        Preferred = 1
        Protocol = ip
        IPv6.Settings = { }
        Password =
        Settings = { Method=dhcp }
        MessageCenter = http://smpl.mms.msg.eng.t-mobile.com/mms/wapenc

I noticed that the above command returns "Type = internet", even though in cellular settings the APN is set as "Internet and MMS".

Perhaps this has been fixed in a development version of Touch, but I don't know how to find / install said version for Meizu MX4.

UPDATE :: I found out how I can switch to more up-to-date versions of touch. I am now using rc. The issue persists. Here's the updated OS info:

current build number: 6
device name: arale
channel: ubuntu-touch/rc/meizu.en
last update: 2015-10-11 15:15:25
version version: 6
version ubuntu: 20150825.1
version device: 20150818-0b38025
version custom: 20150814-887-8-46

UPDATE #2 :: I bit the bullet and updated to devel-proposed. The issue persists.

current build number: 136
device name: arale
channel: ubuntu-touch/devel-proposed/meizu.en
last update: 2015-10-11 15:51:30
version version: 136
version ubuntu: 20151011
version device: 20150818-0b38025
version custom: 20150925-900-8-47

The related context now looks like this:

[ /ril_0 ]
    [ /ril_0/context1 ]
        Password =
        MessageCenter = http://smpl.mms.msg.eng.t-mobile.com/mms/wapenc
        Settings = { }
        Active = 0
        Type = internet
        Name = SIMPLE
        IPv6.Settings = { }
        AccessPointName = simple
        MessageProxy =
        Preferred = 1
        Protocol = ip
        AuthenticationMethod = chap
        Username =

delete (eskei-one)
description: updated
delete (eskei-one)
description: updated
delete (eskei-one)
description: updated
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@delete, don't worry about type=internet, when the mmsc is provided the APN will be used for both data and MMS. Please attach output of executing

/usr/share/ofono/scripts/list-modems --private

, that will give us some more information.

Revision history for this message
delete (eskei-one) wrote :

phablet@ubuntu-phablet:~$ /usr/share/ofono/scripts/list-modems --private
[ /ril_0 ]
    Interfaces = org.ofono.ConnectionManager org.ofono.Phonebook org.ofono.CallBarring org.ofono.CallForwarding org.ofono.CallSettings org.ofono.SupplementaryServices org.ofono.NetworkRegistration org.ofono.SmartMessaging org.ofono.PushNotification org.ofono.MessageManager org.ofono.MessageWaiting org.ofono.RadioSettings org.ofono.SimManager org.ofono.CallVolume org.ofono.VoiceCallManager org.ofono.NetworkTime
    Serial = XXXXXXXXXXXXXXX
    Online = 1
    Model = Fake Modem Model
    Powered = 1
    Manufacturer = Fake Manufacturer
    Revision = MOLY.LR9.W1421.MD.LWTG.MP.V6.P11, 2014/09/10 10:16
    Type = hardware
    Lockdown = 0
    Features = gprs ussd net sms rat sim
    Emergency = 0
    [ org.ofono.ConnectionManager ]
        Attached = 1
        Suspended = 0
        Powered = 1
        RoamingAllowed = 0
        Bearer = hspa
    [ org.ofono.Phonebook ]
    [ org.ofono.CallBarring ]
        VoiceIncoming = disabled
        VoiceOutgoing = disabled
    [ org.ofono.CallForwarding ]
        VoiceNotReachable = XXXXXXXXXXXX
        VoiceUnconditional =
        VoiceNoReply = XXXXXXXXXXXX
        VoiceNoReplyTimeout = 30
        VoiceBusy = XXXXXXXXXXXX
        ForwardingFlagOnSim = 0
    [ org.ofono.CallSettings ]
        ConnectedLinePresentation = unknown
        CalledLinePresentation = disabled
        CallingLinePresentation = enabled
        CallingLineRestriction = off
        VoiceCallWaiting = enabled
        HideCallerId = default
        CallingNamePresentation = unknown
        ConnectedLineRestriction = unknown
    [ org.ofono.SupplementaryServices ]
        State = idle
    [ org.ofono.NetworkRegistration ]
        MobileCountryCode = 310
        Status = registered
        Name = Simple Mobile
        CellId = XXXXXXXX
        Strength = 35
        MobileNetworkCode = 260
        Mode = auto
        LocationAreaCode = XXXXX
        Technology = hspa
    [ org.ofono.SmartMessaging ]
    [ org.ofono.PushNotification ]
    [ org.ofono.MessageManager ]
        Alphabet = default
        UseDeliveryReports = 0
        Bearer = cs-preferred
        ServiceCenterAddress = +12063130004
    [ org.ofono.MessageWaiting ]
        VoicemailWaiting = 0
        VoicemailMessageCount = 0
        VoicemailMailboxNumber = +18056377243
    [ org.ofono.RadioSettings ]
        FastDormancy = 1
        TechnologyPreference = lte
        AvailableTechnologies = gsm umts lte
    [ org.ofono.SimManager ]
        SubscriberIdentity = XXXXXXXXXXXXXXX
        LockedPins =
        FixedDialing = 0
        PinRequired = none
        MobileCountryCode = 310
        SubscriberNumbers = XXXXXXXXXXX
        PreferredLanguages = en
        BarredDialing = 0
        MobileNetworkCode = 260
        Present = 1
        CardIdentifier = XXXXXXXXXXXXXXXXXXX
        Retries = [puk2 = 10] [puk = 10] [pin2 = 10] [pin = 3]
    [ org.ofono.CallVolume ]
        MicrophoneVolume = 0
        SpeakerVolume = 0
        Muted = 0
    [ org.ofono.VoiceCallManager ]
        EmergencyNumbers = 112 911
    [ org.ofono.NetworkTime ]

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@delete, all looks good in your list-modems output and APN settings. Could you try executing:

/usr/share/ofono/scripts/activate-context 1

then please paste output of "ifconfig" command and /var/log/syslog

Revision history for this message
delete (eskei-one) wrote :

phablet@ubuntu-phablet:~$ /usr/share/ofono/scripts/activate-context 1
Error activating /ril_0/context1: org.ofono.Error.InProgress: Operation already in progress
phablet@ubuntu-phablet:~$ /usr/share/ofono/scripts/deactivate-context 1
Error deactivating /ril_0/context1: org.ofono.Error.InProgress: Operation already in progress

phablet@ubuntu-phablet:~$ ifconfig
ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP RUNNING NOARP MTU:1452 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:65536 Metric:1
          RX packets:15236 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15236 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1251281 (1.2 MB) TX bytes:1251281 (1.2 MB)

sit0 Link encap:IPv6-in-IPv4
          UP RUNNING NOARP MTU:1480 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

tunl0 Link encap:IPIP Tunnel HWaddr
          UP RUNNING NOARP MTU:0 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 38:bc:1a:29:19:e2
          inet addr:10.25.26.57 Bcast:10.25.255.255 Mask:255.254.0.0
          inet6 addr: fe80::3abc:1aff:fe29:19e2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:64868 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41087 errors:191 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:84391976 (84.3 MB) TX bytes:8434904 (8.4 MB)

Revision history for this message
delete (eskei-one) wrote :

Running the command on my phone (as opposed to via ssh) with wifi switched off gives a different error:

phablet@ubuntu-phablet:~$ /usr/share/ofono/scripts/activate-context 1
Error activating /ril_0/context1: org.ofono.Error.Failed: Operation failed

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@delete, thanks for the information. We need some more traces, please try following these instructions:

* Go to "System Settings" -> "Mobile" and deactivate mobile data
* Reboot so we make sure we start from a clean state
* Execute these commands from a PC/terminal after the reboot:
$ adb shell
$ sudo su
# stop ofono
# OFONO_RIL_DEVICE=mtk OFONO_RIL_HEX_TRACE="" OFONO_RIL_TRACE="" ofonod -nd -P stktest,provision,sap,udev,dun,smart,hfp &> /tmp/ofono.txt&

Wait half a minute to make sure we are attached to the network

# /usr/share/ofono/scripts/activate-context 1
# pkill ofonod
# exit
$ exit
$ adb pull /tmp/ofono.txt

and attach ofono.txt to the bug.

Reboot the phone and enable cellular data to return to your original configuration.

Revision history for this message
delete (eskei-one) wrote :

root@ubuntu-phablet:/home/phablet# /usr/share/ofono/scripts/activate-context 1
Error activating /ril_0/context1: org.ofono.Error.Failed: Operation failed

I attach the log.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@delete, thanks a lot for the logs, but unfortunately I just see a generic error code when trying to start the data connection that does not help a lot. Please try

sudo /system/bin/logcat -b radio > radio.txt&

before trying to activate the context while following the steps in comment #6, and attach radio.txt to the bug.

Revision history for this message
delete (eskei-one) wrote :

Done.

description: updated
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@delete, thanks. I see the error:

AT+CGACT=1,1
+CME ERROR: 149

Looking at 3gpp 27.007, that is "PDP authentication failure". We are not using authentication as there is no user/password, so this is a bit strange. I have attached an "ofonod" binary that forces authentication, could you give it a try? To use it:

* Deactivate cellular data in the device
* Download the binary
$ adb push ofonod /tmp/
$ adb shell
$ chmod a+x /tmp/ofonod
$ sudo su
# stop ofono
# OFONO_RIL_DEVICE=mtk /tmp/ofonod -nd -P stktest,provision,sap,udev,dun,smart,hfp &> /tmp/ofono.txt&

Then do

/usr/share/ofono/scripts/activate-context 1

and see the output. Also, please attach "ifconfig" output and ofono.txt.

Revision history for this message
delete (eskei-one) wrote :

root@ubuntu-phablet:/home/phablet# /usr/share/ofono/scripts/activate-context 1
Error activating /ril_0/context1: org.ofono.Error.NotAttached: GPRS is not attached
root@ubuntu-phablet:/home/phablet# /usr/share/ofono/scripts/activate-context 1
Error activating /ril_0/context1: org.ofono.Error.Failed: Operation failed

root@ubuntu-phablet:/home/phablet# ifconfig
ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP RUNNING NOARP MTU:1452 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:65536 Metric:1
          RX packets:136 errors:0 dropped:0 overruns:0 frame:0
          TX packets:136 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10844 (10.8 KB) TX bytes:10844 (10.8 KB)

sit0 Link encap:IPv6-in-IPv4
          UP RUNNING NOARP MTU:1480 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

tunl0 Link encap:IPIP Tunnel HWaddr
          UP RUNNING NOARP MTU:0 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 38:bc:1a:29:19:e2
          inet addr:10.25.26.57 Bcast:10.25.255.255 Mask:255.254.0.0
          inet6 addr: fe80::3abc:1aff:fe29:19e2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:5205 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4583 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7015987 (7.0 MB) TX bytes:344614 (344.6 KB)

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@delete, I have attached a tarball with 2 new versions of the binary. Please extract with "tar xf" and then follow the instructions in comment #10 again, but using ofonod.1 and ofonod.2 instead of the ofonod binary. Just change slightly the execution command and use:

# OFONO_RIL_DEVICE=mtk OFONO_RIL_HEX_TRACE="" OFONO_RIL_TRACE="" /tmp/ofonod.X -nd -P stktest,provision,sap,udev,dun,smart,hfp &> /tmp/ofonoX.txt&

so you collect more traces. Please attach the 2 new trace files.

Revision history for this message
delete (eskei-one) wrote :

Done.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@delete I do not see any that any call to activate context has been performed. Are you sure you executed the "activate-context" script? Note that the idea is to follow the instructions of comment #10, but with the new binaries.

Changed in canonical-devices-system-image:
assignee: nobody → John McAleely (john.mcaleely)
Changed in canonical-devices-system-image:
status: New → Confirmed
Revision history for this message
delete (eskei-one) wrote :

Whoops, sorry. These logs should be correct. Please ignore the first few lines, I forgot to chmod the binaries.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@delete, thanks, with either of the two binaries I provided you are actually establishing a data call. Which confirms the hypothesis that your operator wants an authentication protocol to be selected even when there is no user/password. To solve this we need to support this in the UI.

While we fix this, you could try to put some random user/password in your settings and see if you get connected with that trick. If that does not work you might want to substitute temporarily your /usr/sbin/ofonod with one of those in comment #12, in case you do not mind making your system writeable.

Changed in ofono (Ubuntu):
status: New → Confirmed
Changed in ubuntu-system-settings (Ubuntu):
status: New → Confirmed
Changed in ubuntu-system-settings (Ubuntu):
assignee: nobody → Jonas G. Drange (jonas-drange)
importance: Undecided → High
Changed in canonical-devices-system-image:
assignee: John McAleely (john.mcaleely) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.