Cannot establish a connection to Raspberry Pi 3

10 Ansichten (letzte 30 Tage)
Felix Beu
Felix Beu am 15 Okt. 2018
Beantwortet: Felix Beu am 23 Okt. 2018
I'm working with MATLAB R2018b with support package for raspberry pi; Windows 10; Raspberry Pi 2 B & 3 Model B+.
When I try to connect to my RPi for the first time after installing raspbian_R18.2.0, I get an timeout or connection error after "### Lauching MATLAB I/O server".
I've tried two different SD Cards and two Raspberry Pi's. All give me the same result.
>> !ping xxx.xxx.xxx.189
Ping wird ausgeführt für xxx.xxx.xxx.189 mit 32 Bytes Daten:
Antwort von xxx.xxx.xxx.189: Bytes=32 Zeit<1ms TTL=64
Antwort von xxx.xxx.xxx.189: Bytes=32 Zeit<1ms TTL=64
Antwort von xxx.xxx.xxx.189: Bytes=32 Zeit<1ms TTL=64
Antwort von xxx.xxx.xxx.189: Bytes=32 Zeit=1ms TTL=64
Ping-Statistik für xxx.xxx.xxx.189:
Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 0ms, Maximum = 1ms, Mittelwert = 0ms
>> raspi
### Updating Raspberry Pi I/O server...
### Connecting to board...
### Connected to xxx.xxx.xxx.189...
### Creating server folder...
### Transferring source files...
### Building MATLAB I/O server...
### Launching MATLAB I/O server...
Cannot establish a connection to the board with device address "xxx.xxx.xxx.189". Wait 30 seconds and try again.
Did anybody have an idea how to fix that?
Thanks a lot!
  3 Kommentare
Ming Yue
Ming Yue am 19 Okt. 2018
Bearbeitet: Ming Yue am 19 Okt. 2018
Also, when you first installed Rasbian, the default login is username=pi, password=raspberry, can you also try creating raspi object with this:
>> r=raspi('xxx.xxx.xxx.189','pi','raspberry'); %replace with your board's IP
Christopher Cerqueira
Christopher Cerqueira am 23 Okt. 2018
Having the same issue as Felix. Disabled the firewall.
Matlab/Simulink are able to deploy models. I can ping through cmd, and connect via ssh.
The problem is through the raspi only.
r = raspberrypi works... and the targetHardware('Raspberry Pi') as well.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Felix Beu
Felix Beu am 23 Okt. 2018
Thanks a lot guys. At the moment I'm not able to check that. But I had a similar problem which I solved that way. So I'm pretty sure that disabling the windows firewall will solve the connection problems.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Support Package for Raspberry Pi Hardware finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by