Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BD-R reported layer number is incorrect #3

Closed
speed47 opened this issue Sep 20, 2020 · 2 comments
Closed

BD-R reported layer number is incorrect #3

speed47 opened this issue Sep 20, 2020 · 2 comments

Comments

@speed47
Copy link
Owner

speed47 commented Sep 20, 2020

We seem to miss a
drive->cmd[1] = 1; as the media type is BD
otherwise the data returned is always:

Media DI 0x00: 00 20 0E 01 00 01 01 20 00 00 00 00 00 00 00 00  | ................
Media DI 0x10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | ................

But it doesn't seem to be enough to get correct data.

For reference, data of a blank SONY BD-R QL, so 4 layers:

data len:  1D8 ( 472), Header:
 0x00 0x00 0x01 0xD8 0x00 0x00 0x00 0x41

MID raw data 00: 44 49 04 80 00 00 63 00 42 44 52 12 42 04 00 00  | DI.Ç..c.BDR.B...
MID raw data 10: 01 00 00 00 02 00 00 00 1F CD 7E 00 03 01 78 78  | .........═~...xx
MID raw data 20: 00 01 2A 58 73 01 01 2A 1C 64 80 48 48 38 38 38  | ..*Xs..*.dÇHH888
MID raw data 30: 78 78 78 78 78 00 00 00 80 80 80 D8 D8 D8 D8 D8  | xxxxx...ÇÇÇÏÏÏÏÏ
MID raw data 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | ................
MID raw data 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | ................
MID raw data 60: 00 00 00 00 53 4F 4E 59 00 00 4E 51 31 00 00 01  | ....SONY..NQ1...

Data of a written/closed Verbatim BD-R SL, so 1 layer:

data len:  1D8 ( 472), Header:
 0x00 0x00 0x01 0xD8 0x00 0x00 0x00 0x40

MID raw data 00: 44 49 01 28 00 00 62 00 42 44 52 01 12 01 00 00  | DI.(..b.BDR.....
MID raw data 10: 01 00 00 00 00 00 00 00 00 02 00 00 00 19 4E 7E  | ..............N~
MID raw data 20: 01 EC 64 64 28 28 28 28 1E 1E 1E 1E 00 00 00 00  | .ýdd((((........
MID raw data 30: 5F 73 64 04 04 45 1D 86 B0 F0 F0 F0 F0 00 00 00  | _sd..E.å░­­­­...
MID raw data 40: 00 00 00 00 00 50 00 50 00 50 00 50 00 58 00 58  | .....P.P.P.P.X.X
MID raw data 50: 00 58 00 58 00 60 00 60 00 60 00 60 00 90 A0 C0  | .X.X.`.`.`.`.Éá└
MID raw data 60: C8 C8 00 00 43 4D 43 4D 41 47 42 41 35 00 00 00  | ╚╚..CMCMAGBA5...

Data of a commercial BD-ROM with 2 layers:

data len:  1D8 ( 472), Header:
 0x00 0x00 0x01 0xD8 0x00 0x00 0x00 0x40

MID raw data 00: 44 49 01 10 00 00 20 00 42 44 4F 01 21 01 03 00  | DI......BDO.!...
MID raw data 10: 00 00 00 00 01 EA 5C DF 00 10 00 00 00 95 33 3E  | .....Û\▀.....ò3>
MID raw data 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | ................
MID raw data 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | ................
MID raw data 40: 44 49 01 11 00 01 20 00 42 44 4F 01 21 01 03 00  | DI......BDO.!...
MID raw data 50: 00 00 00 00 01 EA 5C DF 01 6A CC C0 01 EF FF FE  | .....Û\▀.j╠└.´ ■
MID raw data 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | ................
@speed47
Copy link
Owner Author

speed47 commented Sep 20, 2020

One of the consequences: scanning a 2 layer BD, we don't get a properly sized graph:
bdr_dl_graph_over

@speed47
Copy link
Owner Author

speed47 commented Oct 4, 2020

Fixed in 2208d78

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

No branches or pull requests

1 participant