Answering backwards:

For the reset, I was speaking of this set of lines I found commented out
in probe.cc.  When I put them back in, btool began the work for my 8330
on my Jaunty laptop. I later found that opensync would not complete
however, so suspect resetting the device in the midst of a sync probably
aborts the transaction. I haven't made my way through the opensync code
to determine if they would create a new connection to the device (thus
invoking the the probe code below) more than at the start of the first
transaction.

        ProbeResult result;
        result.m_dev = devid;
        result.m_interface = InterfaceNumber;
        result.m_zeroSocketSequence = 0;

        // open device
        Device dev(devid);
//      dev.Reset();
//      sleep(5);

        //  make sure we're talking to the right config
        unsigned char cfg;



________________________________________________________________________
Here is the output of btool -tz, btool -t, and btool -t running under
gdb. Note that btool -t never returned and I aborted the run after 2
minutes. I can't reproduce the behavior in the debugger because it
always works under gdb!

Script started on Wed 18 Feb 2009 11:17:56 PM EST
poke...@pokeefe-laptop:/dev/bus/usb/007$ ls -l
total 0
crw-rw-r-- 1 root root    189, 768 2009-02-18 18:07 001
crw-rw-r-- 1 root root    189, 770 2009-02-18 18:07 003
crw-rw-r-- 1 root plugdev 189, 774 2009-02-18 23:17 007
poke...@pokeefe-laptop:/dev/bus/usb/007$ groups
pokeefe adm dialout cdrom floppy audio dip src video plugdev scanner fuse 
lpadmin admin netdev powerdev Debian-exim vboxusers usbusers
poke...@pokeefe-laptop:/dev/bus/usb/007$ btool -tz
Blackberry devices found:
Device ID: 0x8a47810. PIN: 3039712f, Description: RIM BlackBerry Device
Using device (PIN): 3039712f
Desktop: error getting command table
Sent packet:
    00000000: 06 01 0a 00 40 00 00 01 00 00                    ....@.....

Response packet:

Sent packet:
    00000000: 00 00 08 00 0b 06 01 08                          ........

Response packet:

Usb::Error caught: (-110, No error): Timeout in usb_bulk_read

poke...@pokeefe-laptop:/dev/bus/usb/007$ btool -tz
Blackberry devices found:
Device ID: 0x96b6810. PIN: 3039712f, Description: RIM BlackBerry Device
Using device (PIN): 3039712f
^C

poke...@pokeefe-laptop:/dev/bus/usb/007$ gdb btool
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run -t
Starting program: /usr/bin/btool -t
[Thread debugging using libthread_db enabled]
Blackberry devices found:
Device ID: 0x94bb810. PIN: 3039712f, Description: RIM BlackBerry Device
Using device (PIN): 3039712f
[New Thread 0xb7c696d0 (LWP 6043)]
[New Thread 0xb7c68b90 (LWP 6046)]
Database database:
    Database: 0x0 'WTLS Options' (records: 1)
    Database: 0x1 'Browser Options' (records: 1)
    Database: 0x2 'Key Store Options' (records: 1)
    Database: 0x3 'Address Book - All' (records: 1563)
    Database: 0x4 'KeyStoreManager' (records: 1)
    Database: 0x5 'Map Locations' (records: 0)
    Database: 0x6 'Theme Settings' (records: 1)
    Database: 0x7 'Random Pool' (records: 1)
    Database: 0x8 'Purged Messages' (records: 0)
    Database: 0x9 'Message List Options' (records: 1)
    Database: 0xa 'Setup Wizard Options' (records: 1)
    Database: 0xb 'Policy' (records: 0)
    Database: 0xc 'Address Book' (records: 1566)
    Database: 0xd 'Spell Check Options' (records: 1)
    Database: 0xe 'Attachment Options' (records: 1)
    Database: 0xf 'Location Based Services' (records: 0)
    Database: 0x10 'Profiles Options' (records: 1)
    Database: 0x11 'SlideshowToGoPrefs' (records: 1)
    Database: 0x12 'Trusted Key Store' (records: 43)
    Database: 0x13 'Phone Call Logs' (records: 5)
    Database: 0x14 'CustomWordsCollection' (records: 0)
    Database: 0x15 'Handheld Configuration' (records: 0)
    Database: 0x16 'Folders' (records: 0)
    Database: 0x17 'PasswordKeeper Options' (records: 1)
    Database: 0x18 'WAP Push Messages' (records: 0)
    Database: 0x19 'Memos' (records: 0)
    Database: 0x1a 'Options' (records: 12)
    Database: 0x1b 'Phone Hotlist' (records: 2)
    Database: 0x1c 'DocsToGoCommonPrefs' (records: 1)
    Database: 0x1d 'MemoPad Options' (records: 1)
    Database: 0x1e 'Quick Contacts' (records: 1)
    Database: 0x1f 'WordToGoPrefs' (records: 1)
    Database: 0x20 'Smart Card Options' (records: 1)
    Database: 0x21 'Calendar Options' (records: 1)
    Database: 0x22 'Memory Cleaner Options' (records: 1)
    Database: 0x23 'Application Permissions' (records: 1)
    Database: 0x24 'PIN Messages' (records: 0)
    Database: 0x25 'Tasks' (records: 1)
    Database: 0x26 'Phone Options' (records: 1)
    Database: 0x27 'Browser Bookmarks' (records: 4)
    Database: 0x28 'Device Options' (records: 0)
    Database: 0x29 'Browser Urls' (records: 4)
    Database: 0x2a 'Certificate Options' (records: 0)
    Database: 0x2b 'Calendar' (records: 25)
    Database: 0x2c 'Attachment Data' (records: 0)
    Database: 0x2d 'TLS Options' (records: 1)
    Database: 0x2e 'Browser Channels' (records: 0)
    Database: 0x2f 'Code Module Group Properties' (records: 40)
    Database: 0x30 'Categories' (records: 4)
    Database: 0x31 'Browser Messages' (records: 0)
    Database: 0x32 'Saved Email Messages' (records: 0)
    Database: 0x33 'Alarm Options' (records: 1)
    Database: 0x34 'Service Book' (records: 11)
    Database: 0x35 'Input Method Switcher Option' (records: 1)
    Database: 0x36 'Searches' (records: 6)
    Database: 0x37 'RMS Databases' (records: 2)
    Database: 0x38 'Messages' (records: 18)
    Database: 0x39 'Folder Id' (records: 1)
    Database: 0x3a 'Content Store' (records: 18)
    Database: 0x3b 'AutoText' (records: 108)
    Database: 0x3c 'MMS Messages' (records: 0)
    Database: 0x3d 'VideoRecorder Options' (records: 1)
    Database: 0x3e 'Tasks Options' (records: 1)
    Database: 0x3f 'Calendar - All' (records: 25)
    Database: 0x40 'SMS Messages' (records: 2)
    Database: 0x41 'Browser Push Options' (records: 1)
    Database: 0x42 'BlackBerry Messenger' (records: 1)
    Database: 0x43 'Voice Activated Dialing Options' (records: 1)
    Database: 0x44 'PasswordKeeper' (records: 0)
    Database: 0x45 'Secure Email Decision Maker' (records: 1)
    Database: 0x46 'Handheld Key Store' (records: 43)
    Database: 0x47 'LDAP Browser Options' (records: 1)
    Database: 0x48 'Camera Options' (records: 1)
    Database: 0x49 'File Explorer Options' (records: 1)
    Database: 0x4a 'MMS Options' (records: 1)
    Database: 0x4b 'Bluetooth Options' (records: 1)
    Database: 0x4c 'Handheld Agent' (records: 234)
    Database: 0x4d 'Default Service Selector' (records: 3)
    Database: 0x4e 'Browser Folders' (records: 2)
    Database: 0x4f 'Firewall Options' (records: 1)
    Database: 0x50 'Profiles' (records: 6)
    Database: 0x51 'Map Settings' (records: 1)
    Database: 0x52 'Browser Data Cache' (records: 4)
    Database: 0x53 'Diagnostic App Options' (records: 1)
    Database: 0x54 'PGP Key Store' (records: 0)
    Database: 0x55 'Recipient Cache' (records: 1)
    Database: 0x56 'AutoText Data Version' (records: 1)
    Database: 0x57 'Address Book Options' (records: 1)
    Database: 0x58 'Time Zones' (records: 88)

[Thread 0xb7c68b90 (LWP 6046) exited]

Program exited normally.
(gdb) quit
poke...@pokeefe-laptop:/dev/bus/usb/007$ exit

Script done on Wed 18 Feb 2009 11:23:06 PM EST



On Wed, 2009-02-18 at 17:26 -0500, Chris Frey wrote:

> On Mon, Feb 16, 2009 at 06:32:17PM -0500, Paul O'Keefe wrote:
> > Is this a timing problem? 
> > 
> > Consistently on my x86_64 (Intrepid) box, btool -t works.
> > 
> > On my i686 (32bit) Jaunty Laptop I can get btool to run under GDB after
> > plugging the device in, but can never get it to run outside of GDB. (OK,
> > once while composing this email, it ran, much to my disappointment, but
> > I was not able to repeat that.). My usual output from
> > "~/barry/tools/.libs/btool -t" is just the Device ID, the PIN and then
> > nothing else.  Chris, in an archived post you had indicated you added a
> > second device reset to the code. Was that just a one time patch or was
> > that integrated into the code? 
> > 
> > That means that the code correctly talks to the device and works as it
> > should. Here is the output from "btool -t" running under debug:
> > 
> > (*) Note, device unplugged and plugged in immediately before executing
> > the following
> 
> Hi Paul,
> 
> Welcome to Barry, and thanks for your persistence. :-)
> 
> This is a fascinating error, and I'm happy to know that it works for you
> on your 64 bit machine, so that kinda rules out any issues with the 
> Blackberry.
> 
> Could you try disabling the threaded btool behaviour?  Use the -z command
> option, and see if that changes things at all.
> 
> As for the "second device reset", was I talking about bcharge at the time?
> Bcharge resets the device (from a USB standpoint, not the Blackberry OS)
> as you plug it in, sometimes twice.  Btool can reset the device as well,
> but only if you ask (-X).  Syncing and backups do not reset the device, but
> syncing does involve a disconnect/reconnect.
> 
> Thanks,
> - Chris
> 
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Barry-devel mailing list
> Barry-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/barry-devel
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to