Hoi Mattijs,

seems it works if run by hand, pity that at the moment I do not have a valid 
UMTS subscription with which to test things.

#-> I first tried usb_modeswitch totally by hand, but I just managed to detach 
the device, then I noticed the '-c' switch and I used it in the command:

root@Fonera:~# usb_modeswitch -v 0x12d1 -p 0x1f01 -c 
/etc/usb_modeswitch.d/12d1\:1f01 

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found devices in default mode or class (1)
Accessing device 013 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 No driver found. Either detached before or never attached

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 HiLink
  Serial No.: not provided
-------------------------
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Resetting response endpoint 0x81
 Error resetting endpoint: -71
Resetting message endpoint 0x01
 Error resetting endpoint: -145
 Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

#-> lsusb is not available on the fonera, but I can `cat` the /proc file as you 
indicated in a previous mail.

root@Fonera:~# cat /proc/bus/usb/devices 

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.21.7 dwc_otg_hcd
S:  Product=DWC OTG Controller
S:  SerialNumber=lm0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 14 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=14db Rev= 1.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI HiLink
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=06 Prot=00 Driver=cdc_ether
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
root@Fonera:~# 

what was the next step... to check whether the network device was created...
but still how do we automatize the process?

hopefully this info is useful.

regards,
MF


On Fri, 8 Feb 2013 18:30:48 +0100
Mario Frasca <[email protected]> wrote:

> On Fri, 8 Feb 2013 17:50:55 +0100
> Matthijs Kooijman - Fon <[email protected]> wrote:
> 
> > Hi Mario,
> > 
> > > no, well, I don't see any difference from the previous situation.
> > Did you unplug and replug the 3G Dongle?
> 
> :)
> 
> > If so, could you run the "logread -f" command [...]
> 
> `logread -f`, interesting...
> here it comes!
> 
> root@Fonera:~# logread -f
> Feb  8 17:25:50 Fonera user.debug kernel: hub 1-0:1.0: state 7 ports
> 1 chg 0000 evt 0002 Feb  8 17:25:50 Fonera user.debug kernel: hub
> 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s Feb  8 17:25:50
> Fonera user.debug kernel: hub 1-0:1.0: debounce: port 1: total 100ms
> stable 100ms status 0x100 Feb  8 17:25:54 Fonera user.debug kernel:
> hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002 Feb  8 17:25:54 Fonera
> user.debug kernel: hub 1-0:1.0: port 1, status 0101, change 0001, 12
> Mb/s Feb  8 17:25:54 Fonera user.debug kernel: hub 1-0:1.0: debounce:
> port 1: total 100ms stable 100ms status 0x101 Feb  8 17:25:54 Fonera
> user.info kernel: usb 1-1: new high speed USB device using dwc_otg
> and address 13 Feb  8 17:25:54 Fonera user.debug kernel: usb 1-1:
> default language 0x0409 Feb  8 17:25:54 Fonera user.debug kernel: usb
> 1-1: new device strings: Mfr=2, Product=1, SerialNumber=0 Feb  8
> 17:25:54 Fonera user.info kernel: usb 1-1: Product: HUAWEI HiLink
> Feb  8 17:25:54 Fonera user.info kernel: usb 1-1: Manufacturer:
> HUAWEI Feb  8 17:25:54 Fonera user.debug kernel: usb 1-1: uevent Feb
> 8 17:25:54 Fonera user.debug kernel: usb 1-1: usb_probe_device Feb  8
> 17:25:54 Fonera user.info kernel: usb 1-1: configuration #1 chosen
> from 1 choice Feb  8 17:25:54 Fonera user.debug kernel: usb 1-1:
> adding 1-1:1.0 (config #1, interface 0) Feb  8 17:25:54 Fonera
> user.debug kernel: usb 1-1:1.0: uevent Feb  8 17:25:54 Fonera
> user.debug kernel: usb-storage 1-1:1.0: usb_probe_interface Feb  8
> 17:25:54 Fonera user.debug kernel: usb-storage 1-1:1.0:
> usb_probe_interface - got id Feb  8 17:25:54 Fonera user.info kernel:
> scsi6 : SCSI emulation for USB Mass Storage devices Feb  8 17:25:54
> Fonera user.debug kernel: drivers/usb/core/inode.c: creating file
> '013' Feb  8 17:25:54 Fonera user.debug kernel: hub 1-0:1.0: state 7
> ports 1 chg 0000 evt 0002 Feb  8 17:25:54 Fonera user.debug kernel:
> hub 1-0:1.0: port 1 enable change, status 00000503 Feb  8 17:25:54
> Fonera user.debug kernel: usb-storage: device found at 13 Feb  8
> 17:25:54 Fonera user.debug kernel: usb-storage: waiting for device to
> settle before scanning Feb  8 17:25:55 Fonera user.info :
> sed: /sys//devices/lm0/usb1/1-1/serial: No such file or directory
> Feb  8 17:25:55 Fonera user.notice usb-modeswitch: 1-1:1.0:
> Manufacturer=HUAWEI Product=HUAWEI_HiLink Serial=? Feb  8 17:25:55
> Fonera
> user.info : /sbin/hotplug-call: /etc/hotplug.d/usb/20-modeswitch:
> line 126: 0: not found Feb  8 17:25:55 Fonera user.notice
> usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/12d1:1f01
> for mode switching Feb  8 17:25:55 Fonera user.info : No default
> vendor/product ID given. Aborting. Feb  8 17:25:59 Fonera user.notice
> kernel: scsi 6:0:0:0: CD-ROM            HUAWEI   Mass Storage
> 2.31 PQ: 0 ANSI: 2 Feb  8 17:25:59 Fonera user.debug kernel:
> usb-storage: device scan complete
> 


_______________________________________________
Development mailing list
[email protected]
http://fonosfera.org/mailman/listinfo/development

Reply via email to