bfaye
2004-02-24 16:54:38 UTC
After doing more studying, I figured the code below for p_sanyo8100.p would
help better:
# 8100 Camera picture file reading
PACKET sanyocamresponse:
179 UNKNOWN +pad
PACKET sanyonumofcamerapicrequest:
* sanyomediaheader {'command': 0x09, 'subcommand': 0x0072} +header
2 UINT {'constant': 0xffff} +word
172 UNKNOWN +pad
PACKET sanyonumofcamerapicresponse:
172 UNKNOWN +pad
1 UINT numcampics
6 UNKNOWN +pad2
And this code to get the number of pics:
req=self.protocolclass.sanyonumofcamerapicrequest()
res=self.sendpbcommand(req,
self.protocolclass.sanyonumofcamerapicresponse)
self.log("got %d camera pics" % (res.numcampics-1,))
It seems command 0x09 and subcommand 0x0073 will get filenames. Sending a
packet like the following will get a response back with the filename at the
index specified at offset a8:
00000000 fa 00 09 73 00 ff ff 00 00 00 00 00 00 00 00 00 ...s............
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000a0 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
000000b0 00 00 00 f5 af 7e .....~
Billy
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
help better:
# 8100 Camera picture file reading
PACKET sanyocamresponse:
179 UNKNOWN +pad
PACKET sanyonumofcamerapicrequest:
* sanyomediaheader {'command': 0x09, 'subcommand': 0x0072} +header
2 UINT {'constant': 0xffff} +word
172 UNKNOWN +pad
PACKET sanyonumofcamerapicresponse:
172 UNKNOWN +pad
1 UINT numcampics
6 UNKNOWN +pad2
And this code to get the number of pics:
req=self.protocolclass.sanyonumofcamerapicrequest()
res=self.sendpbcommand(req,
self.protocolclass.sanyonumofcamerapicresponse)
self.log("got %d camera pics" % (res.numcampics-1,))
It seems command 0x09 and subcommand 0x0073 will get filenames. Sending a
packet like the following will get a response back with the filename at the
index specified at offset a8:
00000000 fa 00 09 73 00 ff ff 00 00 00 00 00 00 00 00 00 ...s............
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000a0 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................
000000b0 00 00 00 f5 af 7e .....~
Billy
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools