BLE beacon fragments
In a laboratory room, the Bluetooth Low Energy (BLE) airwaves were recorded using btmon: ble_scan.log. Several household BLE devices and asset-tracking beacons (asset beacons) are operating in the room.
The full name of the beacon we are interested in is SamSU-Mayoq-07. Because the size of a BLE advertising packet is limited, the device transmits a secret identifier in fragments in the Data: <hex> string of the Company: Internal Use (65535) (that is, 0xFFFF) field. Each Data string has the following byte structure:
[seq: 1 bayt (1..total)][total: 1 bayt][chunk: ASCII baytlar]
The advertising packets were broadcast in mixed order and with repeats, and a test beacon named SamSU-Mayoq-Test on the network is also spreading false data in the same format. Assemble only the fragments belonging to the SamSU-Mayoq-07 device in the seq order and recover BAYROQ{...}. (Flag format: BAYROQ{BLE_MAYOQ_<16 kichik hex>}).