Unknown bus
A single three-wire bus operates in an old automation line at a factory. The company that made it no longer exists, and there is no protocol documentation either. An engineer connected a logic analyser to the bus and recorded capture.sr (a sigrok session file: inside the ZIP there are metadata and logic-1-N chunks, each sample is 1 byte, bits 0..2 = the D0..D2 channels). The channels are not named: one carries data, the others carry auxiliary/foreign signals.
What you know: the data is Manchester encoded (exactly which convention — IEEE 802.3 or G.E. Thomas — is unknown). The transmitter adds extra (stuffing) bits when identical bits occur in a long run. A frame starts with a preamble and a special boundary marker, and ends with that same marker. Frame body: [manzil 1B][tur 1B][uzunlik 1B][payload][CRC-16 2B]; uzunlik is the number of payload bytes; the CRC is computed from the address byte to the end of the payload. The CRC-16 parameters (polynomial, initial value, final XOR, bit reflection) are unknown, and the bit order within a byte and the order of the CRC bytes are not stated either. Because of noise some frames are corrupted, and some were re-sent.
Frame types (based on observations): 0x01 — a device introduces itself: the first byte of the payload is the role (1 — controller/master, 2 — sensor), followed by the name; 0x20 — a configuration chunk: [tartib raqami][jami bo'laklar][ma'lumot], chunks may arrive out of order; the assembled block is a text configuration compressed with zlib. Sensors also keep sending their own (old) copy of the configuration.
Task: recover the configuration of the controller device and find the admin_token in it. Flag format: BAYROQ{NOMALUM_SHINA_<16 ta kichik hex>}.