Resetting Vodafone USB mobile broadband device with usb_modeswitch

First time I used my vodafone USB mobile broadband device on my Fedora Linux system it worked perfectly . However, after couple minutes I got disconnected I was not able to connect again even when the blue light on the Vodafone USB mobile broadband device was making a clear blue blinking signal that network was found and all I need to do is to just connect. Eventually after many attempts to make an Internet connection I had reseted it with a usb_modeswitch command to make it working again. It is not guaranteed solution but its worth to try.

If you are in the same situation you may also try to reset your Vodafone USB mobile broadband device. To do that we first need vendor and product ID in a hexadecimal form. To get this information execute:

$ lsusb

This will print out all USB devices connected system bus:

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub                                                 
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub                                                 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub                                                 
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub                                                 
Bus 001 Device 007: ID 19d2:1010 ONDA Communication S.p.A.                                                     
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

In my case the line:

Bus 001 Device 007: ID 19d2:1010 ONDA Communication S.p.A.  

is my Vodafone USB mobile broadband device, where 19d2 is vendor ID and 1010 is product ID. Now that we have this information we can attempt to reset it with usb_modeswitch. Switch to root and execute the following linux command with the information you retrieved previously:

# usb_modeswitch -R -v 19d2 -p 1010

Output:

Looking for default devices ...                                                                                
 Found devices in default mode or class (1)                                                                    
Accessing device 007 on bus 001 ...                                                                            
Using endpoints 0x01 (out) and 0x81 (in)                                                                       
Using endpoints 0x01 (out) and 0x81 (in)                                                                       
Not a storage device, skipping SCSI inquiry                                                                    
                                                                                                               
USB description data (for identification)                                                                      
-------------------------                                                                                      
Manufacturer: Vodafone (ZTE)                                                                                   
     Product: Vodafone Mobile Broadband K3571-Z                                                                
  Serial No.: P680A8VDFD000000                                                                                 
-------------------------                                                                                      
Warning: no switching method given.                                                                            
Resetting usb device .                                                                                         
 OK, device was reset                                                                                          
-> Run lsusb to note any changes. Bye.