Problem on detecting raspberry Pi on 2016a
Show older comments
After adding Raspberry support package following online tutorial I am facing error shown as bellow:
" Warning: Error while adding a route to Raspberry Pi: Connection not possible or there is an existing connection.
Failure establishing SSH session..
Error using matlabshared.internal.ssh2client
Error connecting to SSH server at 169.254.0.2
Error in raspi (line 156) obj.Ssh = matlabshared.internal.ssh2client(obj.IpNode.Hostname, ...
Error in rpi (line 61) obj.rpi_obj = raspi(varargin{1},...
Error in morseCode (line 28) myPi = rpi('169.254.0.2','pi','raspberry'); "
Pi is connected to computer (windows) by Ethernet cable directly.
Answers (1)
Walter Roberson
on 24 May 2016
1 vote
The entire 169.254 block is for self-assigned IP addresses that are subject to change at any time.
If you enable Ethernet Sharing (Port Sharing?) on the ethernet port that the PI is connected to then that will automatically enable DHCP server on the Windows machine, which will allow an IP address to be negotiated that should be more stable.
Categories
Find more on MATLAB Support Package for Raspberry Pi Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!