Crates.io | dw3000-ng |
lib.rs | dw3000-ng |
version | |
source | src |
created_at | 2023-11-17 21:48:39.316331 |
updated_at | 2024-12-03 03:04:02.946069 |
description | A modernized driver for DW3000 Ultra Wide Band module |
homepage | |
repository | https://github.com/ProfFan/dw3000-ng |
max_upload_size | |
id | 1039599 |
Cargo.toml error: | TOML parse error at line 24, column 1 | 24 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A modernized driver for the Decawave DW3000 UWB transceiver, written in the Rust programming language. We used the crate dw1000 developped for the DW1000 module and changed the registers access and spi functions, added fast command and implemented some high level functions.
Both RTT methods (single and double sided) are working and giving good positioning values. PDoA and TDoA can be enabled optionally (Please read the docs as they require certain configurations!).
Compared to the old dw3000
crate we fixed the GPIOs and LEDs, also got rid of the old unmaintained ieee802154 crate and replaced it with smoltcp
.
We mainly test on the ESP32 platform with embassy
async framework.
Include this crate in your Cargo project by adding the following to Cargo.toml
:
[dependencies]
dw3000-ng = "1.0"
Please refer to the API Reference.
Please also refer to the DW3000 User Manual
If you are using this in your academic work, please cite it as follows:
@inproceedings{Jiang24hotmobile,
author = {Jiang, Fan and Dhekne, Ashutosh},
title = {Demo: uFiμ: An open-source integrated UWB-WiFi-IMU platform for localization research and beyond},
year = {2024},
isbn = {9798400704970},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3638550.3643628},
doi = {10.1145/3638550.3643628},
booktitle = {Proceedings of the 25th International Workshop on Mobile Computing Systems and Applications},
pages = {156},
location = {San Diego, CA, USA},
series = {HOTMOBILE '24}
}
main
smoltcp
0.12RegAccessor
lifetimeasync
is enabled/disabledinit_tracing
example to inspect the SPI transactions happening during the initialization of the DW3000rx_wait
to not use _unchecked
and return Err
when the decoding of the 802.15.4 frame failssync
and async
compatible. The feature async
can be used to enable the corresponding interfaces.
async
, the SPI traits are using embedded_hal_async
, otherwise embedded_hal
.config
function are now embedded_hal/embedded_hal_async::delay::DelayNs
instead of FnMut(u32) -> Future<Output = ()>
config
now takes a delay_us(u32)
function to allow non-blocking initialization.RX_FWTO
. RX timeout is now working.init()
if the SPI device is not ready or connectedrecv_time
to allow delayed receiving by @trembelpll_cc
register by @JohannesProgrammiertSTS
register setup when calling config()
with STS enablednum-traits
feature to rssi
to better indicate what it doesRX_RAWST
registerDTUNE
register valueembedded-hal
1.0BSD-3-Clause