-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Independent build #2
Conversation
@shawaj thanks for pointing out the original wrong PR location. Both this and NebraLtd/packet_forwarder#2 are meant to be drafts. |
LGTM so far structure wise. |
We should probably use releases here and reference the releases in |
9bcb2b2
to
bdea0fb
Compare
bdea0fb
to
ff4e229
Compare
Also improved logging.
ff4e229
to
9c4b1d0
Compare
Using releases makes sense but I'm not sure how to do that automagically. For the moment, I'm just using commit hashes like we do in helium-miner-software. |
We can automatically tag and release easily as per But I guess this would also require a semver action such as: Otherwise we would have to manually tag/release. Maybe easier to just use the commit SHA like you have already? |
compile_libloragw.sh
Outdated
compile_libloragw_for_spi_bus spidev32766.0 | ||
} | ||
|
||
copy_reset_script() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably don't need this
Can just use the same reset script as for the sx1302 instead of copying multiple
See also NebraLtd/hm-pktfwd#59 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do see some small differences between the scripts but I'm unclear how significant they are. I agree we should only copy one file if the differences are not important.
Want to make the call @shawaj?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
the reason they are doing that is because they seem to be using GPIO7 for both the reset pin and as the SPI chip select pin. I don't understand why they did this - it is a bizarre choice. But we do not need to set any inputs on the reset pin as it is only used for reset and nothing else
-
iot_sk_init() in sx1301 folder is the same function essentially as init() and reset() together in the sx1302 function. so this is doing the same thing just in separate functions.
So I would say the sx1302 one makes more sense to keep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Cool
- @shawaj Not sure we are talking about the same thing. The relevant code is in a case statement to handle
start
andstop
commands differently. I agree thatiot_sk_init()
vsinit()
+reset()
are functionally the same forstart
. But forstop
, the sx1301 version is missing the call to reset/init all together. That said, I'm OK using the sx1302 code only and will make that change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marvinmarnold i don't know exactly why there is a need to reset before the term() command - to be honest I think that is unecesary in sx1302 - but it also will not harm so may as well leave it in (for either sx1301 or sx1302)
Let's prioritize getting the current work over the line. The steps you laid out should work. Created a new issue to track this work. |
This script duplicates logic in the sx1302_hal version. That version will be used instead.
Why
The hm-pktfwd build process is confusing.
This is one of two proposals on how to structure the Dockerfile in order to improve things.We have decided to split up the build process by repo instead of having a mono-Dockerfile in hm-pktfwd.How
Builds libloragw only and outputs to
/opt/output
to be retrieved by packet_forwarder and hm-pktfwd.References