I'm not sure if my issue is at all related.

Also running Ubuntu 7.04, and had the .debs installed -- which worked fine for 
me.

As I began to develop on Barry elsewhere on the same machine I must have run 
into some sort of conflict -- I began to receive messages about inappropriate 
ioctl and and Permission denied and various oddness.

Even though I had already deleted the libs that came in the package so as to 
not interfere with development I went ahead an uninstalled the packages anyway.

I also moved the libraries from my development environment to install back into 
/usr (rebuild, re-install)...

Additionally, I cleared out *all* stray udev rules ( /etc/udev/rules.d ) 
relating to the blackberry and copied the new ones from CVS after creating the 
barry group per the barry udev README.  After running 'service udev restart' 
all the tools behave again for me.

Best,
~Miz

----- Original Message -----
From: "Dominik Feser" <[EMAIL PROTECTED]>
To: "Chris Frey" <[EMAIL PROTECTED]>
Cc: "Barry project development discussion" <[email protected]>
Sent: Tuesday, August 21, 2007 4:13:06 AM (GMT-0500) America/New_York
Subject: Re: [Barry-devel] Timeout in usb_bulk_read

hi chris!
i've installed the deb packages from the project page...
i found out that if I use btool -v the first time I get:


snip ------
usb_set_debug: Setting debugging level to 9 (on)
usb_os_init: Found USB VFS at /dev/bus/usb
usb_os_find_busses: Skipping non bus directory devices
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 003 on 004
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 018 on 002
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 001
device_desc loaded
bLength: 18
bDescriptorType: 1
bcdUSB: 272
bDeviceClass: 255
bDeviceSubClass: 255
bDeviceProtocol: 255
bMaxPacketSize0: 64
idVendor: 4042
idProduct: 1
bcdDevice: 260
iManufacturer: 1
iProduct: 2
iSerialNumber: 0
bNumConfigurations: 1

  config_desc #0 loaded
bLength: 9
bDescriptorType: 2
wTotalLength: 46
bNumInterfaces: 1
bConfigurationValue: 1
iConfiguration: 0
bmAttributes: 128
MaxPower: 250

    interface_desc #0 loaded
bLength: 9
bDescriptorType: 4
bInterfaceNumber: 0
bAlternateSetting: 0
bNumEndpoints: 4
bInterfaceClass: 255
bInterfaceSubClass: 255
bInterfaceProtocol: 255
iInterface: 0

      endpoint_desc #0 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 133
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 10
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 133
        pair.read = 133
        pair.type = 2
      endpoint_desc #1 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 5
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 10
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 5
        pair.write = 5
        pair.type = 2
        pair added! (read: 133,write: 5,type: 2)
      endpoint_desc #2 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 131
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 10
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 131
        pair.read = 131
        pair.type = 2
      endpoint_desc #3 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 3
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 10
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 3
        pair.write = 3
        pair.type = 2
        pair added! (read: 131,write: 3,type: 2)
    interface added to map with bInterfaceNumber: 0
  config added to map with bConfigurationValue: 1
BulkWrite to endpoint 3:
    00000000: 00 00 10 00 01 ff 00 00 a8 18 da 8d 6c 02 00
00  ............l...

BulkRead (131):
    00000000: 00 00 10 00 02 ff 00 00 a8 18 da 8d 6c 02 00
00  ............l...

BulkWrite to endpoint 3:
    00000000: 00 00 0c 00 05 ff 00 00 14 00 01
00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 20 00 06 ff 00 00 14 00 01 00 64 0d 2c
1c  .. .........d.,.
    00000010: a2 a4 46 69 d6 c6 01 f9 49 33 6a 3c 2c f0 9b
bb  ..Fi....I3j<,...

BulkWrite to endpoint 3:
    00000000: 00 00 0c 00 05 ff 00 01 08 00 04
00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 14 00 06 ff 00 01 08 00 04 00 07 00 00
00  ................
    00000010: 28 24 44 20                                      ($D 

BulkWrite to endpoint 3:
    00000000: 00 00 0c 00 05 ff 00 02 04 00 05
00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 0c 00 06 ff 00 02 00 00 00
00              ............

BulkWrite to endpoint 3:
    00000000: 00 00 0c 00 05 ff 00 03 04 00 06
00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 10 00 06 ff 00 03 04 00 06 00 00 01 00
00  ................

BulkWrite to endpoint 3:
    00000000: 00 00 0c 00 05 ff 00 04 04 00 07
00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 10 00 06 ff 00 04 04 00 07 00 00 02 00
00  ................

BulkWrite to endpoint 3:
    00000000: 00 00 0c 00 05 ff 00 05 04 00 08
00              ............

Socket::Send: Endpoint 131
Received:
    00000000: 00 00 0c 00 06 ff 00 05 00 00 00
00              ............

Using ReadEndpoint: 131
      WriteEndpoint: 3
usb_os_find_busses: Skipping non bus directory devices
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 003 on 004
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 018 on 002
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 001
Blackberry devices found:
Device ID: 0x8060998. PIN: 20442428
snip ------

but if I use it the next time I get:

snip ------
usb_set_debug: Setting debugging level to 9 (on)
usb_os_init: Found USB VFS at /dev/bus/usb
usb_os_find_busses: Skipping non bus directory devices
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 003 on 004
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 018 on 002
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 001
device_desc loaded
bLength: 18
bDescriptorType: 1
bcdUSB: 272
bDeviceClass: 255
bDeviceSubClass: 255
bDeviceProtocol: 255
bMaxPacketSize0: 64
idVendor: 4042
idProduct: 1
bcdDevice: 260
iManufacturer: 1
iProduct: 2
iSerialNumber: 0
bNumConfigurations: 1

  config_desc #0 loaded
bLength: 9
bDescriptorType: 2
wTotalLength: 46
bNumInterfaces: 1
bConfigurationValue: 1
iConfiguration: 0
bmAttributes: 128
MaxPower: 250

    interface_desc #0 loaded
bLength: 9
bDescriptorType: 4
bInterfaceNumber: 0
bAlternateSetting: 0
bNumEndpoints: 4
bInterfaceClass: 255
bInterfaceSubClass: 255
bInterfaceProtocol: 255
iInterface: 0

      endpoint_desc #0 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 133
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 10
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 133
        pair.read = 133
        pair.type = 2
      endpoint_desc #1 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 5
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 10
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 5
        pair.write = 5
        pair.type = 2
        pair added! (read: 133,write: 5,type: 2)
      endpoint_desc #2 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 131
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 10
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 131
        pair.read = 131
        pair.type = 2
      endpoint_desc #3 loaded
bLength: 7
bDescriptorType: 5
bEndpointAddress: 3
bmAttributes: 2
wMaxPacketSize: 64
bInterval: 10
bRefresh: 0
bSynchAddress: 0

      endpoint added to map with bEndpointAddress: 3
        pair.write = 3
        pair.type = 2
        pair added! (read: 131,write: 3,type: 2)
    interface added to map with bInterfaceNumber: 0
  config added to map with bConfigurationValue: 1
BulkWrite to endpoint 3:
    00000000: 00 00 10 00 01 ff 00 00 a8 18 da 8d 6c 02 00
00  ............l...

Usb::Error caught: Timeout in usb_bulk_read
snip ------

when I do a breset it works again...

does that help you?
I'd love to use especcially the pppob because I have a bb 8707...

bye and thanks
dominik



Am Dienstag, den 21.08.2007, 03:55 -0400 schrieb Chris Frey:
> On Mon, Aug 20, 2007 at 11:30:21AM +0200, Dominik Feser wrote:
> > hi list!
> > i just installed the barry .deb packages from the project site because I
> > fixed this charging problem with ubuntu feisty by compiling my own
> > kernel without this usb suspend thing.
> > when I try to run barrybackup I get the following output:
> 
> [snip]
> 
> > 
> >       endpoint added to map with bEndpointAddress: 3
> >         pair.write = 3
> >         pair.type = 2
> >         pair added! (read: 131,write: 3,type: 2)
> >     interface added to map with bInterfaceNumber: 0
> >   config added to map with bConfigurationValue: 1
> > BulkWrite to endpoint 3:
> >     00000000: 00 00 10 00 01 ff 00 00 a8 18 da 8d 6c 02 00
> > 00  ............l...
> > 
> > std::exception caught in main: 
> > Timeout in usb_bulk_read
> > 
> > does someone know how to fix this problem?
> 
> 
> Hi Dominik,
> 
> I looked at the debug output, but didn't see anything really out of the
> ordinary, except maybe that the endpoints were not being auto detected
> properly.
> 
> I've changed CVS to add an -e option to the btool program, to override
> the endpoints.
> 
> To try it, use "lsusb -v" to get the endpoints for your device
> (it would be great if you could post that lsusb output to the
> list as well).  Then try various combinations of endpoints
> with the -e option.
> 
> 
> In your output, you had the following endpoints: 133, 131, 5, 3,
> so you could try the following combinations:
> 
>       ./btool -e 83,5 -lv
>       ./btool -e 85,5 -lv
>       ./btool -e 85,3 -lv
>       ./btool -e 83,3 -lv
> 
> Let me know how it goes.
> 
> - Chris
> 
-- 
Viele Grüße aus Paderborn

Dominik Feser
--------------------------------------------------------------
Thisaut 4               email: [EMAIL PROTECTED]
33098 Paderborn         mobil: +49(0)176 2478 1825




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Barry-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/barry-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Barry-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to