Index
- Technical Notes
- Request Disc Header
- Request Track Title
- Set Disc Header
- Set Track Title
- Move Track
- Get Track Time
- Get Track Codec
- Get Track Bitrate
- Header layout
Technical notes.
- All Value and Index values in the URB's are 0 for all URB's that I've discovered
- Reqeust 80 means the setup packet should start with 41h
- Reqeust 81 means the setup packet should start with C1h
- Reqeust 01 means the setup packet should start with C1h
- Track numbers are zero based, so track 1 on the disc is refered to as 00 in the protocol
- Almost all numbers are in hex, get used to it.
- Out indicates data leaving the PC
- In indicates data coming from the USB device.
Request Disc Header
Direction: Out Request: 80Data Length: 13
Data: 00 18 06 02 20 18 02 00 00 30 00 0a 00 ff 00 00 00 00 00
Direction: Out
Request: 01
Data Length: 04
Data: buffer of length 4
Upon completion buffer is filled in for you as 01 81 hh 00 where hh is the length of the buffer needed to hold the Disc Header (plus protocol information)
Request: 81
Data Lenth: hh from above
Data: buffer of length hh
Upon completion the buffer holds hh bytes of data. The first 19h bytes are protocol information,
you are interested in the remaining data.
Request Track Title
Direction: OutRequest: 80
Data Length: 13
Data: 00 18 06 02 20 18 01 00 HH 30 00 0a 00 ff 00 00 00 00 00
HH is the track number.
Direction: Out
Request: 01
Data Length: 04
Data: buffer of length 4
Upon completion buffer is filled in for you as 01 81 hh 00 where hh is the length of the buffer needed to hold the Track Title (plus protocol information)
Request: 81
Data Lenth: hh from above
Data: buffer of length hh
Upon completion the buffer holds hh bytes of data. The first 19h bytes are protocol information,
you are interested in the remaining data.
Set Disc Header
Direction: OutRequest: 80
Data Length: 13
Data: 00 18 07 02 20 18 01 00 00 30 00 0a 00 50 00 00
HH 00 00 00 JJ (Header)
Where HH is the length of the Header, JJ is the length the header used to be, and (Header) is the full complete Header List
See Header for information on how the Disc Header is structured.
Set Track Title
Direction: OutRequest: 80
Data Length: 13
Data: 00 18 07 02 20 18 02 00 00 30 00 0a 00 50 00 00
HH 00 00 00 HH (Title)
Where HH is the length of the Title and (Title) is the Track Title, remember that LP: is not inserted for you.
Move Track
Direction: OutRequest: 80
Data Length: 13
Data: 00 18 43 ff 00 00 20 10 HH 00 04 20 10 01 00 JJ
Where HH is the track number to move and JJ is the track number to make it.
Get Track Time
Request: 80Data Length: 13
Data: 00 18 06 02 20 10 01 00 TT 30 00 01 00 ff 00 00 00 00 00
TT is the track number.
Request: 01
Data Length: 04
Data: buffer of length 4
Upon completion buffer is filled in for you as 01 81 hh 00 where hh is the length of the buffer needed to hold the Disc Header (plus protocol information)
Request: 81
Data Lenth: hh from above
Data: buffer of length hh
Upon completion the buffer holds hh (seems to be 1f every time since its the same data per track) bytes of data. The last 3 bytes are Binary Coded Decimal representations of the track times.
#define BCD_TO_PROPER(x) (((((x) & 0xf0) >> 4) * 10) + ((x) & 0x0f))
This is a C macro which will return the proper decimal for use.
Get Track Codec
Request: 80Data Length: 13
Data: 00 18 06 01 20 10 01 00 tt ff 00 00 01 00 08
tt is the track number.
Request: 01
Data Length: 04
Data: buffer of length 4
Upon completion buffer is filled in for you as 01 81 hh 00 where hh is the length of the buffer needed to hold reply
Request: 81
Data Lenth: hh from above
Data: buffer of length hh
Upon completion the buffer holds hh (seems to be 1f every time since its the same data per track) bytes of data. The last byte holds a hex value representing the bitrate
Known Values
- 00 - ATRAC
- 03 - ATRAC3
Get Track Bitrate
Request: 80Data Length: 13
Data: 00 18 06 02 20 10 01 00 tt 30 80 07 00 ff 00 00 00 00 00
tt is the track number.
Request: 01
Data Length: 04
Data: buffer of length 4
Upon completion buffer is filled in for you as 01 81 hh 00 where hh is the length of the buffer needed to hold reply
Request: 81
Data Lenth: hh from above
Data: buffer of length hh
Upon completion the buffer holds hh (seems to be 1f every time since its the same data per track) bytes of data. The second to last byte holds a hex value representing the bitrate
Known Values
- 90 - Stereo
- 92 - LP2
Header layout
The way Sony implemented groups is interesting, its a text string stored with the disc name.
So if you had a MD with the Title GroovyMix and 2 groups Thumpen and Bumpen it could look like this:
0;GroovyMix//1-5;Thumpen//6-8;Bumpen//
Where 1-5 and 6-8 are the NON zero based track numbers that the group contains.
I ephasize non because the protocol refers to all track numbers in a zero based manner, making information tracking interesting