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

10 views (last 30 days)
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
  1 Comment
Grant Smith
Grant Smith on 7 Apr 2022
I am having the same frustrations as the OP. I am currently in direct connect LAN mode and I am watching the Pi boot up on an external display.
Matlab utility continues to fail at connecting to the Pi but I can open the VCN utility on the Pi and see an IP address for connecting to it and I can ping that IP address successfully from the host PC command prompt. But Matlab utility is a no.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!