sttp.transport.tssc package

Submodules

sttp.transport.tssc.decoder module

class sttp.transport.tssc.decoder.Decoder[source]

Bases: object

The decoder for the Time-Series Special Compression (TSSC) algorithm of STTP.

sequencenumber

SequenceNumber is the sequence used to synchronize encoding and decoding.

set_buffer(data: bytes) None[source]

Assigns the working buffer to use for decoding measurements.

try_get_measurement() Tuple[int32, int64, uint32, float32, bool, Exception | None][source]

sttp.transport.tssc.pointmetadata module

class sttp.transport.tssc.pointmetadata.CodeWords[source]

Bases: object

ENDOFSTREAM = np.int8(0)
POINTIDXOR12 = np.int8(3)
POINTIDXOR16 = np.int8(4)
POINTIDXOR20 = np.int8(5)
POINTIDXOR24 = np.int8(6)
POINTIDXOR32 = np.int8(7)
POINTIDXOR4 = np.int8(1)
POINTIDXOR8 = np.int8(2)
STATEFLAGS2 = np.int8(18)
STATEFLAGS7BIT32 = np.int8(19)
TIMEDELTA1FORWARD = np.int8(8)
TIMEDELTA1REVERSE = np.int8(12)
TIMEDELTA2FORWARD = np.int8(9)
TIMEDELTA2REVERSE = np.int8(13)
TIMEDELTA3FORWARD = np.int8(10)
TIMEDELTA3REVERSE = np.int8(14)
TIMEDELTA4FORWARD = np.int8(11)
TIMEDELTA4REVERSE = np.int8(15)
TIMESTAMP2 = np.int8(16)
TIMEXOR7BIT = np.int8(17)
VALUE1 = np.int8(20)
VALUE2 = np.int8(21)
VALUE3 = np.int8(22)
VALUEXOR12 = np.int8(26)
VALUEXOR16 = np.int8(27)
VALUEXOR20 = np.int8(28)
VALUEXOR24 = np.int8(29)
VALUEXOR28 = np.int8(30)
VALUEXOR32 = np.int8(31)
VALUEXOR4 = np.int8(24)
VALUEXOR8 = np.int8(25)
VALUEZERO = np.int8(23)
class sttp.transport.tssc.pointmetadata.PointMetadata(writebits: Callable[[int32, int32], None] | None, readbit: Callable[[], int32] | None, readbits5: Callable[[], int32] | None)[source]

Bases: object

read_code() Tuple[int32, Exception | None][source]
write_code(code: int32) Exception | None[source]

Module contents