{"id":273,"date":"2009-07-29T01:20:28","date_gmt":"2009-07-28T23:20:28","guid":{"rendered":"http:\/\/gcolpart.evolix.net\/blog21\/?p=273"},"modified":"2009-07-29T01:20:28","modified_gmt":"2009-07-28T23:20:28","slug":"sfr-huawei-3g-usb-key-with-debian","status":"publish","type":"post","link":"https:\/\/gcolpart.evolix.net\/blog21\/sfr-huawei-3g-usb-key-with-debian\/","title":{"rendered":"SFR Huawei 3G+ USB key with Debian"},"content":{"rendered":"<p>After <a href=\"http:\/\/gcolpart.evolix.net\/blog21\/orange-gprs-with-debian\/\">Orange GPRS with Nokia 6630<\/a> and <a href=\"http:\/\/gcolpart.evolix.net\/blog21\/sfr-gprs-with-debian\/\">SFR GPRS with Nokia E65<\/a>, I use now mainly Huawei 3G+ USB key with SFR (french mobile phone provider).<\/p>\n<p>lsusb info about this Huawei 3G+ USB key:<\/p>\n<pre>Bus 003 Device 003: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem \/ E270 HSDPA\/HSUPA Modem<\/pre>\n<p>And dmesg info:<\/p>\n<pre>[208765.818448] option 3-1:1.0: GSM modem (1-port) converter detected\r\n[208765.818448] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB3\r\n[208765.830451] usb-storage: probe of 3-1:1.1 failed with error -5\r\n[208765.830451] option 3-1:1.1: GSM modem (1-port) converter detected\r\n[208765.830451] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB4\r\n[208765.830502] scsi12 : SCSI emulation for USB Mass Storage devices\r\n[208765.834458] usb 3-1: New USB device found, idVendor=12d1, idProduct=1003\r\n[208765.834458] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0\r\n[208765.834458] usb 3-1: Product: HUAWEI Mobile\r\n[208765.834458] usb 3-1: Manufacturer: HUAWEI Technologies\r\n[208765.834458] usb-storage: device found at 3\r\n[208765.834458] usb-storage: waiting for device to settle before scanning\r\n[208770.863868] usb-storage: device scan complete\r\n[208770.866850] scsi 12:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2\r\n[208770.887881] sr0: scsi-1 drive\r\n[208770.887881] sr 12:0:0:0: Attached scsi CD-ROM sr0\r\n[208770.887881] sr 12:0:0:0: Attached scsi generic sg1 type 5<\/pre>\n<p>For connecting, I tried an infamous GUI distributed by Vodafone in Debian package. Too buggy, too complex. The best solution is using a PPP chatscript.<\/p>\n<p>Then, plug USB key, sleep 20 and unlock it:<\/p>\n<pre>echo 'at+cpin=\"1234\"' &gt; \/dev\/ttyUSB3<\/pre>\n<p>Note: 1234 is PIN code (or not) and \/dev\/ttyUSB3 is modem device.<\/p>\n<p>Create these 2 files:<\/p>\n<p><em>\/etc\/ppp\/peers\/gprs<\/em>:<\/p>\n<pre>noauth\r\ndebug\r\nnodetach\r\nconnect \"\/usr\/sbin\/chat -v -f \/etc\/ppp\/peers\/huawei-e220.chat\"\r\n\/dev\/ttyUSB3\r\n230400\r\ncrtscts\r\ndefaultroute\r\nnoipdefault\r\nuser ignored\r\nremotename whatever\r\nipparam whatever\r\nusepeerdns<\/pre>\n<p><em>\/etc\/ppp\/peers\/huawei-e220.chat<\/em>:<\/p>\n<pre># Chat file for Huawei E220 HSDPA USB modem\r\nABORT BUSY ABORT 'NO CARRIER' ABORT 'NO ANSWER' ABORT DELAYED\r\n'' AT\r\nOK ATZ\r\nOK 'ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0'\r\nOK 'AT+CGDCONT=1,\"IP\",\"websfr\"'\r\nOK ATDT*99***1#\r\nCONNECT \"\"<\/pre>\n<p>Finally you can:<\/p>\n<pre>pppd call gprs<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After Orange GPRS with Nokia 6630 and SFR GPRS with Nokia E65, I use now mainly Huawei 3G+ USB key with SFR (french mobile phone provider). lsusb info about this Huawei 3G+ USB key: Bus 003 Device 003: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem \/ E270 HSDPA\/HSUPA Modem And dmesg info: [208765.818448] [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,3,1,7],"tags":[34,148,105,32],"class_list":["post-273","post","type-post","status-publish","format-standard","hentry","category-debian","category-english","category-hardware","category-network","tag-3g","tag-debian","tag-huawei","tag-sfr"],"_links":{"self":[{"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/comments?post=273"}],"version-history":[{"count":4,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/posts\/273\/revisions"}],"predecessor-version":[{"id":277,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/posts\/273\/revisions\/277"}],"wp:attachment":[{"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/media?parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/tags?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}