Looks very similar to the problem I was having on my 8330. I did three things that made it work:
(1) Run it under debug. Put a breakpoint at Usb::Device::Write and loop through. You can just run to the breakpoint, then continue to run again. Each time it writes it will pause. (2) If 1 works, try inserting a sleep at the top of write for 250000 micro seconds. On linux it's defined in unistd.h and is called usleep. I have a FreeBSD system in a VM and will check when I'm back in front of it (3) My end solution was to put the sleep at the end of the usb_clear_halt call which solved my device hangup. Since you have an 83xx device your comment is very interesting because it duplicates the "device lockup" behavior I was seeing and the same with the "entering desktop mode" (but never getting there) Sent from my BlackBerry -----Original Message----- From: Bill Paul <wp...@windriver.com> Date: Sat, 28 Feb 2009 17:10:10 To: <barry-devel@lists.sourceforge.net> Subject: [Barry-devel] btool/bjavaloader both hang on FreeBSD, but pppob works fine The main utility I wanted to use from barry was pppob, so that I could tether my FreeBSD machine to my Curve 8320. This works fine. I didn't really have any burning need for the other tools, so I pretty much ignored them. But then I decided to try btool just for kicks, and I found that it just seems to hang. It can identify my Blackberry and read its PIN, but after trying to switch into desktop mode, it just gets stuck. I put a copy of the debug out from btool here: http://www.freebsd.org/~wpaul/bb/btool.txt This is from running btool -z -v -t. At the end, it seems to receive one block of data back from the Blackberry, but then nothing else happens. I have to ^C the program, or else it will time out and exit on its own after a minute or so. Also, once this happens, it seems to put the Blackberry in a strange state, and I have to unplug/replug the USB cable to make it work properly again. The odd behaviors I've seen are: - After I run btool -t the first time, running btool again fails to talk to the device at all: it can't read the device type or anything. If I run btool a _third_ time, it gets to the point where it requests Desktop mode again, but this time it there is no response. - After I run btool -t the first time, btidentify also time out. If I run btidentify a subsequent time, it works. - After I run btool -t the first time, pppob will never work again, no matter how many times I try it: I have to unplug/replug the Blackberry, then pppob will work. I don't have a Linux system handy, so I don't really know what a successful debug output looks like, so I can't tell what could be going wrong. One thing that I noticed is that the BSD port of libusb does not support the usb_clear_halt() method (it's a no-op). I modified usbwrap.cc to use usb_control_msg() to issue a clear halt command directly, but this didn't help matters, so I don't think this is the problem. Anyone have any idea what could be going wrong here? I'm using the latest code from cvs. It builds ok, and pppob runs fine, as does btidentify. But neither of these require Desktop mode to work. During my experiments with the Blackberry via bluetooth, I stumbled onto the Desktop bluetooth descriptor -- I was looking for the dialup networking descriptor and connected to the wrong one by mistake. I noticed that when I did this, a message came up on the Blackberry's screen indicating that Desktop mode was active. I don't know if it matters, but I have never seen this screen come up when trying to use btool. -Bill -- ============================================================================= -Bill Paul (510) 749-2329 | Senior Engineer, Master of Unix-Fu wp...@windriver.com | Wind River Systems ============================================================================= "I put a dollar in a change machine. Nothing changed." - George Carlin ============================================================================= ------------------------------------------------------------------------------ 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