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!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
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
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
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
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
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
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)
Offline
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
Ja bym stawiał na problem z zasilaniem. Podłącz modem poprzez hub z zasilaczem (aktywny). Modemy mobilne mają spory pobór mocy.
Offline
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
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-raspbian-debian-armel-t149733.html - tam można też znaleźć z jakiego zasilacza korzysta, bo też opisał, jak przerabiał wtyczki...
Offline
Time (s) | Query |
---|---|
0.00010 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00058 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.138.121.79' WHERE u.id=1 |
0.00090 | UPDATE punbb_online SET logged=1732531608 WHERE ident='3.138.121.79' |
0.00025 | SELECT * FROM punbb_online WHERE logged<1732531308 |
0.00067 | DELETE FROM punbb_online WHERE ident='18.191.237.228' |
0.00075 | SELECT topic_id FROM punbb_posts WHERE id=210069 |
0.00007 | SELECT id FROM punbb_posts WHERE topic_id=21724 ORDER BY posted |
0.00031 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=21724 AND t.moved_to IS NULL |
0.00026 | SELECT search_for, replace_with FROM punbb_censoring |
0.00175 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=21724 ORDER BY p.id LIMIT 0,25 |
0.00073 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=21724 |
Total query time: 0.00641 s |