Hi everyone,
I am trying to get ranging working between two DWM1000 modules, each connected to a raspberry pi 5. I am using the following python library to try to get this to work: link. I also am wiring using the following pin connections:
GND 25
CS 24 (CE0)
MOSI 19
MISO 21
CLK 23
IRQ 18
NRST 16
3.3V 17
When running main.py from this library, I get:
Device ID FFFF - model: 255, version: 15, revision: 15
Unique ID: FF:FF:FF:FF:FF:FF:FF:FF
Network ID & Device Address: PAN: FFFF, Short Address: FFFF
Device mode: Data rate 110 kb/s, PRF : 64 MHz, Preamble: 2048 symbols (code 9), Channel : 5
Which indicated that the modules are not responsive. To test this, I wrote a python script to test connectivity. Here it is below:
import spidev
spi = spidev.SpiDev()
spi.open(0, 0) # Open SPI bus 0, device 0
spi.max_speed_hz = 100000
spi.mode = 0
response = spi.xfer2([0x00] * 5)
print(“Received:”, response)
spi.close()
When I run this script with the reset pin connected to the pi, I get [255, 255, 255, 255, 255] indicating that its not communicating. When I disconnect the pin, the output becomes [127, 48, 1, 202, 222] (indicating it is communicating?). Because the library depends on the reset pin being functional, I was hoping to find a solution which would allow me to still use this pin. Any feedback would be very appreciated.