OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Mobile data in Debian (T-Mobile USA)
ehasbrouck
post Oct 7 2019, 06:18 PM
Post #1





Group: Members
Posts: 22
Joined: 29-August 18
Member No.: 829,506



After flashing the latest (I think) Debian updates, I seem to be getting closer to having mobile data working in Debian -- but not quite.

Maybe someone can suggest how to make it work.

I have a dual-boot Gemini with rooted Android (with Googleware) and Debian, and a T-Mobile USA 4G data SIM (with mobile data, a phone number, and SMS but no voice calling services).

4G mobile data and SMS sending and receiving work perfectly in Android (the Android version bundled with Googleware).

In Debian, the "Messaging" and "Phone" appas are installed. "Phone" doesn't work, of course -- not supported by this SIM. "Messaging" can send and receive plain-text SMS messages, but not MMS messages. (Perhaps this means that MMS messages are actually transmitted over mobile data, which isn't working?)

Connman has a "Mobile" tab, which shows only one "SIM Selection" option , "/ril_0".

The "Powered" and "Online" boxes are ticked for the selected SIM. "2G/3G/4G (fastest)" is ticked for connection type.

Under "Cellular", the box for "Powered" is ticked, but not the next box, "Mobile Data". If I tick this "Mobile Data" box, I get a popup:

QUOTE
CMST Warning

We received a DBUS reply message indicating an error.

Error Name: net.connman.Error.InvalidService

Error Message: Invalid service


Is anyone else using a T-Mobile USA data SIM in Debian on a Gemini? Any suggestions for what I should do to fix or diagnose this failure? Thanks in advance fior any guidance.
Go to the top of the page
 
+Quote Post
mibry
post Oct 7 2019, 10:43 PM
Post #2





Group: Members
Posts: 20
Joined: 18-May 18
Member No.: 822,788



QUOTE(ehasbrouck @ Oct 8 2019, 03:18 AM) *
Snip


Have a look here https://github.com/gemian/gemini-keyboard-a...DebuggingMobile. Towards the bottom there is a section about ofono scripts. I had to use that approach to get mobile data to work on linux.
Go to the top of the page
 
+Quote Post
ehasbrouck
post Oct 8 2019, 06:18 AM
Post #3





Group: Members
Posts: 22
Joined: 29-August 18
Member No.: 829,506



QUOTE(mibry @ Oct 7 2019, 11:43 PM) *
Have a look here https://github.com/gemian/gemini-keyboard-a...DebuggingMobile. Towards the bottom there is a section about ofono scripts. I had to use that approach to get mobile data to work on linux.


Thanks. I looked at that, but was unsure what settings to use.

Is anyone using a T-Mobile USA SIM (especially a data SIM without voice service) on their Gemini? What settings needed to be made through ofono-scripts? Here are the current settings:

QUOTE
$ cd /usr/share/ofono/scripts
/usr/share/ofono/scripts$ ./list-contexts
[ /ril_0 ]
[ /ril_0/context1 ]
Settings = { }
Active = 0
IPv6.Settings = { }
AccessPointName = internet
Type = internet
Password =
Name = Internet
Username =
Protocol = dual
AuthenticationMethod = none

[ /ril_0/context2 ]
Settings = { }
Active = 0
IPv6.Settings = { }
Password =
AuthenticationMethod = none
MessageCenter =
AccessPointName = mms
Type = mms
Name = MMS
Username =
Protocol = ip
MessageProxy =
Go to the top of the page
 
+Quote Post
Varti
post Oct 8 2019, 11:09 PM
Post #4





Group: Admin
Posts: 937
Joined: 30-April 08
From: Italy
Member No.: 21,713



QUOTE(ehasbrouck @ Oct 8 2019, 04:18 PM) *
Settings = { }
Active = 0
IPv6.Settings = { }
AccessPointName = internet
Type = internet
Password =
Name = Internet
Username =
Protocol = dual
AuthenticationMethod = none

I'm pretty sure that at least the AccessPointName setting is wrong. The APN must be set to the correct server, which is different for each operator, and each operator might use two or more APNs depending on the type of contract of their customers. From what I have found online, fast.t-mobile.com seems to be the correct one for the US T-Mobile, with the username and password correctly left blank (and hence AuthenticationMethod seems to be correctly set to none, this might be for the PAP/CHAP authentication which some carriers still require). You can check that the APN is correct by looking at your settings on the Android side. Also, I'd try to set Active to 1, this might also be required.

Regarding MMSes I have not found a dedicated APN for them, so I guess they might work with the data APN. I have seen a setting for the MMS service center (MMSC), which is http://mms.msg.eng.t-mobile.com/mms/wapenc, not sure where that should be set in the config file above though.
Go to the top of the page
 
+Quote Post
ehasbrouck
post Oct 9 2019, 08:35 AM
Post #5





Group: Members
Posts: 22
Joined: 29-August 18
Member No.: 829,506



Thanks, Varti! This helped me get mobile data at least partially (mostly?) working.

In case anyone else is trying this, here is what I did:

1. Downloaded and copied "serviceproviders.xml" to /usr/share/mobile-broadband-provider-info/serviceproviders.xml following instructions at https://github.com/gemian/gemini-keyboard-a...DebuggingMobile

I don't know if this was necessary. I has to create this directory and copy the file from the command line as root; I haven't figured out how to run PCManFM as root on the Gemini.

2. Set APN:
CODE
cd /usr/share/ofono/scripts
./set-context-property 0 AccessPointName fast.t-mobile.com


3. Activate this profile:
CODE
./activate-context 1


I haven't found any documentation of the ofono scripts -- I had to guess at which were used to set which parameters.

I was able to set the MMS service center with:
CODE
./set-mms-details none http://mms.msg.eng.t-mobile.com/wapenc


This now shows up with "./list-contexts", but MMS sending and receiving still don't work. This is not critical for me, most of the time, but is annoying, especially because some (all?) iPhones seem to send all text messages by MMS not MMS, even if the messages are straight text without attachments. So I don;t receive text messages from some contacts' iPhones.

I now have mobile data working in Debian, at least on my home network (T-Moble USA). I'll be travelling aborad next month, and will find out if roaming data (critical for me) works.

Strangely, the "Mobile Data" tab in Connman still has both the "Mobile Data" and "Roaming Data" boxes under "Mobile Data" un-checked, even while connected. ("Mobile Data" *is* now checked in the top "Cellular" box in Connman.)

The Gemini connects automagically to cellular data if I reboot into Debian, or if reboot into Android and than reboot back into Debian.

I don't know how to set which services (e.g. Wi-Fi and/or celluar data) start at boot, or how to prioritize which connection is used. But on my cellular data plan, this isn't usually an issue -- I have unlimited cellular data, even while roaming in most countries, so I don't usually need to switch to, or prioritize, Wi-Fi.

Meaanwhile, I got a follow-up message form Planetcom support saying that they don't know how to enable cellular data in Linux, and don't support Linux on the Gemini.
Go to the top of the page
 
+Quote Post
Adam Boardman
post Oct 9 2019, 03:38 PM
Post #6





Group: Members
Posts: 173
Joined: 29-December 17
Member No.: 815,489



QUOTE(ehasbrouck @ Oct 9 2019, 05:35 PM) *
The Gemini connects automagically to cellular data if I reboot into Debian, or if reboot into Android and than reboot back into Debian.


I tried to set the priority for cheapest connection first:
https://github.com/gemian/connman/commit/a8...a0b773b3d7217fb

You should also find from the lock screen (backer world map) has shortcuts to enable/disable bt,wifi,cellular,torch (ctrl-b, ctrl-w, ctrl-c, ctrl-t) these should also quickly indicate their status on the external LED that shows the status of these subsystems.
Go to the top of the page
 
+Quote Post
Meganerd
post Nov 4 2019, 07:19 AM
Post #7





Group: Members
Posts: 34
Joined: 17-June 18
Member No.: 824,617



Do you still need help with this? I am using Debian and ofono on TMo. Data, SMS, calling working. Albiet calling can bug out so not really usable.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 9th December 2019 - 09:37 PM