Repository navigation
Fix uplink SPI RX opcode: 0x06 placeholder -> 0x02 (CMD_RADIO_RX_FIFO) - #36
Merged
Merged
Conversation
The placeholder opcode 0x06 does not exist in the ulysses-gnss-radio firmware's pull-mode command set (Core/Inc/protocol_config.h); the board would count it as an unknown command and always return zeros, so uplink commands would never reach the command thread. Confirmed against the GNSS firmware source: - Radio RX opcode is 0x02 (CMD_RADIO_RX_FIFO, oldest-first so commands keep their ground-sent order; 0x01 is the LIFO variant). - Transaction framing matches what gnss_spi_read() already clocks: [CMD:1][DUMMY:4][PAYLOAD:256] = 261 bytes. - The board splits the radio UART stream on 0x00, strips the terminator, and zero-pads messages into 256-byte queue slots, so the existing scan-to-first-zero COBS decode in command_thread.c works unchanged. - The board boots hardcoded into pull mode; no config frame is required.
ivan-lyf
marked this pull request as ready for review
July 26, 2026 19:51
jasonkwok475
approved these changes
Jul 26, 2026
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.
No description provided.