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

precompiled standard binaries? #48

Closed
jerabaul29 opened this issue Apr 22, 2022 · 6 comments
Closed

precompiled standard binaries? #48

jerabaul29 opened this issue Apr 22, 2022 · 6 comments

Comments

@jerabaul29
Copy link
Collaborator

@gauteh do you think you could provide some standard pre compiled binaries, that can be uploaded with the SF GUI tool, similar to what I do on the OMB? :) .

@gauteh
Copy link
Owner

gauteh commented Apr 22, 2022

Yes. The problem is that you need to specify the account the data is going to in the binary. So I haven't figure out how to do that yet.

@jerabaul29
Copy link
Collaborator Author

Ah, ok. Would it be possible to have something like (of course this is only my 2 cents, may be naive / flawed, just thinking loud):

  • by default, a space in non volatile but writable memory (Flash is ok for that, and I think it should be what is used, as there is no EEPROM on the artemis boards / ambiq chips) is initialized to all 0s and a "flag account is set" is set to false

Then at each boot:

  • if the flag is set to true and the account updated, then work as normal with the account that is registered in Flash
  • if not, open a small USB-over-serial based interface that ask for entering the account (with double confirmation, yes/no confirmation etc), and upon account successfully entered, save the account information in Flash, set the flag to true, and start "normal" operation.

It could also be possible, at each boot, to allow for a "grace period" of 10s or so when the instruments just waits a bit and the USB-over-serial interface is activated, so that even already configured sensors can be re configured.

This way the user could "simply" upload over USB with the SF GUI tool your firmware, and then configure it over USB at the first following boot. Or am I missing something? :)

@gauteh
Copy link
Owner

gauteh commented Apr 22, 2022

That should work :)

@gauteh
Copy link
Owner

gauteh commented May 16, 2022

#54 mitigates this issue somewhat, will make it easier to build the binaries independent of environment.

@gauteh
Copy link
Owner

gauteh commented Oct 11, 2022

One solution is to set the buoy-id and product through the notehub, but that requires a step similar to rockblock where you assign or register the device. Can maybe be made optional.

gauteh added a commit that referenced this issue Sep 10, 2024
gauteh added a commit that referenced this issue Sep 10, 2024
@gauteh gauteh closed this as completed in b938f7a Sep 18, 2024
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

No branches or pull requests

2 participants