O dongle USB Huawei e173s 3G não muda para o modo modem

2

Saída de

lsusb | grep Huawei

é

Bus 003 Device 003: ID 12d1:1c0b Huawei Technologies Co., Ltd. E173s 3G broadband stick (modem off)

Eu verifiquei se o usb_modeswitch está configurado corretamente de acordo com o link . É.

Ativou o registro usb_modeswitch . A saída do log está abaixo. Parece que o dispositivo é identificado por usb_modeswitch e a mensagem do comutador é enviada, mas sem resposta. Neste ponto, estou pensando que ou há um problema com o firmware do dongle (mas funciona bem no Windows), ou o udev não pode se comunicar com ele por qualquer motivo.

USB_ModeSwitch log from Mon Nov 25 14:38:11 2013

Using global config file: /etc/usb_modeswitch.conf

Raw args from udev: /3-2:1.0

Bus ID for device not given by udev.
 Trying to determine it from kernel name (3-2:1.0) ...
Using top device dir /sys/bus/usb/devices/3-2

USB dir exists: /sys/bus/usb/devices/3-2
Warning: USB attribute "serial" not readable.

SCSI dir exists: /sys/bus/usb/devices/3-2
Warning: SCSI attribute "vendor" not readable.
Warning: SCSI attribute "model" not readable.
Warning: SCSI attribute "rev" not readable.
----------------
USB values from sysfs:
  idVendor  12d1
  idProduct 1c0b
  manufacturer  HUAWEI
  product   HUAWEI Mobile
  serial    (null)
  bNumConfigurations    1
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
Searching entries named: /usr/share/usb_modeswitch/12d1:1c0b*
Searching overriding entries named: /etc/usb_modeswitch.d/12d1:1c0b*
SCSI attributes not needed, moving on.

Extracting config 12d1:1c0b from collection /usr/share/usb_modeswitch/configPack.tar.gz
config: TargetVendor set to 12d1
config: TargetProduct set to 1c05,1c07,1c08,1c10
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
! matched, now switching
Command to be run:
/usr/sbin/usb_modeswitch -I -W -D -s 20 -c /run/usb_modeswitch/current_cfg -u -1   -v 12d1 -p 1c0b 2>&1

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are expected in the process)
--------------------------------

Reading config file: /run/usb_modeswitch/current_cfg

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 1.2.3 (C) Josua Dietze 2012
 * Based on libusb0 (0.1.12 and above)

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x1c0b
TargetVendor=   0x12d1
TargetProduct=  not set
TargetClass=    not set
TargetProductList="1c05,1c07,1c08,1c10"

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint=  not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
ResponseEndpoint= not set

InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled


Looking for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 No devices in target mode or class found
Looking for default devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
   found matching product ID
   adding device
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Found device in default mode, class or configuration (1)
Accessing device 003 on bus 003 ...
Skipping the check for the current configuration
Using first interface: 0x00
Using endpoints 0x0f (out) and 0x8f (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached
Setting up communication with interface 0
Using endpoint 0x0f for message sending ...
Trying to send message 1 to endpoint 0x0f ...
 OK, message successfully sent
Resetting response endpoint 0x8f
Resetting message endpoint 0x0f

Checking for mode switch (max. 20 times, once per second) ...
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 Searching for target devices ...
  searching devices, found USB ID 1d6b:0003
  searching devices, found USB ID 12d1:1c0b
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 148f:2000
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 064e:e258
  searching devices, found USB ID 138a:0018
  searching devices, found USB ID 8087:0024
  searching devices, found USB ID 1d6b:0002
 No new devices in target mode or class found

Mode switch has failed. Bye.

fail:
--------------------------------
(end of usb_modeswitch output)

USB dir exists: /sys/bus/usb/devices/3-2
Warning: USB attribute "serial" not readable.

All done, exiting

ATUALIZAÇÃO . Defina vários atrasos. Cotação do link :

  

Outra forma de influenciar o comportamento do kernel é o parâmetro   "delay_use" de "usb-storage", que define o tempo em segundos após   ligar quando o dispositivo de armazenamento for realmente usado (e provavelmente   automontado). O valor padrão é 5; isso pode afetar a troca   resultar sob certas condições. Para alterar o padrão adicionar   /etc/modprobe.conf:

     

opções usb-storage delay_use = 1 (ou 10, ou outro)

Com atraso de 1 a 3, funciona às vezes. Às vezes não faz.

ATUALIZAÇÃO 2 . Depois de dias de testes, tenho a impressão de que não é uma configuração de atraso específica que faz com que usb_modeswitch funcione, mas muda essa configuração. Também tenho uma sensação ( muito hesitante ) de que o login / a saída e a alteração das configurações de login automático interferem de alguma forma nos modos de alternância.

    
por Pavel 25.11.2013 / 13:17

2 respostas

0

Você pode por favor tentar isto:

Faça o download do pacote modemmanager0.5.1.97-0ubuntu1 em aqui ou de aqui .

Abra o Synaptic Package Manager type em sua senha quando necessário, procure o pacote chamado modemmanager quando você o encontrar, clique com o botão direito nele e clique em Mark for complete removal e feche o Synaptic Package Manager .

Procure o arquivo que você baixou antes e execute-o (ele poderá estar aberto no Ubuntu Software Center ), instale-o e feche o Ubuntu Software Center .

Agora abra mais uma vez o Synaptic Package Manager e procure o pacote chamado modemmanager novamente, quando você encontrar, clique nele e vá para a opção de menu superior Package , clique em Lock Version até ver um marca de verificação ao lado dessa opção e um armário ao lado do nome do pacote.

Reinicie seu sistema e deixe-nos agora se isso funcionou.

    
por Hans 01.12.2013 / 22:05
0

instale os drivers dongle manualmente. Se o dongle estiver montado como um dispositivo storgae, você poderá verificar se o dongle contém os próprios drivers. caso contrário, faça o download e instale apenas executando o script.

Em seguida, no tipo de terminal

cd /etc
vim modules

isto irá abrir o arquivo de módulos com o editor vim. adicione estas linhas no final do arquivo.

usbserial vendor=0x12d1 product=0x1c0b

em que 12d1 e 1c0b são o ID do fornecedor e os IDs do produto obtidos com o comando lsusb. logout e log in.connect usb dongle.

consulte este link

    
por Thilanka Deshan-minion91 11.11.2017 / 18:25