I'm trying to configure the XS Stick P14 (1c9e:f000) on a Gentoo system where there isn't a GUI and networkmanager.
this is what I see in the dmesg output:
Code: Select all
[ 60.966249] usb 1-1.2: new high-speed USB device number 3 using ehci-pci
[ 61.119169] usb 1-1.2: New USB device found, idVendor=1c9e, idProduct=f000
[ 61.119178] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 61.119185] usb 1-1.2: Product: USB Modem
[ 61.119192] usb 1-1.2: Manufacturer: USB Modem
[ 61.119198] usb 1-1.2: SerialNumber: 1234567890ABCDEF
[ 61.122212] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 61.122628] scsi host2: usb-storage 1-1.2:1.0
[ 62.198599] scsi 2:0:0:0: CD-ROM USBModem Disk 2.31 PQ: 0 ANSI: 2
[ 62.201284] sr 2:0:0:0: [sr0] scsi-1 drive
[ 62.201291] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 62.201758] sr 2:0:0:0: Attached scsi CD-ROM sr0
[ 62.201974] sr 2:0:0:0: Attached scsi generic sg1 type 5
Code: Select all
Bus 001 Device 004: ID 1c9e:f000 OMEGA TECHNOLOGY
Code: Select all
USB_ModeSwitch log from Sat Jan 13 17:25:52 CET 2018
Use global config file: /etc/usb_modeswitch.conf
Adjust delay for USB storage devices ...
Current value is higher than 10. Leave it alone
Raw args from udev: /1-1.2
Use top device dir /sys/bus/usb/devices/1-1.2
Check class of first interface ...
Interface 0 class is 08.
----------------
USB values from sysfs:
manufacturer USB Modem
product USB Modem
serial 1234567890ABCDEF
----------------
bNumConfigurations is 1 - don't check for active configuration
ConfigList: /etc/usb_modeswitch.d/1c9e:f000 /usr/share/usb_modeswitch/1c9e:f000:uMa=USB_Modem /usr/share/usb_modeswitch/1c9e:f000
SCSI attributes not needed, move on
Check config: /etc/usb_modeswitch.d/1c9e:f000
! matched. Read config data
Use config file from override folder /etc/usb_modeswitch.d
Logger is /usr/bin/logger
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
Delay time of 1 seconds
wait is over, start mode switch
Unbinding driver
Command to be run:
usb_modeswitch -W -D -u -1 -b 1 -g 4 -v 1c9e -p f000 -f $flags(config)
Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------
Read long config from command line
* 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= 0x1c9e
DefaultProduct= 0xf000
TargetVendor= 0x1c9e
TargetProductList="9000,9603,9605,9607,9900"
MessageContent="555342431234567800000000000001ff000000000000000000000000000000"
NeedResponse=0
System integration mode enabled
Use given bus/device number: 001/004 ...
Look for default devices ...
bus/device number matched
found USB ID 1c9e:f000
vendor ID matched
product ID matched
Found devices in default mode (1)
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: USB Modem
Product: USB Modem
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 ...
OK, message successfully sent
Reset response endpoint 0x81
Reset message endpoint 0x01
ok:busdev
--------------------------------
(end of usb_modeswitch output)
Check success of mode switch for max. 20 seconds ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Target config not matching - current values are
1-1.2:1.0/bInterfaceClass: 08
bConfigurationValue: 1
bNumConfigurations: 1
busnum: 1
devnum: 4
idProduct: f000
idVendor: 1c9e
manufacturer: USB Modem
product: USB Modem
serial: 1234567890ABCDEF
Mode switching may have failed. Exit
This is what I tried manually:
Code: Select all
# /usr/sbin/usb_modeswitch -W -D -u -1 -b 1 -g 4 -v 1c9e -p f000 -V 1c9e -P 9605 -M 55534243123456788000000080000606f50402527000000000000000000000
Take all parameters from the command line
* 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= 0x1c9e
DefaultProduct= 0xf000
TargetVendor= 0x1c9e
TargetProduct= 0x9605
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
NeedResponse=0
System integration mode enabled
Use given bus/device number: 001/004 ...
Look for default devices ...
bus/device number matched
found USB ID 1c9e:f000
vendor ID matched
product ID matched
Found devices in default mode (1)
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: USB Modem
Product: USB Modem
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
ok:busdev
I have another gentoo system where in the past was configured only one device with the following command:
Code: Select all
# usb_modeswitch -v 19d2 -p 1015 -W -I -c /usr/share/usb_modeswitch/19d2\:1013
Thanks.