I bought a coolee X8 4G modem(Chinese product), lsusb information like following:
Bus 001 Device 008: ID 05c6:f000 Qualcomm, Inc.
It connect to internet fine in windows, and i record the necessary information for modem:
product id is 0x05c6:0xf000 when it's in storage mode,
product id is 0x05c6:0x6000 when it has been connected to internet.
When I use usb_modeswitch -v 0x05c6 -p 0xf000 -V 0x05c6 -P 0x6000, it's fail and return following message:
>>>>
darnis@romee:~$ sudo usb_modeswitch -v 0x05c6 -p 0xf000 -V 0x05c6 -P 0x6000
Look for target devices ...
No devices in target mode or class found
Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 008 on bus 001
Current configuration number is 1
Use interface number 0
USB description data (for identification)
-------------------------
Manufacturer: Qualcomm, Incorporated
Product: Qualcomm CDMA Technologies MSM
Serial No.: 1234567890ABCDEF
-------------------------
Warning: no switching method given. See documentation
-> Run lsusb to note any changes. Bye!
<<<<<
NOT Looking for taget device( 05c6:6000), so i create the file in /etc/usb_modeswitch.d/05c6:6000, and append :
# FILE START
DefaultVendor=0x05c6
DefaultProduct=0x6000
TargetClass=0xff
CheckSuccess=20
MessageContent="5553424312345678000000000000061b000000020000000000000000000000"
# FILE END
I retried the usb_modeswitch -v 0x05c6 -p 0xf000 -V 0x05c6 -P 0x6000, the same result upon.
And I tried the folowing method, it's fail:
1. Create /etc/usb_modeswitch.conf , it contain:
DefaultVendor= 0x05c6
DefaultProduct= 0xf000
TargetVendor= 0x05c6
TargetProduct= 0x6000
MessageContent="5553424312345678000000000000061b000000020000000000000000000000"
2. Run the command: sudo usb_modeswitch -W -c /etc/usb_modeswitch.conf, shows:
Read config file: /etc/usb_modeswitch.conf
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.2.5 (C) Josua Dietze 2015
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x05c6
DefaultProduct= 0xf000
TargetVendor= 0x05c6
TargetProduct= 0x6000
MessageContent="5553424312345678000000000000061b000000020000000000000000000000"
NeedResponse=0
Look for target devices ...
found USB ID 8087:8001
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 1bcf:2c70
found USB ID 8087:07dc
found USB ID 05c6:f000
vendor ID matched
found USB ID 046d:c062
found USB ID 1d6b:0002
No devices in target mode or class found
Look for default devices ...
found USB ID 8087:8001
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 1bcf:2c70
found USB ID 8087:07dc
found USB ID 05c6:f000
vendor ID matched
product ID matched
found USB ID 046d:c062
found USB ID 1d6b:0002
Found devices in default mode (1)
Access device 008 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: Qualcomm, Incorporated
Product: Qualcomm CDMA Technologies MSM
Serial No.: 1234567890ABCDEF
-------------------------
Looking for active driver ...
No active driver found. Detached before or never attached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
Sending the message returned error -7. Try to continue
Reset response endpoint 0x81
Reset message endpoint 0x01
-> Run lsusb to note any changes. Bye!
And lsusb Information:
darnis@romee:/etc/usb_modeswitch.d$ lsusb
Bus 003 Device 002: ID 8087:8001 Intel Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 1bcf:2c70 Sunplus Innovation Technology Inc.
Bus 001 Device 003: ID 8087:07dc Intel Corp.
Bus 001 Device 008: ID 05c6:f000 Qualcomm, Inc.
Bus 001 Device 005: ID 046d:c062 Logitech, Inc. M-UAS144 [LS1 Laser Mouse]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
There has no 05c6:6000 usb device! It likes the reason of "No devices in target mode or class found".. I don't understand.
dmesg | grep usb:
[ 805.802713] Modules linked in: option usb_wwan usbserial uas usb_storage drbg ansi_cprng ctr ccm rfcomm pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) bnep nls_iso8859_1 fglrx(POE+) arc4 uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev media btusb btrtl btbcm btintel bluetooth iwlmvm mac80211 snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm intel_rapl thinkpad_acpi iosf_mbi x86_pkg_temp_thermal nvram intel_powerclamp coretemp snd_seq_midi snd_seq_midi_event snd_rawmidi rtsx_pci_ms memstick kvm_intel amd_iommu_v2 input_leds kvm crct10dif_pclmul crc32_pclmul snd_seq ghash_clmulni_intel snd_seq_device aesni_intel snd_timer snd aes_x86_64 lrw gf128mul mei_me iwlwifi joydev serio_raw
[ 805.802758] glue_helper ablk_helper cryptd cfg80211 mei soundcore shpchp lpc_ich mac_hid parport_pc ppdev lp parport autofs4 hid_generic usbhid hid rtsx_pci_sdmmc i915 psmouse amdgpu ttm i2c_algo_bit drm_kms_helper e1000e rtsx_pci ahci drm ptp libahci pps_core wmi video
[ 2981.033234] usbcore: registered new interface driver qcserial
[ 2981.033258] usbserial: USB Serial support registered for Qualcomm USB modem
[ 7178.126295] usb 1-3: USB disconnect, device number 6
[ 7178.398195] usb 1-3: new high-speed USB device number 7 using xhci_hcd
[ 9843.813846] usb 1-3: new high-speed USB device number 8 using xhci_hcd
[ 9843.944848] usb 1-3: New USB device found, idVendor=05c6, idProduct=f000
[ 9843.944852] usb 1-3: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 9843.944854] usb 1-3: Product: Qualcomm CDMA Technologies MSM
[ 9843.944855] usb 1-3: Manufacturer: Qualcomm, Incorporated
[ 9843.944856] usb 1-3: SerialNumber: 1234567890ABCDEF
[ 9843.953399] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 9843.953498] scsi host4: usb-storage 1-3:1.0
How can I switch my modem to serial mode ? ::(