* Description IQDW sample file 17151-1.iqdw 

Little Endian!!!


** Global Frame Header (6 x 32 Bit) Offset 0x00000000

*** 32 Bit Magic word 0x726574fb = 0xfb746572 next magic bytes found at offsets

    0x0000 (0000)
    0x019c (412)
    0x037c (892)
    0x0574 (1396)
    0x0880 (2176)
    0x0be0 (3040)
    0x1010 (4112) 
    0x1454 (5204)


*** 32 Bit Frame length in 32 bit words

    0x67000000 = 0x00000067 = Integer 103 * 4 bytes = 412 Bytes = 0x019c


*** 32 Bit Running Frame number

    0xd3122800 = 0x002812d3 = Integer 2626259


*** 32 Bit Frame Type 

    0x02000000 = 0x00000002 = Integer 2


*** 32 Bit Data Header length in 32 bit words

    0x13000000 = 0x00000013 = Integer 19 * 4 = 76 Bytes


*** 32 Bit Reserved

    0x01000000 = 0x00000001 = Integer 1
    

** Ammos Data header 76 bytes

4 Bytes Block count
4 Bytes Block Length
8 Bytes timestamp

0x203546b4 0x00000000 = 0x00000000 0xb4463520 = possible center frequency 3.024.500.000 Hz
0x286bee00 = 0x00ee6b28 = possible bandwidth 15.625.000 Hz
0x00a02526 = 0x2625a000 = possible sample rate 640000000 Hz 

** Tx Block (Frame length - Data Header - Global Frame header)

*** 32 Bytes PDW
*** n samples * 4 bytes

** PDW Data Header (2 x 32 Bit = 8 bytes) Offset 0x00000018

*** 32 Bit Number of PDWs in Frame

    0x01000000 = 0x00000001 = Integer 1

*** 32 Bit Size of tx block in 32 bit words

    0x4d000000 = 0x0000004D = 77 * 4 = 308 Bytes


** PDW Data Body (8 x 32 Bit = 32 bytes) Offset 0x00000050 next is 1ec (diff = 412)

*** 64 Bit Unix time 

    next time stamp at 01bc = 144 bytes

    0x52b0837b
    0x0492c414

    vs

    0x14c49204
    0x7b83b052 

    Integer 1496481524143599698 nanoseconds = 2017-06-03 09:18:44

*** 32 Bit Center Frequency

    0x00000000 = 0x00000000 = Integer 0 - no valid frequency

*** 32 Bit Flags/Marks 

    0x00000000 = 0x00000000 = Integer 0 - invalid

*** 32 Bit BW/Level (00000000)
32 Bit IO_DFE_Mod_Chip_Low (b4463520)
32 Bit POL_DFQ_EOA_AOA_Low (00000000)
32 Bit Reserved (00ee6b28)

*** 32 Bit IO_DFE_Mod_Chip_Low

1-011010-00100-0110001101010010-0000

IO Flag - 1 (inside of region of interest)
Azimuth confidence 011010 (0.0-6.2 degree in steps of 0.1 degree)
Modulation ID 00100 (PSK-2)
Reserved 0110001101010010
Sector reference 0000

*** 32 Bit POL_DFQ_EOA_AOA_Low

to be done

*** 32 Bit Reserved and channel number

000000-00111011100110101100101000

Number of channel (000000)

to be done


** Offset 0x00000040

** 348 Bytes unidentified 
*** 12*4 AMMOS Data header? 48 Bytes
*** 32 Bytes PDW (see ppdw.org) 
*** n * 4 bytes IQ samples (maybe n=67)

** Next global frame header Offset 0x0000019c = Integer 412

** AMMOS Frame header (24 bytes)


32 Bit Magic Word (fb746572)
32 Bit Frame length 
32 Bit Running Frame number
32 Bit Frame Type (00000002)
32 Bit Data Header length
32 Bit Reserved (00000001)


** AMMOS Data header (48 bytes)

64 Bit Frequency 

Low 0x00a02526 = 0x2625a000
High 0x01000000 = 0x00000001

Integer = 4.934967296 GHz

32 Bit Bandwidth (00000020) 32 Hz
32 Bit Sample rate (000004bd) 1213 Hz
32 Bit Interpolation / Decimation (7b83b052)
32 Bit Antenna Voltage Ref (14c49204)
32 Bit Start time low (00000000)
32 Bit Start time high (00000000)
