DEV Support: Purpose of Message Deferment

All- I know this is a specific question, but if anyone can help, it will be much appreciated.

First, what happens to the APM/ArduPlane when a Tx serial buffer is over-filled?

Second, what does message deferment accomplish/ why is it necessary for standard telemetry?

Third, what is the danger of sending to a serial port without using checks for buffer size and/or some message deferment process? Could it cause the APM to re-set and re-initialize?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi,

    First, what happens to the APM/ArduPlane when a Tx serial buffer is over-filled?

    Then you will start sending corrupted messages, which are useless and wasteful.

    Second, what does message deferment accomplish/ why is it necessary for standard telemetry?

    With deferment, it will be remembered that a message was not sent. The job is queued for when there is enough buffer space to do it.

    Third, what is the danger of sending to a serial port without using checks for buffer size and/or some message deferment process? Could it cause the APM to re-set and re-initialize?

    It looks to me like it is safe against that. But will just send rubbish messages that are not useful if the buffer overflows.

    Regards

    Soren

This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…