Lora-net / LoRaMac-node

Reference implementation and documentation of a LoRa network node.
Other
1.87k stars 1.09k forks source link

Strange behavior of SX126x buffer #609

Closed alex-yazdan closed 5 years ago

alex-yazdan commented 5 years ago

Hi I have weird issue with SX126x (both sx1261 and sx1262) When I write to buffer , and read it back again, it returns different data. I wrote a small test,before enabling LORA MAC, and everything is OK,(Reading the same data as it wrote) But when LORA MAC is setup , exactly before sending data, I write to buffer and read it back , I get different data. What's the issue ? This is the code, I added read buffer. image And this is the result I get :

app: >>Buffer writing @ 0x00 , 23 bytes 00 91 4D 01 D0 7E D5 B3 70 7C 2E 87 DE 5F 3B D7 00 01 00 9B D5 0B B2 app: <
mluis1 commented 5 years ago

The observed behavior is the expected one. The buffer read and write pointer indexes are different.

These kind of questions aren't really related to this project thus, we kindly ask that you post your question on the Semtech LoRa Community forum in order to get further details.