Pokreni naredbu "lsusb" i obrati paznju na nesto tipa ovoga:
Kod: Označi sve
Bus 003 Device 004: ID 1bbb:f000 T & A Mobile Phones
To je tvoj USB 3G stick. "1bbb" proizvodjaca, a "f000" proizvod.
Solucija broj 1
Kod: Označi sve
#!/bin/bash
sudo modprobe -r option
sudo modprobe -r usbserial
sudo modprobe usbserial vendor=0x1bbb product=0x0017
Ovo strpaj u bash skriptu, upises "chmod +x ime_skripte.sh" i pokrenes. Ako sve radi uredno, network manager ce te pitati za PIN od SIM kartice koja je u 3G modemu. Na Linux Mintu se bez ikakvih problema spojilo na net sa standardnim network managerom koji dolazi uz njega.
Solucija broj 2
Ako tada ne proradi, onda probaj sa ovime:
Instaliraj paket "usb-modeswitch". Kreiraj konfiguracijsku datoteku koja ce se nalaziti u /etc/usb-modeswitch-x230d.conf i unutra c/p
Kod: Označi sve
# Alcatel X230D
DefaultVendor= 0x1bbb
DefaultProduct= 0xf000
TargetVendor= 0x1bbb
TargetProduct= 0x0017
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
Nakon toga pokreni naredbu "sudo usb_modeswitch -c /etc/usb-modeswitch-x230d.conf "
Ovo je output:
Kod: Označi sve
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 004 on bus 003 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
No driver found. Either detached before or never attached
SCSI inquiry data (for identification)
-------------------------
Vendor String: ALCATEL
Model String: Mass Storage
Revision String: 2.31
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: USBModem
Product: HSPA Data Card
Serial No.: 1234567890ABCDEF
-------------------------
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
-> Run lsusb to note any changes. Bye.
U slucaju da se zelis spajati preko wvdiala, ovo su inicijalizacijski parametri koji se stave u wvdial.conf datoteku:
Kod: Označi sve
init1 = ATZ
init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
init3 = AT+CGDCONT=4,"IP","mobileinternet.tele2.hr"
Pored ovog Alcatela, uspio sam natjerati da prorade i Huawei E180 i ZTE MF190, koje je takodjer Tele2 davao uz ugovor, ako nekome trebaju parametri za spajanje neka se javi na PM.
Negdje sam pronasao da ako ti ne radi 3G mozes dodati inicijalizacijski parametar ovisno o onome sto ti treba:
Kod: Označi sve
AT+ZSNT=0,0,0 automatic
AT+ZSNT=1,0,0 2G only
AT+ZSNT=2,0,0 3G
Nadam se da sam pomogao, pozdrav
