Comments (5)
The subghz
test has a basic LoRa example:
stm32wlxx-hal/testsuite/src/subghz.rs
Line 424 in 0d169de
You code looks correct. ExecutionFailure
s can be difficult to debug. Generally I start with a known working configuration then bisect to find why the radio is returning ExecutionFailure
.
Perhaps try changing the clock/power configuration to match the code in the test? That's one difference I noticed.
from stm32wlxx-hal.
Examples helped a lot, not sure what was the issue but I used the code from the test with small changes and at least I am not getting ExecutionFailure
. And I am receiving a lot of data (I think there is a plenty of smart meters in my area). Still cannot receive PING
message, but I think it is a matter of time to make it work or find emptish frequency.
from stm32wlxx-hal.
Anyway looks like something is wrong with my code, I have tested embassy example and it works like a charm there. I get the correct length and data.
@newAM thanks for help and if there is anything I can help you with this repository let me know, I am eager to do it 😄
from stm32wlxx-hal.
@newAM I am trying to make it work but for some reason I am not getting the correct data. Looks like I am sending the data correctly, I am getting the TxDone
interrupt as expected.
But the reading part is a problem, I am not getting any data and the length is kind of faulty also I am getting Irq::Err
which means the CRC is incorrect, but the buffer is empty (no data change at all, I check it before and after the read part).
I am pretty confident that I am triggering the interrupt from the other board, I've configured to send a data on button push and after every push I am entering the interrupt.
Any idea what might be cause? Is it possible that something else is also sending data at exactly same moment? I find it strange that I get exactly the same Err
when I am using only one board, I get it just after transmitting the data.
BTW, I found a small typo in the library and created a PR to fix, hope it is fine.
from stm32wlxx-hal.
Is it possible that something else is also sending data at exactly same moment?
It's possible, but unlikely I think.
I have not seen this sort of behavior before, so all the advice I can give is guesswork. Are the radios configured the same in terms of hardware and code?
from stm32wlxx-hal.
Related Issues (18)
- SPI reworks
- Tracking issue for a crates.io release HOT 1
- Integrate subghz types with `embeded_time`
- Implement InputPin from embedded_hal HOT 3
- Replace Level type with `embedded-hal`s `PinState`
- Include Example of UART/DMA usage HOT 3
- UART Clock frequency when selecting PClk returns HClk frequency
- can not build success HOT 3
- How to Establish a Continuous LPTIM Peripheral HOT 3
- LPUART type mismatch & some other issues about UART peripheral implementation HOT 4
- how to access i2c HOT 2
- compile HOT 4
- Marking stm32wlxx_hal::subghz::SleepCfg as must_use HOT 1
- [Meta] probe issues HOT 3
- Tracking issue for features HOT 1
- Nitpicks
- Tracking issue for SubGHz commands
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stm32wlxx-hal.