RX.GET_FREE_OFFSETS API addition#213
Conversation
- Reads optional `SPEED`, `LOW`, `HIGH` params (defaults: current mode, 500 Hz, 2500 Hz)
- For each active offset in `m_bandActivity` (within 30 seconds), computes the blocked zone as `occ ± (requestedBW/2 + signalBW/2)` — accounting for both the occupying signal's actual bandwidth and your intended TX bandwidth
- Sorts and merges overlapping blocked zones, then returns the gaps as `FREE` segments
- Omits gaps narrower than your TX bandwidth (they can't fit anyway)
- Example response: {"params":{"FREE":[{"HIGH":860,"LOW":500,"WIDTH":360},{"HIGH":2500,"LOW":1120,"WIDTH":1380}],"BANDWIDTH":160,"HIGH":2500,"LOW":500,"SPEED":2,"_ID":...},"type":"RX.FREE_OFFSETS","value":""}
|
I'll have to look at the code when I get back to my desktop. |
Chris-AC9KH
left a comment
There was a problem hiding this comment.
Other than the requested note for the API version change, this looks good to me. Nice work on the API guys!
|
Was the note for the API something you wanted me to add or you will do that? |
You :) But if you don't have time, I can fix it post merge. |
|
Added. Hoping I did that correctly. Thanks! |
|
@WebBreacher It looks like this one is ready to merge. But it has to be rebased on master first. To do that, checkout master and run git pull master to update your local master branch. Then checkout your PR branch and run git rebase master. You'll have to resolve the conflicts between your code and what's been changed in master to finish the rebase. After rebasing push to your PR branch, and then this should merge. Thanks! |
|
Thanks @Chris-AC9KH. I believe I did it right but please let me know. Happy to redo. This is always the part of the git process that messes me up. |
|
This can merge when the CI runs pass. |
|
I knew I'd mess up. Please let me know what I need to do to fix this. Just follow the instructions above? |
|
On a quick look, it seems you have a missing |
|
found and fixed it. hopefully. |
Proposed new API call that allows the JS8Call API to share what offsets are available to use to send traffic.
SPEED,LOW,HIGHparams (defaults: current mode, 500 Hz, 2500 Hz)m_bandActivity(within 30 seconds), computes the blocked zone asocc ± (requestedBW/2 + signalBW/2)— accounting for both the occupying signal's actual bandwidth and your intended TX bandwidthFREEsegments