MikeSmith/px_nuttx — Issue #1: Buffer overflow on /dev/ttyS1 and /dev/ttyS2 ?
Author: julianoes
Created: 2012-03-01 13:49:15+00:00
State: open

We tried to implement the mavlink i/o on the PX4FMU and probably ran into a buffer overflow.

We read the input from /dev/ttyS1(USART2) respectively /dev/ttyS2 (USART5) and gave debug information on /dev/ttyS0 (USART1). As soon as we send too quickly too many bytes/chars, it crashes. However, when we spam /dev/ttyS0 the same way, it works (stops a while to process but comes back up).

The test/example code is at
https://github.com/px4/px_nxbuilder/tree/buffer_test/px4fmu/apps/mavlink

Thanks and cheers