필터 지우기
필터 지우기

Connection with Rpi - raspi (Nanomsg not installed)

조회 수: 10 (최근 30일)
Dhruv Thakkar
Dhruv Thakkar 2022년 10월 13일
편집: Dhruv Thakkar 2022년 10월 14일
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
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 )
Dhruv Thakkar
Dhruv Thakkar 2022년 10월 14일
편집: Dhruv Thakkar 2022년 10월 14일
I ended up flashing the custom image on a spare memory card as I didn't want to tamper with my existing operating system. Can this question be closed?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile 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!

Translated by