Connection with Rpi - raspi (Nanomsg not installed)
13 views (last 30 days)
Show older comments
I am trying to connect a raspberry pi to MATLAB using raspi. However, I keep getting the following error.
pi = raspi('192.168.50.1','pi','raspberry')
### Updating Raspberry Pi I/O server...
### Connecting to board...
### Connected to 192.168.50.1...
Nanomsg library software package (https://github.com/nanomsg/nanomsg/archive/1.0.0.zip) is not found
on the Raspberry Pi board. Raspberry Pi I/O server requires nanomsg GIT reporitory be installed in
/tmp/nanomsg-1.0.0 folder. Follow the instructions below to install nanomsg:
1. Make sure that your Raspberry Pi board is connected to Internet
2. Login to your Raspberry Pi and execute the following commands on a terminal:
$ sudo rm -fr /tmp/nanomsg-1.0.0
$ wget https://github.com/nanomsg/nanomsg/archive/1.0.0.zip
$ sudo unzip 1.0.0.zip -d /tmp
$ cd /tmp/nanomsg-1.0.0 ; mkdir build ;
$ cd build ;
$ cmake .. ;
$ cmake --build .
$ sudo cmake --build . --target install
$ sudo ldconfig
I followed these steps, installed libnanomsg-dev, libasound2-dev, enabaled I2C but nothing worked. I am not using the custom Matlab image, can this be fixed?
Thank you
2 Comments
Prasanth Sunkara
on 14 Oct 2022
Hello Dhruv,
Could you please share more info about the Raspberry Pi setup you have? This would help me in identifying what went wrong.
1) Which version of Raspberry Pi Board? Say 3b, 3b etc
2) Which OS are you using? Stretch, Buster etc. You can find it when you execute "cat /etc/os-release" on the Pis terminal
3) Is it 32-bit or 64 bit? Right no, MATLAB only supports 32 bit OS
4) If you are not using Matlab Image, have run the "Customize exisitng operating system" process from the hardware setup app? (see this )
Answers (0)
See Also
Categories
Find more on MATLAB Support Package for Raspberry Pi Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!