MATLAB Answers

Issues getting Raspberry PI to connect consistently to MATLAB, both with an ethernet connection directly and through wifi.

7 views (last 30 days)
Amity Holt
Amity Holt on 3 May 2021
Answered: Reeno Joseph on 13 May 2021
I have successfully connected my Raspberry PI 4B to MATLAB and Simulink once before by using the 'connect through wifi' option when installing the hardware support package. I ran 'mypi=raspi' and it showed that it indeed was connected. It was able to run a Simulink program with no issue. After I powered down the PI and later tried reconnecting it, MATLAB told me that the IP address, password, or username was incorrect - I have not changed from the defaults and am sure I was using the same IP address. Trying to run the same program, it gave me an error saying it could not connect to SSH. I checked my router and it displayed the PI in the 'connected' devices and not in the 'unconnected devices', but the RSSI level was undefined. I have tried reinstalling the support package for Raspberry PI and using different connection options, but now it won't allow me to connect again even through the wifi option as I had before. Any help is greatly appreciated.

Answers (1)

Reeno Joseph
Reeno Joseph on 13 May 2021
Hi Amity,
Couple of troubleshooting steps that you can try.
  1. Try to ssh to the Raspberry Pi (with the IP address showing in the Router) using a putty
  2. Connect a monitor to the Raspberry Pi and make sure that it has booted up
  3. Within the Raspberry Pi desktop, check the network manager icon and verify the IP address
Let me know if you are facing any issue in the above steps.
-Reeno

Community Treasure Hunt

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

Start Hunting!

Translated by