telenor 3G USB modem

13 odgovora [Poslednji unos]
tomil
Slika korisnika tomil
Offline
User
Član od: 29/05/2006

Uzeo sam na probu telenor "Koristi mesec dana besplatno" i dobio sam USB modem "XSPlugP3".
Tehnicka podrska mi je rekla da Linux nije podrzan sa ovim modemom, sto naravno nije tacno.

Evo kako sam ja to uradio na PCLinuxOS 2007:
Kada se prikljuci modem na USB port racunar ga prepozna kao USB flash disk.
Na disku se nalaze drajveri za Windows i Mac. Znaci neupotrebljivo za Linux.
Pritiskom na dugme modema, modem se inicijalizuje i Linux ga prepozna kao ttyACM0 uredjaj.
Sada treba podesiti wvdial. Napravio sam /etc/ppp/peers/wvdial.conf
#wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99***1#
Username = telenor
Password = gprs

[Dialer telenor3G]
Init1 = ATZ
Init2 = AT+COPS=0,0,"YU MOBTEL",2
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
Init4 = AT+CSQ
Init5 = AT+CGDCONT=1,"IP","internet";
Modem Type = USB Modem
ISDN = 0
Modem = /dev/ttyACM0
#Dial Command = ATDT
#Phone = *99***1#
#Username = telenor
#Password = gprs
Baud = 460800

[Dialer telenorGPRS]
Init1 = ATZ
Init2 = AT+COPS=0,0,"YU MOBTEL",0
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
Init4 = AT+CSQ
Init5 = AT+CGDCONT=1,"IP","internet";
Modem Type = USB Modem
ISDN = 0
Modem = /dev/ttyACM0
#Dial Command = ATDT
#Phone = *99***1#
#Username = telenor
#Password = gprs
Baud = 460800

Sada za 3G startujemo:
wvdial --config /etc/ppp/peers/wvdial.conf telenor3G

[root@~]# wvdial --config /etc/ppp/peers/wvdial.conf telenor3G
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
OK
--> Sending: AT+COPS=0,0,"YU MOBTEL",2
AT+COPS=0,0,"YU MOBTEL",2
OK
--> Sending: ATE0V1&D2&C1S0=0+IFC=2,2
ATE0V1&D2&C1S0=0+IFC=2,2
OK
--> Sending: AT+CSQ
+CSQ: 20,99
OK
--> Sending: AT+CGDCONT=1,"IP","internet";
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Fri Oct  3 13:13:04 2008
--> pid of pppd: 21477
--> Using interface ppp0
--> pppd: Connect: ppp0 /dev/ttyACM0
--> pppd: CHAP authentication succeeded
--> pppd: Could not determine remote IP address: defaulting to 10.64.64.64
--> pppd: not replacing existing default route to eth0 [192.168.10.7]
--> local  IP address 172.17.85.4
--> remote IP address 10.64.64.64
--> primary  DNS address 10.11.12.13
--> secondary DNS address 10.11.12.14

a za GPRS:
wvdial --config /etc/ppp/peers/wvdial.conf telenorGPRS

[root@~]# wvdial --config /etc/ppp/peers/wvdial.conf telenorGPRS
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
OK
--> Sending: AT+COPS=0,0,"YU MOBTEL",0
AT+COPS=0,0,"YU MOBTEL",0
OK
--> Sending: ATE0V1&D2&C1S0=0+IFC=2,2
ATE0V1&D2&C1S0=0+IFC=2,2
OK
--> Sending: AT+CSQ
+CSQ: 30,99
OK
--> Sending: AT+CGDCONT=1,"IP","internet";
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Fri Oct  3 13:10:07 2008
--> pid of pppd: 21397
--> Using interface ppp0
--> pppd: Connect: ppp0 /dev/ttyACM0
--> pppd: CHAP authentication succeeded
--> pppd: Could not determine remote IP address: defaulting to 10.64.64.64
--> pppd: not replacing existing default route to eth0 [192.168.10.7]
--> local  IP address 172.17.153.156
--> remote IP address 10.64.64.64
--> primary  DNS address 10.11.12.13
--> secondary DNS address 10.11.12.14

Dodatne AT komande za prebacivanje 3G/GPRS su:
Prebaci na UMTS
AT+COPS=0,0,"YU MOBTEL",2
Prebaci na GPRS
AT+COPS=0,0,"YU MOBTEL",0

Korisna je i komanda AT+CSQ koja daje jacinu signala.

Objasnjenje za dodatne AT komande sam nasao na lokaciji:
http://www.shapeshifter.se/2008/04/30/list-of-at-commands/

Verujem da je ovo primenljivo i na drugim Linux distribucijama.
Oni koji vise vole graficki interfejs, mogu lako da prilagode svoju aplikaciju (KPPP i slicno).

0
miodragz
Slika korisnika miodragz
Offline
User
Član od: 29/05/2006

Afro

dukenukem_4d
Slika korisnika dukenukem_4d
Offline
User
Član od: 02/07/2007

Laughing out loud Afro

__________________

ADSL 1024 Slackware Srbija?Psy linux> Notorrni_modem ali se teže instalira od oootranslit ња ња

urosevic
Slika korisnika urosevic
Offline
User
Član od: 30/05/2006

Svaka čast! Ovo će biti mnogima korisno.

tomil
Slika korisnika tomil
Offline
User
Član od: 29/05/2006

  U međuvremenu mi je dosla do ruku i MTS kartica, pa sam probao i sa njom.
Prepravio sam wvdial.conf da obuhvatim i MTS:

# wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0

[Dialer telenor3G]
Init1 = ATZ
Init2 = AT+COPS=0,0,"YU MOBTEL",2
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
Init4 = AT+CSQ
Init5 = AT+CGDCONT=1,"IP","internet";
Modem Type = USB Modem
ISDN = 0
Modem = /dev/ttyACM0
Dial Command = ATDT
Phone = *99***1#
Username = telenor
Password = gprs
Baud = 460800

[Dialer telenorGPRS]
Init1 = ATZ
Init2 = AT+COPS=0,0,"YU MOBTEL",0
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
Init4 = AT+CSQ
Init5 = AT+CGDCONT=1,"IP","internet";
Modem Type = USB Modem
ISDN = 0
Modem = /dev/ttyACM0
Dial Command = ATDT
Phone = *99***1#
Username = telenor
Password = gprs
Baud = 460800

[Dialer mts3G]
Init1 = ATZ
Init2 = AT+COPS=0,0,"YUG 03",2
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
Init4 = AT+CSQ
Init5 = AT+CGDCONT=1,"IP","3gdata";
Modem Type = USB Modem
ISDN = 0
Modem = /dev/ttyACM0
Dial Command = ATDT
Phone = *99***1#
Username = mts
Password = 064
Baud = 460800

[Dialer mtsGPRS]
Init1 = ATZ
Init2 = AT+COPS=0,0,"YUG 03",0
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
Init4 = AT+CSQ
Init5 = AT+CGDCONT=1,"IP","3gdata";
Modem Type = USB Modem
ISDN = 0
Modem = /dev/ttyACM0
Dial Command = ATDT
Phone = *99***1#
Username = mts
Password = 064
Baud = 460800

za Telenor je sada:
wvdial --config /etc/ppp/peers/wvdial.conf telenor3G
wvdial --config /etc/ppp/peers/wvdial.conf telenorGPRS
a za MTS:
wvdial --config /etc/ppp/peers/wvdial.conf mts3G
wvdial --config /etc/ppp/peers/wvdial.conf mtsGPRS

Uređaj je onaj isti koji sam dobio od Telenora "XSPlugP3"

BRANKKO
Slika korisnika BRANKKO
Offline
User
Član od: 29/05/2006

Ja pokusavam da namestim onaj Telekomov ZTE MF622 USB 3G Modem, al' uporno mi izbacuje:
brankko@kk-eee:~$ sudo wvdial --config /etc/wvdial.conf mts3G
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+COPS=0,0,"YUG 03",2
AT+COPS=0,0,"YUG 03",2
ERROR
--> Bad init string.
^CCaught signal 2:  Attempting to exit gracefully...
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+COPS=0,0,"YUG 03",2
AT+COPS=0,0,"YUG 03",2
ERROR
--> Bad init string.
^C
brankko@kk-eee:~$

tomil
Slika korisnika tomil
Offline
User
Član od: 29/05/2006

BRANKKO wrote:

Ja pokusavam da namestim onaj Telekomov ZTE MF622 USB 3G Modem, al' uporno mi izbacuje:

Nemam iskustva sa tim modemom, ali koliko vidim na netu (google je nas najbolji prijatelj) to je neki slican ili isti kao Huawei E219.

Evo ti neki linkovi:
"raspad sistema; mts 3g net, ZTE MF622 i Ubuntu 8.10; & i’m back ..."
http://abakus.wordpress.com/2008/12/05/raspad-sistema-mts-3g-net-zte-mf6...

http://en.wikipedia.org/wiki/Vodafone_Mobile_Connect_Card_driver_for_Linux

https://forge.betavine.net/projects/vodafonemobilec/

dukenukem_4d
Slika korisnika dukenukem_4d
Offline
User
Član od: 02/07/2007
__________________

ADSL 1024 Slackware Srbija?Psy linux> Notorrni_modem ali se teže instalira od oootranslit ња ња

BRANKKO
Slika korisnika BRANKKO
Offline
User
Član od: 29/05/2006

Uff Googlao sam celu noc i celo jutro... i probao sve moguce tutorijale (ukljucujuci i sve varijante istih) koje sam nasao na netu i bez uspeha... Na kraju ga sredim da se kao uspesno instalira i detektuje ga sistem i sve, ali kad krene da zove... kvrc... "Bad init string"
Probao sam i ovaj Vodafon-ov software (doduse ne znam da li je bas ova verzija, ali skinuh ga sa njihovog nekog developer sajta, al nije htelo...

Ajd probacu sad ove odavde...

Darth Error
Slika korisnika Darth Error
Offline
User
Član od: 03/12/2009

tomil wrote:

BRANKKO wrote:
Ja pokusavam da namestim onaj Telekomov ZTE MF622 USB 3G Modem, al' uporno mi izbacuje:

Nemam iskustva sa tim modemom, ali koliko vidim na netu (google je nas najbolji prijatelj) to je neki slican ili isti kao Huawei E219.

Evo ti neki linkovi:
"raspad sistema; mts 3g net, ZTE MF622 i Ubuntu 8.10; & i’m back ..."
http://abakus.wordpress.com/2008/12/05/raspad-sistema-mts-3g-net-zte-mf6...

http://en.wikipedia.org/wiki/Vodafone_Mobile_Connect_Card_driver_for_Linux

https://forge.betavine.net/projects/vodafonemobilec/

Upravo sam nabacio ubuntu 9.10 na svoj desktop... i imam malih problema pri ospsobljavanju istog za rad... tj jedan, jedini problem... imam buđavi 3g net od Telekoma... sa modemom ZTE MF622...i kad hoću da instaliram ovaj vodafone mobile connect... on mi traži da skine još 27 dodatnih paketa... što opet ne mogu da uradim, jer jedini net koji imam je upravo 3g... Pokušao sam da skidam pakete zasebno(na laptopu, prebacivao na desktop) ... što se opet završilo neuspešno, jer je skoro svaki od njih tražio neke druge pakete, a ovi opet neke treće, i tako u nedogled...i posle 3-4 sata guglanja sam konačno odustao...
Bio bih zahvalan na bilo kakvoj vrsti pomoći... kad sam n00b...  Sad

__________________

www.igrorama.com

worky
Slika korisnika worky
Offline
User
Član od: 29/05/2006

Evo jedne skriptice za start konekcije sa USB 3G modemom, HUAWEI E1552.

Jedino prethodno treba instalirati mali program usb_modeswitch-1.1.2
i naravno wvdial i wvstreams. Konfiguracija wvdial se radi komandom wvdialconf , i dodatno treba uneti
providername i password  kao i phone number, ovde je to *99#.

Meni koristi na Slackware linuxu, neznam na drugim distroima , mozda  se to vec resava drugacije.

evo skripte:

#!/bin/sh

#1- Unload everything that is already loaded
echo Unload all modules
modprobe -r ppp_async
modprobe -r crc_ccitt
modprobe -r ppp_generic
modprobe -r slhc

modprobe -r option
sleep 2
modprobe -r usb_storage
modprobe -r usbserial
idm=`lsusb | grep Huawei | awk -F":" '{print $3}' | awk '{print $1}'`

cat > /etc/usb_modeswitch.conf << EOF
DisableSwitching=0
# Enable logging (results in a extensive report file in /var/log, named
# "usb_modeswitch_<interface-name>"

EnableLogging=0
#CUSTOMIZED
########################################################
;DefaultVendor=  0x12d1
;DefaultProduct= 0x$idm

MessageEndpoint = 0x01
MessageContent = "55534243000000000000000000000011060000000000000000000000000000"
########################################################
EOF

#2- Switch the mode of the USB-modem from storage to modem
echo Wait and switch mode to modem
sleep 10

usb_modeswitch -v 0x12d1 -p 0x$idm -H -s 5 -c /etc/usb_modeswitch.conf

#3- Again, if after the switch some modules get loaded automatically, unload
#them and load usbserial with the correct module parameters.
echo Reload usbserial with the correct parameters
sleep 5
modprobe -r option
modprobe -r usb_storage
modprobe -r usbserial
sleep 5

modprobe usbserial vendor=0x12d1 product=0x$idm

#4- Send the PIN to unlock the modem - will return an error (and just
#do nothing even if no error is displayed) if the modem was already unlocked.
#echo Sleep and unlock modem
#sleep 5
#echo "ATZ+CPIN=\"1234\"" > /dev/ttyUSB0
#sleep 35 #Very important
sleep 15

echo -e "\e[1;33m\nwmnd -i ppp0 &\n\e[m"
#5- Start wvdial and let's hope for the best.
echo Start wvdial
wvdial

U ovoj skripti je default vendor broj 12d1
ako je to kod vas drugacije, onda unesite drugi broj u skriptu, a to cete utvrditi komandom kao root
"lsusb" dobicete u  stringu ID iza koga je default vendor i product number, ovaj drugi hoce da se promeni
ponekad, dok je vendor number stalan.