Matlab detects the wrong version of my Raspberry Pi
Mostrar comentarios más antiguos
I am using a Raspberry Pi 4 Model B and when I installed the support packages I did it for this particular version.On the one hand, Matlab/Simulink always detects a Raspberry Pi 2 Model B (e.g. when I type raspi() in the Command Window). On the other hand, Raspberry Pi Resource Monitor displays a Pi with '2GB Ram and the ARMv7 Processor rev 3(v7) with 4 cores @ 1500MHz'. These specifications are correct for the RPI 4 Model B. Basically the RPI works, but I don't know why the wrong version is detected.
7 comentarios
zan bai
el 8 de En. de 2022
same problem here on linux mint with matlab 2021a. my paspi 4b is detected as 'Raspberry Pi 2 ModelB'. no available sPI, I2C bus or webcams visible.
gpio acess works, but only pin 2-27 are visible. and the connected logitech brio is not visible.
any help?
Edwin Cortez
el 22 de En. de 2022
I have the same problem with boardName under MATLAB 2021B and running burnbed image mathworks_raspbian_DL_R21.2.0.img on sdcard. The raspi output is
Port: 18734
BoardName: 'Raspberry Pi 2 Model B'
AvailableLEDs: {'led0'}
AvailableDigitalPins: [4,5,6,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]
AvailableSPIChannels: {'CE0','CE1'}
AvailableI2CBuses: {'i2c-1'}
AvailableWebcams: {'mmal service 16.1 (platform:bcm2835-v4l2-0)'}
I2CBusSpeed: 100000
AvailableCANInterfaces: {}
I have not tested yet if the wrong boarName is causing any performance issues post deploy in Rpi.
Arish Yaseen
el 14 de Abr. de 2022
I am having the same issue. Can you update if you found out the reason for it or not?
Nicolas TRAUN
el 14 de Abr. de 2022
Te
el 8 de Ag. de 2022
I am also having the same issue. Has anybody found a solution for this?
Dinis
el 2 de Sept. de 2022
Same here. Does not detect my i2c bus too. This question has been up for months why has no staff at Mathworks answered it?
Brian Kingstone
el 12 de En. de 2024
Same here. I am using a Raspberry Pi Compute Module 4 ( RPI OS is Bullseye) and Matlab2023B. Matlab detects BoardName: 'Raspberry Pi 2 Model B'
Respuestas (1)
VINAYAK LUHA
el 14 de Sept. de 2023
Editada: VINAYAK LUHA
el 14 de Sept. de 2023
Hi Nicolas,
I understand that you wish to use a “RPI 4 Model B” board in MATLAB and have already installed support packages for the same and yet your MATLAB detects the device with an incorrect version.
Follow the pointers given below to resolve the issue -
- Verify the compatibility of your “Raspberry Pi 4 Model B” with your MATLAB version using the following documentation https://in.mathworks.com/hardware-support/raspberry-pi-matlab.html.
- Check and install available updates (if any) for Raspberry Pi support packages in the MATLAB Add-Ons Manager.
- Check and install Raspberry Pi firmware updates (if any) by running the following command on your board. Reboot your board for changes to take effect and connect to MATLAB. "sudo rpi-update"
- Establish a fresh connection with the board as per the below syntax, more on this in the following documentation https://in.mathworks.com/help/supportpkg/raspberrypiio/ref/raspi.html#d124e241
mypi = raspi(ipaddress,username,password);
If none of these step work, contact MathWorks Support for further assistance and more specific guidance based on your setup.
Regards,
Vinayak Luha
Categorías
Más información sobre Raspberry Pi Blockset en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!