Cannot connect to Simple Mobile APN
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
Undecided
|
Unassigned | ||
| | ofono (Ubuntu) |
Undecided
|
Unassigned | ||
| | ubuntu-system-settings (Ubuntu) |
High
|
Jonas G. Drange | ||
Bug Description
phablet@
current build number: 4
device name: arale
channel: ubuntu-
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://
MMS_APN SIMPLE
which is exactly what I see listed in the cellular settings on my phone.
phablet@
[ /ril_0 ]
[ /ril_0/context1 ]
Type = internet
Name = SIMPLE
Active = 0
Username =
Preferred = 1
Protocol = ip
Password =
Settings = { Method=dhcp }
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-
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-
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 =
Settings = { }
Active = 0
Type = internet
Name = SIMPLE
Preferred = 1
Protocol = ip
Username =
| description: | updated |
| description: | updated |
| description: | updated |
| delete (eskei-one) wrote : | #2 |
phablet@
[ /ril_0 ]
Interfaces = org.ofono.
Serial = XXXXXXXXXXXXXXX
Online = 1
Model = Fake Modem Model
Powered = 1
Manufacturer = Fake Manufacturer
Revision = MOLY.LR9.
Type = hardware
Lockdown = 0
Features = gprs ussd net sms rat sim
Emergency = 0
[ org.ofono.
Attached = 1
Suspended = 0
Powered = 1
Bearer = hspa
[ org.ofono.Phonebook ]
[ org.ofono.
[ org.ofono.
VoiceBusy = XXXXXXXXXXXX
[ org.ofono.
[ org.ofono.
State = idle
[ org.ofono.
Status = registered
Name = Simple Mobile
CellId = XXXXXXXX
Strength = 35
Mode = auto
Technology = hspa
[ org.ofono.
[ org.ofono.
[ org.ofono.
Alphabet = default
Bearer = cs-preferred
[ org.ofono.
[ org.ofono.
[ org.ofono.
LockedPins =
PinRequired = none
Present = 1
Retries = [puk2 = 10] [puk = 10] [pin2 = 10] [pin = 3]
[ org.ofono.
Muted = 0
[ org.ofono.
[ org.ofono.
@delete, all looks good in your list-modems output and APN settings. Could you try executing:
/usr/share/
then please paste output of "ifconfig" command and /var/log/syslog
| delete (eskei-one) wrote : | #4 |
phablet@
Error activating /ril_0/context1: org.ofono.
phablet@
Error deactivating /ril_0/context1: org.ofono.
phablet@
ip6tnl0 Link encap:UNSPEC HWaddr 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
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
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
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
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:
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
RX bytes:84391976 (84.3 MB) TX bytes:8434904 (8.4 MB)
| delete (eskei-one) wrote : | #5 |
Running the command on my phone (as opposed to via ssh) with wifi switched off gives a different error:
phablet@
Error activating /ril_0/context1: org.ofono.
@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_
Wait half a minute to make sure we are attached to the network
# /usr/share/
# 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.
| delete (eskei-one) wrote : | #7 |
root@ubuntu-
Error activating /ril_0/context1: org.ofono.
I attach the log.
@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.
@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_
Then do
/usr/share/
and see the output. Also, please attach "ifconfig" output and ofono.txt.
| delete (eskei-one) wrote : | #11 |
root@ubuntu-
Error activating /ril_0/context1: org.ofono.
root@ubuntu-
Error activating /ril_0/context1: org.ofono.
root@ubuntu-
ip6tnl0 Link encap:UNSPEC HWaddr 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
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
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
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
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:
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
RX bytes:7015987 (7.0 MB) TX bytes:344614 (344.6 KB)
@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_
so you collect more traces. Please attach the 2 new trace files.
| delete (eskei-one) wrote : | #13 |
Done.
@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 |
| delete (eskei-one) wrote : | #15 |
Whoops, sorry. These logs should be correct. Please ignore the first few lines, I forgot to chmod the binaries.
@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 |


@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.