Lora-net / sx126x_driver

Driver for SX126x radio
BSD 3-Clause Clear License
105 stars 31 forks source link

strange behavior in the RX buffer #8

Open jmmunoz86 opened 1 year ago

jmmunoz86 commented 1 year ago

when reading the buffer RX ( sx126x_read_buffer ) , if I read as many bytes as the sx126x_get_rx_buffer_status function says, there is random data. In order to retrieve my frame is to read 255 B and my received frame is there, with 4 bytes offset. If I read a different amount of bytes from the RX buffer, I get random data.

opeyrard commented 2 weeks ago

Hi, In https://github.com/Lora-net/SWSD003/blob/master/sx126x/common/apps_common.c (starting from line 478), you can find an example of reading received payload. Many thanks, Best regards,