rozważania o CNC

Marzec 29, 2024, 12:25:18
Witamy, Gość. Zaloguj się lub zarejestruj.

Zaloguj się podając nazwę użytkownika, hasło i długość sesji
Strony: [1]   Do dołu
  Drukuj  
Autor Wątek: huawei E220: przyłaczenie do ubuntu (na live 7.05pl)  (Przeczytany 14716 razy)
markcomp
Administrator
*****
Offline Offline

Wiadomości: 14874



WWW
« : Listopad 30, 2007, 02:24:40 »

przyłaczenie E220 do ubuntu (na live 7.05pl)



modem usb E220 po przyłączeniu do świeżo zbotowanego z CD ubuntu 7.05PL jest rozpoznawany...
pozostaje tylko...

1) /etc/ppp/peers/ppp:

Kod:
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/ppp"
debug
/dev/ttyUSB0
460800
defaultroute
noipdefault
noccp
nobsdcomp
user "USER"
password "PASS"
usepeerdns
connect-delay 10000

2) /etc/chatscripts/ppp

Kod:
# This chatfile was generated by pppconfig 2.3.10.
# Please do not delete any of the comments.  Pppconfig needs them.
#
# ispauth PAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
TIMEOUT 5
OK AT+CPIN? READY-AT+CPIN=XXXX-OK ""
TIMEOUT 20
'' 'AT+cgdcont=1,"IP","APN"' OK "ATDT*99#"
# ispconnect
CONNECT \d\c
# prelogin

# ispname
# isppassword
# postlogin

# end of pppconfig stuff

pon ppp
pppd call ppp nodetach
poff ppp.
« Ostatnia zmiana: Listopad 30, 2007, 02:27:37 wysłane przez markcomp » Zapisane

MARKcomp77

http://oferta.forum-cnc.pl/
Sterowniki.Silniki

markcomp
Administrator
*****
Offline Offline

Wiadomości: 14874



WWW
« Odpowiedz #1 : Listopad 30, 2007, 02:26:36 »

coś na ten temat:

http://www.linux.rk.edu.pl/w/p/polish-friendly-linux/
http://ske.sourceforge.net/html/projects/huawei/huawei_tre.html
http://forum.suse.pl/index.php/topic,15252.0.html
http://ubuntuforums.org/showthread.php?t=618514&highlight=e220
http://linux.frankenberger.at/Huawei_E220.html
http://www.linux.rk.edu.pl/w/p/huawei-e220-i-linux/
http://oozie.fm.interia.pl/pro/huawei-e220/

http://gentoo-wiki.com/HARDWARE_HUAWEI_E220_HSDPA_USB_MODEM
http://joergweis.wordpress.com/2007/01/03/huawei-e220-and-ubuntu-610/
http://www.mobileplanet.com/f.aspx?i=141528
http://www.scribd.com/doc/193826/Vodafone-Driver-for-Huawei-E220-USB-3G-
« Ostatnia zmiana: Grudzień 01, 2007, 01:25:48 wysłane przez markcomp » Zapisane

MARKcomp77

http://oferta.forum-cnc.pl/
Sterowniki.Silniki

markcomp
Administrator
*****
Offline Offline

Wiadomości: 14874



WWW
« Odpowiedz #2 : Listopad 30, 2007, 11:53:53 »

buntu guide to using HSDPA USB-modem Huawei E220 with the Tre network



http://www.inorp.com/blog/2007/03/13/ubuntu-guide-to-using-hsdpa-usb-modem-huawei-e220-with-the-tre-network/



Using the Huawei E220 under Linux is not supported by the 3G operator 3 (in Swedish: Tre ..). Here?s a guide how to get it working on Ubuntu.

Your connection have a pin-code per default set. Its written on your larger sim-card adapter. In order to simplify alot, lets just remove this. Put the 3g data simcard in your 3g-phone and remove the sim pin. Then put the card into the USB-modem.

If you start up your Ubuntu machine and plug in the USB-modem, it will show as a cd-rom drive (atleast my does). Also I?m getting a folder popping up as if it would be a storage device (it does seems to be a storage device for windows drivers..).

- First step, right click on the newly auto-created cd-rom icon on your desktop and choose eject. Close any windows using the device.

- Start a terminal. The commands below should be ran as root.

Kod:
rmmod usb-storage
rmmod usbserial

(the later might create an error.)

Kod:
lsusb

- The last command shoul show the device connected similiar to:

Kod:
Bus 001 Device 003: ID 12d1:1003

Run:
Kod:
modprobe usbserial vendor=0×12d1 product=0×1003

Now, disconnect the Huawei E220 USB-modem and wait a few seconds before connecting it again.

- As soon as the device have stopped blinking green you should find three new USB-devices by running the command:
Kod:
ls -al /dev/ttyU*

Now its time to setup the wvdial.conf file. This config works for me, given that the pin sim-code is removed it whould work right off for you aswell. That is if you have a swedish tre.se turbo3g or 3g data account.

Kod:
[Dialer Defaults]
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99***1#
Modem = /dev/ttyUSB0
Username = user
Dial Command = ATDT
Password = pass
Baud = 460800
Init4 = AT+CGDCONT=1,"IP","data.tre.se"

You should now be able to run the command:
Kod:
wvdial

And the log might look something like this:

Kod:
******@pierre-laptop:/# wvdial
--> WvDial: Internet dialer version 1.56
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","data.tre.se"
AT+CGDCONT=1,"IP","data.tre.se"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Mar 13 21:46:20 2007
--> Pid of pppd: 4714
--> Using interface ppp0
--> local IP address 10.147.106.11
--> remote IP address 80.251.193.196
--> primary DNS address 80.251.192.244
--> secondary DNS address 80.251.192.245
--> Connect time 0.1 minutes.
--> local IP address 10.147.106.11
--> remote IP address 80.251.193.196
--> primary DNS address 80.251.192.244
--> secondary DNS address 80.251.192.245


Zapisane

MARKcomp77

http://oferta.forum-cnc.pl/
Sterowniki.Silniki

markcomp
Administrator
*****
Offline Offline

Wiadomości: 14874



WWW
« Odpowiedz #3 : Maj 17, 2008, 10:41:43 »

polecam

Ubuntu Dapper 6.06 and a Huawei E220 UMTS/GPRS Box
http://wwwu.uni-klu.ac.at/agebhard/HuaweiE220/
Zapisane

MARKcomp77

http://oferta.forum-cnc.pl/
Sterowniki.Silniki

Jagoda
fachowiec
***
Offline Offline

Wiadomości: 167



WWW
« Odpowiedz #4 : Lipiec 04, 2017, 12:24:36 »

Może się akurat komuś przyda Mrugnięcie
Zapisane

Strony: [1]   Do góry
  Drukuj  
 
Skocz do:  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Manuscript design by Bloc Strona wygenerowana w 0.042 sekund z 18 zapytaniami.