Man Linux ubuntu 8.04.1 od paru dni,wiec jestem ciemny w nim

iplus-disconnect, zawiera:TIMEOUT 600
ABORT ‘BUSY’
ABORT ‘NO ANSWER’
ABORT ‘ERROR’
SAY ‘Starting GPRS connect script\n’
“” ‘AT+CFUN=1,1′
“” ‘AT+CPIN=9999′
OK ‘ATE1\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d’
SAY ‘Setting APN\n’
OK ‘AT+CGDCONT=1,”IP”,”www.plusgsm.pl”‘
ABORT ‘NO CARRIER’
SAY ‘Dialing…\n’
OK ‘ATD*99***1#’
resolv.conf, zawiera:"" "\K"
“” “+++ATH0″
SAY “GPRS Disconnected.”
do /etc/ppp/peers wrzucamnameserver 212.2.96.51
nameserver 212.2.96.52
iplus, zawiera:[Dialer Defaults]
Modem = /dev/noz0
Baud = 460800
SetVolume = 0
Dial Command = ATDT
FlowControl = NOFLOW
Init1 = ATZ
Init2 = ATM0
[Dialer iplus]
Username = any
Password = any
Phone = *99***1#
Stupid Mode = 1
Init3 = AT+CGDCONT=1,"IP","www.plusgsm.pl"
Dial Attempts = 3
Następnienoauth
connect '/usr/sbin/chat -v -f /etc/ppp/iplus-connect'
disconnect “/usr/sbin/chat -v -f /etc/ppp/iplus-disconnect”
debug
/dev/noz0
1152000
defaultroute
crtscts
lock
local
nodetach
usepeerdns
lcp-echo-failure 4
lcp-echo-interval 65535
Kod: Zaznacz cały
Aby zmusić modem do pracy trzeba:
1. Ściągnąć źródła kernela.
2. Odszukać plik sterownika cp2101 (\usr\src\linux\drivers\usb\serial\cp2101.c)
3. Dopisać w nim nasz nr PID 822B
Po skompilowaniu jądra i uruchomieniu tego modułu powinno działać na prędkości 460800 8N1
Modyfikowany fragment \usr\src\linux\drivers\usb\serial\cp2101.c wygląda tak:
static struct usb_device_id id_table [] = {
{ USB_DEVICE(0x0FCF, 0x1003) }, /* Dynastream ANT development board */
{ USB_DEVICE(0x10A6, 0xAA26) }, /* Knock-off DCU-11 cable */
{ USB_DEVICE(0x10AB, 0x10C5) }, /* Siemens MC60 Cable */
{ USB_DEVICE(0x10B5, 0xAC70) }, /* Nokia CA-42 USB */
{ USB_DEVICE(0x10C4, 0x803B) }, /* Pololu USB-serial converter */
{ USB_DEVICE(0x10C4, 0x8066) }, /* Argussoft In-System Programmer */
{ USB_DEVICE(0x10C4, 0x807A) }, /* Crumb128 board */
{ USB_DEVICE(0x10C4, 0x80CA) }, /* Degree Controls Inc */
{ USB_DEVICE(0x10C4, 0x80F6) }, /* Suunto sports instrument */
{ USB_DEVICE(0x10C4, 0x813D) }, /* Burnside Telecom Deskmobile */
{ USB_DEVICE(0x10C4, 0x815E) }, /* Helicomm IP-Link 1220-DVM */
{ USB_DEVICE(0x10C4, 0xEA60) }, /* Silicon Labs factory default */
{ USB_DEVICE(0x16D6, 0x0001) }, /* Jablotron serial interface */
{ } /* Terminating Entry */
};
Należy w nim dopisać linijkę : { USB_DEVICE(0x10C4, 0x822B) }, /* comander */
static struct usb_device_id id_table [] = {
{ USB_DEVICE(0x0FCF, 0x1003) }, /* Dynastream ANT development board */
{ USB_DEVICE(0x10A6, 0xAA26) }, /* Knock-off DCU-11 cable */
{ USB_DEVICE(0x10AB, 0x10C5) }, /* Siemens MC60 Cable */
{ USB_DEVICE(0x10B5, 0xAC70) }, /* Nokia CA-42 USB */
{ USB_DEVICE(0x10C4, 0x803B) }, /* Pololu USB-serial converter */
{ USB_DEVICE(0x10C4, 0x8066) }, /* Argussoft In-System Programmer */
{ USB_DEVICE(0x10C4, 0x807A) }, /* Crumb128 board */
{ USB_DEVICE(0x10C4, 0x80CA) }, /* Degree Controls Inc */
{ USB_DEVICE(0x10C4, 0x80F6) }, /* Suunto sports instrument */
{ USB_DEVICE(0x10C4, 0x813D) }, /* Burnside Telecom Deskmobile */
{ USB_DEVICE(0x10C4, 0x815E) }, /* Helicomm IP-Link 1220-DVM */
{ USB_DEVICE(0x10C4, 0xEA60) }, /* Silicon Labs factory default */
{ USB_DEVICE(0x16D6, 0x0001) }, /* Jablotron serial interface */
{ USB_DEVICE(0x10C4, 0x822B) }, /* comander */*
{ } /* Terminating Entry */
};
Następnie skompilować i zainstalować jądro z modułem cp2101
Kod: Zaznacz cały
Oct 18 20:17:43 dibo-ubuntu kernel: [ 3093.447447] usb 1-2: new full speed USB device using uhci_hcd and address 3
Oct 18 20:17:43 dibo-ubuntu kernel: [ 3093.615248] usb 1-2: configuration #1 chosen from 1 choice
Kod: Zaznacz cały
[11370.960000] pl2303 6-1:1.0: GSM modem (1-port) converter detected
[11370.960000] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB0
Serwussabayon pisze:Witam
Man Linux ubuntu 8.04.1 od paru dni,wiec jestem ciemny w nim,jednak wgrał się ok,lecz nie mogę podłączyć internetu tj modemu comander iplusa
.Obecnie mało wiem o linuxie, ubuntu więc postanowiłem podłączyć internet za pomocą programu global3g,jednak gdy się łączy wyskakuje mi taki błąd jak niżej
i nie wiem jak temu poradzić ,za odp z góry dzięki
Dzięki! Teraz wykrywa mi modem na porcie ttyUSB0. Tylko i tak nie chce się połączyćsabayon pisze:Dibo
żeby wykryć ttyUSB musisz wpisac: modprobe usbserial vendor=8x11c4 product=0x822b,
jednak u Ciebie bedą inne,najlepiej sprawdzic to z windy dzieki programikowi USB View
lub wpisac polecenie lsusb -v i tam odszukać
Kod: Zaznacz cały
Oct 22 21:03:43 dibo-ubuntu pppd[8539]: pppd 2.4.4 started by dibo, uid 1000
Oct 22 21:03:43 dibo-ubuntu chat[8541]: timeout set to 600 seconds
Oct 22 21:03:43 dibo-ubuntu chat[8541]: abort on (BUSY)
Oct 22 21:03:43 dibo-ubuntu chat[8541]: expect (^M)
Kod: Zaznacz cały
sudo gnome-ppp
żeby nie zrywało Ci połączenia.lcp-echo-failure 4
Kod: Zaznacz cały
/etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 57600
Init1 = ATH
Init2 = ATE1
Init3 = AT+CGDCONT=1,"IP","internet"
Dial Command = ATD
Phone = *99#
Stupid mode = yes
Username = "blank"
Password = "blank"
Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 5 gości