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

________________________________________________________________________
poke...@pokeefe-laptop:~/blackberry/barry/tools/.libs$ 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) set args -t
(gdb) run
Starting program: /home/pokeefe/blackberry/barry/tools/.libs/btool -t
[Thread debugging using libthread_db enabled]
Blackberry devices found:
Device ID: 0x94ab810. PIN: 3039712f, Description: RIM BlackBerry Device
Using device (PIN): 3039712f
[New Thread 0xb7b5b6d0 (LWP 14425)]
[New Thread 0xb7b5ab90 (LWP 14428)]
Database database:
    Database: 0x0 'Memos' (records: 1)
    Database: 0x1 'Trusted Key Store' (records: 43)
    Database: 0x2 'Browser Bookmarks' (records: 4)
    Database: 0x3 'Camera Options' (records: 1)
    Database: 0x4 'Tasks' (records: 1)
    Database: 0x5 'BlackBerry Messenger' (records: 1)
    Database: 0x6 'Browser Folders' (records: 2)
    Database: 0x7 'Browser Push Options' (records: 1)
    Database: 0x8 'PasswordKeeper Options' (records: 1)
    Database: 0x9 'Spell Check Options' (records: 1)
    Database: 0xa 'Categories' (records: 3)
    Database: 0xb 'File Explorer Options' (records: 1)
    Database: 0xc 'Bluetooth Options' (records: 1)
    Database: 0xd 'PGP Key Store' (records: 0)
    Database: 0xe 'Folder Id' (records: 1)
    Database: 0xf 'Setup Wizard Options' (records: 1)
    Database: 0x10 'Default Service Selector' (records: 3)
    Database: 0x11 'Policy' (records: 1)
    Database: 0x12 'Device Options' (records: 0)
    Database: 0x13 'Address Book' (records: 1439)
    Database: 0x14 'PIN Messages' (records: 0)
    Database: 0x15 'Theme Settings' (records: 1)
    Database: 0x16 'Calendar - All' (records: 11)
    Database: 0x17 'Service Book' (records: 11)
    Database: 0x18 'Message List Options' (records: 1)
    Database: 0x19 'Code Module Group Properties' (records: 40)
    Database: 0x1a 'TLS Options' (records: 1)
    Database: 0x1b 'Browser Data Cache' (records: 4)
    Database: 0x1c 'Attachment Options' (records: 1)
    Database: 0x1d 'Handheld Agent' (records: 238)
    Database: 0x1e 'SlideshowToGoPrefs' (records: 1)
    Database: 0x1f 'Searches' (records: 6)
    Database: 0x20 'Memory Cleaner Options' (records: 1)
    Database: 0x21 'Phone Call Logs' (records: 93)
    Database: 0x22 'RMS Databases' (records: 2)
    Database: 0x23 'Input Method Switcher Option' (records: 1)
    Database: 0x24 'SMS Messages' (records: 6)
    Database: 0x25 'Recipient Cache' (records: 1)
    Database: 0x26 'Phone Hotlist' (records: 30)
    Database: 0x27 'Browser Urls' (records: 8)
    Database: 0x28 'Handheld Key Store' (records: 43)
    Database: 0x29 'Messages' (records: 110)
    Database: 0x2a 'Profiles Options' (records: 1)
    Database: 0x2b 'AutoText' (records: 108)
    Database: 0x2c 'Address Book - All' (records: 1439)
    Database: 0x2d 'Options' (records: 12)
    Database: 0x2e 'Alarm Options' (records: 1)
    Database: 0x2f 'MMS Messages' (records: 0)
    Database: 0x30 'WTLS Options' (records: 1)
    Database: 0x31 'Calendar' (records: 10)
    Database: 0x32 'Certificate Options' (records: 0)
    Database: 0x33 'PasswordKeeper' (records: 0)
    Database: 0x34 'Location Based Services' (records: 0)
    Database: 0x35 'WAP Push Messages' (records: 0)
    Database: 0x36 'AutoText Data Version' (records: 1)
    Database: 0x37 'Tasks Options' (records: 1)
    Database: 0x38 'Browser Messages' (records: 0)
    Database: 0x39 'Quick Contacts' (records: 1)
    Database: 0x3a 'Attachment Data' (records: 1)
    Database: 0x3b 'Diagnostic App Options' (records: 1)
    Database: 0x3c 'Map Locations' (records: 0)
    Database: 0x3d 'Voice Activated Dialing Options' (records: 1)
    Database: 0x3e 'MemoPad Options' (records: 1)
    Database: 0x3f 'Purged Messages' (records: 0)
    Database: 0x40 'DocsToGoCommonPrefs' (records: 1)
    Database: 0x41 'Folders' (records: 0)
    Database: 0x42 'Content Store' (records: 25)
    Database: 0x43 'KeyStoreManager' (records: 1)
    Database: 0x44 'Saved Email Messages' (records: 0)
    Database: 0x45 'Application Permissions' (records: 1)
    Database: 0x46 'Phone Options' (records: 1)
    Database: 0x47 'CustomWordsCollection' (records: 0)
    Database: 0x48 'Browser Options' (records: 1)
    Database: 0x49 'Secure Email Decision Maker' (records: 1)
    Database: 0x4a 'Firewall Options' (records: 1)
    Database: 0x4b 'Smart Card Options' (records: 1)
    Database: 0x4c 'Address Book Options' (records: 1)
    Database: 0x4d 'Key Store Options' (records: 1)
    Database: 0x4e 'Browser Channels' (records: 0)
    Database: 0x4f 'Random Pool' (records: 1)
    Database: 0x50 'Time Zones' (records: 88)
    Database: 0x51 'Handheld Configuration' (records: 0)
    Database: 0x52 'Map Settings' (records: 2)
    Database: 0x53 'MMS Options' (records: 1)
    Database: 0x54 'Profiles' (records: 6)
    Database: 0x55 'WordToGoPrefs' (records: 1)
    Database: 0x56 'VideoRecorder Options' (records: 1)
    Database: 0x57 'Calendar Options' (records: 1)

[Thread 0xb7b5ab90 (LWP 14428) exited]

Program exited normally.
(gdb) 






--
Paul O'Keefe <[email protected]>
VOIP:    1-770-250-5165
FindMe: 1-678-967-4103   


On Sat, 2009-02-14 at 22:42 -0500, Paul O'Keefe wrote:

> Coinciding with the new BB 8300 came my upgrade to the -release
> version of Jaunty on my primary laptop. While in the midst of this I
> discovered Barry in the repository and took a look. Unfortunately I
> came up empty with error messages that look like they have already
> been covered on this list.
> 
> I pulled the latest version of Barry from the git/cvs repository and
> built it on my existing Intrepid box (64 bit) and all went well. 
> 
>       * Version of Barry 
>       * How you installed Barry
> But my primary laptop runs into the same errors with either the
> version from the Ubuntu repository (looks to be version 0.14) or the
> latest from the repository (0.15). Barry installed in both cases
> in /usr
> 
> breset    -- works ok. Detects device and appears to perform reset.
> bidentify -- works ok. Detects device and shows PIN
> bcharge -- appears to read and configure voltage correctly
> btool       -- detects device but does not allow reading databases
> (btool -t) 
> 
>       * The exact error message you get, if any, when you encounter
>         the problem 
>       * Any sample data that may help in reproducing the problem
> poke...@pokeefe-laptop:~/blackberry/barry/tools$ btool -t
> Blackberry devices found:
> Device ID: 0x8e56810. PIN: 3039712f, Description: RIM BlackBerry
> Device
> Using device (PIN): 3039712f
> Bad packet size. Packet: 26. DataSize(): 26. Required size: 44
>     00000000: 00 00 1a 00 09 ff 00 07 52 49 4d 20 44 65 73
> 6b  ........RIM Desk
>     00000010: 74 6f 70 00 00 00 00 00 02 00
> top.......
> 
> Barry::Error caught: Bad packet size. Packet: 26. DataSize(): 26.
> Required size: 44
> 
>       * Name and version of your operating system
> Ubuntu jaunty (development branch) 
>       * Architecture of your system (32 bit? 64 bit? Intel? iMac?)
> Linux pokeefe-laptop 2.6.28-7-generic #20-Ubuntu SMP Mon Feb 9
> 15:43:21 UTC 2009 i686 GNU/Linux
> 
> 
> The BB8300 does correctly sync/backup using version 0.15 from the
> repository on my x86_64/Intrepid box, and also correctly works with
> the BB supplied PocketMac software on an Intel based Macbook. There
> are no MSFT boxes around here to test the BB Supplied sync software
> but I imagine it will work fine since both Barry and PocketMac have
> demonstrated an ability to communicate to the BB device.
> 
> Barry 0.15 also appears to have a circular dependency on libbarry. It
> does not complete the compile until it can find it in /usr/lib. My
> compile cycle looks like this:
> 
> c/o
> buildgen.sh
> configure (boost, gui, opensync)
> make (fails with circular ref to libbarry and pkg-config note)
> sudo make install (puts libbarry in correct place)
> 
> wipe barry directory (can't do configure a second time due to file
> cleanup issue previously discussed on mailing list0
> buildgen.sh
> configure (boost, gui, opensync)
> make (succeeds)
> sudo make install
> 
> Let me know where I can dig in to help. I feel it's probably an
> upstream dependency problem introduced by Jaunty, just a question of
> tracking it down.
> --
> Paul O'Keefe <[email protected]>
> VOIP:    1-770-250-5165
> FindMe: 1-678-967-4103   
> 
> 
> ------------------------------------------------------------------------------
> 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 
> [email protected] 
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to