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"
SafeExit


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

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



regards

alexfish


Offline
PostPosted: Tue Aug 17, 2010 8:37 pm Reply with quote
Site Admin Posts: 6423 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:
Code:
MessageContent="5553424312345678000000000000061e000000000000000000000000000000"
MessageContent2="5553424312345679000000000000061b000000020000000000000000000000"
MessageContent3="55534243123456702000000080000c85010101180101010101000000000000"
NeedResponse=1



Offline

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