Connection with Rpi - raspi (Nanomsg not installed)
12 次查看(过去 30 天)
显示 更早的评论
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 个评论
Prasanth Sunkara
2022-10-14
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 )
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Support Package for Raspberry Pi Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!