Hi *,
Hardware: Blackberry 9700 bold (OS6.0)
Barry version: 0.17.1
I am trying to do a RIM_JavaLoader deviceinfo with just raw commands. In
order to to this quick and dirty I changed the Controller::SelectMode
function, present in src/controller.cc, while using brawchannel as a base.
It is a dirty hack, I know, but it will be sufficient for my needs. It seems
that this will work but for some reason the communication gets stuck at a
certain point. I both sniffed the traffic of the bjavaloader and original
javaloader. The traffic is a bit different, but replaying both results in
the communication getting stuck at the same point. I send the following
commands:
try {
/* open USB channel: RIM_JavaLoader */
unsigned char command[] = { 0x00, 0x00, 0x18, 0x00, 0x07, 0xff,
0x00, 0x07, 0x52, 0x49, 0x4d, 0x5f, 0x4a, 0x61, 0x76, 0x61, 0x4c, 0x6f,
0x61, 0x64, 0x65, 0x72, 0x00, 0x00 };
Data toWrite(command, 24);
m_zero.Send(toWrite, response);
command = { 0x00, 0x00, 0x08, 0x00, 0x0a, 0x03, 0x00, 0x08 };
toWrite = Data(command, 8);
m_zero.Send(toWrite, response);
command = { 0x03, 0x00, 0x08, 0x00, 0x64, 0x00, 0x00, 0x00 };
toWrite = Data(command, 8);
m_zero.Send(toWrite, response);
command = { 0x03, 0x00, 0x08, 0x00, 0x70, 0x00, 0x01, 0x00 };
toWrite = Data(command, 8);
m_zero.Send(toWrite, response);
command = { 0x03, 0x00, 0x05, 0x00, 0x00 };
toWrite = Data(command, 5);
m_zero.Send(toWrite, response);
}
I tried to use "m_zero.Receive(response);" here and there, maybe multiple
responses interfere with the communication. However, no success. With using
the -v option the following output is generated:
BulkWrite to endpoint 0x2:
00000000: 00 00 18 00 07 ff 00 07 52 49 4d 5f 4a 61 76 61
........RIM_Java
00000010: 4c 6f 61 64 65 72 00 00 Loader..
SocketZero::RawReceive: Endpoint 82
Received:
00000000: 00 00 30 00 08 03 00 07 52 49 4d 5f 4a 61 76 61
..0.....RIM_Java
00000010: 4c 6f 61 64 65 72 00 00 00 00 00 00 01 00 08 00
Loader..........
00000020: 02 00 08 00 03 01 00 00 04 01 00 00 05 10 03 00
................
BulkWrite to endpoint 0x2:
00000000: 00 00 08 00 0a 03 00 08 ........
SocketZero::RawReceive: Endpoint 82
Received:
00000000: 00 00 08 00 10 03 00 08 ........
SocketZero::RawReceive: Endpoint 82
Received:
00000000: 00 00 0c 00 13 03 01 00 00 00 00 00 ............
SocketZero::RawReceive: Endpoint 82
Received:
00000000: 03 00 05 00 01 .....
BulkWrite to endpoint 0x2:
00000000: 03 00 08 00 64 00 00 00 ....d...
SocketZero::RawReceive: Endpoint 82
Received:
00000000: 00 00 0c 00 13 03 01 00 01 00 00 00 ............
SocketZero::RawReceive: Endpoint 82
Received:
00000000: 03 00 08 00 65 00 00 00 ....e...
BulkWrite to endpoint 0x2:
00000000: 03 00 08 00 70 00 01 00 ....p...
SocketZero::RawReceive: Endpoint 82
Received:
00000000: 00 00 0c 00 13 03 01 00 02 00 00 00 ............
And that is where it gets stuck. It does not even write the last command
defined. Anybody has an idea what the problem here is or what I could try?
Regards,
Nks
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel