Skip to content
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

feat: copy process from hm-pktfwd #1

Merged
merged 6 commits into from
Oct 22, 2021

Conversation

marvinmarnold
Copy link

@marvinmarnold marvinmarnold commented Oct 18, 2021

Why
The hm-pktfwd build process is confusing. Instead of building lora_gateway, packet_forwarder, and sx1302_hal in a single Dockerfile, this is being broken up into a Dockerfile per repo.

This will remain a draft until testing is complete in hm-pktfwd.

How

  • Deleted unnecessary files and copied in modified versions where needed.
  • Did not copy test_loragw_gps.c or test_loragw_gps_i2c.c because loragw_gps.c is not being used.

References

@marvinmarnold marvinmarnold force-pushed the marvinmarnold/independent-build branch 2 times, most recently from d690c94 to 4efe2cc Compare October 20, 2021 15:11
- Deleted unnecessary files and copied in modified versions where needed.
- Did not copy test_loragw_gps.c or test_loragw_gps_i2c.c because loragw_gps.c is not being used.
- Modified reset_lgw.sh according to what was in hm-pktfwd.

hm-pktfwd: https://github.com/NebraLtd/hm-pktfwd/blob/76897fd64383f849b21dabbb0f26558535a95f40/buildfiles/compileSX1302.sh#L5
loragw_gps discussion: NebraLtd/hm-pktfwd#23 (comment)
@marvinmarnold marvinmarnold force-pushed the marvinmarnold/independent-build branch from 4efe2cc to acc0770 Compare October 20, 2021 15:12
@marvinmarnold marvinmarnold marked this pull request as ready for review October 20, 2021 17:54
@marvinmarnold marvinmarnold requested a review from a team October 20, 2021 18:02
Copy all files that will be needed by hm-pktfwd
to an output directory. This is more similar to how
packet_forwarder and lora_gateway already work.
This also reduces the complexity of the build logic
in hm-pktfwd.
packet_forwarder/src/lora_pkt_fwd.c Outdated Show resolved Hide resolved
packet_forwarder/src/lora_pkt_fwd.c Show resolved Hide resolved
@shawaj
Copy link
Member

shawaj commented Oct 20, 2021

Did not copy test_loragw_gps.c or test_loragw_gps_i2c.c because loragw_gps.c is not being used

We may need to add these back in again in the future with our updated sx1303 based concentrator but not necessary for now as we don't use the GPS currently

tools/reset_lgw.sh Outdated Show resolved Hide resolved
@marvinmarnold marvinmarnold force-pushed the marvinmarnold/independent-build branch from f162a78 to 59c20a6 Compare October 21, 2021 19:10
- Allow, but do not require reset_lgw to accept a second parameter for
the reset pin.
@marvinmarnold marvinmarnold force-pushed the marvinmarnold/independent-build branch from 59c20a6 to bea966a Compare October 21, 2021 19:11
Use MSG_DEBUG to selectively output concentrator temperature.
It makes most sense if reset_lgw.sh is a standalone
script influenced by both sx1301 and all sx130x variants,
but it is distinct enough from any specific version that
the code should be in a separate repo.

Additional context: https://github.com/NebraLtd/sx1302_hal/pull/1/files#r733253225
@marvinmarnold marvinmarnold merged commit 6981105 into master Oct 22, 2021
@marvinmarnold marvinmarnold deleted the marvinmarnold/independent-build branch October 22, 2021 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants