Serial RC Delay through bluetooth
Posted: Tue Sep 03, 2013 3:55 am
Hi, guys.
I have a MWC board of atmega32U4 (PROMICRO).
The board has an USB and a serial, and I want to add an Blutooth module to serial port and control MWC through mobile phone.
In fact, I've did that, adding a bluetooth to the serial port, sending serial RC command RC MSP_SET_RAW_RC from mobile phone bluetooth, and the board responses the serial RC command, but the control delay is unacceptable,almost 90s when I send the command in 30FPS.
When decreasing the speed of sending MSP_SET_RAW_RC command, and the control delay is also decreased, the delay is about 100ms when in 3FPS that not suitable for a good flight.
After reading the code of MWC Serial, I realized that maybe the serial communication task is too heavy for ATMega32U4, If you send serial data too fast,
the MCU is busying in handling serial RX interrupt. But I'm still not sure, since the data stream is small(8 bytes per frame).
Does anyone have ideas about that?
I have a MWC board of atmega32U4 (PROMICRO).
The board has an USB and a serial, and I want to add an Blutooth module to serial port and control MWC through mobile phone.
In fact, I've did that, adding a bluetooth to the serial port, sending serial RC command RC MSP_SET_RAW_RC from mobile phone bluetooth, and the board responses the serial RC command, but the control delay is unacceptable,almost 90s when I send the command in 30FPS.
When decreasing the speed of sending MSP_SET_RAW_RC command, and the control delay is also decreased, the delay is about 100ms when in 3FPS that not suitable for a good flight.

After reading the code of MWC Serial, I realized that maybe the serial communication task is too heavy for ATMega32U4, If you send serial data too fast,
the MCU is busying in handling serial RX interrupt. But I'm still not sure, since the data stream is small(8 bytes per frame).
Does anyone have ideas about that?