motherboard embedded software control and communication algorithm (based on stm32f4)