Simulink support package test connection error

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.

Answers (1)

Hitesh
Hitesh on 13 Jun 2025
Edited: Hitesh on 13 Jun 2025
Hi Hunter,
There are a some workaround that will resolve the "Verifying Internet access failed" error:
 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.
Kindly let me know if the issue persist.

Categories

Products

Release

R2023a

Asked:

on 29 May 2025

Edited:

on 13 Jun 2025

Community Treasure Hunt

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

Start Hunting!