How to send and receive serial (UART) data on BeagleBone Black in Simulink

5 次查看(过去 30 天)
Hi,
we just installed the embedded coder support for Beaglebone Black. I tested the Simulink-example and it works just nicely. But there seems to be no provision for serial (UART) data in the simulink blocks. This seems strange as it is indeed part of all the other packages such as Arduino, Beaglebone Blue, and Raspberry. Am I overlooking something obvious or is this functionality not supported?
Does someone have a tip for how to build Simulink BBB Simulink applications that use the UART?
Best
Max

回答(1 个)

Swatantra Mahato
Swatantra Mahato 2021-11-11
Hi Max,
Currently there are no serial blocks in the Simulink support package for BBB to support serial communication using BBB. This might be considered for a future release.
As a workaround, you can write your own Simulink blocks to perform this function. You can refer the following as a starting point
In case you decide to write your own blocks, then this FileExchange post may be useful:
Hope this helps

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by