Internal error: The initialization of the server code is incorrect. Trying to connect Raspberry Pi 5 to Matlab Online

9 ビュー (過去 30 日間)
Hello, I'm having an error message when trying to conect Raspberry Pi 5 to Matlab Online.
The Raspberry is running with 32-bits OS.
I get this on Matlab Online
raspilist
ans =
1x4 table
Name SerialNumber PackageVersion Status
______ __________________ ______________ __________________
"mypi" "f8dc8192ce8276c8" "24.2.0" "Ready to connect"
But when call raspi I got an internal error
mypi=raspi('f8dc8192ce8276c8');
Internal error: The initialization of the server code is incorrect.
Do you have any suggestions to fix this? Thank you.
  1 件のコメント
Rahaf
Rahaf 2025 年 4 月 29 日
Did you find a solution? I’m running into exactly the same issue and would appreciate your help.
Thanks

サインインしてコメントする。

回答 (1 件)

Abhishek Kumar Singh
Abhishek Kumar Singh 2025 年 2 月 28 日
Hi @David,
It seems that the MATLAB server on the Raspberry Pi might be misconfigured. Before proceeding, please ensure that your Raspberry Pi OS is compatible with MATLAB Online. The supported operating systems are Buster, Bullseye, and Bookworm.
To reconfigure your Raspberry Pi for MATLAB Online, run the following command:
sudo matlab-rpi-setup
If this doesn't resolve the issue, you can try removing and reinstalling the matlab-rpi package:
Remove the matlab-rpi Package
sudo apt-get remove matlab-rpi
sudo apt-get purge matlab-rpi
sudo apt-get autoremove
Re-add the matlab-rpi Package
sudo apt-get update
sudo apt-get install matlab-rpi
These commands should help you remove and then reinstall the matlab-rpi package. Sometimes, restarting your MATLAB Online session can also help resolve internal errors.
If these steps don't resolve the issue, I recommend checking the detailed troubleshooting guide available at https://www.mathworks.com/help/matlab/supportpkg/troubleshoot-raspberry-pi-in-matlab-online.html

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by