Connection with Rpi - raspi (Nanomsg not installed)
조회 수: 13 (최근 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!