Setting Up Your XB122 + XM126#

To evaluate the XM126 module, it is recommended to connect it to an XB122 break-out board to access different pins. A Micro USB cable (not provided by Acconeer) is needed to connect the XB122 board to a PC.

Hardware Overview#

The image below depicts the XB122 from the front (left) and back (right).

../../_images/xb122_hw_overview.png

The image below depicts the XM126 from the front (left) and back (right).

../../_images/xm126_hw_overview.png

Finding the Serial Port#

In preparation for connecting and flashing, it is good to know the serial port of the device.

Use Device Manager to find the port. It is listed under Ports (COM & LPT) as USB Serial Port or Enhanced COM Port. It’s most likely COMx where x is 3 or higher.

PySerial has a simple tool for listing all ports available:

python -m serial.tools.list_ports

Windows COM Port Drivers#

If no COM port is recognized when plugging in a module, you need to install a driver:

On the page from the link above, go through the following steps to install the driver:

  • Select Windows (Desktop)

  • Click on setup executable

  • Extract the downloaded file

  • Click on the extracted .exe file

  • Follow the installation instructions

Flashing#

The most convenient method to prepare the XM126 board for flashing is to let the Exploration Tool Application automatically download the latest binary file.

Automatically Download and Flash Using the GUI#

Depending on how you installed in Exploration Tool Installation, start Exploration Tool by either

  • Double-clicking the run_app script,

  • Running the command python -m acconeer.exptool.app in your terminal.

To automatically download the latest binary file:

  1. Open the Flash tool by selecting the Flash tab in the tab selection

  2. Click the Get latest binary tab

  3. Click the Get latest bin file button

../../_images/flash_tool_dialog_xm126.png

Once the binary file has been downloaded it is possible to start flashing the board by clicking the Flash button in the Flash tool. Make sure to select the serial port you found in section Finding the Serial Port.

Put the XM126 in DFU mode by following the instructions in the prompt. Use the images in Hardware Overview for reference.

Automatically Download and Flash Using the CLI#

Run the following command from the CLI:

python -m acconeer.exptool.flash flash -d XM126 -f

Put the XM126 in DFU mode by following the instructions in the prompt. Use the images in Hardware Overview for reference.

Manually Download and Flash#

Start by downloading the latest Exploration Server package for XM126 from our developer page. Inside the downloaded package, acc_exploration_server_a121.bin can be found.

There are two ways to flash the downloaded binary, either using Exploration Tool GUI or the command line.

Using the Exploration Tool GUI:

Start the Exploration Tool Application:

python -m acconeer.exptool.app

and flash XM126 with the downloaded binary file:

  1. Open the Flash tool by selecting the Flash tab in the tab selection

  2. Click the Browse tab

  3. Click the Browse button and select the downloaded file

  4. Start flashing the board by clicking the Flash button

../../_images/flash_tool_dialog_manual_xm126.png

Put the XM126 in DFU mode by following the instructions in the prompt. Use the images in Hardware Overview for reference.

Using the Command Line:

Put the XM126 in DFU mode:

  1. Press the DFU-button and hold it

  2. Press the RESET-button and hold it

  3. Release the RESET-button

  4. Release the DFU-button

Use the images in Hardware Overview for reference.

Flash:

python -m acconeer.exptool.flash flash -d XM126 -i app_update.bin

After the XM126 has been flashed, it needs to be reset. This is done by pressing and releasing the RESET-button.