Skip to main content
Version: 2.0.0

blaecktcpy 2.0.0

Server Mode

Frames

B0Symbol List (0xB0)

Signal schema: names, types, master/slave config.

ElementSizeTypeDescription
MasterSlaveConfig1 byteuint80x01 = master, 0x02 = slave
SlaveID1 byteuint80x00 for master; device-specific for slaves
SymbolNamevariablestringSignal name
DTYPE1 byteuint8Datatype code (0x000x09). See Datatypes

D2Data (0xD2)

Signal values with SchemaHash, 8-byte Timestamp, StatusByte, StatusPayload, and CRC32.

ElementSizeTypeDescription
RestartFlag1 byteuint80x00 = normal, 0x01 = first frame after restart
SchemaHash2 bytesuint16CRC16-CCITT over signal schema. See Schema Hash
TimestampMode1 byteuint80 = none, 1 = micros, 2 = UNIX
Timestamp648 bytesuint64Conditional: only if TimestampMode > 0
SymbolID2 bytesuint16Zero-based signal index (matches B0 order)
DATAvariableraw bytesSignal value, size per DTYPE
StatusByte1 byteuint8Device/hub status. See Status Codes
StatusPayload4 bytesraw bytesStatus-specific data
CRC324 bytesuint32Integrity checksum. See CRC32

B6Devices (0xB6)

Device identity with DeviceCount, per-device fields, and client trailer (ClientNo, ClientDataEnabled, ClientName, ClientType).

ElementSizeTypeDescription
DeviceCount1 byteuint8Number of device entries in the frame
MasterSlaveConfig1 byteuint80x01 = master, 0x02 = slave
SlaveID1 byteuint80x00 for master; device-specific for slaves
DeviceNamevariablestringUser-defined device name
HWVersionvariablestringHardware version
FWVersionvariablestringFirmware version
LibVersionvariablestringLibrary version (e.g., "6.0.0")
LibNamevariablestringLibrary name
ServerRestartedvariablestringWhether server restarted since client connected
DeviceTypevariablestring"server" or "hub"
ParentvariablestringParent device in topology
ClientNovariablestringClient number
ClientDataEnabledvariablestringData streaming enabled ("true" / "false")
ClientNamevariablestringName of the connected client (from GET_DEVICES identity)
ClientTypevariablestringType of the connected client (e.g., "app", "hub")

Hub Mode

Additional Frames

C0Restart Notification (0xC0)

Notifies that a device restarted. Same layout as B3.

ElementSizeTypeDescription
MasterSlaveConfig1 byteuint80x01 = master, 0x02 = slave
SlaveID1 byteuint80x00 for master; device-specific for slaves
DeviceNamevariablestringUser-defined device name
HWVersionvariablestringHardware version
FWVersionvariablestringFirmware version
LibVersionvariablestringLibrary version (e.g., "6.0.0")
LibNamevariablestringLibrary name