Cannot query I2C bus speed
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Patrik
am 18 Jun. 2025
Bearbeitet: Xiaoxing Wang
am 13 Sep. 2025
Hi,
I’m using a Raspberry Pi 5 with the fresh latest OS and the MATLAB Support Package for Raspberry Pi. Last week I made a simple visualisaztion for gyroscope through i2c and it worked nicely. But today I had problem with this error when i try to do raspi
mypi = raspi('192.168.0.212', 'admin', 'raspberry');
Cannot query I2C bus speed.
Caused by:
Error using matlabshared.internal.ssh2client/execute
Error executing command "sudo cat /sys/module/i2c_bcm2708/parameters/baudrate". Details:
STDERR: cat: /sys/module/i2c_bcm2708/parameters/baudrate: No such file or directory
STDOUT:
So i looked everywhere, made a fresh OS install, flashed a bootloader. I tried enabling via GUI, raspi-config and matlab. Nothing worked. Interestingly when I disable i2c interface on pi I no longer get this error and can do things in matlab.
My /boot/config.txt correctly enables I2C and sets the baudrate:
Akzeptierte Antwort
Patrik
am 18 Jun. 2025
Bearbeitet: Walter Roberson
am 18 Jun. 2025
1 Kommentar
Xiaoxing Wang
am 13 Sep. 2025
Bearbeitet: Xiaoxing Wang
am 13 Sep. 2025
Great answer. I had the same symptom and now my Raspberry Pi 5 works.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Support Package for Raspberry Pi Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!