Can't connect raspberry pi 5 to matlab online
조회 수: 7 (최근 30일)
이전 댓글 표시
My raspberry is rasopberry 5 and i have installed OS 32 bit bookworm. I have followed instructions on this link : https://www.mathworks.com/help/matlab/supportpkg/connect-to-raspberry-pi-hardware-board-in-matlab-online.html#raspi_online_setup 

I have connected my raspberry to my laptop (using ethernet cable and same wifi connection). the problem described as above picture. please kindly give solution to this issue
댓글 수: 0
답변 (1개)
colordepth
2025년 4월 15일
From the documentation of "raspi" (https://www.mathworks.com/help/matlab/supportpkg/raspi.raspi.html):- In MATLAB Online™, the raspi object reuses the settings from the most recent successful connection.
The error shown in your screenshot suggests that the "raspi" command is trying to connect to a board named Raspberry_Pi, whereas "raspilist" is saying the available board name is pi instead. This could be due to a number of reasons, like a renamed display-name for the board or the usage of a different board than the most recent successful connection.
Nevertheless, you can explicity provide this target hardware name to "raspi" as shown in the following command:
r = raspi('pi') % I am using 'pi' here as it is the name returned by your *raspilist* invocation
This workflow is outlined in the web documentation here: https://www.mathworks.com/help/matlab/supportpkg/raspi.raspi.html#mw_a0328261-a056-4825-80b2-57bbb0e5d146
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!