This topic shares the Exposure Notifications calibration procedure that uses the BLE RSSI Calibration Tool app (the calibration app, for short) to calibrate as many devices as possible, generating a per-device TX_power and RSSI_correction.
To accurately determine how close users have been to each other and whether there may have been a risk of exposure, an app needs to estimate the distance between two devices, using Bluetooth Low Energy (BLE) received signal strength indicator (RSSI) measurements. Many factors affect an RSSI measurement, including antenna sensitivity, device orientation, and environmental conditions.
This document describes the Exposure Notifications framework’s calibration methodology, which includes collecting data with phones in different orientations. This data is then used to estimate calibration values. In earlier versions of the calibration procedure, most measurements were done with the devices in portrait mode, placed back to back and one meter apart.
To gather the data necessary for TX_power calculations, the app collects the uncalibrated RSSI that a stationary reference device (a Pixel 4) measures when the device under test (DUT) emits packets at ULTRA_LOW_POWER, LOW_POWER, MEDIUM_POWER, and HIGH_POWER. The DUT and the reference device are placed 1 meter apart. The calibration app takes the median of 10 RSSI measurements at each power level. Similarly, to calculate the RSSI_correction, the app takes the median of 10 uncalibrated RSSI measurements that a DUT measures when the reference device emits packets at a given power level.
Those measurements are collected for both the DUT and a reference DUT (another Pixel 4), so that the transmit power and the receive sensitivity of the DUT and the reference DUT can be compared.
The calibration app collects each of these measurements at 12 device orientations, as described in the next section.
Device orientation and setup illustrations
Because RSSI readings can vary about 10 dB based only on device orientation, it’s important to get enough readings at different orientations to calculate a good overall correction. We are requesting calibrations at 12 different orientations per DUT. The next section illustrates the details of the different orientations and angles.
Figure 1. Testing configuration.
Periodic reference calibrations
After you test five devices, use a Pixel 4 as the next DUT. Then you can test five more devices before testing a Pixel 4 again, and so on. Using a Pixel 4 as the DUT every six tests helps ensure that we can adjust for any changes in the test setup.
Figure 5. Performing reference calibrations.
Two Pixel 4 devices:
- One as the stationary reference device.
- The other as the DUT every sixth time between your regular DUTs.
Important: Use the Pixel 4, not the larger Pixel 4 XL.
The DUTs to be calibrated
Two tripods to hold the devices
- Use stationary, non-reflective tripods to avoid affecting RF measurements.
- Important: Don’t hold the devices. Do configure the setup so that it’s repeatable.
To ensure the tests are valid, make sure your reference device and all of your DUTs have the following:
- Production hardware and software; that is, the hardware and software that users will have in the field
- A full charge
- Calibrate these devices in a radio-frequency (RF) anechoic chamber to prevent electromagnetic interference.
- If an RF anechoic chamber isn’t available, then we recommend testing outdoors in a dry environment, far away from objects (buildings, cars, trees, heavy vegetation, and so on).
- Stand a few meters away from the test setup while the calibrations are running. To ensure a consistent reading, stand in the same position each time so that the impact of your body is identical between tests.
- Set up the two tripods holding the DUT and reference device 1 meter apart, with the devices 1.5 meters from the ground.
- Make sure the reference device and all DUTs are charged.
- Both the reference device and the current DUT must be unplugged during testing.
- Both the reference device and the current DUT must have at least 20% charge throughout testing.
- Make sure the reference device and the DUTs have no cases, no attached wires, and nothing else attached that might affect RF performance.
- Orient the reference device (Pixel 4) in portrait mode with the back of the device facing the DUT.
- When running the test, you will orient the DUT using the following
sequence (which is illustrated in figure 2):
- Portrait 0o (screen facing the reference device)
- Portrait 90o (rotated 90 degrees counterclockwise from previous orientation)
- Portrait 180o
- Portrait 270o
- Landscape 0o (screen facing the reference device)
- Landscape 90o
- Landscape 180o
- Landscape 270o
- Sky facing 0o (left of the screen pointing to the reference device)
- Sky facing 90o
- Sky facing 180o
- Sky facing 270o (final test for this DUT)
Collect calibration data
Ensure that the batteries of the reference device (Pixel 4) and the DUT are full or nearly full. (At a minimum, the battery levels should be above 20% throughout the calibration tests.)
Launch the BLE RSSI Calibration Tool app on both devices.
If prompted, allow the app to access the device’s location; this permission is necessary for BLE scans.
On the reference device: go to the Settings tab, enable Set as reference device.
Figure 6: Reference device set.
On each device, go to the Calibration tab. The user interface on each device should look like this:
Figure 7: Calibration screen.
DUT: Make sure BLE ON/OFF is enabled (as in figure 7).
Reference device: Tap the Scan button. Wait for the reference device to find the DUT.
Figure 8: Reference device has found the DUT.
Reference device: Tap the Calibrate button. Wait until calibration completes.
Figure 9: Calibration is complete.
When the message Calibration completed appears on the reference device screen, tap the Submit tab. You should see a row showing the DUT you measured.
Figure 10: Submit tab tapped after completed calibration.
Tap the Submit button and choose an email option in the Android Sharesheet.
- The calibration app generates an email with a file
- Send the email to yourself, so you can collect the reports to submit to us.
Figure 11: Send email.
- The calibration app generates an email with a file
DUT: In the Calibration tab, disable BLE ON/OFF to ensure that this device isn’t found when you calibrate the next device.
Submitting data to Google
When you’ve finished calibrating the devices, create a zip archive containing
reports.csv files that the calibration app has generated. Email the zip