This issue is related to dispatcher modeswitch
This is my first post in the forum good morning to everyone.
excuse my spelling errors in my Spanish-speaking area.
Now I will explain my doubts.
I am using a huawei e173.
I previously had this id. lsusb showed it.:
Bus 001 Device 010: ID "12d1:1c05" Huawei Technologies Co., Ltd.
noting that was not in the database config modeswitch (12d1:1c05).
I started practicing with the command usb_modeswitch_dispatcher.
after practicing with usb_modeswitch_dispatcher, I do not remember exactly what I did.
If so:
sudo /usr/sbin/usb_modeswitch_dispatcher
or if it was so.
sudo /usr/sbin/usb_modeswitch_dispatcher -c /usr/share/usb_modeswitch/12d1:1c05
the issue that I'm happy that the driver works well.
but I have a question I'd like to evacuate.
every time you plug in the modem, and typing the command lsusb, it shows me the new id.:
Bus 001 Device 011: ID 12d1:1c0b Huawei Technologies Co., Ltd.
how do I now return to the real id (12d1:1c05) ?
doing so, it displays the original id:
/usr/sbin/usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1c0b
/usr/sbin/usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1c0b
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 012 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x0f (out) and 0x8f (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
SCSI inquiry data (for identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass Storage
Revision String: 2.31
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
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
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Found target device, now opening
Found correct target device
Mode switch succeeded. Bye.
after i typed
I then typing: lsusb
show me the original id
Bus 001 Device 013: ID 12d1:1c05 Huawei Technologies Co., Ltd.
but I would like to show me the original id without using:
/usr/sbin/usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1c0b
thanks and greetings to all.
excuse my spelling errors in my Spanish-speaking area.
Now I will explain my doubts.
I am using a huawei e173.
I previously had this id. lsusb showed it.:
Bus 001 Device 010: ID "12d1:1c05" Huawei Technologies Co., Ltd.
noting that was not in the database config modeswitch (12d1:1c05).
I started practicing with the command usb_modeswitch_dispatcher.
after practicing with usb_modeswitch_dispatcher, I do not remember exactly what I did.
If so:
sudo /usr/sbin/usb_modeswitch_dispatcher
or if it was so.
sudo /usr/sbin/usb_modeswitch_dispatcher -c /usr/share/usb_modeswitch/12d1:1c05
the issue that I'm happy that the driver works well.
but I have a question I'd like to evacuate.
every time you plug in the modem, and typing the command lsusb, it shows me the new id.:
Bus 001 Device 011: ID 12d1:1c0b Huawei Technologies Co., Ltd.
how do I now return to the real id (12d1:1c05) ?
doing so, it displays the original id:
/usr/sbin/usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1c0b
/usr/sbin/usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1c0b
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 012 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x0f (out) and 0x8f (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
SCSI inquiry data (for identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass Storage
Revision String: 2.31
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
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
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Found target device, now opening
Found correct target device
Mode switch succeeded. Bye.
after i typed
I then typing: lsusb
show me the original id
Bus 001 Device 013: ID 12d1:1c05 Huawei Technologies Co., Ltd.
but I would like to show me the original id without using:
/usr/sbin/usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1c0b
thanks and greetings to all.
This issue is related to dispatcher modeswitch
excuse me administrador.
this was my first post.
I am using:
ubuntu version 10.10 maverick kernel 2.6.35-35-generic.
I had an old installation that brings maverick by default.
uninstall old version THROUGH of synaptic.
later
I installed from source package available.
http://www.draisberghof.de/usb_modeswit ... .2.tar.bz2
http://www.draisberghof.de/usb_modeswit ... 20.tar.bz2
apt-get install libusb-dev
make install.
this was my first post.
I am using:
ubuntu version 10.10 maverick kernel 2.6.35-35-generic.
I had an old installation that brings maverick by default.
uninstall old version THROUGH of synaptic.
later
I installed from source package available.
http://www.draisberghof.de/usb_modeswit ... .2.tar.bz2
http://www.draisberghof.de/usb_modeswit ... 20.tar.bz2
apt-get install libusb-dev
make install.
This issue is related to dispatcher modeswitch.
already installed tcl shows synaptic.
tcl: The Tool Command Language (default version) - run-time files
version: 8.4.16-2
curiously not seen in synaptic, usb_modeswitch installed.
maybe I should uninstall the modeswitch and install it on a specific way. usb_modeswitch was compiled source code. and apparently works without problems.
maybe I should install it in a special way as it says in the manual:
1) # make install (I guess the most common).
2) # make install-shared.
or
3) # make install-static.
I think I installed with option 1.
tcl: The Tool Command Language (default version) - run-time files
version: 8.4.16-2
curiously not seen in synaptic, usb_modeswitch installed.
maybe I should uninstall the modeswitch and install it on a specific way. usb_modeswitch was compiled source code. and apparently works without problems.
maybe I should install it in a special way as it says in the manual:
1) # make install (I guess the most common).
2) # make install-shared.
or
3) # make install-static.
I think I installed with option 1.
"make install" is the most flexible way. You can keep it like that.
Now I'd like to see a log of the mode-switch process. For this, edit
/etc/usb_modeswitch.conf and set "EnableLogging" to "1".
If your installation is O.K., you will get a log file when you plug your stick in and wait a moment.
Look for /var/log/usb_modeswitch_<something>.
Now I'd like to see a log of the mode-switch process. For this, edit
/etc/usb_modeswitch.conf and set "EnableLogging" to "1".
If your installation is O.K., you will get a log file when you plug your stick in and wait a moment.
Look for /var/log/usb_modeswitch_<something>.
exactly, I can see :
usb_modeswitch_1-6:1.0
usb_modeswitch_ttyUSB2,
usb_modeswitch_ttyUSB1,
usb_modeswitch_ttyUSB0
apparently seems to act the rules File: 40-usb_modeswitch.rules
internally, in the usb_modeswitch_1-6:1.0 file shows me this:
pd. If you find an error let me know thanks ..
greetings and thank you very much for your help.
------------------------------------------------------------------------
USB_ModeSwitch log from Thu Jan 26 21:52:14 ART 2012
Raw args from udev: /1-6:1.0
Using global config file: /etc/usb_modeswitch.conf
Using top device dir /sys/bus/usb/devices/1-6
Warning: USB attribute "serial" not found.
----------------
USB values from sysfs:
manufacturer HUAWEI
product HUAWEI Mobile
serial
----------------
bNumConfigurations is 1 - don't check for active configuration
SCSI attributes not needed, moving on
checking config: /usr/share/usb_modeswitch/12d1:1c0b
! matched. Reading config data
config: TargetVendor set to 12d1
config: TargetProductList set to 1c05,1c08
config: CheckSuccess set to 20
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 1 -g 18 -v 12d1 -p 1c0b -f $configBuffer
Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 018 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
USB error: error sending control message: Connection timed out
Error: could not get description string "manufacturer"
USB error: error sending control message: Connection timed out
Error: could not get description string "product"
Reading long config from command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.1 (C) Josua Dietze 2011
* 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,1c08"
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
Use given bus/device number: 001/018 ...
Looking for default devices ...
bus/device number matched
searching devices, found USB ID 12d1:1c0b
found matching vendor ID
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Skipping the check for the current configuration
Using first interface: 0x00
Using endpoints 0x0f (out) and 0x8f (in)
USB description data (for identification)
-------------------------
Manufacturer:
Product:
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 ...
USB error: could not release intf 0: No such device
OK, message successfully sent
Resetting response endpoint 0x8f
Resetting message endpoint 0x0f
Device is gone, skipping any further commands
Bus/dev search active, referring success check to wrapper. Bye.
ok:busdev
--------------------------------
(end of usb_modeswitch output)
Checking success of mode switch for max. 20 seconds ...
Waiting for device file system (1 sec.) ...
Waiting for device file system (2 sec.) ...
Waiting for device file system (3 sec.) ...
Waiting for device file system (4 sec.) ...
Device file system is up, reading attributes ...
Warning: USB attribute "serial" not found.
All attributes matched
Mode switching was successful, found 12d1:1c05 (HUAWEI: HUAWEI Mobile)
Now checking for newly created ports ...
new ports found, device is known to driver
Checking for AVOID_RESET_QUIRK kernel attribute
AVOID_RESET_QUIRK activated
All done, exiting
------------------------------------------
usb_modeswitch_1-6:1.0
usb_modeswitch_ttyUSB2,
usb_modeswitch_ttyUSB1,
usb_modeswitch_ttyUSB0
apparently seems to act the rules File: 40-usb_modeswitch.rules
internally, in the usb_modeswitch_1-6:1.0 file shows me this:
pd. If you find an error let me know thanks ..
greetings and thank you very much for your help.
------------------------------------------------------------------------
USB_ModeSwitch log from Thu Jan 26 21:52:14 ART 2012
Raw args from udev: /1-6:1.0
Using global config file: /etc/usb_modeswitch.conf
Using top device dir /sys/bus/usb/devices/1-6
Warning: USB attribute "serial" not found.
----------------
USB values from sysfs:
manufacturer HUAWEI
product HUAWEI Mobile
serial
----------------
bNumConfigurations is 1 - don't check for active configuration
SCSI attributes not needed, moving on
checking config: /usr/share/usb_modeswitch/12d1:1c0b
! matched. Reading config data
config: TargetVendor set to 12d1
config: TargetProductList set to 1c05,1c08
config: CheckSuccess set to 20
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 1 -g 18 -v 12d1 -p 1c0b -f $configBuffer
Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 018 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
USB error: error sending control message: Connection timed out
Error: could not get description string "manufacturer"
USB error: error sending control message: Connection timed out
Error: could not get description string "product"
Reading long config from command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.1 (C) Josua Dietze 2011
* 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,1c08"
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
Use given bus/device number: 001/018 ...
Looking for default devices ...
bus/device number matched
searching devices, found USB ID 12d1:1c0b
found matching vendor ID
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Skipping the check for the current configuration
Using first interface: 0x00
Using endpoints 0x0f (out) and 0x8f (in)
USB description data (for identification)
-------------------------
Manufacturer:
Product:
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 ...
USB error: could not release intf 0: No such device
OK, message successfully sent
Resetting response endpoint 0x8f
Resetting message endpoint 0x0f
Device is gone, skipping any further commands
Bus/dev search active, referring success check to wrapper. Bye.
ok:busdev
--------------------------------
(end of usb_modeswitch output)
Checking success of mode switch for max. 20 seconds ...
Waiting for device file system (1 sec.) ...
Waiting for device file system (2 sec.) ...
Waiting for device file system (3 sec.) ...
Waiting for device file system (4 sec.) ...
Device file system is up, reading attributes ...
Warning: USB attribute "serial" not found.
All attributes matched
Mode switching was successful, found 12d1:1c05 (HUAWEI: HUAWEI Mobile)
Now checking for newly created ports ...
new ports found, device is known to driver
Checking for AVOID_RESET_QUIRK kernel attribute
AVOID_RESET_QUIRK activated
All done, exiting
------------------------------------------