- The following documentation about the Simulink Support Package for Raspberry Pi Hardware will be helpful: Getting Started with Simulink Support Package for Raspberry Pi Hardware - MATLAB & Simulink Example - MathWorks India
- You can also refer to this video to deploy Simulink code on the hardware: Getting Started with Simulink Support Package for Raspberry Pi - YouTube
Simulink Code Deployed to Raspberry pi 4 but cannot run without internet
7 次查看(过去 30 天)
显示 更早的评论
I made a Simulink model to create a standalone execution on raspi. However, when I remove the ethernet cable, the code didn't run-on-boot.
~~~~~~
Set-up:
- Raspberry Pi 4 B+,
- Simulink and Matlab support packages for Raspi,
- raspi connected to router through ethernet cable,
- speaker is connected to raspi through AUX cable for code testing.
Steps taken:
- Have downloaded the support package, the right compiler
- Tested my model using the external mode: the program run on raspi
- Select the run-on-boot for automatic run after reboot
- Clicked on the build, deploy, start button to deploy the code into raspi
- Closed the matlab program
- Shutdown the raspi
- Remove the ethernet cable
- Turned on the raspi
Result: Nothing happened
Trial 2:
- Clicked on the build, deploy, start button to deploy the code into raspi (with ethernet connected)
- Remain the matlab program open
Result: The code run on pi
Trial 3:
- Continued from trial 2, switched off the raspi
- Close the MATLAB program
- Turned on the raspi (still connected to ethernet)
Result: after 24s, the raspi tells the IP address, the code doesnt run
Trial 4:
- Switch off the raspi, wait for 1 minute
- Turn it on
Result: after 24s, the raspi tells the IP address, the code doesnt run
Trial 5:
- Turn on MATLAB/Simulink program, connect raspi from MATLAB with code: raspi
- Open the simulink model and deploy again: The code run
- Close the MATLAB/Simulink program: the still run
Trial 6:
- Switch off the raspi, waited for 1 minute
- Turn on the raspi (still connected to ethernet)
Result: raspi say the IP address, the Code run
Trial 7:
- Switch off the raspi
- Remove the ethernet cable
- after 1 minute, turned on the raspi
- Waited for 5 minutes
Result: Nothing happened
Does anyone know what is the proper way to deploy, run and stop the code on raspi? And, hopefully make it work without internet after code deployement.
0 个评论
回答(1 个)
Srija Kethiri
2022-12-13
Hi Ainul,
I understand that you want to deploy Simulink code on the Raspberry pi using the ethernet cable
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Raspberry Pi Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!