v1dux
(usa Ubuntu)
Enviado em 22/07/2009 - 14:43h
Quando você plugar o modem e a luz acender digite isso no terminal:
$ lsusb
A resposta deve ser algo tipo:
Bus 002 Device 002: ID 19d2:2000 SEU_MODEM
Onde o 19d2 é o VENDOR e o 2000 é o PRODUCT, então na configuração do seu /etc/usb_modeswitch.conf você acrescenta ao final do arquivo:
########################################################
# ZTE MF622 (aka "Onda MDC502HS")
#
# Contributor: andylog
DefaultVendor= 0x19d2
DefaultProduct= 0x2000
TargetVendor= 0x19d2
TargetProduct= 0x0002
MessageEndpoint=0x04
MessageContent="55534243f8f993882000000080000a85010101180101010101000000000000"
########################################################
Então seu arquivo /usr/share/hal/fdi/information/20thirdparty/20-zte-mf622.fdi deverá ter:
##########################
<!-- -* SGML -*- -->
<deviceinfo version="0.2">
<device>
<!-- ZTE MF622 HSDPA USB Modem -->
<match key="@info.parent:usb.vendor_id" int="0x19d2">
<match key="@info.parent:usb.product_id" int="0x0002">
<match key="@info.parent:usb.interface.number" int="3">
<append key="modem.command_sets" type="strlist">GSM-07.07</append>
<append key="info.capabilities" type="strlist">modem</append>
</match>
</match>
</match>
</device>
</deviceinfo>
##########################
É esse comando que vai alternar para modem o seu dispositivo de dados (DADOS >> MODEM)
$ sudo /usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf
E veja se o sistema reconheceu... aparecerá no network-manager como "Nova Conexão" caso não funcione desconecte o modem e altere o /etc/usb_modeswitch.conf para o conteúdo abaixo:
########################################################
# ZTE MF622 (probably different version)
#
# Contributor: Pedro Algarvio
DefaultVendor= 0x19d2
DefaultProduct= 0x2000
TargetVendor= 0x19d2
TargetProduct= 0x0001
DetachStorageOnly=1
########################################################
... e o /usr/share/hal/fdi/information/20thirdparty/20-zte-mf622.fdi para o abaixo:
##########################
<!-- -* SGML -*- -->
<deviceinfo version="0.2">
<device>
<!-- ZTE MF622 HSDPA USB Modem -->
<match key="@info.parent:usb.vendor_id" int="0x19d2">
<match key="@info.parent:usb.product_id" int="0x0001">
<match key="@info.parent:usb.interface.number" int="3">
<append key="modem.command_sets" type="strlist">GSM-07.07</append>
<append key="info.capabilities" type="strlist">modem</append>
</match>
</match>
</match>
</device>
</deviceinfo>
##########################
Conecte o modem novamente e rode mais uma vez:
$ sudo /usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf
E veja se o sistema reconheceu...
Poste o resultado...
Abs.