Re: [Barry-devel] upldif hangs

2013-02-19 Thread YuGiOhJCJ Mailing-List
On Tue, 19 Feb 2013 17:54:03 +0100
YuGiOhJCJ Mailing-List yugiohjcj-mailingl...@laposte.net wrote:

 Hello,
 
 This is what happened when I try to dump my contacts with upldif:
 $ sudo upldif -v
 
 
 The program hangs.
 My objective is to dump my contact list from the SIM card.
 
 I have a BlackBerry 8900 Curve.
 And other Barry Project programs work correctly with it:
 $ bjavaloader 
 missing command
 bjavaloader - Command line USB Blackberry Java Loader
 Copyright 2008-2009, Nicolas VIVIEN.
 Copyright 2005-2012, Net Direct Inc. (http://www.netdirect.ca/)
 Using: Barry library version 0.18.3 (little endian)
 $ sudo bjavaloader deviceinfo
 Hardware Id: 0x84001503
 PIN: 0x2625c92e
 OS Version:  0.0.0.0
 VM Version:  4.6.1.133
 Radio ID:0x0
 Vendor ID:   302
 [...]
 
 Is it me who use incorrectly the upldif program or a bug ?
 

I found a way to dump my contact list from the SIM card using the btool program 
instead of the upldif program:
$ btool -c dn  file.txt
(in fact, it can't be done directly, I need before this to go in my BlackBerry 
menu to copy my contact list from the SIM to the phone)
Then I can upload it using the upldif program:
$ upldif -u  file.txt

But if I read the help of the upldif program I can see that it should be able 
to dump my contact list:
$ upldif -h
 -uDo the upload.  If not specified, only dumps parsed
 LDIF data to stdout.

So, I think the behaviour of the upldif program is not the expected behaviour.

Is there a way to copy the contact list from/to the SIM directly ?
Can you correct the behaviour of the upldif program to be the expected 
behaviour ?

Thank you.
Regards.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel


Re: [Barry-devel] upldif hangs

2013-02-19 Thread Chris Frey
On Tue, Feb 19, 2013 at 07:09:59PM +0100, YuGiOhJCJ Mailing-List wrote:
  This is what happened when I try to dump my contacts with upldif:
  $ sudo upldif -v
  
  
  The program hangs.
  My objective is to dump my contact list from the SIM card.

Some clarification.  The upldif program is a tool meant to *write* to
your BlackBerry.  Since it has the potential of deleting all your
contacts and then writing what you give it, it does not actually
upload by default.  You have to explicitly give it the -u option.

If you want to *read* data from your blackberry, you want other tools,
such as btool, or bio.




 I found a way to dump my contact list from the SIM card using the btool 
 program instead of the upldif program:
 $ btool -c dn  file.txt
 (in fact, it can't be done directly, I need before this to go in my 
 BlackBerry menu to copy my contact list from the SIM to the phone)
 Then I can upload it using the upldif program:
 $ upldif -u  file.txt

I'm not aware of any direct access to the SIM card, but I haven't looked
too closely either.  If it doesn't show up by default in Address Book,
then it would either be in some other database (btool -t) or it may always
require the copy from SIM operation first.


 But if I read the help of the upldif program I can see that it should be able 
 to dump my contact list:
 $ upldif -h
  -uDo the upload.  If not specified, only dumps parsed
  LDIF data to stdout.
 
 So, I think the behaviour of the upldif program is not the expected behaviour.

Since upldif reads LDIF data on stdin, for safety's sake, it writes what
it thinks it just read to stdout for verification, and it writes it in
BlackBerry record style.  This way you can feed in your ldif data, and make
sure that upldif is parsing your data correctly (by viewing stdout) before
using the -u to blow away your existing contacts and upload.



 Is there a way to copy the contact list from/to the SIM directly ?

Not that I know of.


 Can you correct the behaviour of the upldif program to be the expected 
 behaviour ?

Perhaps I can clarify the man page.  upldif is not for reading, but for writing.

Thanks!
- Chris


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel