Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2012-08-01 10:00:50

  az - debianlover

az
debianlover
Zarejestrowany: 2009-01-23

Raspberry Pi + Aero2 (Huawei E173)

Ktoś próbował odpalić Aero2 z modemem Huawei E173 na Raspberry Pi?

Niby działa ale rozłącza i jak np pinguje przez ten interface

Kod:

pi@raspberrypi ~ $ ping -I ppp0 onet.pl
PING onet.pl (213.180.141.140) from 192.168.50.43 ppp0: 56(84) bytes of data.
64 bytes from sg1.any.onet.pl (213.180.141.140): icmp_req=1 ttl=58 time=836 ms
64 bytes from sg1.any.onet.pl (213.180.141.140): icmp_req=2 ttl=58 time=1061 ms
64 bytes from sg1.any.onet.pl (213.180.141.140): icmp_req=3 ttl=58 time=80.1 ms
64 bytes from sg1.any.onet.pl (213.180.141.140): icmp_req=4 ttl=58 time=67.8 ms
64 bytes from sg1.any.onet.pl (213.180.141.140): icmp_req=5 ttl=58 time=76.5 ms
64 bytes from sg1.any.onet.pl (213.180.141.140): icmp_req=6 ttl=58 time=74.6 ms
64 bytes from sg1.any.onet.pl (213.180.141.140): icmp_req=7 ttl=58 time=77.8 ms
ping: sendmsg: No such device

Kod:

root@raspberrypi ~ # cat /etc/wvdial.conf
[Dialer aero2]
Modem = /dev/ttyUSB0
Init1 = AT+CGDCONT=1,"IP","darmowy"
Phone = *99#
Stupid mode = yes
Username = "aero"
Password = "aero"
Dial Attempts = 0
root@raspberrypi ~ # lsusb | grep Huawei
Bus 001 Device 014: ID 12d1:1436 Huawei Technologies Co., Ltd.
root@raspberrypi ~ # cat /etc/ppp/peers/wvdial
noauth
name wvdial
usepeerdns
local

Kod:

root@raspberrypi ~ # wvdial aero2 
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Aug  1 09:49:04 2012
--> Pid of pppd: 1983
--> Using interface ppp0
--> pppd: �� @p��[01]���[01]
--> pppd: �� @p��[01]���[01]
--> pppd: �� @p��[01]���[01]
--> pppd: �� @p��[01]���[01]
--> pppd: �� @p��[01]���[01]
--> pppd: �� @p��[01]���[01]
--> pppd: �� @p��[01]���[01]
--> local  IP address 37.209.141.188
--> pppd: �� @p��[01]���[01]
--> remote IP address 10.64.64.64
--> pppd: �� @p��[01]���[01]
--> primary   DNS address 193.41.112.14
--> pppd: �� @p��[01]���[01]
--> secondary DNS address 193.41.112.18
--> pppd: �� @p��[01]���[01]
--> pppd: �� @p��[01]���[01]
--> Connect time 5.7 minutes.
--> pppd: �� @p��[01]���[01]
--> pppd: �� @p��[01]���[01]
--> pppd: �� @p��[01]���[01]
--> Disconnecting at Wed Aug  1 09:54:46 2012
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Cannot open /dev/ttyUSB0: No such device
--> Cannot open /dev/ttyUSB0: No such device
--> Cannot open /dev/ttyUSB0: No such device
--> Disconnecting at Wed Aug  1 09:54:46 2012

/var/log/messages - połączenie

Kod:

Aug  1 09:49:04 raspberrypi pppd[1983]: pppd 2.4.5 started by root, uid 0
Aug  1 09:49:04 raspberrypi pppd[1983]: Using interface ppp0
Aug  1 09:49:04 raspberrypi pppd[1983]: Connect: ppp0 <--> /dev/ttyUSB0
Aug  1 09:49:04 raspberrypi pppd[1983]: CHAP authentication succeeded
Aug  1 09:49:04 raspberrypi pppd[1983]: CHAP authentication succeeded
Aug  1 09:49:04 raspberrypi pppd[1983]: kernel does not support PPP filtering
Aug  1 09:49:07 raspberrypi pppd[1983]: Could not determine remote IP address: defaulting to 10.64.64.64
Aug  1 09:49:07 raspberrypi pppd[1983]: local  IP address 37.209.141.188
Aug  1 09:49:07 raspberrypi pppd[1983]: remote IP address 10.64.64.64
Aug  1 09:49:07 raspberrypi pppd[1983]: primary   DNS address 193.41.112.14
Aug  1 09:49:07 raspberrypi pppd[1983]: secondary DNS address 193.41.112.18

/var/log/messages - rozłączenie

Kod:

Aug  1 09:54:45 raspberrypi kernel: [ 1381.922200] usb 1-1.2: USB disconnect, device number 13
Aug  1 09:54:45 raspberrypi kernel: [ 1381.926164] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Aug  1 09:54:45 raspberrypi kernel: [ 1381.926293] option 1-1.2:1.0: device disconnected
Aug  1 09:54:45 raspberrypi kernel: [ 1381.926562] cdc_ether 1-1.2:1.1: wwan0: unregister 'cdc_ether' usb-bcm2708_usb-1.2, Mobile Broadband Network Device
Aug  1 09:54:45 raspberrypi pppd[1983]: Modem hangup
Aug  1 09:54:45 raspberrypi pppd[1983]: Connect time 5.7 minutes.
Aug  1 09:54:45 raspberrypi pppd[1983]: Sent 672 bytes, received 588 bytes.
Aug  1 09:54:45 raspberrypi kernel: [ 1381.934026] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Aug  1 09:54:45 raspberrypi kernel: [ 1381.934163] option 1-1.2:1.3: device disconnected
Aug  1 09:54:45 raspberrypi kernel: [ 1381.936162] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Aug  1 09:54:45 raspberrypi kernel: [ 1381.936298] option 1-1.2:1.4: device disconnected
Aug  1 09:54:45 raspberrypi pppd[1983]: Connection terminated.
Aug  1 09:54:45 raspberrypi pppd[1983]: Exit.
Aug  1 09:54:49 raspberrypi kernel: [ 1385.739849] usb 1-1.2: new high speed USB device number 14 using dwc_otg
Aug  1 09:54:49 raspberrypi kernel: [ 1385.842310] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1446
Aug  1 09:54:49 raspberrypi kernel: [ 1385.842344] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Aug  1 09:54:49 raspberrypi kernel: [ 1385.842383] usb 1-1.2: Product: HUAWEI Mobile
Aug  1 09:54:49 raspberrypi kernel: [ 1385.842402] usb 1-1.2: Manufacturer: HUAWEI Technology
Aug  1 09:54:49 raspberrypi kernel: [ 1385.851404] scsi21 : usb-storage 1-1.2:1.0
Aug  1 09:54:49 raspberrypi kernel: [ 1385.854897] scsi22 : usb-storage 1-1.2:1.1
Aug  1 09:54:50 raspberrypi usb_modeswitch: switching device 12d1:1446 on 001/014
Aug  1 09:54:50 raspberrypi kernel: [ 1386.786211] usb 1-1.2: USB disconnect, device number 14
Aug  1 09:54:54 raspberrypi kernel: [ 1390.860103] usb 1-1.2: new high speed USB device number 15 using dwc_otg
Aug  1 09:54:54 raspberrypi kernel: [ 1390.962713] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1436
Aug  1 09:54:54 raspberrypi kernel: [ 1390.962759] usb 1-1.2: New USB device strings: Mfr=4, Product=3, SerialNumber=0
Aug  1 09:54:54 raspberrypi kernel: [ 1390.962781] usb 1-1.2: Product: HUAWEI Mobile
Aug  1 09:54:54 raspberrypi kernel: [ 1390.962798] usb 1-1.2: Manufacturer: HUAWEI Technology
Aug  1 09:54:54 raspberrypi kernel: [ 1390.971945] option 1-1.2:1.0: GSM modem (1-port) converter detected
Aug  1 09:54:54 raspberrypi kernel: [ 1390.972728] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
Aug  1 09:54:54 raspberrypi kernel: [ 1390.978969] cdc_ether 1-1.2:1.1: wwan0: register 'cdc_ether' at usb-bcm2708_usb-1.2, Mobile Broadband Network Device, 02:50:f3:00:00:00
Aug  1 09:54:54 raspberrypi kernel: [ 1390.983042] option 1-1.2:1.3: GSM modem (1-port) converter detected
Aug  1 09:54:54 raspberrypi kernel: [ 1390.984237] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
Aug  1 09:54:54 raspberrypi kernel: [ 1390.986311] option 1-1.2:1.4: GSM modem (1-port) converter detected
Aug  1 09:54:54 raspberrypi kernel: [ 1390.988064] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
Aug  1 09:54:54 raspberrypi kernel: [ 1390.991785] scsi27 : usb-storage 1-1.2:1.5
Aug  1 09:54:54 raspberrypi kernel: [ 1390.995462] scsi28 : usb-storage 1-1.2:1.6
Aug  1 09:54:55 raspberrypi logger: usb_modeswitch: switched to 12d1:1436 on 001/015
Aug  1 09:54:55 raspberrypi kernel: [ 1391.992245] scsi 27:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Aug  1 09:54:55 raspberrypi kernel: [ 1391.996378] sr0: scsi-1 drive
Aug  1 09:54:55 raspberrypi kernel: [ 1392.002957] scsi 28:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Aug  1 09:54:55 raspberrypi kernel: [ 1392.010568] sd 28:0:0:0: [sda] Attached SCSI removable disk

Ostatnio edytowany przez az (2012-08-01 10:02:09)


Debian everywhere

Offline

 

#2  2012-08-01 21:44:32

  andreq - Członek DUG

andreq
Członek DUG
Skąd: Nisko
Zarejestrowany: 2005-01-11

Re: Raspberry Pi + Aero2 (Huawei E173)

Coś masz problemy z usb_modeswitch bo przełącza tryb pracy modemu. Na http://www.draisberghof.de/usb_modeswitch/bb/ poszukaj konfigów do Twojego modemu dla usb_modeswitch.

Weź jeszcze pod uwagę wydajność zasilania, Raspberry Pi w zależności od wersji "potrzebuje" 500 lub 700 mA, modem też weźmie swoje, więc zasilacz musi mieć odpowiednią wydajność prądową pozwalającą na zasilenie obydwu urządzeń.

Offline

 

#3  2012-08-01 22:02:31

  pribina - Użytkownik

pribina
Użytkownik
Zarejestrowany: 2011-06-11

Re: Raspberry Pi + Aero2 (Huawei E173)

Ja bym stawiał na problem z zasilaniem. Podłącz modem poprzez hub z zasilaczem (aktywny). Modemy mobilne mają spory pobór mocy.

Offline

 

#4  2012-08-31 17:09:26

  rafni - Nowy użytkownik

rafni
Nowy użytkownik
Zarejestrowany: 2012-08-31

Re: Raspberry Pi + Aero2 (Huawei E173)

Czy sprawdził kolega z extra zasilaniem (to kluczowa kwestia bo aby wygenerować moc w peaku 2W w.cz. potrzebna jest spora energia - pracowałem kiedyś z systemami GSM i wiem jak potrafią pociągnąć) ?

Czy udało się jakoś rozwiązać problem.

Pozdro
Rafni
*awaiting for my piece of PI*

Offline

 

#5  2012-11-03 16:22:44

  command_dos - Nowy użytkownik

command_dos
Nowy użytkownik
Zarejestrowany: 2012-11-03

Re: Raspberry Pi + Aero2 (Huawei E173)

Panowie, kolega uruchomił na innym modemie, co prawda, ale... udało mu się. Mnie bardziej interesuje także ten model, o którym tu piszecie, bo mam go obecnie w domu, więc jak? Udało się problemik rozwiązać czy nie? Kolega swoje doświadczenia opisał tutaj: http://forum.r-pi.pl/usb/modem-huawei-e3131-aero2-r … -t149733.html - tam można też znaleźć z jakiego zasilacza korzysta, bo też opisał, jak przerabiał wtyczki...

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
To nie jest tylko forum, to nasza mała ojczyzna ;-)