Info
此问题已关闭。 请重新打开它进行编辑或回答。
Controling TI board (DRV8886EVM Module)
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I am trying to sent USB commands to microcontroller board. The board is connected to serial port. I used WireShark to find the sent commands from the computer to the board. It was found that the commands look like this: 82 then 000011b8 then 0100. And this is only for one real command, for example only to turn the board on.
I used fprintf and fwrite, but the board is not responding.
This example on how I did it after making the serial connection:
fwrite(obj1, '82');
fwrite(obj1, '000011b8');
fwrite(obj1, '0100');
fwrite(obj1, '82');
fwrite(obj1, '000011bc');
fwrite(obj1, '0100');
fwrite(obj1, '82');
fwrite(obj1, '000011a0');
fwrite(obj1, '6400');
fwrite(obj1, '82');
fwrite(obj1, '000011cc');
fwrite(obj1, '0100');
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!