Changes

Cosmo Linux Mobile Data

648 bytes added, 17:40, 23 July 2020
no edit summary
====3 - Configure APN====
The next step is to configure the APN for your specific network operator. For some operator the APN details might be already populated correctly. For some others operators you will have to retrieve the APN details, which can usually be they are found online or by contacting your operator.
UsuallyTo check what APN details are stored, this will simply involve setting up use the network's access point name through list-contexts command and look for the set-contextinformation below /ril_0/context1: <code>/usr/share/ofono/scripts/list-propertycontexts</code> [[File:22_46. jpg|center|800x600px|border]] For example, for the Three UK network we have to setup the access point name "three.co.uk":
<code> /usr/share/ofono/scripts/set-context-property 0 AccessPointName three.co.uk</code>
<code>/usr/share/ofono/scripts/set-context-property 0 AccessPointName online</code>
To double check that the information has been set properly you can use the list-contexts commandagain:
<code>/usr/share/ofono/scripts/list-contexts</code>
The output of list-contexts should be similar to the output of the screenshot below (see the important bit - AccessPointName = three.co.uk). [[File:22_46.jpg|center|800x600px|border]]
In some cases you will have to fill in the username and password information too. For example for EE UK you will have to use "eesecure" as username and "secure" as password. You can do that using the following commands:
[[File:22_46.jpg|center|800x600px|border]]<code>/usr/share/ofono/scripts/set-context-property 0 username eesecure </code>
<code>/usr/share/ofono/scripts/set-context-property 0 password secure </code>
Finally, Once the APN information is set we need to can activate the connection using the following command:
<code>/usr/share/ofono/scripts/activate-context 1</code>
Because cmst will be used to handle both mobile and WIFI connection, it's a good idea to run automatically it at every login. To do that, Go to Menu -> Applications -> Settings -> System Settings.
[[File:22_04.jpg|center|800x600px|center|border]]
Inside System Settings, select Startup and Shutdown, tap on the "Add Program..." button, type "cmst" and tap on the OK button.
[[File:22_58.jpg|center|800x600px|center|border]]
The program will now be executed at every login.
[[File:22_34.jpg|center|800x600px|center|border]]
====5 - Troubleshoot====
Powering OFF and ON the mobile chipset using cmst does not always work as expected - a reboot will fix the issue.
If cmst shows a working connection but you can't browse the Internet, it might be because the DNS jas has not been automatically populated. In this case you can set one using the following command:
<code>sudo echo "nameserver 8.8.8.8" > /etc/resolv.conf</code>