Author Message

<  Everything Coding  ~  usb_modeswitch-1.0.2 bug with bandluxe C100s ??

PostPosted: Thu Jul 23, 2009 11:02 am Reply with quote
Posts: 5 Joined: Wed Jun 24, 2009 4:55 am
quick question..
why in version-1.0.2, the "usb_clear_halt" function is commented by the Author ?

int switchSendMessage () {
   int message_length, ret;
//   usb_clear_halt(devh, MessageEndpoint);
   SHOW_PROGRESS("Trying to send the message to endpoint 0x%02x ...\n", MessageEndpoint);

It seems that by omitting that function before write_bulk, bandluxe card C100s fail to do modeswitch. Previously, the Bandluxe C100s works just fine with ver 0.9.5, because the line "usb_clear_halt" still exist.

Why ? Is the "usb_clear_halt" have compatibility problem with other cards, so in newer version it is ommitted ?

PostPosted: Fri Jul 24, 2009 2:37 pm Reply with quote
Site Admin Posts: 6496 Joined: Sat Nov 03, 2007 12:30 am
The first clear_halt was inserted together with the second one to solve problems with the USB/udev system. It turned out that on my setup only one call - after the switch - was necessary, so in a cleanup sweep I later took it out.

Since it does not seem to interfere with my setup either, I will enable it again in the next version. If there are other devices that don't like it, I can alway make it an option.

Thanks for reporting !


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