HRB Raw Data Format 2.0

Previous version: M-Stream HRB Raw Data Format 1.0

Hardware: HRB6ASD

54 53 50 2A ...

M-Link Header

M-Stream Header

HRB Data

CRC

HRB payload data is encapsulated in M-Stream 2.0 protocol using Data Subtype 0.

Subtype 0 User Payload

32-bit word #

Contents

0

Device serial ID

1

Exact trigger position (27:24) and event number (23:0)

2

Timestamp (low bits)

3

Timestamp (high bits)

4..7

sample 0: 128 bits

8..11

sample 1: 128 bits

..N-1

sample N/4-2: 128 bits

M-Stream Header

word #

byte offset

bits

description

0

0

31:24

Device ID

23:18

Flags

17:16

Subtype (0)

15:0

Fragment length, 4*(N-2)

1

4

31:24

Fragment ID

23:0

Fragment offset (bytes)

M-Stream Subtype 0, first fragment

2

8

31:0

Device Serial

3

12

31:28

reserved

27:24

trig_pos

23:0

Event number

4

16

31:0

Trig timestamp seconds

5

20

31:0

Trig timestamp nanoseconds

6

24

31:0

HRB Raw Hits

...

N-1

4*(N-1)

31:0

M-Stream Subtype 0, next fragments

2

8

31:0

HRB Raw Hits

...

N-1

4*(N-1)

31:0

HRB Raw Hits

word #

byte offset

bits

description

0

0

32

window 0, bits [31:0]

1

4

32

window 0, bits [63:32]

2

8

32

window 0, bits [95:64]

3

12

32

window 0, bits [127:96]

4

16

32

window 1, bits [31:0]

5

20

32

window 1, bits [63:32]

6

24

32

window 1, bits [95:64]

7

28

32

window 1, bits [127:96]

...

HRB6ASD Notes

Maximum number of samples (N) is limited by Ethernet MTU since HWIP does not support IP fragmentation. With MTU=1496 maximum number of samples is 88.


HRB RawData MStream

MStreamHRB (last edited 2014-12-08 20:28:06 by slepnev)