Port links desapearing or renamed
Posted: 12 Jun 2015, 19:31
Hello, I am having a real hard time trying to get modems working, I have a huawei E173 that I had been working with for more than 4 months, although it only worked in one usb port (if I plugged it to another port it wouldnt turn modem on), I needed to test an app I am developing (it sends sms via at commands) with more than one modem so that when the modems conect the app would be able to recognize it and start instantiate the app.
The thing is that since I brought the new modem I noticed that
outputs this:
but if I try
screen says there is no such file. if I go to /dev/ I dont see any ttyUSB file there.
I triend on another machine with canaima (another flavor of debian) and it happens almost identical, this time the usb ports gets renamed to ttyUSB_modem and others, but its weird that if I plug the other modem I dont see any other file created, it works with the same files. so in the case of canaima I can only have one modem connected at a time.
I have to say that in canaima there is a version of 1.x of usb_modeswitch while in my ubuntu 14.04 machine there is a 2.1.1 version of it.
Lastly I tried on ubuntu server and it worked as it should, the modems switch to tttyUSBx and I can use both without a problem, ubuntu server has a version of 1.x too.
I am really breaking my head with that, I need to have the app done urgently and now I cant access the modems on my ubuntu machine.
Any advise other than reinstalling the OS?
PS the modem that worked fine before in my machine doesn't work after I plugged the new modem to my ubuntu 14 machine. I am stucked researching finding no answer about it. it seems usb_modeswitch doesnt create the serial link to communicate with them.
as you can see the 12d1:14fe doesnt say anything about modem now.
this is the log from /var/logs/usb_modeswitch.log
The thing is that since I brought the new modem I noticed that
Code: Select all
dmesg | grep ttyUSB Code: Select all
[ 9411.377959] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 9411.378405] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 9411.378804] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
Code: Select all
screen /dev/ttyUSB0I triend on another machine with canaima (another flavor of debian) and it happens almost identical, this time the usb ports gets renamed to ttyUSB_modem and others, but its weird that if I plug the other modem I dont see any other file created, it works with the same files. so in the case of canaima I can only have one modem connected at a time.
I have to say that in canaima there is a version of 1.x of usb_modeswitch while in my ubuntu 14.04 machine there is a 2.1.1 version of it.
Lastly I tried on ubuntu server and it worked as it should, the modems switch to tttyUSBx and I can use both without a problem, ubuntu server has a version of 1.x too.
I am really breaking my head with that, I need to have the app done urgently and now I cant access the modems on my ubuntu machine.
Any advise other than reinstalling the OS?
PS the modem that worked fine before in my machine doesn't work after I plugged the new modem to my ubuntu 14 machine. I am stucked researching finding no answer about it. it seems usb_modeswitch doesnt create the serial link to communicate with them.
Code: Select all
lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 014: ID 12d1:1c05 Huawei Technologies Co., Ltd. E173s 3G broadband stick (modem on)
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 04f2:b35f Chicony Electronics Co., Ltd
Bus 003 Device 004: ID 12d1:14fe Huawei Technologies Co., Ltd.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
this is the log from /var/logs/usb_modeswitch.log
Code: Select all
USB_ModeSwitch log from Fri Jun 12 13:10:03 2015
Use global config file: /etc/usb_modeswitch.conf
Started via upstart
Raw args from udev: /1-1.2
Bus ID for device not given by udev.
Trying to determine it from kernel name (1-1.2) ...
Use top device dir /sys/bus/usb/devices/1-1.2
USB dir exists: /sys/bus/usb/devices/1-1.2
Warning: USB attribute "serial" not readable.
SCSI dir exists: /sys/bus/usb/devices/1-1.2
Warning: SCSI attribute "vendor" not readable.
Warning: SCSI attribute "model" not readable.
Warning: SCSI attribute "rev" not readable.
Check class of first interface ...
Device is in install mode.
Use interface (null)
----------------
USB values from sysfs:
idVendor 12d1
idProduct 1c0b
manufacturer HUAWEI
product HUAWEI Mobile
serial (null)
bNumConfigurations 1
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
Searching entries named: /usr/share/usb_modeswitch/12d1:1c0b*
Searching overriding entries named: /etc/usb_modeswitch.d/12d1:1c0b*
SCSI attributes not needed, move on.
Extract config 12d1:1c0b from collection /usr/share/usb_modeswitch/configPack.tar.gz
config: TargetVendor set to 12d1
config: TargetProduct set to 1c05,1c07,1c08,1c10
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
! matched, now switching
Command to be run:
/usr/sbin/usb_modeswitch -W -D -s 20 -c /run/usb_modeswitch/current_cfg -u -1 -v 12d1 -p 1c0b 2>&1
Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are expected in the process)
--------------------------------
Read config file: /run/usb_modeswitch/current_cfg
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.1.1 (C) Josua Dietze 2014
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x1c0b
TargetVendor= 0x12d1
TargetProductList="1c05,1c07,1c08,1c10"
MessageContent="55534243123456780000000000000011062000000101000100000000000000"
NeedResponse=0
Success check enabled, max. wait time 20 seconds
System integration mode enabled
Look for target devices ...
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 12d1:1c0b
vendor ID matched
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 04f2:b35f
found USB ID 093a:2510
found USB ID 1d6b:0002
No devices in target mode or class found
Look for default devices ...
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 12d1:1c0b
vendor ID matched
product ID matched
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 04f2:b35f
found USB ID 093a:2510
found USB ID 1d6b:0002
Found devices in default mode (1)
Access device 013 on bus 001
Use interface number 0
Use endpoints 0x0f (out) and 0x8f (in)
USB description data (for identification)
-------------------------
Manufacturer:
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver detached
Set up interface 0
Use endpoint 0x0f for message sending ...
Trying to send message 1 to endpoint 0x0f ...
OK, message successfully sent
Reset response endpoint 0x8f
Reset message endpoint 0x0f
Could not reset endpoint (probably harmless): -99
Device is gone, skip any further commands
Check for mode switch (max. 20 times, once per second) ...
Search for target devices ...
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 04f2:b35f
found USB ID 093a:2510
found USB ID 1d6b:0002
Search for target devices ...
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 04f2:b35f
found USB ID 093a:2510
found USB ID 1d6b:0002
Search for target devices ...
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 04f2:b35f
found USB ID 1d6b:0002
Search for target devices ...
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 04f2:b35f
found USB ID 1d6b:0002
Search for target devices ...
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 04f2:b35f
found USB ID 1d6b:0002
Search for target devices ...
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 04f2:b35f
found USB ID 1d6b:0002
Search for target devices ...
found USB ID 12d1:1c05
vendor ID matched
product ID matched
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 8087:0024
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 04f2:b35f
found USB ID 1d6b:0002
Found target device, open it
Found target device 014 on bus 001
Target device description data
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Found correct target device
Mode switch succeeded. Bye!
ok:no_data
--------------------------------
(end of usb_modeswitch output)
Check success of mode switch for max. 20 seconds ... Read attributes ...
USB dir exists: /sys/bus/usb/devices/1-1.2
Warning: USB attribute "serial" not readable.
All attributes matched
Mode switching was successful, found 12d1:1c05 (HUAWEI: HUAWEI Mobile)Now check for bound driver ...
no driver has bound to interface 0 yet
Device not in "bind_list" yet, bind it now
Module loader is /sbin/modprobe
Module is active already
Try to add ID to driver "option"
ID added to driver; check for new devices in /dev
driver binding failed
Check for AVOID_RESET_QUIRK kernel attribute
AVOID_RESET_QUIRK activated
All done, exit