CSCP1 module#
SPDX-FileCopyrightText: 2025 DESY and the Constellation authors SPDX-License-Identifier: EUPL-1.2
Provides message class for CSCP1
- class core.message.cscp1.CSCP1Message(sender: str, verb: tuple[Type, str], time: datetime | None = None, tags: dict[str, Any] | None = None)#
Bases:
object
Message class for CSCP1
- class Type(*values)#
Bases:
IntEnum
Enum describing the type of CSCP1 message
- ERROR = 6#
Previously received message is invalid
- INCOMPLETE = 3#
Command is valid but mandatory payload information is missing or incorrectly formatted
- INVALID = 4#
Command is invalid for the current state
- NOTIMPLEMENTED = 2#
Command is valid but not implemented
- REQUEST = 0#
Request with a command
- SUCCESS = 1#
Command is being executed
- UNKNOWN = 5#
Command is entirely unknown
- assemble() MultipartMessage #
- static disassemble(frames: list[bytes]) CSCP1Message #