Borrar filtros
Borrar filtros

Connection with Rpi - raspi (Nanomsg not installed)

10 visualizaciones (últimos 30 días)
Dhruv Thakkar
Dhruv Thakkar el 13 de Oct. de 2022
Editada: Dhruv Thakkar el 14 de Oct. de 2022
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 comentarios
Prasanth Sunkara
Prasanth Sunkara el 14 de Oct. de 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 )
Dhruv Thakkar
Dhruv Thakkar el 14 de Oct. de 2022
Editada: Dhruv Thakkar el 14 de Oct. de 2022
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?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB Support Package for Raspberry Pi Hardware en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by