Size: 2429
Comment:
|
← Revision 13 as of 2025-03-06 12:01:31 ⇥
Size: 2532
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 17: | Line 17: |
||<:|4> 6 ||<:|4> 24 || 31:28 || MSC Data Version || || 27:26 || reserved || |
||<:|5> 6 ||<:|5> 24 || 31:28 || MSC Data Version (*)|| || 27:16 || reserved || |
Line 23: | Line 23: |
||<:> 8 ||<:> 32 || 31:0 || Missing hits during suspend (*) before current packet || | ||<:> 8 ||<:> 32 || 31:0 || Missing hits during suspend (**) before current packet || |
Line 28: | Line 28: |
(*) - suspend occurs if channel buffer for stream data if full (not enough space for new mstream packet) | . (*) - in raw data this number is one less than data version . (**) - suspend occurs if channel buffer for stream data if full (not enough space for new mstream packet) |
Line 32: | Line 33: |
||<:-2>'''Time slice data word''' || ||<:>''Bits'' ||<:>''Description'' || ||31 .. (N,,ce,,+N,,b,,) || Time slice number || ||N,,ce,,-1 .. N,,b,, || External count<<BR>>conditions || ||N,,b,,-1 .. 0 || Channel counter || |
||<:-4#DDDDDD>'''Time slice data word''' || ||<:#EEEEEE>'''Bits''' ||<:>31 .. (N,,ce,,+N,,b,,) ||<:>N,,ce,,-1 .. N,,b,, ||<:>N,,b,,-1 .. 0 || ||<:#EEEEEE>'''Description''' ||<:>Time slice number ||<:>External count<<BR>>conditions ||<:>Channel counter || |
Line 38: | Line 37: |
. N,,ce,, - number ofxternal count conditions inputs | . N,,ce,, - number of external count conditions inputs |
MSC16VE - Ethernet Readout RAW Data Format V2
Hardware: MSC16VE
MSC16VE payload data is encapsulated in M-Stream 2.2 protocol using Data Subtype 2.
Unlike MSC Ethernet Raw Data Format V1, in data format version 2 only data from one channel transmits per one packet
MSC16VE Ethernet Readout Data Format |
|||
word # |
byte offset |
bits |
description |
0-1 |
0 |
31:0 |
M-Stream header, 2 words |
2-3 |
0 |
31:0 |
M-Stream subtype 2 header, 2 words |
M-Stream User Payload, subtype 2 |
|||
4 |
16 |
31:0 |
Timestamp of slice #0 in packet, TAI seconds |
5 |
20 |
31:2 |
Timestamp of slice #0 in packet, TAI nanoseconds |
1:0 |
Timestamp of slice #0 in packet, TAI flags |
||
6 |
24 |
31:28 |
MSC Data Version (*) |
27:16 |
reserved |
||
15:12 |
External count conditions number |
||
11:4 |
Channel number |
||
3:0 |
Counter bits number |
||
7 |
28 |
31:0 |
Slice interval, nanoseconds |
8 |
32 |
31:0 |
Missing hits during suspend (**) before current packet |
9 |
36 |
31:0 |
MSC time slice data words |
... |
|||
N |
4*(N-1) |
31:0 |
- (*) - in raw data this number is one less than data version
- (**) - suspend occurs if channel buffer for stream data if full (not enough space for new mstream packet)
MSC time slice data word format
Time slice data word |
|||
Bits |
31 .. (Nce+Nb) |
Nce-1 .. Nb |
Nb-1 .. 0 |
Description |
Time slice number |
External count |
Channel counter |
Nce - number of external count conditions inputs
Nb - number of counter bits
Time slice data can be suppressed if both next conditions are met:
- channel counter is zero for current time slice
- external count conditions did not changes since beginning of previous time slice