WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: usb-modeswitch for tcl4.0.1 is kindly requested..  (Read 3642 times)

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
usb-modeswitch for tcl4.0.1 is kindly requested..
« on: October 12, 2011, 01:29:02 PM »
I already contacted jls_legalize.. but no response.
usb-modeswitch from tcl3.8.4 seems not to work with tcl4.0.1.
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: usb-modeswitch for tcl4.0.1 is kindly requested..
« Reply #1 on: October 12, 2011, 02:51:15 PM »
unfortunately legalize is around the world, is not easy to get in contact with him.
I believe that there are no problems if someone intends to compile mobileswitch.
However I will try to contact

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: usb-modeswitch for tcl4.0.1 is kindly requested..
« Reply #2 on: October 12, 2011, 04:24:21 PM »
i can confirm that usb-modeswitch from tcl3.8.4 works with tcl4.0.1 for me.
i use it for my umts-3g-modem and it works fine with 4.0.1.

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: usb-modeswitch for tcl4.0.1 is kindly requested..
« Reply #3 on: October 21, 2011, 10:52:59 AM »
hello,

after sticking my fonic usb into the usb port,
(see http://forum.tinycorelinux.net/index.php/topic,11509.0.html)

into tcl3.8.4 dmesg extract (end)
.....
phy0: Selected rate control algorithm 'iwl-agn-rs'
usb 2-1: new high speed USB device using ehci_hcd and address 4
scsi3 : usb-storage 2-1:1.0
scsi4 : usb-storage 2-1:1.1
usb 2-1: usbfs: process 2349 (usb_modeswitch) did not claim interface 0 before use
usb 2-1: USB disconnect, address 4
usb 2-1: new high speed USB device using ehci_hcd and address 5
scsi9 : usb-storage 2-1:1.4
scsi10 : usb-storage 2-1:1.5
scsi 9:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
scsi 10:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 9:0:0:0: Attached scsi CD-ROM sr1
sr 9:0:0:0: Attached scsi generic sg5 type 5
sd 10:0:0:0: Attached scsi generic sg6 type 0
sd 10:0:0:0: [sde] Attached SCSI removable disk
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
option 2-1:1.0: GSM modem (1-port) converter detected
usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
option 2-1:1.1: GSM modem (1-port) converter detected
usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
option 2-1:1.2: GSM modem (1-port) converter detected
usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
option 2-1:1.3: GSM modem (1-port) converter detected
usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems

into tcl4.0.2 dmesg extract (end)
[    7.926667] EXT4-fs (sdb1): mounted filesystem without journal. Opts: (null)
[  126.020196] usb 2-1: new high speed USB device number 4 using ehci_hcd
[  126.148317] scsi4 : usb-storage 2-1:1.0
[  126.148747] scsi5 : usb-storage 2-1:1.1
[  126.334262] usb 2-1: usbfs: process 1688 (usb_modeswitch) did not claim interface 0 before use
[  126.335383] usb 2-1: USB disconnect, device number 4
[  130.900180] usb 2-1: new high speed USB device number 5 using ehci_hcd
[  131.030934] scsi10 : usb-storage 2-1:1.4
[  131.031778] scsi11 : usb-storage 2-1:1.5
[  132.032161] scsi 10:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[  132.032295] scsi 11:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
[  132.036630] sr1: scsi-1 drive
[  132.036915] sr 10:0:0:0: Attached scsi CD-ROM sr1
[  132.037084] sr 10:0:0:0: Attached scsi generic sg5 type 5
[  132.037766] sd 11:0:0:0: Attached scsi generic sg6 type 0
[  132.041018] sd 11:0:0:0: [sde] Attached SCSI removable disk


the usb-modeswitch from 3.8.4 seems to work differently when used in 3.8.4 or in 4.0.2. It switch to 12d1:140c in both cases but tcl4.0.2 dont recognize it as modem. So, in 4.0.2 it dont work for me..
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: usb-modeswitch for tcl4.0.1 is kindly requested..
« Reply #4 on: October 21, 2011, 11:58:51 AM »
hi floppy,

in the beginning your modem is recognized fine as you can read in your first dmesg...
later the modem mode is switched to a mass storage mode,
that means your modem is deactivated and afterwards you can use your device as a normal data-usbstick.

in other distributions  i had to configurate the /etc/usb_modeswitch.conf,
perhaps it's enough to change the option:
DisableSwitching=0
to
DisableSwitching=1
and you get happy!?

on the other hand you could search for a /etc/usb_modeswitch.conf in the web that is suitable for your modem.
i found good help to get my modem run...
have a look to the homepage of usb_modeswitch http://www.draisberghof.de/usb_modeswitch/
« Last Edit: October 21, 2011, 12:03:53 PM by netnomad »

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: usb-modeswitch for tcl4.0.1 is kindly requested..
« Reply #5 on: October 21, 2011, 01:48:45 PM »
hello,
thanks for the advice. But I dont fully understand it.
the question would be perhaps: why the same usb_modeswitch.cfg file dont work in both tcl3.8.4 and tcl4.0.2?

And I forgot to inform
- there was an error at end of the apps loading during boot (last TCE loaded is wvdial): "rm /etc/pppd/peers.. is a directory". Perhaps this error message of wvdial is ok for usb-modewitch in tcl3.8.4.. but making mad usb-modeswitch in tcl4.0.2?
- it switched in both 3.8.4 and 4.0.2 to the modem id (this can be seen with lsusb 12d1:140c; but the dmesg dont indicate this is switched to a modem as indicated above in this thread)

Remark:
both usb-modeswitch TCE in tcl3.8.4 and tcl4.0.2 are the same (rely on usb-serial-2.33.3.3).
It mean, in the TCE directory for the tcl4.0.2 extensions, I have both usb-serial-2.33.3 and usb-serial-3.0.3).
Update: I deleted the usb-serial-3.0.3 but it had no effect.

By making "sudo wvdial pin", an error happens in 4.0.2 (not 3.8.4)
"cannot open /dev/ttyUSB0: no file or directory". 

Sorry .. but this usb-modeswitch is a good reason for not changing to 4.0.2 (as long I dont find a solution for making working the fonic modem).

Update: I move to http://forum.tinycorelinux.net/index.php/topic,11736.0.html because this is a problem solving (nomore a TCE request). THANKS.
« Last Edit: October 21, 2011, 03:55:49 PM by floppy »
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed