Cannot establish a connection to Raspberry Pi 4

2 次查看(过去 30 天)
Hi, I have been trying to establish a connection to my raspberry pi 4 but the error codes give as the picture shows.
I have tried using LAN cable, SSID, home network, mathworks_raspbian_DL_R21.1.0 / mathworks_raspbian_R21.1.0, reinstalling MATLAB (R2021a) and disabling my windows firewall then restart. All of them keep showing the error of 'Cannot establish a connection to the board with device address "xxx.xxx.x.xxx'. Wait 30 seconds and try again.'
I have successfully connect with Putty and VNC viewer, so i guess the firmware is not the problem? Any suggestions to fix this problem? Please help me, thanks in advance!!

采纳的回答

Chew Wen Da
Chew Wen Da 2021-6-3
Hi, to update on this matter, the problem has been resolved! I tried to use MATLAB online to connect to my RPI and I follow through the process step by step including reinstallation of the firmware (you can follow the link below). In the end I get to connect and realized that my RPI model is not the same as written on my RPI 4B board, it was a RPI 2B instead. After this, I tried to make connection again with MATLAB R2021a and it works fine!
After all, I think the issue can be resolve by installing the MATLAB firmware from the terminal. You can access to your RPI interface using VNC Viewer. Just input the IP address, ID and password.
Connect to Raspberry Pi Hardware Board in MATLAB Online
https://www.mathworks.com/help/supportpkg/raspberrypiio/ug/connect-to-raspberry-pi-hardware-board-in-matlab-online.html

更多回答(0 个)

类别

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