How to set up Fonic Huawei E1552 GSM 3G modem on NanosG20 First plug in: usb 1-2: new full speed USB device using at91_ohci and address 5 scsi4 : usb-storage 1-2:1.0 scsi5 : usb-storage 1-2:1.1 scsi 4:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 scsi 5:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2 sd 5:0:0:0: [sda] Attached SCSI removable disk lsdev Bus 001 Device 003: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552 (HSPA modem) new device found /dev/sda. Can not mount it (probably no micro Sd card inside) apt-get install usb-modeswitch # see comments * apt-get install network-manager apt-get install ipppd # apt-get install isdnlog * no usb-modeswitch package for lenny need to compile or upgrade linux to squeeze * http://armbedded.org/node/419 Modeswitch compiling http://www.draisberghof.de/usb_modeswitch/ Network-manager tells that it is not flash stick but modem http://www.rktmb.org/post/2010/12/24/huawei-e1552-orange-ubuntu-debian isdnlog probably is not necessary to install. -------------------------------------------------------------------------------------- After installing modeswitch repluging modem shows: usb 1-2: USB disconnect, address 5 usb 1-2: new full speed USB device using at91_ohci and address 6 scsi6 : usb-storage 1-2:1.0 scsi7 : usb-storage 1-2:1.1 usb 1-2: USB disconnect, address 6 usb 1-2: new full speed USB device using at91_ohci and address 7 scsi13 : usb-storage 1-2:1.5 scsi14 : usb-storage 1-2:1.6 usbcore: registered new interface driver usbserial USB Serial support registered for generic usbcore: registered new interface driver usbserial_generic usbserial: USB Serial Driver core USB Serial support registered for GSM modem (1-port) option 1-2:1.0: GSM modem (1-port) converter detected usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0 option 1-2:1.3: GSM modem (1-port) converter detected usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1 option 1-2:1.4: GSM modem (1-port) converter detected usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2 usbcore: registered new interface driver option option: v0.7.2:USB Driver for GSM modems scsi 13:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 scsi 14:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2 sd 14:0:0:0: [sda] Attached SCSI removable disk Next will try to connect to fonic network in Germany using prepaid SIM card XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Experience with wwdial Google tells that can use wvdial to connect. Not available is squeeze. nano etc/apt/sources.list #change to lenny. In lenny it is available. Turns out thet wvdial data transfer does not work on armel, can only call phone number and phone will ring. For data transfer you can skip this section and continue on pppd. apt-get install wvdial Setting up wvdial (1.60.1+nmu2) ... ATQ0 V1 E1 Success! You can run "wvdial" to connect to the internet. http://www.linux-archive.org/debian-user/471690-connect-using-several-usb-modem-phones.html http://www.informatikserver.at/selflinux/html/ppp_verbindung02.html http://wiki.debian.org/Modem/3G/Vodafone /dev/ttyUSB0 should be used for your ppp data connections. /dev/ttyUSB2 is the device to use for GSM related tasks such as SMS and network checks. Note: /dev/ttyUSB1 is not used at all. http://www.vanheusden.com/misc/linux_umts-gprs-hsdpa_huawei-e220.php http://www.smssolutions.net/tutorials/gsm/gsmerrorcodes/ Sometimes works ans sometimes not: echo -e "AT" > /dev/ttyUSB0 cat /dev/ttyUSB0 AT+ATS GCAP COMMAND NOT SUPPORT AT+GCAP +CME ERROR: SIM failure http://en.gentoo-wiki.com/wiki/Huawei_E220 For Fonic in Germany, the following /etc/wvdial.conf may work for you: nano /etc/wvdial.conf [Dialer Defaults] Dial Attempts = 1 Init1 = ATZ Init3 = ATE0V1&D2&C1S0=0+IFC=2,2 Modem Type = Analog Modem Baud = 460800 New PPPD = yes Modem = /dev/ttyUSB0 ISDN = 0 Carrier Check = no [Dialer fonic-pin] Init2 = AT+CPIN= [Dialer fonic] Init4 = AT+CGDCONT=1, "IP","pinternet.interkomm.de","",0,0 Username=fonic Auto DNS = 1 Password=fonic Dial Command = ATDT Phone = *99# Stupid Mode = 1 for gprs use Phone = ATD*99***2# nano /etc/wvdial.conf --------------------------------------------------------------------- [Dialer Defaults] Dial Attempts = 1 Init1 = ATZ;E1 Init2 = ATE0V1&D2&C1S0=0+IFC=2,2 Modem Type = Analog Modem Baud = 460800 New PPPD = yes Modem = /dev/ttyUSB0 ISDN = 0 Carrier Check = yes [Dialer c] Init3 = ATD00498932929229; [Dialer h] Init3 = ATH Init4 = ATZ [Dialer f] Init4 = AT+CGDCONT=1, "IP","pinternet.interkomm.de","",0,0 Username=fonic Auto DNS = 1 Password=fonic Dial Command = ATDT Phone = *99***1# Stupid Mode = 1 ---------------------------------------------------------------------- I can call number that rings at my home ATH no effect. Continues calling. Calling fonic gives error. Solution here https://rebellenblog.wordpress.com/2010/09/17/vodafone-k3765-stick-unter-linux/ Nach kurzer Recherche habe ich herausgefunden, dass das Problem öfters auftritt, es anscheinend ein Problem seitens wvdial mit der ARM Architektur ist, die Lösung ist simpel – man nutzt einfach pppd anstatt wvdial. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Experience with pppd http://www.newit.co.uk/forum/index.php?topic=268.0 nano /etc/ppp/peers/huawei-e172 --------------------------- # /etc/ppp/peers/huawei-e172 pppd script # pppd call huawei-e172 noauth /dev/ttyUSB0 #3600000 noipdefault defaultroute persist noauth nodetach usepeerdns 0.0.0.0:0.0.0.0 connect "/usr/sbin/chat -vf /etc/ppp/peers/huawei-e172.chat" #connect "/etc/ppp/peers/huawei-e172.chat" ------------------------------- nano /etc/ppp/peers/huawei-e172.chat ----------------------------------- TIMEOUT 3 SAY '1...\n' ABORT BUSY SAY '2...\n' ABORT 'NO CARRIER' SAY '3...\n' ABORT VOICE SAY '4...\n' ABORT 'NO DIALTONE' SAY '5...\n' ABORT 'NO DIAL TONE' SAY '6...\n' ABORT 'NO ANSWER' SAY '7...\n' ABORT DELAYED SAY '8...\n' "" ATZ SAY '9...\n' #OK-\\k\\k\\\k\\d+++ATH-OK ATE1 OK ATQ0V1E0S0=0&C1&D2 #SAY '10...\n' #Fonic/o2 mit Freimonat OK AT+CGDCONT=1,\"IP\",\"pinternet.interkom.de\"\ #O2 #OK AT+CGDCONT=1,\"IP\",\"internet\"\ #Vodafone Websessions #OK AT+CGDCONT=1,\"IP\",\"event.vodafone.de\"\ SAY '10...\n' OK ATDT*99#\ SAY '11...\n' CONNECT "" SAY 'connect OK\n' -------------------------------------- pppd call huawei-e172 WORKS! # Disable eth0 that messes up dhcp. ifconfig eth0 down # To put pppd in background pppd call huawei-e172 & 11... connect OK Serial connection established. Using interface ppp0 Connect: ppp0 <--> /dev/ttyUSB0 PAP authentication succeeded Could not determine remote IP address: defaulting to 10.64.64.64 local IP address 10.148.37.82 remote IP address 10.64.64.64 primary DNS address 193.189.244.225 secondary DNS address 193.189.244.206 ifconfig ppp0 ppp0 Link encap:Point-to-Point Protocol inet addr:10.164.8.234 P-t-P:10.64.64.64 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:7 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:130 (130.0 B) TX bytes:181 (181.0 B) ping google.com 64 bytes from fx-in-f105.1e100.net (74.125.39.105): icmp_req=1 ttl=49 time=348 ms power consumption is mportant for mobile applications Huawei USB modem = +1W nanos+logitechC510+Huawei = 2.6 W NanosG20 sleep mode does not switch off Huawei: http://armbedded.org/node/420