Repository navigation
Add licensing options: subscription, features, DVK refusal, live changes - #17
Merged
Merged
Conversation
The sim now answers 'sub license all' with the three FlexLib licence objects (license, license subscription, license feature) and can be set up to report any licence, at startup or live from the control port. Asked for by K5PTB to test AetherSDR against different licences. - --subscription none|smartsdr+|early-access, --subscription-expires, --license-feature NAME=0|1[:REASON] (repeatable), --dvk-refuses; --no-dvk-license kept - /license?feature=&enabled=&reason= / subscription= / expires= / dvk_refuses= changes it live and pushes the status to the connected client; validated before anything changes; rack mode takes radio=N - dvk commands refused with 50004001 when dvk_refuses is on - tests/test_licensing.py (20 checks), PROTOCOL.md section 11, README Checked end to end against the aethersdr/AetherSDR#6292 build: with the keyer source on Automatic, AE switches Radio -> Local and back on live licence changes without reconnecting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Asked for by K5PTB: test AetherSDR against different licences.
The sim now answers
sub license allwith the three FlexLib licence objects (license,license subscription,license feature) and can report any licence, at startup or live.--subscription none|smartsdr+|early-access,--subscription-expires YYYY-MM-DD(a past date = expired),--license-feature NAME=0|1[:REASON](repeatable),--dvk-refuses;--no-dvk-licensekept. Malformed values stop the sim at startup.GET /license?feature=&enabled=&reason=/subscription=/expires=/dvk_refuses=changes the licence and pushes the new status to the connected client, with no reconnect. Everything is validated before anything changes. Rack mode takesradio=N./statecarries the licence.dvk_refuseson,dvk ...commands are answered0x50004001.tests/test_licensing.py(20 checks), PROTOCOL.md §11, README.Tests: full suite 44 passed.
End to end: against the aethersdr/AetherSDR#6292 build, with the keyer source on Automatic, AE switches Radio → Local when the licence goes off (the "Radio DVK" item is removed from the menu) and back to Radio when it comes on, without reconnecting.
🤖 Generated with Claude Code