Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Controling TI board (DRV8886EVM Module)

1 回表示 (過去 30 日間)
Rawdha Ameen
Rawdha Ameen 2018 年 4 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by