Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't send more than 256 bytes via the LoRa link. #4

Open
giuliocorradini opened this issue Apr 25, 2023 · 2 comments
Open

Can't send more than 256 bytes via the LoRa link. #4

giuliocorradini opened this issue Apr 25, 2023 · 2 comments

Comments

@giuliocorradini
Copy link
Member

An assert on SPI recv_buffer lenght prevents sending any message of size greater than 256 bytes.
A consumer mechanism must be implemented to send the whole packet down the link.

Incriminated line in nuttx/drivers/rf/rfm95.c:344

DEBUGASSERT(buflen <= sizeof(recv_buffer));

a solution could be to remove entirely this assert check, and implement a for-loop that read the incoming buffer in chunks of 256 bytes; this lets us leave unmodified the rest of the code.

@giuliocorradini
Copy link
Member Author

It also seems that for buffer values greater than 51, the transmission doesn't work.

When sending less than 52 bytes the TX_DONE flags is instantly activated, while sending more than 52 bytes doesn't set the TX_FLAG ever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant