These Android applications are designed to be used together with the XM122 Bluetooth Demo App that is available for download on Acconeer's developer site.
- Select the Applications and tools tab on http://developer.acconeer.com and download the "XM122 Bluetooth Demo App".
- Install the precompiled firmware (out/bluetooth_demo_app_xm122.zip) according to the instructions on page 7-8 in the XM122 Getting Started Guide.
Install the example APKs according to the instructions for installing APKs from unknown sources here.
As you run the app for the first time it will ask for relevant permissions.
When installation is complete, please run the app as follows:
-
Launch "Acconeer Distance" from the phone's desktop.
-
Select "Settings" from the top-right menu and then press "Connected device" at the top of the Settings dialog.
-
The app will scan for devices and should in your case find only one. Select that one and the phone will connect to your XM122.
-
Scroll down to the bottom of the "Settings" dialog and press "Start/Update".
-
The Settings dialog will close and the app will start displaying distance measurement data. Move your hand in front of the sensor to see it change. Note that the shortest distance that can be measured with default settings is 120 mm.
Note: The example applications are made available as is and are technical support is not provided related to the use of these reference application. Acconeer does not intend to maintain this over time and they can be removed from Github without further notification.