arm<->pc 通过串口通信 程序很简单 arm端target发一个消息到pc,pc接到后发一个消息回去 现在出现问题是:pc发回的消息target一次无法读全,例如:
Please input your message: 1 /* target端*/ the message recevied from serial1 is: 123/*pc发的,实际是1234567890*/ Please input your message: a the message recevied from serial1 is: 4567890 Please input your message: a the message recevied from serial1 is: hel /*pc发的,实际发送的hello*/ Please input your message: the message recevied from serial1 is: lo Please input your message: a the message recevied from serial1 is: hel Please input your message:a the message recevied from serial1 is: lo Please input your message: 缓冲区长度1024,应该足够了! 串口速率设置也没问题的,用read函数直接从串口读取 请教这个可能是什么问题啊?