-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async branch buildble #92
Conversation
* fix imports and Features Enum for sara-r5 * update ublox-sockets * implement defmt::format * enable defmt for nb and bump embedded-io,ublox-sockets,atat * rustfmt
# Conflicts: # ublox-cellular/Cargo.toml # ublox-cellular/src/services/data/error.rs # ublox-cellular/src/services/data/mod.rs
The init code is basically taken from the blocking version as when cross-checking with the manual that's the steps you have to do, and I don't see that splitting them up further would help. |
This is awesome! I will just merge your PRs as we go whenever you mark them as ready, and I have read through them. |
It was a bit on purpose that i had removed the atat dependency from ublox-sockets, as it is only needed for the implementation of atatLen, but makes bumping atat a horrible experience because we need to bump ublox-sockets also. It should be enough to not derive atatLen, and instead mark the socketHandle field in every command struct with ‘#[at_arg(len = 1]‘ |
Adding the patch to ublox-sockets for the no-std-net version might be a nice thing, or forking it as it seems pretty unmaintained. |
Added an example so that you always have something you could try to build it for and test it, but it started giving me duplicate symbols errors and some point (I typed the bad words |
Figured out my problem with the patch section (sometimes it is so obvious you can't see it). The example sends commands and checks successfully it the device is alive. Strangely, the sara-r5 powers down after a few seconds, and I have no clue why right now. |
Hah, I know that feeling! Glad you figured it out.
Hmm, can't tell you why, but I can try to test it on my LARA-R6 module, when I get a few minutes of spare time :) |
I think the issue is/was that at least the sara-r5 is designed with a floating pwr_on pin. Not defining the power_pin makes it more stable. Maybe need to look into it and if it is possible to have it floating when it is not needed. But should be possible with the design of the config trait. Just forgetting the pin and newly creating it when asked for could perhaps work. |
…tive state of some boards for pwr_on pin
So now my module can power up and down nicely. The Hardware designer of the module I use for prototyping found it to be a nice idea to have the pin function like a button (which is also connected to the pin) so 1 is pressing the button, 0 is releasing it. It basically reversed the input for that pin. |
Awesome! I'll merge this PR then, so we can try to keep them in kinda "feature" PRs 👍 |
As I got sick and concentration is at the bottom just a small thing.
It builds now and excludes all the ublox_stack via
#![cfg(feature = "dontbuild")]
in all the modules filesI modified your ublox-sockets version again with the derive
AtatLen
for theSocketHandle
and I useatat
0.20 everywhere.complete diff for ublox-sockets from your branch with my changes: