Error connecting to raspberry pi.

Cannot establish a connection to the board with device address "169.254.157.71". Wait 30 seconds and try again.
I've used putty to enable SSH and the default settings for username and password. I can ping to it but I can't create the object using the line:
My_raspi = raspi('169.254.157.71','pi','raspberry')
MATLAB just tells me to wait 30 seconds. Any thoughts?
Edit: seems to be working just fine on MATLAB R2017b. Not on MATLAB R2018a.

Respuestas (2)

Omar Hadeed
Omar Hadeed el 20 de Nov. de 2019

4 votos

The raspberry pi rebooted abruptly and now it's stuck on the old session. You need to update the server.
Try this:
raspi.internal.updateServer('ip_address','username','password')

3 comentarios

mujib khan
mujib khan el 19 de Jun. de 2021
Thanks it works.
Ej Math
Ej Math el 26 de Ag. de 2021
Worked for me also.. Thank you
Prabuditha Isuru Abhishake
Prabuditha Isuru Abhishake el 14 de Oct. de 2021
Hi, can I please know is this work after pi reboot (turning off the power and on it again)?

Iniciar sesión para comentar.

julio espinoza
julio espinoza el 18 de Feb. de 2022

0 votos

Muchas gracias, si me funciono

Categorías

Más información sobre MATLAB Support Package for Raspberry Pi Hardware en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Abr. de 2018

Respondida:

el 18 de Feb. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by