Reading ranging data from DecaWave EVK1000
DecaWave EVK1000 and TREK1000
EVK1000 and TREK1000 are Two-way Ranging Evaluation Kit for DecaWave’s UWB DW1000 chip. You can see and evaluate a ranging result on a screen of each of them. However, to see a positioning result, you need to connect one of them with a PC and use DecaWave’s dedicated software only on Windows. Here’s how to read data from EVK1000 without the dedicated software
Preparing a Driver
This kit has a COM (serial) port. But this port is wrapped with USB interface and operates with a virtual COM port driver
- On Windows, a driver for this (STM32 Virtual ComPort in FS Mode v1.4.0) can be downloaded at here. After downloading and extracting the file, run
<OS>/dpinst_<arch>
.exe where<OS>
and<arch>
are your OS and architecture, respectively. A related thread can be found here - On Linux and macOS, when a board is connected, a driver will be automatically loaded
For more detail, please refer FTDI Chip
Reading and Parsing Ranging Data
Configure anchors and a tag by flipping switches as instruction says, and connect an anchor or a tag with a PC. Since it uses a virtual COM port, serial communication parameters are automatically configured and you don’t need to worry about it
When connection is successful, you can see outputs on a serial port terminal as the following:
1 | mr 01 000004d1 00000000 00000000 00000000 001e 20 403c403c t7:0 |
Here, important columns are from the 3rd to 6th, 7th, 8th columns
- The 3rd to 6th columns represent a range measurement from each anchor 0 to 3 in hexadecimal
- For example,
000004d1
represents0x4d1
or1233
, which is 1.233 m.
- For example,
- The 7th column represents a sequence number
- The 8th column represents a ranging sequence number