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

조회 수: 18 (최근 30일)
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.

답변 (1개)

Reeno Joseph
Reeno Joseph 2021년 5월 13일
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
Grant Smith
Grant Smith 2022년 4월 7일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by