> For the complete documentation index, see [llms.txt](https://catchdocs.gitbook.io/catch-customer-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://catchdocs.gitbook.io/catch-customer-documentation/flow/technical-workflow/playback-measurement-report.md).

# Playback Measurement Report

Once installed and configured, Catch Control communicates with the (typically 3rd party) media player software, to build its own timeline of playbacks of the ad content playing on screen.

Each time a playback event is recorded in Catch Control, a command is sent to the Catch Media Gateway over USB to start a new measurement window. When the ad play ends, another command is sent to the Catch Media Gateway to end the measurement window, and the Media Gateway generates a `Playback Measurement Report` which is sent back to the host.&#x20;

<figure><img src="https://3452267159-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXpeOmkPYTxRQxOVln3Jz%2Fuploads%2FHhGJuojnZaEROlFRr7R9%2Fimage.png?alt=media&amp;token=7532e359-cad2-4533-970f-53bc0cfe9a34" alt=""><figcaption></figcaption></figure>

## Report Header (Summary)

```c
type Report struct {
	WindowTime      time.Time // Start time of reporting window
	WindowDuration  time.Duration   // Duration of reporting window
	DeviceCount     int // Total number of unique MAC addresses dicovered
		PacketCount     int // Total number of packets seen from those MAC addresses 
	BLECountTotal   int // Total number of BLE MAC addresses dicovered
		BLECountPublic  int // Number of public BLE MAC addresses in the total
		BLECountRandom  int // Number of randomised BLE MAC addresses in the total
	WiFiCountTotal  int // Total number of WiFi (2.4GHz) MAC addresses dicovered
		WiFiCountPublic int // Number of public WiFi MAC addresses in the total
		WiFiCountRandom int // Number of randomised WiFi MAC addresses in the total
	RSSIMax         int // Maximum RSSI from all detected packets (both BLE and WiFi)
	RSSIAverage     int // Average RSSI from all detected packets (both BLE and WiFi)
}
```

|                   |                                                            |
| ----------------- | ---------------------------------------------------------- |
| Window Time       | Start Date and Time of the Window                          |
| Window Duration   | Duration of the window in Milliseconds                     |
| Device Count      | Total number of unique MAC addresses discovered            |
| Packet Count      | Total number of packets seen from those MAC addresses      |
| BLE Count Total   | Total number of BLE MAC addresses discovered               |
| BLE Count Public  | Total number of Public BLE MAC addresses discovered        |
| BLE Count Random  | Total number of Random BLE MAC addresses discovered        |
| WiFi Count Total  | Total number of WiFi MAC addresses discovered              |
| WiFi Count Public | Total number of Public WiFi MAC addresses discovered       |
| WiFi Count Random | Total number of Random WiFi MAC addresses discovered       |
| RSSI Max          | Maximum RSSI from all detected packets (Both BLE and WiFi) |
| RSSI Min          | Minimum RSSI from all detected packets (Both BLE and WiFi) |
| RSSI Average      | Average RSSI from all detected packets (Both BLE and WiFi) |

This basic summary report is then appended with list of detailed information for each individual MAC address detected:

## Individual MAC address detection report

```c

type Device struct {
	Type              DeviceType     // = WiFi or BLE
	AddressType       AddressType    // = Public or Random address
	HardwareAddress   [6]byte        // "MAC" address
	FirstSeen         time.Time // Time the MAC address was first seen within this window
	LastSeen          time.Time // Time the MAC address was last seen within this window
	PacketCount       int // Total number of packets seen from this MAC address
	MinPacketInterval time.Duration // The shortest time between sequential packets seen from this MAC address
	RSSIMin           int // The minimum RSSI
	RSSIMax           int
	RSSIAverage       int
}

```

### Device Identifiers

| Data              | Significance  & Notes                                                                                                                                                                                                      |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Type`            | Whether the MAC address is `public` or `random.`Random addresses are much more likely to be be associated with personal devices, as mobile operating systems randomise MAC addresses in an effort to protect user privacy. |
| `AddressType`     | Whether that MAC address is BLE or WiFi, used for categorising device detections. See [categorisation](https://catchdocs.gitbook.io/catch-customer-documentation/flow/technical-workflow/quality-categorisation.md).       |
| `HardwareAddress` | MAC address, used to separate and enumerate unique device detections                                                                                                                                                       |

### Time spent in range

| Data        | Significance  & Notes                                                                       |
| ----------- | ------------------------------------------------------------------------------------------- |
| `FirstSeen` | Time ***within this window*** when a packet from this HardwareAddress was first discovered. |
| `LastSeen`  | Time ***within this window w***&#x68;en the last packet was seen from this HardwareAddress. |

### Quality indicators

| Data                | Significance  & Notes                                                                                                                                                                             |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `RSSIMin`           | Minimum (Weakest) Received Signal Strength index (RSSI) Within this Scan Window for this hardwareAddress - Proxy for distance from detection device - quality indicator, allowing for filtering   |
| `RSSIMax`           | Maximum (Strongest) Received Signal Strength index (RSSI) Within this Scan Window for this hardwareAddress - Proxy for distance from detection device - quality indicator, allowing for filtering |
| `RSSIAverage`       | Average (Mean) Received Signal Strength index (RSSI) Within this Scan Window for this hardwareAddress - Proxy for distance from detection device - quality indicator, allowing for filtering      |
| `PacketCount`       | Number of Packets discovered from this MAC address - Proxy for persistence of detected device - quality indicator, allowing for filtering                                                         |
| `MinPacketInterval` | Minimum time interval between any 2 subsequent packets from this MAC address - Proxy for persistence of detected device - quality indicator, allowing for filtering                               |
