特殊:Badtitle/NS100:DialupModemHowto/Huawei/E220:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/DialupModemHowto/Huawei/E220}} {{Languages|UbuntuHelp:DialupModemHowto/Huawei/E220}} In Ubuntu 7.10 and higher (E220 is supported natively by Linu... |
小无编辑摘要 |
||
(未显示同一用户的3个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/DialupModemHowto/Huawei/E220}} | {{From|https://help.ubuntu.com/community/DialupModemHowto/Huawei/E220}} | ||
{{Languages|UbuntuHelp:DialupModemHowto/Huawei/E220}} | {{Languages|UbuntuHelp:DialupModemHowto/Huawei/E220}} | ||
In Ubuntu 7.10 and higher (E220 is supported natively by Linux Kernel 2.6.20 or higher). | In Ubuntu 7.10 and higher (E220 is supported natively by Linux Kernel 2.6.20-rc2 or higher). [http://lkml.org/lkml/2006/12/23/85 Kernel 2.6.20-rc2] includes these patchs: | ||
* [http://www.mail-archive.com/[email protected]/msg48419.html usb-storage]: Ignore the virtual cd-drive of the Huawei E220 USB Modem | |||
* usb-gsm-driver: Added VendorId and ProductId for Huawei E220 USB Modem | |||
You can use [[UbuntuHelp:GnomePpp|GnomePpp]] instead (it is the Wvdial graphical frontend). See https://help.ubuntu.com/community/DialupModemHowto/Huawei/E220/GnomePpp | |||
== Manual Installation == | |||
=== Detection === | === Detection === | ||
If Ubuntu doesn’t detect the USB device as a modem (/dev/ttyUSB0), [[UbuntuHelp:wvdial|wvdial]] doesn’t do you any good. | If Ubuntu doesn’t detect the USB device as a modem (/dev/ttyUSB0), [[UbuntuHelp:wvdial|wvdial]] doesn’t do you any good. | ||
第67行: | 第71行: | ||
If you enter wrong PIN codes three times consecutively, your USIM/SIM card is blocked. In this case, use the PIN Unblocking Key (PUK) code to unblock it. If you enter wrong PUK codes ten times consecutively, your USIM/SIM card is disabled. In this case, contact your service provider. | If you enter wrong PIN codes three times consecutively, your USIM/SIM card is blocked. In this case, use the PIN Unblocking Key (PUK) code to unblock it. If you enter wrong PUK codes ten times consecutively, your USIM/SIM card is disabled. In this case, contact your service provider. | ||
To avoid this, remove the PIN code verification from the SIM card. Place it on a cellphone and disable it. | To avoid this, remove the PIN code verification from the SIM card. Place it on a cellphone and disable it. | ||
You can also use in your initialization script: | |||
<pre><nowiki> | |||
AT+CPIN="0000" | |||
</nowiki></pre> | |||
On some modems, this can only be sent once per power-on, so you might need to send it using minicom rather than in wvdial's init script | |||
=== /etc/wvdial.conf === | === /etc/wvdial.conf === | ||
You cannot modify and save wvdial.conf if you are using the Ubuntu Live CD, but it can be modified by the | You cannot modify and save wvdial.conf if you are using the Ubuntu Live CD, but it can be modified by the | ||
第151行: | 第160行: | ||
Upon connection, it will spit out some information about your connection (local IP, remote IP, DNS address, etc.). | Upon connection, it will spit out some information about your connection (local IP, remote IP, DNS address, etc.). | ||
Do not close the terminal where wvdial is running. Leave it alone until you want the connection to be terminated, and hit CTRL+C on that terminal once you want to '''end the connection'''. | Do not close the terminal where wvdial is running. Leave it alone until you want the connection to be terminated, and hit CTRL+C on that terminal once you want to '''end the connection'''. | ||
More in [[UbuntuHelp:wvdial|wvdial]]. | More in [[UbuntuHelp:wvdial|wvdial]]. | ||
=== See also === | === See also === | ||
* [[UbuntuHelp:NetworkManager/UsbModem|NetworkManager/UsbModem]] | |||
* http://en.wikipedia.org/wiki/Huawei_E220 | * http://en.wikipedia.org/wiki/Huawei_E220 | ||
* http://www.ubuntuhcl.org/browse/product?id=627 | |||
* http://www.qbik.ch/usb/devices/showdev.php?id=4044 | |||
* http://ske.sourceforge.net/html/projects/huawei/huawei_tre.html | |||
----- | ----- | ||
[[category:CategoryUsb]] [[category:CategoryNetworking]] | [[category:CategoryUsb]] [[category:CategoryNetworking]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年12月16日 (二) 18:15的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/DialupModemHowto/Huawei/E220 }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/af | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|Afrikaans| [[::DialupModemHowto/Huawei/E220/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/ar | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|العربية| [[::DialupModemHowto/Huawei/E220/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/az | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|azərbaycanca| [[::DialupModemHowto/Huawei/E220/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/bcc | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|جهلسری بلوچی| [[::DialupModemHowto/Huawei/E220/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/bg | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|български| [[::DialupModemHowto/Huawei/E220/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/br | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|brezhoneg| [[::DialupModemHowto/Huawei/E220/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/ca | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|català| [[::DialupModemHowto/Huawei/E220/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/cs | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|čeština| [[::DialupModemHowto/Huawei/E220/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/de | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|Deutsch| [[::DialupModemHowto/Huawei/E220/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/el | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|Ελληνικά| [[::DialupModemHowto/Huawei/E220/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/es | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|español| [[::DialupModemHowto/Huawei/E220/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/fa | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|فارسی| [[::DialupModemHowto/Huawei/E220/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/fi | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|suomi| [[::DialupModemHowto/Huawei/E220/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/fr | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|français| [[::DialupModemHowto/Huawei/E220/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/gu | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|ગુજરાતી| [[::DialupModemHowto/Huawei/E220/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/he | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|עברית| [[::DialupModemHowto/Huawei/E220/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/hu | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|magyar| [[::DialupModemHowto/Huawei/E220/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/id | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|Bahasa Indonesia| [[::DialupModemHowto/Huawei/E220/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/it | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|italiano| [[::DialupModemHowto/Huawei/E220/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/ja | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|日本語| [[::DialupModemHowto/Huawei/E220/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/ko | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|한국어| [[::DialupModemHowto/Huawei/E220/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/ksh | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|Ripoarisch| [[::DialupModemHowto/Huawei/E220/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/mr | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|मराठी| [[::DialupModemHowto/Huawei/E220/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/ms | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|Bahasa Melayu| [[::DialupModemHowto/Huawei/E220/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/nl | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|Nederlands| [[::DialupModemHowto/Huawei/E220/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/no | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|norsk| [[::DialupModemHowto/Huawei/E220/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/oc | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|occitan| [[::DialupModemHowto/Huawei/E220/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/pl | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|polski| [[::DialupModemHowto/Huawei/E220/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/pt | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|português| [[::DialupModemHowto/Huawei/E220/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/ro | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|română| [[::DialupModemHowto/Huawei/E220/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/ru | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|русский| [[::DialupModemHowto/Huawei/E220/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/si | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|සිංහල| [[::DialupModemHowto/Huawei/E220/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/sq | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|shqip| [[::DialupModemHowto/Huawei/E220/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/sr | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|српски / srpski| [[::DialupModemHowto/Huawei/E220/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/sv | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|svenska| [[::DialupModemHowto/Huawei/E220/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/th | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|ไทย| [[::DialupModemHowto/Huawei/E220/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/tr | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|Türkçe| [[::DialupModemHowto/Huawei/E220/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/vi | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|Tiếng Việt| [[::DialupModemHowto/Huawei/E220/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/yue | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|粵語| [[::DialupModemHowto/Huawei/E220/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/zh | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|中文| [[::DialupModemHowto/Huawei/E220/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/zh-hans | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|中文(简体)| [[::DialupModemHowto/Huawei/E220/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220 | UbuntuHelp:DialupModemHowto/Huawei/E220 | {{#if: | :}}DialupModemHowto/Huawei/E220}}/zh-hant | • {{#if: UbuntuHelp:DialupModemHowto/Huawei/E220|中文(繁體)| [[::DialupModemHowto/Huawei/E220/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:DialupModemHowto/Huawei/E220|:DialupModemHowto/Huawei/E220|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :DialupModemHowto/Huawei/E220/zh | | {{#ifexist: DialupModemHowto/Huawei/E220/zh | | {{#ifeq: {{#titleparts:DialupModemHowto/Huawei/E220|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:DialupModemHowto/Huawei/E220|1|-1|}} | zh | | }}
In Ubuntu 7.10 and higher (E220 is supported natively by Linux Kernel 2.6.20-rc2 or higher). Kernel 2.6.20-rc2 includes these patchs:
- usb-storage: Ignore the virtual cd-drive of the Huawei E220 USB Modem
- usb-gsm-driver: Added VendorId and ProductId for Huawei E220 USB Modem
You can use GnomePpp instead (it is the Wvdial graphical frontend). See https://help.ubuntu.com/community/DialupModemHowto/Huawei/E220/GnomePpp
Manual Installation
Detection
If Ubuntu doesn’t detect the USB device as a modem (/dev/ttyUSB0), wvdial doesn’t do you any good. scanModem fails to detect USB modems (it employs lsusb). Use instead:
sudo wvdialconf /etc/wvdial.conf
This are the screen results:
Editing `/etc/wvdial.conf'. Scanning your serial ports for a modem. ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up. ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up. Modem Port Scan<*1>: S2 S3 WvModem<*1>: Cannot get information for serial port. ttyUSB0<*1>: ATQ0 V1 E1 -- OK ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- +CME ERROR: SIM PIN required ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei ttyUSB0<*1>: Speed 4800: AT -- OK ttyUSB0<*1>: Speed 9600: AT -- OK ttyUSB0<*1>: Speed 19200: AT -- OK ttyUSB0<*1>: Speed 38400: AT -- OK ttyUSB0<*1>: Speed 57600: AT -- OK ttyUSB0<*1>: Speed 115200: AT -- OK ttyUSB0<*1>: Speed 230400: AT -- OK ttyUSB0<*1>: Speed 460800: AT -- OK ttyUSB0<*1>: Max speed is 460800; that should be safe. ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK WvModem<*1>: Cannot get information for serial port. ttyUSB1<*1>: ATQ0 V1 E1 -- OK ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- +CME ERROR: SIM PIN required ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: huawei ttyUSB1<*1>: Speed 4800: AT -- OK ttyUSB1<*1>: Speed 9600: AT -- OK ttyUSB1<*1>: Speed 19200: AT -- OK ttyUSB1<*1>: Speed 38400: AT -- OK ttyUSB1<*1>: Speed 57600: AT -- OK ttyUSB1<*1>: Speed 115200: AT -- OK ttyUSB1<*1>: Speed 230400: AT -- OK ttyUSB1<*1>: Speed 460800: AT -- OK ttyUSB1<*1>: Max speed is 460800; that should be safe. ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK Found a modem on /dev/ttyUSB0. Modem configuration written to /etc/wvdial.conf. ttyUSB0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2" ttyUSB1<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2"
PIN
Huawei E220 uses a standard 6 PIN SIM card interface. If you enter wrong PIN codes three times consecutively, your USIM/SIM card is blocked. In this case, use the PIN Unblocking Key (PUK) code to unblock it. If you enter wrong PUK codes ten times consecutively, your USIM/SIM card is disabled. In this case, contact your service provider. To avoid this, remove the PIN code verification from the SIM card. Place it on a cellphone and disable it. You can also use in your initialization script:
AT+CPIN="0000"
On some modems, this can only be sent once per power-on, so you might need to send it using minicom rather than in wvdial's init script
/etc/wvdial.conf
You cannot modify and save wvdial.conf if you are using the Ubuntu Live CD, but it can be modified by the You can see the content of the wvdial.conf file using:
sudo gedit /etc/wvdial.conf
or clicking in the file icon and selecting "display" (i.e. in Nautilus file manager). For avanced users: you can see more details about the wvdial.conf file for Huawei E220 here
Example 1
This example was obtained using Ubuntu Live CD and "wvdialconf /etc/wvdial.conf".
[Dialer Defaults] Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 Modem Type = Analog Modem Baud = 460800 New PPPD = yes Modem = /dev/ttyUSB0 ISDN = 0 ; Phone = <Target Phone Number> ; Password = <Your Password> ; Username = <Your Login Name>
Delete the ";" and fill the phone, password and usename as necessary. GPRS / HDSPA numbers will always include * or # (star or hash) signs, such as "*99***1#".
Example 2
Examples 2 and 3 was obtained from the Internet.
[Dialer hsdpa] Phone = *99***1# Username = vodafone Password = vodafone Stupid Mode = 1 Dial Command = ATDT Modem = /dev/ttyUSB0 Baud = 460800 Init2 = ATZ Init3 = ATE0V1&D2&C1S0=0+IFC=2,2 ISDN = 0 Modem Type = Analog Modem Init5 = AT+CGDCONT=1,"IP","ac.vodafone.es";
Example 3
# wvdial for Vodacom Data. Created by Tazz_tux # Version 1.0 # Change Log: # # Added support for HSDPA. # Added Headers and version control. [Dialer Defaults] Phone = *99***1# Username = username Password = password Stupid Mode = 1 Dial Command = ATDT [Dialer hsdpa] Modem = /dev/ttyUSB0 Baud = 460800 Init2 = ATZ Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 ISDN = 0 Modem Type = Analog Modem
Dialing to connect
In a terminal, enter
wvdial hsdpa
in example 1 and
wvdial hsdpa
in examples 2 and 3. You should be happily connected. Upon connection, it will spit out some information about your connection (local IP, remote IP, DNS address, etc.). Do not close the terminal where wvdial is running. Leave it alone until you want the connection to be terminated, and hit CTRL+C on that terminal once you want to end the connection. More in wvdial.
See also
- NetworkManager/UsbModem
- http://en.wikipedia.org/wiki/Huawei_E220
- http://www.ubuntuhcl.org/browse/product?id=627
- http://www.qbik.ch/usb/devices/showdev.php?id=4044
- http://ske.sourceforge.net/html/projects/huawei/huawei_tre.html