Simulink support package test connection error
Ältere Kommentare anzeigen
I am running through the Simulink Raspberry Pi hardware support package setup process. On the verify connection step on the enter credentials page, I get the message, "Verifying internet connection failed." On my computer, I am able to ssh in to the Raspberry Pi and ping google.com with multiple packets. I am also able to access internet on the Raspberry Pi through the web browser. I appreciate any suggestions or explanations that can be provided.
Antworten (1)
Hi Hunter,
There are a some workaround that will resolve the "Verifying Internet access failed" error:
- Ensure that the IP address 8.8.8.8 is not blocked on the network to which your Raspberry Pi is connected.Ensure that you enabled passwordless sudo: https://www.mathworks.com/help/simulink/supportpkg/raspberrypi_ug/enable-passwordless-sudo-in-linux-on-raspberry-pi-hardware.html
If the above workaround didn't worked out, please try the following troubleshooting steps:
- Ping the Raspi from MATLAB:
raspiObj = raspi.internal.hwsetup.Raspbian(address,username,password); % address (ipaddress of pi), username, password - within single quotes
resultTimeout = system(raspiObj, 'sudo ping -W 1 -c 1 8.8.8.8')
- Ping the Raspi without timeout: The outputs of 'resultTimeout' and 'resultNoTO', as well as the elapsed time returned by tic-toc will help us debug more.
tic;
resultNoTO = system(raspiObj, 'sudo ping -c 1 8.8.8.8');
toc;
resultNoTO
- If the above commands produce errors, then connect to Raspberry Pi through an SSH session and execute the following command:
sudo cat /etc/sudoers
- Share the output with us, this would give us more information about sudo privileges for a given username. Also, execute the following commands directly on the Raspi:
sudo ping -W 1 -c 1 8.8.8.8sudo ping -c 1 8.8.8.8ifconfigroute -neFtraceroute 8.8.8.8
These resources might be helpful in resolving "Verifying internet connection failed." error.
- https://www.mathworks.com/matlabcentral/answers/2078281-matlab-support-package-test-connection-error
- https://www.mathworks.com/help/simulink/supportpkg/raspberrypi_ug/access-internet-when-raspberry-pi-is-directly-connected-to-computer-using-ethernet.html
Kindly let me know if the issue persist.
Kategorien
Mehr zu Raspberry Pi Hardware finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!