程序中,我想通过pc给usbdongle发送数据对本机uart的一些参数进行修改,修改后立即生效,该如何实现?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你想改的目标是“USBDongle” 还是 “与USBDongle连接的从机”?
如果是修改USBDongle的话,我记得是不支持的,除非你能改USBDongle的程序。
如果是修改“与USBDongle连接的从机”,那么你可以尝试自定义一组profile,通过Characteristic的访问将波特率参数发送到“从机”,从机在收到数据后对自身的串口重新设置波特率。