Setting up your XM132#

For detailed instructions, visit our developer page.

Finding the serial port#

On Windows, use device manager to find the port which will be listed as USB Serial Port. It’s most likely COMx where x is 3 or higher. On Linux, it’s likely /dev/ttyUSBx where x is 0 or some other integer.

PySerial has a simple tool for listing all ports available:

python -m serial.tools.list_ports

Note that the XM132 has two serial ports. Usually, the first port is the one to use.

Windows COM port drivers#

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

Flashing#

Download the module software from our developer page. In the archive acconeer_xm132_module_software_v*.zip, under bin, you’ll find acc_module_server.bin which is the file to flash.

We recommend flashing using the Python library stm32loader. Install it with:

python -m pip install --user stm32loader

Enter the bootloader by doing the following:

  • Hold down the DFU button

  • Push the RESET button

  • Release the RESET button

  • Let go of the DFU button

Now you should be able to flash:

stm32loader -p /dev/ttyUSB0 -e -w -v -g 0x08000000 acc_module_server.bin

Replace /dev/ttyUSB0 with the serial port of your XM132.