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

10 views (last 30 days)
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.

Answers (1)

Abhishek Kumar Singh
Abhishek Kumar Singh on 28 Feb 2025
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

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!