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. Important: Begin the calibrations with a Pixel 4-to-Pixel 4 configuration, in addition to calibrating with Pixel 4 after every five unique DUT calibrations.
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.
If you minimize the scan window by clicking on the magnifying glass icon, the device shows the orientation for the current calibration.
Figure 9: Calibration is complete.
Reference device: Tap the Calibrate button.
- During the calibration, you can stop the calibration by tapping the Stop button. Resume calibrating by tapping the Calibrate button.
- The calibration goes through four power levels. Each power level takes around 10 seconds for a total calibration time for each orientation, equaling 40 seconds (4 x 10). A counter on the bottom left shows the calibration progress.
- Once the calibration is complete, Complete with a checkbox next to it appears.
Tap Next to move to the next device orientation calibration. You can revisit previous calibrations by tapping Previous.
Figure 10: Working through the orientations.
After completing the calibrations for all 12 orientations, you may set up and restart the calibration process for a new device. The app automatically appends the results for the next device.
When you have completed calibrating all of your devices, tap the Submit tab. This displays a row showing the DUT(s) you measured.
Figure 11: 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 named
Figure 12: Email generated by the system.
Send the email to yourself so that you can collect the reports to submit to us. If email isn't an option, the Sharesheet also presents an option to upload the
reports.csvto a Google Drive account to access later.
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 generated and photos of
your calibration setup from your first device calibration. Either submit this
zip file to the RSSI calibration Buganizer issue filed by Google, or, if you
don't have a Buganizer issue, email the zip file to
If it's not clear from your photos, let us know the environment in which you
performed calibrations: indoor, outdoor, or anechoic chamber.