spacer
spacer search

PHARscape
Phar enough!

Search
spacer
header
Main Menu
Home
Linux and 3G
Linux and 3G Forum
Python Stuff
Pictures
Astronomy
Links
Contacting Me
Search
Mambo License
About
Syndicate
Lunarpages.com Web Hosting
 
Home arrow Linux and 3G Forum

PHARscape
3G Datacards and Linux
 
  FAQFAQ    SearchSearch  RegisterRegister 
   Log inLog in 

USB_ModeSwitch, new version 0.9.4beta2

 
Post new topic   Reply to topic    PHARscape Forum Index -> Datacards and USB sticks Using the HSO driver
View previous topic :: View next topic  
Author Message
josh



Joined: 03 Oct 2006
Posts: 21

blank.gif
PostPosted: Wed Sep 12, 2007 10:09 am    Post subject: USB_ModeSwitch, new version 0.9.4beta2 Reply with quote

New in 0.9.4beta2:

- new approach to reliable switching, independent of timing
- (from 0.9.4beta) support for multiple devices (even same IDs)
- new devices added, as usual

Please test!

Very nice: in my system (udevd -V: 114) I don't have to care about delays and timing anymore!


New in 0.9.3beta:

- support for Option HSO devices/firmware (thanks, Paul!)
- more new devices (Novatel, ZTE et al.)
- updated documentation

It's at the new place:
http://www.draisberghof.de/usb_modeswitch/
Please test!


USB_ModeSwitch V. 0.9.2 is out:

- nine devices supported now (two of them experimental)
- new Huawei switching mode (thanks to Denis Sutter)
- timing issues under control (thanks to Lucas Benedicic)
- improved documentation on a revamped homepage
- a little forum for mode switching (no Pharscape competition!)

See
http://www.draisberghof.de/usb_modeswitch


New in 0.9.1beta:

- command line interface
- bug fixes
- new device "Option GlobeTrotter EXPRESS 7.2" (experimental)
- new device "Huawei E630" (experimental)
- updated docs (and web site)

If you had strange problems with the previous version, try this one!

It's at http://www.frederick-reid.com/usb_modeswitch/
 


Last edited by josh on Sat Mar 22, 2008 10:13 am; edited 3 times in total
Back to top
View user's profile Send private message
danmacklin



Joined: 11 Dec 2006
Posts: 5

blank.gif
PostPosted: Wed Sep 12, 2007 10:35 am    Post subject: Issue with Option GlobeTrotter EXPRESS 7.2 Reply with quote

Hi,

I have just upgraded to this latest version and still cannot get this card to work.

Any help would be appreciated.

This is the conf file I use :-

DefaultVendor= 0x05c6
DefaultProduct= 0x1000

TargetVendor= 0x0af0
TargetProduct= 0x6701

MessageEndpoint=0x05
MessageContent="55534243d0d78d850000000000000601000000000000000000000000000000"

ResponseEndpoint=0x84
NeedResponse=1


This is the output of the command :-

* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 0.9.1 beta (C) Josua Dietze 2007
* Works with libusb 0.1.12 and probably other versions

Looking for target device
OK, target device not found. Action required
Looking for default device
Ok, found default device. Prepare switching
Looking for active default driver to detach it
No driver found. Device probably not initialized. Trying to continue ...
Trying to send the message
OK, message successfully sent.
Trying to read the response
Reading the response returned error -110, trying to continue ...
-> See /proc/bus/usb/devices (or call lsusb) for changes. Bye


Thanks in advance

Dan
Back to top
View user's profile Send private message
josh



Joined: 03 Oct 2006
Posts: 21

blank.gif
PostPosted: Wed Sep 12, 2007 1:25 pm    Post subject: Reply with quote

 
Did you blacklist the "usb-storage" driver?
It should be attached automatically if you plug in your card.
If not, try to insmod the module. You should be able to use the flash disk of the device to make sure the USB communication is working.

The failed response is probably nothing to worry about.

Could you post the output of "lsusb" right after plugging in?
 
Back to top
View user's profile Send private message
madhatter



Joined: 25 Sep 2007
Posts: 1

portugal.gif
PostPosted: Tue Sep 25, 2007 4:04 pm    Post subject: How to read the usb sniffer log? Reply with quote

I,

sorry to bother you with this, but where exactly in the usbsniffer log (from windows) do I find the values for the:
MessageEndpoint
MessageContent
ResponseEndpoint

I can't find this variables in there, could you post a log example and from where in the log did you retrieve the values?

Thanks in advance.....
Back to top
View user's profile Send private message
josh



Joined: 03 Oct 2006
Posts: 21

blank.gif
PostPosted: Sun Sep 30, 2007 8:58 pm    Post subject: Re: How to read the usb sniffer log? Reply with quote

madhatter wrote:
I can't find this variables in there, could you post a log example and from where in the log did you retrieve the values?


I am about to set up a dedicated page with a Howto. Give me some more days ...

Just a quick hint: look at the END of the log (of the storage device), the last BULK_OR_INTERRUPT_TRANSFER with a notable hex sequence is highly suspicious of being the switch command. That's why the log ends after all.
You need the hex sequence, it's the "message".

The endpoint is listed like "[endpoint 0x00000005]" nearby. Just ignore the zeroes. In programming, 0x05, 0x5 and the example above don't differ in any way. The number of zeroes just shows the space reserved for that value.
Back to top
View user's profile Send private message
josh



Joined: 03 Oct 2006
Posts: 21

blank.gif
PostPosted: Sat Nov 03, 2007 7:56 am    Post subject: Reply with quote

USB_ModeSwitch V. 0.9.2 is out:

- nine devices supported now (two of them experimental)
- new Huawei switching mode (thanks to Denis Sutter)
- timing issues under control (thanks to Lucas Benedicic)
- improved documentation on a revamped homepage
- a little forum for mode switching (no Pharscape competition!)

See
http://www.draisberghof.de/usb_modeswitch
Back to top
View user's profile Send private message
Danni



Joined: 06 Sep 2007
Posts: 3
Location: England

uk.gif
PostPosted: Wed Nov 07, 2007 3:48 pm    Post subject: Reply with quote

Urg... I cannot get this.

It says it's not a valid bzip2 file:

danni@Annika:~$ tar xjf usb_modeswitch-0.9.2.tar.bz2
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error exit delayed from previous errors
danni@Annika:~$

I've tried downloading it several times, and same error. Other bzip2 files extract fine.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
josh



Joined: 03 Oct 2006
Posts: 21

blank.gif
PostPosted: Sun Dec 30, 2007 4:39 pm    Post subject: Reply with quote

@Danni:
I don't really know how to help ... I checked the file, and no one else has had any problems ...
Back to top
View user's profile Send private message
Danni



Joined: 06 Sep 2007
Posts: 3
Location: England

uk.gif
PostPosted: Tue Feb 05, 2008 10:08 pm    Post subject: Reply with quote

It's odd- extracted fine on Windows using 7-zip.

I guess my computer doesn't like it.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
josh



Joined: 03 Oct 2006
Posts: 21

blank.gif
PostPosted: Sat Mar 22, 2008 10:18 am    Post subject: USB_ModeSwitch, new version 0.9.4beta2 Reply with quote

See the top entry for details ...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PHARscape Forum Index -> Datacards and USB sticks Using the HSO driver All times are GMT
Page 1 of 1

 
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


phpBB component by Adam van Dongen. Based on phpBB © 2001, 2002 phpBB Group
spacer

 
Copyright 2000 - 2005 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License.
spacer