I’ve figured it out. It may be useful for the community, so I share it.
I’m starting to wonder whether it is even possible doing something like this.
The answer is yes, it is possible, and this is the setup I’m using:
- Arduino MEGA
- 2 DWM1001-dev modules
Following the firmware user guide set the network up so that one module is an active tag, the other one is an active anchor (initiator). Before doing this, make sure to flash the base firmware version on both modules (page 15 and 16 of this guide).
Arduino Tx and Rx channels (serial1) cannot be directly hooked to the module since it needs 3.3V, not 5V, so create a voltage divider.
Arduino should be connected with the active TAG (not anchor) such that:
- Arduino TX - DWM TX
- Arduino RX - DWM RX
If you don’t know which the pins are, refer to the DWM1001-dev datasheet, or to this topic: UART communication with Arduino.
As ar as the code is concerned, I “merged” the suggestions coming from two different topics, because none of them directly worked for me (How to connect DWM1001-DEV to Arduino? - #14 by Esperanto and UART communication with Arduino). The result is the following one: GitHub - francimala/Arduino-MEGA-to-DWM1001.
Hope you will find it helpful.