Read first line info block
    • 13 Jan 2024
    • 1 Minute to read
    • PDF

    Read first line info block

    • PDF

    Article Summary

    Decoding of the first line info block

    Pixel01234567891011121314151617181920212223
    Line 0MarkerSerial numberMarkerImage countExposure timeMarkerLine timeEncoder clocksError codeTime stampMarker

    Serial number

    Structure

    The serial number consists of two parts.

    SN first partSN second part
    Byte 3Byte 2Byte 1Byte 0
    Px1Px2Px3Px4

    Decoding

    The decoding of the serial number is:

    The first part of the serial number S1 = Px1 × 256 + Px2

    The second part of the serial number S2 = Px3 × 256 + Px4

    Example

    S1 = 156 × 256 + 64 = 40000

    S2 = 0 × 256 + 157 = 157 

    svg-read first line-serial number_03Example: decoding of SN: 40000-00157

    Image count

    Structure

    Image count
    Byte 1Byte 0
    Px6Px7

    Decoding

    The decoding of the image count is:

    I= Px6 × 256 + Px7

    Example

    I= 1 × 256 + 120 = 376

    svg-read first line-image count_03Example: image count 376

    Exposure time

    Structure

    Exposure time clocks
    Byte 1Byte 0
    Px8Px9

    Decoding

    The decoding of the exposure time is:

    Et = (Px8 × 256 + Px9) / fa

    fa (10k, 15k) = 50 Mhz

    fa (8k) = 80 Mhz

    Example

    Et = (5 × 256 + 220) / 50 = 50 µs

    svg-read first line-exposure time_03Example: Decoding of exposure time

    Line time

    Structure

    Line time clocks
    Byte 2Byte 1Byte 0
    Px11Px12Px13

    Decoding

    The decoding of the Line time is:

    Lt = (Px11 × 216 + Px12 × 28 + Px13) / 100

    Example

    Lt = (0 × 216 + 21 × 28 + 124) / 100 = 55 µs

    svg-read first line-line time_03Example: Decoding of line time

    Encoder clocks

    Structure

    Encoder clocks
    Byte 3Byte 2Byte 1Byte 0
    Px14Px15Px16Px17

    Decoding

    The decoding of the encoder clocks is:

    Ec = Px14 × 232 + Px15 × 216 + Px16 × 28 + Px17

    Time stamp

    Structure

    Time [s]Time [¼ ms]
    Byte 2Byte 1Byte 0
    Px19Px20Px21

    Decoding

    The decoding of the time stamp is:

    Ts = (Px19 × 216 + Px20 × 28 + Px21) / 4


    Was this article helpful?