Hello. I am a bit confused while testing first time my DWM1000 UWB module. Firstly I made its PCB myself by just outputing its pins through male headers and also add a pull down resistor at IRQ pin for interrupts and that’s it for PCB. Know the issue is that while testing the “Basic Connectivity Test” code which is provided be dwm arduino library I am only getting device ID but not getting unique ID and Device Address of DWM1000. I test my 2 modules same output for both modules. What’s the issue? Is the issue with the module or some other issue.
The code which I am using is mentioned below:
#include <SPI.h>
#include <DW1000.h>
// connection pins for ESP32
const uint8_t PIN_RST = 16; // reset pin (adjust if needed)
const uint8_t PIN_IRQ = 17; // irq pin (adjust if needed)
const uint8_t PIN_SS = 5; // SPI select pin (CS)
void setup() {
// DEBUG monitoring1
Serial.begin(115200);
// Initialize the SPI bus with custom pins (ESP32 hardware SPI)
SPI.begin(18, 19, 23, PIN_SS); // SCK, MISO, MOSI, SS
// Initialize the DW1000 driver
DW1000.begin(PIN_IRQ, PIN_RST);
DW1000.select(PIN_SS);
Serial.println(F(“DW1000 initialized …”));
// General configuration
DW1000.newConfiguration();
DW1000.setDeviceAddress(5);
DW1000.setNetworkId(10);
DW1000.commitConfiguration();
Serial.println(F(“Committed configuration …”));
// Wait a bit
delay(1000);
}
void loop() {
// DEBUG chip info and registers pretty printed
char msg[128];
DW1000.getPrintableDeviceIdentifier(msg);
Serial.print("Device ID: "); Serial.println(msg);
DW1000.getPrintableExtendedUniqueIdentifier(msg);
Serial.print("Unique ID: "); Serial.println(msg);
DW1000.getPrintableNetworkIdAndShortAddress(msg);
Serial.print("Network ID & Device Address: "); Serial.println(msg);
DW1000.getPrintableDeviceMode(msg);
Serial.print("Device mode: "); Serial.println(msg);
// Wait a bit
delay(1000);
}
And the output which I am getting constantly is:
Device ID: DECA - model: 1, version: 3, revision: 0
Unique ID: FF:FF:FF:FF:00:00:00:00
Network ID & Device Address: PAN: 0A, Short Address: 05
Device mode: Data rate: 6800 kb/s, PRF: 16 MHz, Preamble: 128 symbols (code #4), Channel: #5
Device ID: DECA - model: 1, version: 3, revision: 0
Unique ID: FF:FF:FF:FF:00:00:00:00
Network ID & Device Address: PAN: 0A, Short Address: 05
Device mode: Data rate: 6800 kb/s, PRF: 16 MHz, Preamble: 128 symbols (code #4), Channel: #5
Kindly tell me that what’s the issue and if unique ID is not showing then can I find the distance between two modules or is it neccessary that unique ID should print?