📜 ⬆️ ⬇️

Installing ZTE AX226 in Ubuntu 11.04 and 12.04

The article is devoted to installing ZTE AX226 modem drivers on Ubuntu 11.04 and 12.04, and then connecting to the Internet, using the example of a Kazakhstan-based diji provider using WiMax technology, which currently provides, unfortunately, only ZTE AX226 modems. Out of the box, this modem does not provide for work in Linux systems and the popular madwimax package, which is used when connecting to the Yota provider using the Samsung U200 modem, is useless here. However, there are solutions for installing the ZTE AX226 modem in Ubuntu, but unfortunately they are scattered around the forums.

Installation can be carried out without an internet connection!
First of all, we will need the following certificate files: CA certificate, user name (MAC address), device certificate (PEM format), device private key (PEM format).
The ca.pem certificate CA file will need to be taken from the C: \ Program Files \ DTV WiMAX \ bin folder where the drivers are usually installed.
In order to retrieve the rest of the certificate files and key file, we need Process ExplorerIn the folder where the script and the dump file were, two devcer.pem and privatkey.pem files will appear, ready for use.

Next, we will prepare the configuration file for connecting and controlling the modem wimaxd.conf . My wimaxd.conf file looks like this:
ScanMinFrequencyMHz 2000 ## minimum search frequency
ScanMaxFrequencyMHz 2900 ## maximum search frequency
ScanStepFrequencyMHz 1 ## search step
BandwidthMHz 10
CenterFrequencyMHz 0
NetworkSearchTimeoutSec 10
LPSearchInShutDownEnabled No
NetworkEntryTimeoutSec 10
AuthEnabled Yes
EAPMethod 4

UserIdentity '12345ABCDE@aksoran.kz' ## my MAC address and connection point
UserPassword ''
TTLSAnonymousIdentity ''

BEGIN LINUX
CACertPath '/usr/share/dtv.kz' ## certificate location folder
END
')
BEGIN LINUX
CACertFileName '/usr/share/dtv.kz/ca.pem' ## path to the certificate file
END

BEGIN LINUX
TLSDeviceCertFileName '/usr/share/dtv.kz/devcer.pem' ## path to the certificate file
TLSDevicePrivateKeyFileName '/usr/share/dtv.kz/privatkey.pem' ## path to the certificate file
END
PrivateKeyPasswordFormat 'Ascii'

AuthenticationTimeoutSec 10
InvertMSKByteOrder No
AlwaysIncludeTLSLength No
EAPPollingLoopIntervalMs 50
FirmwareRSAPrivateKeyEncrypt No
InnerNAIChange yes

BEGIN LINUX
BeceemEngineFileName '/usr/src/USB_350/Source/CSCM/bin_pc_linux/bin/libengine_beceem.so'
END

AuthEthernetToRADIUS No
RADIUSIPAddress '10 .128.47.40 '
RADIUSPort 1812
RADIUSSecret 'whatever'
AutoReConnectEnabled No

AutoReConnectIntervalSec 5
LinkStatusRequestPeriodSec 2
BEGIN LINUX
IPRefreshCommand 'dhclient eth1'
NetEntryIPRefreshEnabled Yes
TerminateDHCPClient Yes
END

BEGIN LINUX
FirmwareFileName '/lib/firmware/macxvi350.bin'
ConfigFileName '/lib/firmware/macxvi.cfg'
END

CSCMDebugLogLevel 4

BEGIN LINUX
CSCMDebugLogFileName '/tmp/CM_Server_Debug.log'
END
CSCMDebugLogFileMaxSizeMB 1
AuthLogLevel 5

BEGIN LINUX
AuthLogFileName '/tmp/CM_Auth.log'
END

BEGIN LINUX
EnableAuthSysLogPrints No
END

AuthLogFileMaxSizeMB 1

EngineLoggingEnabled Yes
EngineLogFileMaxSizeMB 2

BEGIN LINUX
EngineLogFileName '/tmp/CM_Engine.log'
END
RADIUSClientLogLevel 0
Pay attention to the lines
ScanMinFrequencyMHz 2000 ## minimum search frequency
ScanMaxFrequencyMHz 2900 ## maximum search frequency

They define the search range of the base station to which we will connect, so if you set a small search range, then the base station risks not being detected. However, if you specify a large search range, the modem will search for base stations for a very long time. Therefore, I recommend specifying a large range of frequencies when you first start, and after the stations are identified, indicate a smaller range. (How to determine which frequencies of the nearest base stations are described below)

Then we place the wimaxd.conf file, as well as the ca.pem , devcer.pem and privatkey.pem certificate files in the /usr/share/dtv.kz folder, using Nautilus in the super-administrator mode:
sudo nautilus


Now let's proceed directly to installing the driver ZTE AX226.After the installation is completed, we check whether the modem was determined in the system by running the command
lsusb
The modem should decide something like this
Bus 001 Device 007: ID 19d2: 0172 ZTE WCDMA Technologies MSM AX226 WIMAX MODEM (After Modeswitch)
If instead of ID 19d2: 0172 we see ID 19d2: bccd , then we try to disconnect and reconnect the modem.
Comment:
When updating the driver kernel, you have to reinstall!


When the modem is installed and detected, you can install the Wimax applet for the ZTE AX226 modem:The choice of the BS also displays their frequencies, which will help us determine the approximate frequency range of the BS, which we indicate in wimaxd.conf
Installation completed. The modem is ready to go.

Wimax applet for ZTE AX226 modem is written by TwiN user
Sprint4G-Lite-Pack is also built by TwiN user .
Some materials used from here

Source: https://habr.com/ru/post/147751/


All Articles