Setting up your XM122#
For detailed instructions, visit our developer page.
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.
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
Windows COM Port Drivers#
If no COM port is recognized when plugging in a module, you need to install a driver:
XM122: FTDI
Flashing#
Download the module software from our developer page. In the archive, acconeer_xm122_module_software_v*.zip
, you’ll find acc_module_server_dfu_package.zip
, which is the package to flash.
We recommend flashing using the Python library nrfutil. Install it with:
python -m pip install nrfutil
Enter the XM122 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:
nrfutil dfu serial -pkg acc_module_server_dfu_package.zip -p /dev/ttyUSB0
After flashing, press the RESET button to reboot into the flashed software.