Hi Marek,

On 15/11/2010 15:41, Marek Hansess wrote:
> Hey,
>
> I am developing on top of Barry project to add support for other USB 
> channels. I noticed (via the BlackBerry Engineering Screen) that some 
> utilities like the Desktop Manager is USB authenticated - whatever 
> that means - (the is_Authenticated value is set to True in the 
> Engineering Screen), while some command line utilities are not 
> authenticated (is_Authenticated is set to False).
When you say other USB channels, are these channels that are opened on 
the BlackBerry by software you control (using 
net.rim.device.api.system.USBPort or javax.microedition.io.Connector)? 
Or is it a mode which is already available on the device?

Also are you trying to use the RawChannel class provided by Barry in an 
application you're writing or are you trying to add support for a new 
mode to Barry?
> I'm developing a module to communicate with one of the USB channels 
> and after successfully opening the channel, I receive the following 
> message from the device over USB: "You must authenticate" whenever I 
> try to send any commands. I sniffed the USB traffic and looked for any 
> "magic packets" that cause is_Authenticate to be True, but got no luck 
> so far.
Would it be possible to get the output from Barry with verbose debugging 
enabled? It'd be really helpful to see how far it's getting in the 
negotiation.

You can do this by passing 1 as the first argument to Barry::Init (and 
you'll need to pass a stream to output the data on as the second argument).
> I'm working with 9700 and the device is not password protected.
Ok. Device password would have been my first guess so it's good to rule 
that out. :)
> Sample of USB response packet:
>
> 1b 00 00 00 1b 25 00 00 59 6f 75 20 6d 75 73 74 20 61 75 74 68 65 6e 
> 74 69 63 61 74 65 2e 00.....%..You must authenticate..
>
> Anyone experienced this problem before?
I don't remember ever seeing anything saying 'You must authenticate' in 
plain text. Is that the full USB packet as seen by Barry (from 
Device::BulkRead) ? Or is it the full packet at a higher or lower level 
in the protocol stack?

It looks a bit strange to be a straightforward BlackBerry USB packet as 
it doesn't have the usual socket followed by size header. So I assume 
it's either higher or lower in the protocol stack, but I'm not sure 
which way.

Regards,

Toby

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to