Automatic Activation, Hotplug and UDEV, Configuration
-
raja
- Posts: 4
- Joined: 27 Oct 2014, 20:15
Post
by raja » 27 Oct 2014, 20:21
usb_modeswitch detects Netgear AC327U USB stick as 2077:f000 , but does not switch to modem mode .
My laptop is running Ubuntu 14.04 9 Kylin .
Output of lsusb :
Code: Select all
raja@raja-Lenovo-G510:~$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
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 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 003 Device 003: ID 105b:e065
[b]Bus 003 Device 009: ID 2077:f000[/b]
Bus 003 Device 002: ID 174f:114f Syntek
Bus 003 Device 006: ID 12d1:1436 Huawei Technologies Co., Ltd. E173 3G Modem (modem-mode)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Content of /usr/share/usb_modeswitch/2077:f000
Code: Select all
# Netgear AC327U
DefaultVendor=0x2077
DefaultProduct=0xf000
TargetVendor=0x2077
TargetProduct= 0xa003
#TargetClass= not set
#TargetProductList=""
#MessageEndpoint=0x03
MessageContent="55534243204C5589000000000000060000 0000000000000000000000000000"
Manual switching attempt outputs :
Code: Select all
raja@raja-Lenovo-G510:~$ sudo usb_modeswitch -c /usr/share/usb_modeswitch/2077:f000Look 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 009 on bus 003
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer:
Product: Netgear Aircard 3G 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
-> Run lsusb to note any changes. Bye!
After all this , no change in lsusb output , and device does not appear in network manager for new connection .
Any help appreciated .
-
LOM
- Posts: 1404
- Joined: 11 Jul 2012, 15:14
- Location: Koh Samui, TH
Post
by LOM » 28 Oct 2014, 03:10
The message you are using is not a switch message, please try the msg from the file 2077:f000 in the usb_modeswitch data package.
-
raja
- Posts: 4
- Joined: 27 Oct 2014, 20:15
Post
by raja » 02 Nov 2014, 18:38
Hi,
There is no file 2077:f000 in the default installation of modeswitch .
Came across 2077:f000 on net - but that was Terecom 3G , not Netgear AC327U .
Anyway switch message from even that ( Terecom 3G ) did not work , am still stuck .
Any other ideas ? Will be a big help ....
Thanks
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 03 Nov 2014, 08:59
raja wrote:There is no file 2077:f000 in the default installation of modeswitch.
We are usually referring to the latest release available here, not to the version of your distribution.
raja wrote:Came across 2077:f000 on net - but that was Terecom 3G , not Netgear AC327U.
Brand names are not very telling when it comes to USB modems. USB IDs are much more relevant.
Can you post the log that is created when using the 2077:f000 configuration from the current data package?
-
raja
- Posts: 4
- Joined: 27 Oct 2014, 20:15
Post
by raja » 05 Nov 2014, 22:45
There is no data file for 2077:f000 in the usb_modeswitch data package .
The data is updated for 14.04 .
Custom data file for 2077:f000 as found from net is given below ( its Digicom , not terecom as earlier mentioned - sorry . )
Code: Select all
raja@raja-Lenovo-G510:~$ cat /etc/usb_modeswitch.d/2077:f000
# Digicom 3G Pocket Router (R3GW21-T01 8E4539 )
DefaultVendor= 0x2077
DefaultProduct= 0xf000
TargetVendor= 0x2077
TargetProduct= 0xa000
MessageContent="55534243709ed3840000000000000616aa0000000000000000000000000000"
raja@raja-Lenovo-G510:~$
Terminal output after running it :
Code: Select all
raja@raja-Lenovo-G510:~$ sudo usb_modeswitch -c /etc/usb_modeswitch.d/2077:f000
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 009 on bus 003
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer:
Product: Netgear Aircard 3G 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
-> Run lsusb to note any changes. Bye!
lsusb output still shows 2077:f000 - didn't switch .
Syslog entries below :
Code: Select all
raja@raja-Lenovo-G510:~$ tail -f /var/log/syslog
Nov 6 02:09:46 raja-Lenovo-G510 kernel: [21054.088700] sr2: scsi-1 drive
Nov 6 02:09:46 raja-Lenovo-G510 kernel: [21054.088846] sr 12:0:0:0: Attached scsi CD-ROM sr2
Nov 6 02:09:46 raja-Lenovo-G510 kernel: [21054.088926] sr 12:0:0:0: Attached scsi generic sg5 type 5
Nov 6 02:09:46 raja-Lenovo-G510 usb_modeswitch[6443]: usb_modeswitch: use overriden config 2077:f000 from collection /etc/usb_modeswitch.d; make sure this is intended
Nov 6 02:09:46 raja-Lenovo-G510 usb_modeswitch[6443]: usb_modeswitch: please report any new or corrected settings; otherwise, check for outdated files
Nov 6 02:09:46 raja-Lenovo-G510 usb_modeswitch: switch device 2077:f000 on 003/009
Nov 6 02:09:46 raja-Lenovo-G510 kernel: [21054.121422] systemd-udevd[6453]: Failed to apply ACL on /dev/sr2: No such file or directory
Nov 6 02:09:46 raja-Lenovo-G510 kernel: [21054.121430] systemd-udevd[6453]: Failed to apply ACL on /dev/sr2: No such file or directory
Nov 6 02:09:46 raja-Lenovo-G510 kernel: [21054.132440] systemd-udevd[6425]: Failed to apply ACL on /dev/sr2: No such file or directory
Nov 6 02:09:46 raja-Lenovo-G510 kernel: [21054.132448] systemd-udevd[6425]: Failed to apply ACL on /dev/sr2: No such file or directory
-
LOM
- Posts: 1404
- Joined: 11 Jul 2012, 15:14
- Location: Koh Samui, TH
Post
by LOM » 06 Nov 2014, 04:47
raja wrote:There is no data file for 2077:f000 in the usb_modeswitch data package .
The data is updated for 14.04 .
What you have or not have in your linux distro is something you should take up with the maintainer of that distro.
2077:f000 was included in the data package in May 2012, latest usb_modeswitch and data package are always available here
http://www.draisberghof.de/usb_modeswitch/
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 06 Nov 2014, 15:52
raja wrote:There is no data file for 2077:f000 in the usb_modeswitch data package
I was referring to the current data package available here on this site.
-
raja
- Posts: 4
- Joined: 27 Oct 2014, 20:15
Post
by raja » 07 Nov 2014, 21:51
It is now switching from 2077:f000 to 2077:a003 , after downloading and copying the 2077:f000 file from data package from this site .
Hit another bump now ; though it is switching to 2077:a003 ( modem mode ) , the device is not showing up on network manager .
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 08 Nov 2014, 13:02
Maybe the driver is not binding to the modem ...
Try to make the thing switch automatically (if it doesn't, check "/lib/udev/rules.d/40-usb_modeswitch.rules" and see if there is a line for your initial USB ID), then enable logging in "/etc/usb_modeswitch.conf".