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

Bootloader protocol optimization: Remove UPD_SEND_DATA's first byte ramLocation #71

Open
dallmair opened this issue Apr 1, 2023 · 0 comments

Comments

@dallmair
Copy link
Member

dallmair commented Apr 1, 2023

The data is transmitted over a point-to-point connection where in-order delivery is guaranteed by the Transport Layer. Also, the PC Updater tool sends all bytes over the wire, so there are no "holes" between the transmissions. Therefore, the first byte of every UPD_SEND_DATA message called ramLocation could simply be left out. Consequently, the Bootloader must then use its bytesReceived member to store the received bytes in the correct buffer location.

With Standard Frames, this should get us from ~120B/s to ~130B/s as it reduces the number of necessary UPD_SEND_DATA messages per page from 22 to 20.

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

No branches or pull requests

1 participant