Huawei E220
mitlox
mitlox w op.pl
Wto, 2 Gru 2008, 03:10:05 CET
Grzesiek Sójka wrote:
> Pawel Zuzelski wrote:
>
>> A na serio to pozmieniaj w tych konfigach rzeczy specyficzne dla operatora, bo
>> bez tego, to Ci nie zadziala na pewno.
>>
>
> Tak nie do końca:
> # cat /etc/ppp/era-connect
> TIMEOUT 600
> ABORT 'BUSY'
> ABORT 'NO ANSWER'
> ABORT 'ERROR'
> SAY 'Startuję HDSPA'
> "" ATZ
> #OK 'AT+CPIN=3289'
> OK 'ATE0V1&F&D2&C1&C2S0=0'
> OK "ATE0V1"
> OK "ATS7=60"
> ABORT 'NO CARRIER'
> SAY 'DIALING... \n'
> OK 'ATDT*99#'
>
> żadnej wzmianki o operatorze i działa.
>
Szkoda twoj script tez nichce dzilac, ale to moze dlatego niedzaila bo:
# cat /proc/bus/usb/devices
T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 2.06
S: Manufacturer=Linux 2.6.27.6-3 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:10.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 2.06
S: Manufacturer=Linux 2.6.27.6-3 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:10.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=1003 Rev= 0.00
S: Manufacturer=HUAWEI Technologies
S: Product=HUAWEI Mobile
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usbserial_generic
E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 2.06
S: Manufacturer=Linux 2.6.27.6-3 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:10.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 2.06
S: Manufacturer=Linux 2.6.27.6-3 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:10.3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
# ls /dev/ttyUSB*
ls: cannot access /dev/ttyUSB*: No such file or directory
Dalsze Informatcie o bc-e220:
$ cat /etc/ppp/peers/bc-e220
460800
/dev/ttyUSB0
crtscts
connect "/usr/sbin/bc-e220.sh"
defaultroute
usepeerdns
defaultroute
replacedefaultroute
user a
noauth
$ cat /etc/ppp/options
asyncmap 0
auth
crtscts
lock
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx
$ cat /etc/chatscripts/bc-e220.chat
#/etc/chatscripts/umts
ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 10
SAY "Calling ORANGE UMTS/EGDE/GPRS\n"
TIMEOUT 60
"" "ATD*99#"
Na to wyglanda ze brokuje usb.h bo sobie sciagnelem huawei-e220.tar.gz z
http://www.mediafire.com/?l5jtywnmycn
#
./setup.sh
==> Checking whether we meet requirements ...
Do we have enough rights? ... Yes
Do we have gcc? ... Yes
Do we have wvdial? ... Yes
Is the environment sane? ... Yes
==> Requirements met
==> Starting build ...
huaweiAktBbo.c:15:17: error: usb.h: No such file or directory
huaweiAktBbo.c: In function 'list_devices':
huaweiAktBbo.c:37: warning: assignment makes pointer from integer
without a cast
huaweiAktBbo.c:37: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:40: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:40: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:42: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:43: error: dereferencing pointer to incomplete type
huaweiAktBbo.c: In function 'find_device':
huaweiAktBbo.c:50: warning: assignment makes pointer from integer
without a cast
huaweiAktBbo.c:50: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:53: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:53: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:54: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:55: error: dereferencing pointer to incomplete type
huaweiAktBbo.c: In function 'main':
huaweiAktBbo.c:115: warning: assignment makes pointer from integer
without a cast
huaweiAktBbo.c:169: error: 'USB_TYPE_STANDARD' undeclared (first use in
this function)
huaweiAktBbo.c:169: error: (Each undeclared identifier is reported only once
huaweiAktBbo.c:169: error: for each function it appears in.)
huaweiAktBbo.c:169: error: 'USB_RECIP_DEVICE' undeclared (first use in
this function)
huaweiAktBbo.c:169: error: 'USB_REQ_SET_FEATURE' undeclared (first use
in this function)
install: cannot stat `huawei-e220': No such file or directory
# gcc --version
gcc (PLD-Linux) 4.3.2 20080911 (release)
Ale mam libusb
$ rpm -q libusb
libusb-0.1.12-5.i686
Czy jest usb.h w innym rpm?
Więcej informacji o liście dyskusyjnej pld-users-pl