You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by "m-gorecki (via GitHub)" <gi...@apache.org> on 2024/06/05 09:36:46 UTC
[PR] Fix CoAP over serial fragmentation problem [mynewt-newtmgr]
m-gorecki opened a new pull request, #209:
URL: https://github.com/apache/mynewt-newtmgr/pull/209
When sending large packets over serial newtmgr was fragmenting them twice in case of using CoAP over serial. First fragmentation was performed inside Transceiver's TxCoap method,
before passing data to Tx method from SerialXport module. Tx method from SerialXport then would once again fragment data with the same MTU, but on this stage each fragment would get a packet stat designator, which is necessary to determine if a specific fragment is a start of new packet or continuing one. Because of previous data fragmentation, each fragment was passed to SerialXport Tx method individualy and each of this fragments was incorrectly interpreted as a starting of a new packet.
To solve this issue, the fragmentation was moved from Transceiver's TxCoap method to txCb functions, so now every kind of transport can implement it's own fragmentation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix CoAP over serial fragmentation problem [mynewt-newtmgr]
Posted by "vrahane (via GitHub)" <gi...@apache.org>.
vrahane merged PR #209:
URL: https://github.com/apache/mynewt-newtmgr/pull/209
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org