We have moved to a new Sailfish OS Forum. Please start new discussions there.
8

Can't connect to internet after using SIM card from T-Mobile [answered]

asked 2016-08-14 18:45:45 +0200

Schturman gravatar image

updated 2016-08-16 15:45:59 +0200

jiit gravatar image

Hi to all
Don't know what to do anymore, need help...
3 weeks ago I traveled to the United States for vacation and used T-Mobile sim card for calls and internet. Yesterday I returned to Israel and inserted my local sim card and surprise, I it not connect to internet...
I can do calls and sms, but no data...
Already tried:
* Restart network connection from Utilities app = no changes
* Reboot or lipstick restart = no changes
* Changing setting manually to the same like in android of my wife (Mobile network - Data access point) = no changes What interesting here, by changing Connection name, it not change itself on Mobile network page, but it should, as far as I know.
* Restarting ofono.service = no changes
* Reinstalling ofono package = no changes
* Checking ofono.service status I get this:
* CSD tool - all 3 RF function check (2g,3g,4g) = all of them PASS

[root@Sailfish nemo]# systemctl status -l ofono.service
ofono.service - Telephony service
Loaded: loaded (/lib/systemd/system/ofono.service; disabled)
Active: active (running) since Sun 2016-08-14 18:02:01 IDT; 12s ago
Main PID: 27489 (ofonod)
CGroup: /system.slice/ofono.service
└─27489 /usr/sbin/ofonod -n --nobacktrace --noplugin=he910,dun_gw_bluez5,hfp_bluez5,hfp_ag_bluez5,cdma_provision,bluez5,isimodem,n900,u8500,qmimodem,gobi,cdmamodem,isiusb,nwmodem,ztemodem,iceramodem,huaweimodem,calypsomodem,swmodem,mbmmodem,hsomodem,ifxmodem,stemodem,dunmodem,hfpmodem,speedupmodem,phonesim,telitmodem

Aug 14 18:02:01 Sailfish ofonod[27489]: Excluding External Hands-Free Profile Plugin
Aug 14 18:02:01 Sailfish ofonod[27489]: Excluding Hands-Free Audio Gateway Profile Plugins
Aug 14 18:02:01 Sailfish ofonod[27489]: Excluding Dial-up Networking Profile Plugins
Aug 14 18:02:01 Sailfish ofonod[27489]: Excluding CDMA provisioning Plugin
Aug 14 18:02:01 Sailfish ofonod[27489]: RIL version 7
Aug 14 18:02:02 Sailfish ofonod[27489]: SIM card OK
Aug 14 18:02:02 Sailfish ofonod[27489]: Requested file structure differs from SIM: 6fb7
Aug 14 18:02:03 Sailfish ofonod[27489]: SMS History Probe for modem: 0x20011f0
Aug 14 18:02:03 Sailfish ofonod[27489]: Registered interface org.ofono.NetworkTime, path /ril_0
Aug 14 18:02:03 Sailfish ofonod[27489]: Requested file structure differs from SIM: 6fb7
[root@Sailfish nemo]#

And this two lines "Requested file structure differs from SIM: 6fb7" with red color. Maybe it write something, somewhere and I can just edit it ?
* Inserting my sim card to the Android device for checking = it worked without any problem (calls, sms, data lte).
* I have spoken with provider, but for sure they don't know this phone and can't help, because sim card are working.
Also I checked this command:

[root@Sailfish ~]# /usr/lib/qt5/bin/qdbus --system org.ofono /ril_0/operator/42501 org.ofono.NetworkOperator.GetProperties
MobileCountryCode: 425
MobileNetworkCode: 01
Name: 012 Mobile
Status: current
Technologies: umts
lte
[root@Sailfish ~]#

And status show me "current", it shouldn't be Online or something like this ?

Guys, someone know what to do ? Maybe edit/remove any text file with sim data ? Maybe reinstall any packages ? Something ? I really don't want to restore device and reinstall all my stuff...
Thanks

EDIT (14.08.16):
Ohhh, finally I fixed it !!! Steps for fixing (all done as root):
1. Run this command:

/usr/lib/qt5/bin/qdbus --system org.ofono /ril_0 org.ofono.SimManager.GetProperties

And you will find two lines with long numbers, like this:

CardIdentifier: 76824938479284928424
SubscriberIdentity: 425014683432472
  1. Go to /var/lib/ofono folder
  2. I removed all folders that NOT with the same "SubscriberIdentity" number and left only 2 folders:

    425014683432472
    425014683432472-3

All other folders related to other sim cards.
4. Open "iccidmap" file and remove all lines that NOT related to your sim card, now you should see only this content:

[imsi]
76824938479284928424=425014683432472

The first number is "CardIdentifier" number and the second one is "SubscriberIdentity", both of them you found before. Save this file.
5. Open "ril" file and change the number to your "SubscriberIdentity" number. Here for me was number from T-Mobile sim card... And now it looks like this:

[Settings]
DefaultDataSim=425014683432472

Save this file.
6. Reboot your phone.

Now all work and connect like it should be :) I just don't understand why phone didn't do this automatically...

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Schturman
close date 2016-08-14 23:07:02.112158

Comments

no, it not help... My phone not connecting at all, I can do only calls or sms...

Schturman ( 2016-08-14 21:08:21 +0200 )edit

Trimmed the headline a bit. Hopefully that's OK.

vattuvarg ( 2016-08-15 11:35:20 +0200 )edit

No problem ;)

Schturman ( 2016-08-15 19:44:48 +0200 )edit

Thanks for your analysis. I had the same problem but qdbus wasn't installed so I used this instead:

dbus-send --system --print-reply --dest=org.ofono /ril_0 org.ofono.SimManager.GetProperties

I hope it won't happen anymore.

Vuubi ( 2016-09-29 21:39:13 +0200 )edit

1 Answer

Sort by » oldest newest most voted
4

answered 2016-08-14 23:06:36 +0200

Schturman gravatar image

Finally I fixed it, see first post :)

edit flag offensive delete publish link more

Question tools

Follow
3 followers

Stats

Asked: 2016-08-14 18:45:45 +0200

Seen: 1,286 times

Last updated: Aug 15 '16