• usb_modeswitch 2.4.0 and USB Modem - no connection


    I have a Vodafone K3765 USB modem. Unfortunatelly after the last update of usb_modeswitch to version 2.4.0 my modem is not recognized by the system. Is it a glitch in the package, or the support for this hardware has simply ended?

  • @greh242 said in usb_modeswitch 2.4.0 and USB Modem - no connection:

    …Is it a glitch in the package, or the support for this hardware has simply ended?

    It can not be excluded, but it may worth a try to check the status of two services which provide mobile broadband functionality:

    • NetworkManager
    • ModemManager

    The check is described here. If both services are OK, then the problem lies somewhere else.

  • [[email protected] ~]$ systemctl status NetworkManager
    ● NetworkManager.service - Network Manager
       Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
       Active: active (running) since pią 2016-07-15 19:43:11 CEST; 2h 51min ago
     Main PID: 381 (NetworkManager)
        Tasks: 3 (limit: 512)
       CGroup: /system.slice/NetworkManager.service
               └─381 /usr/bin/NetworkManager --no-daemon
    
    lip 15 20:51:30 greh-lenovo NetworkManager[381]: <info>  [1468608690.4578]   nameserver '37.8.214.2'
    lip 15 20:51:30 greh-lenovo NetworkManager[381]: <info>  [1468608690.4578]   gateway 192.168.0.1
    lip 15 20:51:30 greh-lenovo NetworkManager[381]: <info>  [1468608690.4580] dhcp4 (wlp8s0): state changed bound -> bound
    lip 15 21:43:59 greh-lenovo NetworkManager[381]: <info>  [1468611839.2341]   address 192.168.0.13
    lip 15 21:43:59 greh-lenovo NetworkManager[381]: <info>  [1468611839.2341]   plen 24
    lip 15 21:43:59 greh-lenovo NetworkManager[381]: <info>  [1468611839.2342]   expires in 3600 seconds
    lip 15 21:43:59 greh-lenovo NetworkManager[381]: <info>  [1468611839.2342]   nameserver '31.11.202.254'
    lip 15 21:43:59 greh-lenovo NetworkManager[381]: <info>  [1468611839.2342]   nameserver '37.8.214.2'
    lip 15 21:43:59 greh-lenovo NetworkManager[381]: <info>  [1468611839.2342]   gateway 192.168.0.1
    lip 15 21:43:59 greh-lenovo NetworkManager[381]: <info>  [1468611839.2698] dhcp4 (wlp8s0): state changed bound -> bound
    
    [[email protected] ~]$ systemctl status ModemManager
    ● ModemManager.service - Modem Manager
       Loaded: loaded (/usr/lib/systemd/system/ModemManager.service; enabled; vendor preset: disabled)
       Active: active (running) since pią 2016-07-15 19:43:15 CEST; 2h 53min ago
     Main PID: 376 (ModemManager)
        Tasks: 3 (limit: 512)
       CGroup: /system.slice/ModemManager.service
               └─376 /usr/bin/ModemManager
    
    lip 15 19:56:19 greh-lenovo ModemManager[376]: <info>  Simple connect state (8/8): All done
    lip 15 19:58:53 greh-lenovo ModemManager[376]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (connected -> disabling)
    lip 15 19:58:55 greh-lenovo ModemManager[376]: <warn>  (ttyUSB0): port attributes not fully set
    lip 15 19:58:56 greh-lenovo ModemManager[376]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed (roaming -> unkno
    lip 15 19:58:56 greh-lenovo ModemManager[376]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (disabling -> disabled)
    lip 15 19:58:56 greh-lenovo ModemManager[376]: <warn>  (ttyUSB2): port attributes not fully set
    lip 15 19:58:57 greh-lenovo ModemManager[376]: <info>  (tty/ttyUSB0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    lip 15 19:58:57 greh-lenovo ModemManager[376]: <info>  (net/wwp0s20u2i1): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    lip 15 19:58:57 greh-lenovo ModemManager[376]: <info>  (tty/ttyUSB1): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    lip 15 19:58:57 greh-lenovo ModemManager[376]: <info>  (tty/ttyUSB2): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
    

    What’s funny, when I downgrade the usb_modeswitch to version 2.3.0 it work normally

  • @greh242 said in usb_modeswitch 2.4.0 and USB Modem - no connection:


    What’s funny, when I downgrade the usb_modeswitch to version 2.3.0 it work normally

    Very well. Then I’d place usb_modeswitch on hold with IgnorePkg= line in /etc/pacman.conf and keep it at the working (downgraded) version for as long as possible.

    If you still want to figure out whether or not your modem is at EOL, you could proceed in this way. It will require the installation of the newest, not working version of the package.

    1. Keep the working package version installed.

    2. Run the command lsusb | grep moedm:

      $ lsusb | grep modem
      Bus 004 Device 012: ID 12d1:1446 Huawei Technologies Co., Ltd. Broadband stick (modem on)
      
    3. The command should identify your modem.

    4. Note two hexadecimal numbers in the output: 12d1:1446 .

    5. These are so called Vendor and Product IDs.

    6. Open the file /etc/usb_modeswitch.setup . It contains control strings (commands) for all currently supported mobile broadband modems.

    7. Add the 0x prefix ahead of Vendor and Product IDs, to denote that these are hex numbers.

    8. Start searching for VendorID. In my example, it’s 0x12d1 .

    9. The line found is:

      DefaultVendor=  0x12d1
      
    10. Now, from the found point, search for - or better, simply scroll down by hand - until the ProductID is found. In the example it’s the line:

      DefaultProduct= 0x1446
      
    11. The full entry for my modem in the /etc/usb_modeswitch.setup is:

      ########################################################
      # Huawei E1550
      # Huawei E1750
      #
      # Contributor: Anders Blomdell, Ahmed Soliman
      
      DefaultVendor=  0x12d1
      DefaultProduct= 0x1446
      
      TargetVendor=   0x12d1
      TargetProduct=  0x1001
      
      MessageContent="55534243123456780000000000000011060000000000000000000000000000"
      
    12. It correctly describes my Huawei E1750 modem.

    13. Attention: there could be more than one entry for the same DefaultVendor + DefaultProduct combination.

    14. Save this entry in a temporary text file, for eventual future use.

    15. Now install the latest, not working usb_modeswitch version of the package.

    16. Repeat the steps above, searching for your Vendor + Product combo in the new /etc/usb_modeswitch.setup file.

    17. If it is not found, then probably your modem has been excluded, for some reason, from the file. Which is bad.

    18. At this point, there are two choices:

      • either downgrade back to working version

      • or add by hand the saved earlier configuration entry to the new /etc/usb_modeswitch.setup. It may or may not work.

    Good luck.

  • OK, I’ll try this on monday. But… Is there a faster way, just to learn if my modem is EOL? Without editing anything. I don’t want to make any trash in my system, or to jinx it totally. Now I’m working on a downgraded version (2.3.0 to be exact) and it’s ok. Is there any way to know if this version is the last one supporting my hardware, or just some sort of glitch, that will be fixed in another update? Can I contact the maintaner of the package in any way?

  • Ok, I didn’t wait till monday. I did it just a minute age and… unfortunatelly it does not work. When I updated the usb_modeswitch to version 2.4.0 which is the newest, I rebooted my laptop, and then edited the file /etc/usb_modeswitch.setup. I found the same entry for my modem as in the older version setup file, which is

    ########################################################
    # Huawei K3765
    #
    # Contributor: Felix Schwarz
    
    DefaultVendor=  0x12d1
    DefaultProduct= 0x1520
    
    TargetVendor=   0x12d1
    TargetProduct=  0x1465
    
    MessageContent="55534243123456780000000000000011060000000000000000000000000000"
    

    Everything was the same, but my modem wasn’t recognized. So I don’t think is EOL, but it’s some sort of glitch… Is it possible that it will be repaired, or I just need to stay on the older version? My /etc/pacman.conf file is edited with the line IgnorePkg=usb_modeswitch added. Please give some new ideas…

  • While mobile broadband was my only Internet connection under Linux in the past, for last 4-5 years I don’t use it anymore, and don’t follow strictly the events in this matter. I can’t offer more help, I’m afraid.

usb52 usbmodeswitch1 modem2 2.4.02 Posts 7Views 664
Log in to reply