Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我看不到您是否设置了发送和接收数据的波特率。这是我尝试在应用程序中设置通信时第一次遇到的问题。
如果您希望波特率为 9600,请编写以下内容:
connection.controlTransfer(0x40, 0x03, 0x4138, 0, null, 0, 0); // Sets the baudrate to 9600