TODO forever when life runs faster than you can afford

26Jan/100

Sakis3G: Unknown operator XXXXX

Notice: This post provides links and instructions referring to an old version of Sakis3G script. Page is still available only for historical reasons.
Please visit www.sakis3g.org for latest Sakis3G script version.

You downloaded Sakis3G script but it now stops with error "Unknown operator XXXXX". This means that Sakis3G script is not aware of your operator. At first, let me apologize: this script is in early steps and embedding all operators' details is (a) hard work and (b) I do not know how to find all required information. This is why, if you succeed implementing instructions below, you should send me feedback. By doing so, people that use the same operator with you, will not have to repeat instructions.


Note: From this point on, I am assuming you have installed Sakis3G script on "/usr/bin". You should replace all "/usr/bin/sakis3g" occurrences, with the full path of "sakis3g" to your installation.

First, have a terminal fired up (classic). Being root would be convenient to avoid popups asking root password again and again (if you are on console or have set the alwayssudo variable, becoming root is a *must*, because script does not maintain environment during sudo calls):

Not sudo-based distribution: Becoming root.

$ su -
Password:
#


Sudo-based distribution: Becoming root.

$ sudo bash
Password:
#

Each GSM network on this planet, is assigned a unique 5 or 6 digit code. First three digits define country (MCC), while the rest identify specific network within that country (MNC). Each network serves at least one operator. Some networks serve multiple "virtual" operators as well. When script complains with error "Unknown operator XXXXX", XXXXX is actually the unique code of the network that serves your operator. Because of this mess, Sakis3G script simplifies situation by considering the network code being operator code.

Execute Sakis3G script with the "connect" argument, to discover your operator's code:

# /usr/bin/sakis3g connect
Unknown operator 20201


Now contact your operator, or google, to find out which is the correct APN (Access Point Name) for connecting you to the internet, along with username and password (if required by operator).

APN is specified to modems by using the AT+CGDCONT command. So if you encounter instructions for establishing connection with your operator, you might come across with the following AT command: AT+CGDCONT=1,"IP","fooapn". "fooapn" is then your APN name.

Have this list filled up for your own convenience (and consider sending it to me later, if it worked):
Code of operator (returned by sakis3g): XXXXX
Name of operator:.......................
APN:.......................
Username:.......................
Password:.......................

If username and/or password are not required by your operator, use "user" as username and "pass" as password. Now construct the following command (in one single line), using details specified above:

# ISP_{code of operator}_name="{name of operator}" FORCE_APN="{APN}::{username}:{password}" /usr/bin/sakis3g connect

As an example, for my operator, command is:

# ISP_20201_name="Cosmote" FORCE_APN="internet::user:pass" /usr/bin/sakis3g connect

If this command returned flawlessly, seems like your are now connected. Edit Sakis3G and add those two variables to avoid specifying them on command-line whenever you need to connect:

#!/bin/sh
MYVERSION="0.1.1"
ISP_20201_name="Cosmote"
FORCE_APN="internet::user:pass"

You are done (consider sending them to me as well).

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.