Author Message

<  Everything Coding  ~  usb_modeswitch_1.1.2.-3 i386 debian.deb

PostPosted: Mon Aug 16, 2010 2:51 pm Reply with quote
Posts: 7 Joined: Mon Aug 16, 2010 2:26 pm
I was trying to resolve a general ZTE switching problem :IE when I connect a ZTE 636/626 the device switches back to storage mode

I can resolve this by using the usb_modeswitch from the command line using the vendor , product and messagecontent . as the " -c will not work

this fault may also lay with the new version of Sakis3g , the old version works

however looking further in to the usb_modeswitch file, I have found these lines first line separated for clarity

if {"$usb(idVendor)$usb(idProduct)" == "19d22000"} {

foreach dir {/etc/udev/rules.d /lib/udev/rules.d} {
catch {eval exec grep {"19d2.*2000.*eject"} [glob -nocomplain $dir/*]} result
if [regexp {(.*?):.*19d2} $result d ruleFile] {
Log "\nExisting ZTE rule found in $ruleFile. Exiting\n"

would changing the "19d22000" fix the problem and if so what would the ID's format be

forgot to mention / if I have the Ubuntu version 1.1.0-2 installed , would adding these lines to the file / work



PostPosted: Tue Aug 17, 2010 8:37 pm Reply with quote
Site Admin Posts: 6496 Joined: Sat Nov 03, 2007 12:30 am
The script you are referring to does not affect the manual operation of usb_modeswitch (the binary). It is only used in the automatic operation.
If you have no other rule handling 19d2:2000 in your rules folder, the passage you quote is not even called. Recheck this by running "grep 19d2 *" in the folder "/lib/udev/rules.d". Only the usb_modeswitch rules file should be found.
To be on the safe side, do the same check in "/etc/udev/rules.d".

If you are using the Sakis3G tool regularly, disable all usb_modeswitch switching because the tool will do it all for you.

For usb_modeswitch automatic operation also change your config file /etc/usb_modeswitch.d/19d2:2000 that it contains three MessageContent lines like this:


Display posts from previous:  Sort by:

All times are UTC+02:00
Page 1 of 1
2 posts
Users browsing this forum: No registered users and 1 guest
Search for:
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum