Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

"Vita wants protocol version 01800010 while we only support 01500010" #37

Open
michael-myers opened this issue Aug 14, 2014 · 0 comments

Comments

@michael-myers
Copy link

It looks like the current version of libVitaMTP might not be protocol compatible with the protocol version used by the current Vita system software (3.18). I've copy/pasted my debug output below. I hit ctrl-C when it appeared to cease responding after a couple of minutes.

$ opencma -p photos -v videos -m music -a apps -l 4
OpenCMA 2.1 Beta
libVitaMTP Version: 2.2
Protocol Max Version: 01500010
main: Waiting for Vita to connect...
connect_usb: Looking for USB device...
PTP: Opening session
VitaMTP ptp_usb_sendreq[536]: REQUEST: 0x1002, Open session
VitaMTP ptp_write_func[329]: USB OUT==>
00: 10 00 00 00 01 00 02 10 00 00 00 00 01 00 00 00 | ................
VitaMTP ptp_usb_getresp[875]: RESPONSE: VitaMTP ptp_read_func[161]: Remaining size to read: 0x0200 bytes
VitaMTP ptp_read_func[180]: Reading in 0x0200 bytes
VitaMTP ptp_read_func[189]: Result of read: 0x0000 (12 bytes)
VitaMTP ptp_read_func[194]: <==USB IN
0: 0C 00 00 00 03 00 1E 20 00 00 00 00 | ....... ....
VitaMTP ptp_usb_getresp[894]: 201e
main: Vita connected: id 03274168540531458
Type in 'help' for list of commands.
VitaMTP ptp_usb_sendreq[536]: REQUEST: 0x9511, Unknown (9511)
VitaMTP ptp_write_func[329]: USB OUT==>
0: 0C 00 00 00 01 00 11 95 01 00 00 00 | ............
VitaMTP ptp_usb_getdata[702]: GET DATA PHASE
VitaMTP ptp_read_func[161]: Remaining size to read: 0x0200 bytes
VitaMTP ptp_read_func[180]: Reading in 0x0200 bytes
VitaMTP ptp_read_func[189]: Result of read: 0x0000 (421 bytes)
VitaMTP ptp_read_func[194]: <==USB IN
000: A5 01 00 00 02 00 11 95 01 00 00 00 95 01 00 00 | ................
010: 3C 56 49 54 41 49 6E 66 6F 72 6D 61 74 69 6F 6E | <VITAInformation
020: 20 72 65 73 70 6F 6E 64 65 72 56 65 72 73 69 6F | responderVersio
030: 6E 3D 22 33 2E 31 38 22 20 70 72 6F 74 6F 63 6F | n="3.18" protoco
040: 6C 56 65 72 73 69 6F 6E 3D 22 30 31 38 30 30 30 | lVersion="018000
050: 31 30 22 20 6F 6E 6C 69 6E 65 49 64 3D 22 46 72 | 10" onlineId="Fr
060: 69 73 74 6C 65 22 20 6D 6F 64 65 6C 49 6E 66 6F | istle" modelInfo
070: 3D 22 50 43 48 30 31 30 30 31 5A 41 30 31 22 20 | ="PCH01001ZA01"
080: 74 69 6D 65 7A 6F 6E 65 3D 22 31 32 22 3E 3C 70 | timezone="12"><p
090: 68 6F 74 6F 54 68 75 6D 62 20 74 79 70 65 3D 22 | hotoThumb type="
0A0: 30 22 20 63 6F 64 65 63 54 79 70 65 3D 22 31 37 | 0" codecType="17
0B0: 22 20 77 69 64 74 68 3D 22 32 31 33 22 20 68 65 | " width="213" he
0C0: 69 67 68 74 3D 22 31 32 30 22 2F 3E 3C 76 69 64 | ight="120"/><vid
0D0: 65 6F 54 68 75 6D 62 20 74 79 70 65 3D 22 31 22 | eoThumb type="1"
0E0: 20 63 6F 64 65 63 54 79 70 65 3D 22 35 22 20 77 | codecType="5" w
0F0: 69 64 74 68 3D 22 32 31 33 22 20 68 65 69 67 68 | idth="213" heigh
100: 74 3D 22 31 32 30 22 20 64 75 72 61 74 69 6F 6E | t="120" duration
110: 3D 22 31 35 22 2F 3E 3C 6D 75 73 69 63 54 68 75 | ="15"/><musicThu
120: 6D 62 20 74 79 70 65 3D 22 30 22 20 63 6F 64 65 | mb type="0" code
130: 63 54 79 70 65 3D 22 31 37 22 20 77 69 64 74 68 | cType="17" width
140: 3D 22 31 39 32 22 20 68 65 69 67 68 74 3D 22 31 | ="192" height="1
150: 39 32 22 2F 3E 3C 67 61 6D 65 54 68 75 6D 62 20 | 92"/><gameThumb
160: 74 79 70 65 3D 22 30 22 20 63 6F 64 65 63 54 79 | type="0" codecTy
170: 70 65 3D 22 31 37 22 20 77 69 64 74 68 3D 22 31 | pe="17" width="1
180: 39 32 22 20 68 65 69 67 68 74 3D 22 31 39 32 22 | 92" height="192"
190: 2F 3E 3C 2F 56 49 54 41 49 6E 66 6F 72 6D 61 74 | /></VITAInformat
1A0: 69 6F 6E 3E 00 | ion>.
VitaMTP ptp_usb_getresp[875]: RESPONSE: VitaMTP ptp_read_func[161]: Remaining size to read: 0x0200 bytes
VitaMTP ptp_read_func[180]: Reading in 0x0200 bytes
VitaMTP ptp_read_func[189]: Result of read: 0x0000 (12 bytes)
VitaMTP ptp_read_func[194]: <==USB IN
0: 0C 00 00 00 03 00 01 20 01 00 00 00 | ....... ....
VitaMTP ptp_usb_getresp[894]: 2001
main: Vita wants protocol version 01800010 while we only support 01500010. Attempting to continue.
VitaMTP ptp_usb_sendreq[536]: REQUEST: 0x951c, Unknown (951c)
VitaMTP ptp_write_func[329]: USB OUT==>
0: 0C 00 00 00 01 00 1C 95 02 00 00 00 | ............
VitaMTP ptp_usb_senddata[590]: SEND DATA PHASE
VitaMTP ptp_write_func[329]: USB OUT==>
00: DB 00 00 00 02 00 1C 95 02 00 00 00 CB 00 00 00 | ................
10: 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 | .<initiato
40: 72 49 6E 66 6F 20 70 6C 61 74 66 6F 72 6D 54 79 | rInfo platformTy
50: 70 65 3D 22 50 43 22 20 70 6C 61 74 66 6F 72 6D | pe="PC" platform
60: 53 75 62 74 79 70 65 3D 22 55 6E 6B 6E 6F 77 6E | Subtype="Unknown
70: 22 20 6F 73 56 65 72 73 69 6F 6E 3D 22 30 2E 30 | " osVersion="0.0
80: 22 20 76 65 72 73 69 6F 6E 3D 22 32 2E 32 22 20 | " version="2.2"
90: 70 72 6F 74 6F 63 6F 6C 56 65 72 73 69 6F 6E 3D | protocolVersion=
A0: 22 30 31 38 30 30 30 31 30 22 20 6E 61 6D 65 3D | "01800010" name=
B0: 22 4F 70 65 6E 43 4D 41 20 32 2E 31 20 42 65 74 | "OpenCMA 2.1 Bet
C0: 61 22 20 61 70 70 6C 69 63 61 74 69 6F 6E 54 79 | a" applicationTy
D0: 70 65 3D 22 35 22 20 2F 3E 0A 00 | pe="5" />..
VitaMTP ptp_usb_getresp[875]: RESPONSE: VitaMTP ptp_read_func[161]: Remaining size to read: 0x0200 bytes
VitaMTP ptp_read_func[180]: Reading in 0x0200 bytes
VitaMTP ptp_read_func[189]: Result of read: 0x0000 (16 bytes)
VitaMTP ptp_read_func[194]: <==USB IN
00: 10 00 00 00 03 00 01 20 02 00 00 00 00 00 00 00 | ....... ........
VitaMTP ptp_usb_getresp[894]: 2001
VitaMTP ptp_usb_sendreq[536]: REQUEST: 0x953b, Unknown (953b)
VitaMTP ptp_write_func[329]: USB OUT==>
0: 0C 00 00 00 01 00 3B 95 03 00 00 00 | ......;.....
VitaMTP ptp_usb_getdata[702]: GET DATA PHASE
VitaMTP ptp_read_func[161]: Remaining size to read: 0x0200 bytes
VitaMTP ptp_read_func[180]: Reading in 0x0200 bytes
VitaMTP ptp_read_func[189]: Result of read: 0x0000 (512 bytes)
VitaMTP ptp_read_func[194]: <==USB IN
000: C2 05 00 00 02 00 3B 95 03 00 00 00 B2 05 00 00 | ......;.........
010: 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 | <capabilit
040: 79 49 6E 66 6F 20 76 65 72 73 69 6F 6E 3D 22 31 | yInfo version="1
050: 2E 30 22 3E 3C 66 75 6E 63 74 69 6F 6E 20 74 79 | .0"><function ty
060: 70 65 3D 22 70 68 6F 74 6F 22 3E 3C 66 6F 72 6D | pe="photo"><form
070: 61 74 20 63 6F 6E 74 65 6E 74 54 79 70 65 3D 22 | at contentType="
080: 69 6D 61 67 65 2F 6A 70 65 67 22 20 2F 3E 3C 66 | image/jpeg" /><f
090: 6F 72 6D 61 74 20 63 6F 6E 74 65 6E 74 54 79 70 | ormat contentTyp
0A0: 65 3D 22 69 6D 61 67 65 2F 70 6E 67 22 20 2F 3E | e="image/png" />
0B0: 3C 66 6F 72 6D 61 74 20 63 6F 6E 74 65 6E 74 54 | <format contentT
0C0: 79 70 65 3D 22 69 6D 61 67 65 2F 74 69 66 66 22 | ype="image/tiff"
0D0: 20 2F 3E 3C 66 6F 72 6D 61 74 20 63 6F 6E 74 65 | /><format conte
0E0: 6E 74 54 79 70 65 3D 22 69 6D 61 67 65 2F 62 6D | ntType="image/bm
0F0: 70 22 20 2F 3E 3C 66 6F 72 6D 61 74 20 63 6F 6E | p" /><format con
100: 74 65 6E 74 54 79 70 65 3D 22 69 6D 61 67 65 2F | tentType="image/
110: 67 69 66 22 20 2F 3E 3C 66 6F 72 6D 61 74 20 63 | gif" /><format c
120: 6F 6E 74 65 6E 74 54 79 70 65 3D 22 69 6D 61 67 | ontentType="imag
130: 65 2F 78 2D 6D 70 6F 22 20 2F 3E 3C 66 6F 72 6D | e/x-mpo" /><form
140: 61 74 20 63 6F 6E 74 65 6E 74 54 79 70 65 3D 22 | at contentType="
150: 76 69 64 65 6F 2F 78 2D 70 68 6F 74 6F 63 61 6D | video/x-photocam
160: 2D 6D 6F 76 69 65 22 20 2F 3E 3C 6F 70 74 69 6F | -movie" /><optio
170: 6E 20 6E 61 6D 65 3D 22 70 68 79 73 69 63 61 6C | n name="physical
180: 56 69 65 77 22 20 2F 3E 3C 6F 70 74 69 6F 6E 20 | View" /><option
190: 6E 61 6D 65 3D 22 70 6C 61 79 6C 69 73 74 22 20 | name="playlist"
1A0: 2F 3E 3C 6F 70 74 69 6F 6E 20 6E 61 6D 65 3D 22 | /><
1C0: 2F 66 75 6E 63 74 69 6F 6E 3E 3C 66 75 6E 63 74 | /function><funct
1D0: 69 6F 6E 20 74 79 70 65 3D 22 6D 75 73 69 63 22 | ion type="music"
1E0: 3E 3C 66 6F 72 6D 61 74 20 63 6F 6E 74 65 6E 74 | ><format content
1F0: 54 79 70 65 3D 22 61 75 64 69 6F 2F 6D 70 33 22 | Type="audio/mp3"
VitaMTP ptp_read_func[161]: Remaining size to read: 0x03c2 bytes
VitaMTP ptp_read_func[180]: Reading in 0x03c2 bytes
VitaMTP ptp_read_func[189]: Result of read: 0x0000 (962 bytes)
VitaMTP ptp_read_func[194]: <==USB IN
000: 20 2F 3E 3C 66 6F 72 6D 61 74 20 63 6F 6E 74 65 | /><format conte
010: 6E 74 54 79 70 65 3D 22 61 75 64 69 6F 2F 6D 70 | ntType="audio/mp
020: 34 22 20 63 6F 64 65 63 3D 22 41 41 43 22 20 2F | 4" codec="AAC" /
030: 3E 3C 66 6F 72 6D 61 74 20 63 6F 6E 74 65 6E 74 | ><format content
040: 54 79 70 65 3D 22 61 75 64 69 6F 2F 77 61 76 22 | Type="audio/wav"
050: 20 63 6F 64 65 63 3D 22 4C 50 43 4D 22 20 2F 3E | codec="LPCM" />
060: 3C 6F 70 74 69 6F 6E 20 6E 61 6D 65 3D 22 70 6C | <optio
080: 6E 20 6E 61 6D 65 3D 22 76 69 65 77 52 65 66 72 | n name="viewRefr
090: 65 73 68 22 20 2F 3E 3C 6F 70 74 69 6F 6E 20 6E | esh" /><option n
0A0: 61 6D 65 3D 22 63 6F 6E 74 65 6E 74 73 53 65 61 | ame="contentsSea
0B0: 72 63 68 22 20 2F 3E 3C 2F 66 75 6E 63 74 69 6F | rch" /></functio
0C0: 6E 3E 3C 66 75 6E 63 74 69 6F 6E 20 74 79 70 65 | n><function type
0D0: 3D 22 76 69 64 65 6F 22 3E 3C 66 6F 72 6D 61 74 | ="video"><format
0E0: 20 63 6F 6E 74 65 6E 74 54 79 70 65 3D 22 76 69 | contentType="vi
0F0: 64 65 6F 2F 6D 70 34 22 20 76 69 64 65 6F 43 6F | deo/mp4" videoCo
100: 64 65 63 3D 22 4D 50 45 47 34 22 20 61 75 64 69 | dec="MPEG4" audi
110: 6F 43 6F 64 65 63 3D 22 41 41 43 22 20 2F 3E 3C | oCodec="AAC" /><
120: 66 6F 72 6D 61 74 20 63 6F 6E 74 65 6E 74 54 79 | format contentTy
130: 70 65 3D 22 76 69 64 65 6F 2F 6D 70 34 22 20 76 | pe="video/mp4" v
140: 69 64 65 6F 43 6F 64 65 63 3D 22 41 56 43 22 20 | ideoCodec="AVC"
150: 61 75 64 69 6F 43 6F 64 65 63 3D 22 41 41 43 22 | audioCodec="AAC"
160: 20 2F 3E 3C 66 6F 72 6D 61 74 20 63 6F 6E 74 65 | /><format conte
170: 6E 74 54 79 70 65 3D 22 76 69 64 65 6F 2F 78 2D | ntType="video/x-
180: 6D 61 72 6C 69 6E 2D 65 73 74 22 20 2F 3E 3C 66 | marlin-est" /><f
190: 6F 72 6D 61 74 20 63 6F 6E 74 65 6E 74 54 79 70 | ormat contentTyp
1A0: 65 3D 22 76 69 64 65 6F 2F 78 2D 6D 61 72 6C 69 | e="video/x-marli
1B0: 6E 2D 76 6F 64 22 20 2F 3E 3C 6F 70 74 69 6F 6E | n-vod" /><option
1C0: 20 6E 61 6D 65 3D 22 70 68 79 73 69 63 61 6C 56 | name="physicalV
1D0: 69 65 77 22 20 2F 3E 3C 6F 70 74 69 6F 6E 20 6E | iew" /><option n
1E0: 61 6D 65 3D 22 76 69 65 77 52 65 66 72 65 73 68 | ame="viewRefresh
1F0: 22 20 2F 3E 3C 2F 66 75 6E 63 74 69 6F 6E 3E 3C | " /><
200: 66 75 6E 63 74 69 6F 6E 20 74 79 70 65 3D 22 67 | function type="g
210: 61 6D 65 22 3E 3C 66 6F 72 6D 61 74 20 63 6F 6E | ame"><format con
220: 74 65 6E 74 54 79 70 65 3D 22 76 69 74 61 41 70 | tentType="vitaAp
230: 70 22 20 2F 3E 3C 66 6F 72 6D 61 74 20 63 6F 6E | p" /><format con
240: 74 65 6E 74 54 79 70 65 3D 22 50 53 50 47 61 6D | tentType="PSPGam
250: 65 22 20 2F 3E 3C 66 6F 72 6D 61 74 20 63 6F 6E | e" /><format con
260: 74 65 6E 74 54 79 70 65 3D 22 50 53 50 53 61 76 | tentType="PSPSav
270: 65 44 61 74 61 22 20 2F 3E 3C 66 6F 72 6D 61 74 | eData" /><format
280: 20 63 6F 6E 74 65 6E 74 54 79 70 65 3D 22 50 53 | contentType="PS
290: 47 61 6D 65 22 20 2F 3E 3C 66 6F 72 6D 61 74 20 | Game" /><format
2A0: 63 6F 6E 74 65 6E 74 54 79 70 65 3D 22 50 53 4D | contentType="PSM
2B0: 41 70 70 22 20 2F 3E 3C 2F 66 75 6E 63 74 69 6F | App" /></functio
2C0: 6E 3E 3C 66 75 6E 63 74 69 6F 6E 20 74 79 70 65 | n><function type
2D0: 3D 22 62 61 63 6B 75 70 22 3E 3C 66 6F 72 6D 61 | ="backup"><forma
2E0: 74 20 74 79 70 65 3D 22 73 79 73 74 65 6D 42 61 | t type="systemBa
2F0: 63 6B 75 70 22 20 2F 3E 3C 2F 66 75 6E 63 74 69 | ckup" /></functi
300: 6F 6E 3E 3C 66 75 6E 63 74 69 6F 6E 20 74 79 70 | on><function typ
310: 65 3D 22 61 63 63 6F 75 6E 74 4C 69 6E 6B 22 20 | e="accountLink"
320: 69 6E 74 65 72 66 61 63 65 3D 22 31 22 20 2F 3E | interface="1" />
330: 3C 66 75 6E 63 74 69 6F 6E 20 74 79 70 65 3D 22 | <function type="
340: 73 79 73 74 65 6D 55 70 64 61 74 65 22 20 69 6E | systemUpdate" in
350: 74 65 72 66 61 63 65 3D 22 31 22 20 2F 3E 3C 66 | terface="1" /><f
360: 75 6E 63 74 69 6F 6E 20 74 79 70 65 3D 22 6E 65 | unction type="ne
370: 74 77 6F 72 6B 52 70 63 22 20 2F 3E 3C 66 75 6E | tworkRpc" /><fun
380: 63 74 69 6F 6E 20 74 79 70 65 3D 22 63 6F 6E 6E | ction type="conn
390: 65 63 74 69 6F 6E 48 61 6E 64 6F 76 65 72 22 20 | ectionHandover"
3A0: 69 6E 74 65 72 66 61 63 65 3D 22 32 22 20 2F 3E | interface="2" />
3B0: 3C 2F 63 61 70 61 62 69 6C 69 74 79 49 6E 66 6F | </capabilityInfo
3C0: 3E 00 | >.
VitaMTP ptp_usb_getresp[875]: RESPONSE: VitaMTP ptp_read_func[161]: Remaining size to read: 0x0200 bytes
VitaMTP ptp_read_func[180]: Reading in 0x0200 bytes
VitaMTP ptp_read_func[189]: Result of read: 0x0000 (12 bytes)
VitaMTP ptp_read_func[194]: <==USB IN
0: 0C 00 00 00 03 00 01 20 03 00 00 00 | ....... ....
VitaMTP ptp_usb_getresp[894]: 2001
VitaMTP VitaMTP_Data_Capability_From_XML[591]: Capability information parsing unimplemented!
VitaMTP ptp_usb_sendreq[536]: REQUEST: 0x953c, Unknown (953c)
VitaMTP ptp_write_func[329]: USB OUT==>
0: 0C 00 00 00 01 00 3C 95 04 00 00 00 | ......<.....
VitaMTP ptp_usb_senddata[590]: SEND DATA PHASE
VitaMTP ptp_write_func[329]: USB OUT==>
00: 66 00 00 00 02 00 3C 95 04 00 00 00 56 00 00 00 | f.....<.....V...
10: 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 | <capabilit
40: 79 49 6E 66 6F 20 76 65 72 73 69 6F 6E 3D 22 31 | yInfo version="1
50: 2E 30 22 3E 3C 2F 63 61 70 61 62 69 6C 69 74 79 | .0"></capability
60: 49 6E 66 6F 3E 00 | Info>.
VitaMTP ptp_usb_getresp[875]: RESPONSE: VitaMTP ptp_read_func[161]: Remaining size to read: 0x0200 bytes
VitaMTP ptp_read_func[180]: Reading in 0x0200 bytes
VitaMTP ptp_read_func[189]: Result of read: 0x0000 (16 bytes)
VitaMTP ptp_read_func[194]: <==USB IN
00: 10 00 00 00 03 00 01 20 04 00 00 00 00 00 00 00 | ....... ........
VitaMTP ptp_usb_getresp[894]: 2001
VitaMTP ptp_usb_sendreq[536]: REQUEST: 0x952a, Unknown (952a)
VitaMTP ptp_write_func[329]: USB OUT==>
00: 10 00 00 00 01 00 2A 95 05 00 00 00 00 00 00 00 | ......*.........
VitaMTP ptp_usb_getresp[875]: RESPONSE: VitaMTP ptp_read_func[161]: Remaining size to read: 0x0200 bytes
VitaMTP ptp_read_func[180]: Reading in 0x0200 bytes
VitaMTP ptp_read_func[189]: Result of read: 0x0000 (12 bytes)
VitaMTP ptp_read_func[194]: <==USB IN
0: 0C 00 00 00 03 00 01 20 05 00 00 00 | ....... ....
VitaMTP ptp_usb_getresp[894]: 2001
^C

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant