I'm having a problem connecting to my raspberry pi, can anyone tell me what this error means and how I can solve the problem?
1 view (last 30 days)
Show older comments
Varun Deshmukh
on 22 Dec 2016
Edited: Varun Deshmukh
on 19 Jan 2017
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159185/image.png)
This happens whenever I use the 'test connection' option and a similar error saying 'undefined variable matlabshared' shows up if I try to deploy my code to the hardware. I tried reinstalling the support package, but that dosen't seem to work.
3 Comments
Walter Roberson
on 23 Dec 2016
No, that is definitely not a public IP address. It is an IP address located in the IPv4 Link-Local Address range . Link-local addresses are self-assigned when a system cannot figure out its address, especially if it DHCP's and gets no useable response. 169.254 addresses tend to change for no good reason; any time the system in question is restarted or rebooted it might assign itself a different 169.254 IP address. The 169.254 address that you saw and interacted with before lunch might not still be there in the afternoon.
It is therefore recommended that instead of using 169.254 addresses that you add in a DHCP server and give it a better address, with or without MAC reservation (MAC reservation would reserve the IP address for the device.) Apparently on MS Windows systems if you enable "Connection Sharing" on the interface then that turns on a DHCP server.
Accepted Answer
David Ding
on 29 Dec 2016
Hello Varun,
I suggest re-installing the MATLAB support packages for the Raspberry Pi hardware (if you have not done so already). To do this, in MATLAB, type:
>> supportPackageInstaller
(On older versions of MATLAB the command is "targetinstaller")
Then, navigate to the MATLAB Support Package for Raspberry Pi Hardware on the subsequent Add-On Explorer page that opens and follow the on-screen instructions.
Thanks,
David
More Answers (0)
See Also
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!