Clear Filters
Clear Filters

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)
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
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.
Varun Deshmukh
Varun Deshmukh on 26 Dec 2016
Edited: Varun Deshmukh on 26 Dec 2016
Actually, it worked perfectly on a friend's computer using the same IP... Also, I think this is more of a matlab error since the error is 'undefined variable matlabshared', also, I'm having no problem creating a ssh connection to my pi.

Sign in to comment.

Accepted Answer

David Ding
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)

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!