Cannot establish a connection to Raspberry Pi 4

18 views (last 30 days)
Chew Wen Da
Chew Wen Da on 1 Jun 2021
Answered: Chew Wen Da2021年6月3日
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!!

Accepted Answer

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 董事会,这是一个 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
//www.tatmou.com/help/supportpkg/raspberrypiio/ug/connect-to-raspberry-pi-hardware-board-in-matlab-online.html

More Answers (0)

Community Treasure Hunt

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

Start Hunting!