nrf-rs / nrf-hal

A Rust HAL for the nRF family of devices
Apache License 2.0
503 stars 139 forks source link

ieee802145 Radio.send() leaves radio transmitting after data is sent #351

Closed oddstr13 closed 3 years ago

oddstr13 commented 3 years ago

Adding energy_detection_scan() after transmitting the data is a usable workaround.

https://github.com/oddstr13/rust-radio-usb-dongle/blob/6277a10d3eea538abc79475bf375025cc759db2b/src/main.rs#L68-L77

Spectrum use without energy_detection_scan() at the end, RF TX stops only when putting the dongle back in DFU mode.

GQRX, 5 FPS FFT (5 horizontal lines (pixels) per second): image