Problem on detecting raspberry Pi on 2016a

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.

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 5 月 24 日

1 投票

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.

カテゴリ

ヘルプ センター および File ExchangeMATLAB Support Package for Raspberry Pi Hardware についてさらに検索

タグ

質問済み:

2016 年 5 月 24 日

回答済み:

2016 年 5 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by