Decoding sx1261 SPI commands in FSK mode #483
-
Hi, Thanks for this great library! Introduction:I'm currently in a somewhat strange situation. I'm trying to decode the SPI communication from a Decoding SPI
The The Code:When I flash my NodeMCU (ESP-12E) module with the following sketch:
Result:The SX1272 only returns timeouts:
Problem:So I'm guessing my reverse SPI -> Code assumptions are somewhat incorrect, maybe someone can enlighten me on what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Going through your SPI decodes, it all seems correct (though the frequency seems more like 868.800 MHz), however, you're missing a crucial piece of the puzzle - the packet format. For example, you know the sync word starts with 0xC194C1, but you don't really know how long it is. Try to find the I would also use the interrupt-driven reception, since the 50 kbps data rate is quite high and therefore it's likely you will miss it (blocking mode timeout is calculated based on the configured data rate). Finally, as this is not really an issue (or at least it doesn't seem to be so far), I'm converting this to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Hi, Sorry for the late reply, but you're right! |
Beta Was this translation helpful? Give feedback.
Going through your SPI decodes, it all seems correct (though the frequency seems more like 868.800 MHz), however, you're missing a crucial piece of the puzzle - the packet format. For example, you know the sync word starts with 0xC194C1, but you don't really know how long it is.
Try to find the
SetPacketParams
transaction (opcode 0x8C), that should give you the remaining information.I would also use the interrupt-driven reception, since the 50 kbps data rate is quite high and therefore it's likely you will miss it (blocking mode timeout is calculated based on the configured data rate).
Finally, as this is not really an issue (or at least it doesn't seem to be so far), I'm converting this…