Open alexandrbig opened 4 years ago
Thanks for the report. I only have a couple of i2c devices which appear to work ok, but will try to see if I can figure out if there are any issues with init/deinit.
Thank you for the quick reply. If there is any help needed from my side - just let me know.
same issue here ! I have a few devices on the I2C bus. At first run of i2cdetect the RPi sees all devices at full speed. After running the NodeJS application (RPIO LCD example), the display is refreshed, but afterwards i2cdetect is very slow and it does'tn see the devices anymore.
$ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: 20 21 -- -- -- -- -- 27 -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 70: 70 -- -- -- -- -- -- --
$ sudo node index.js (this is the LCD example)
$ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 03 -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
i2cdetect sees something at address 0x03 , but after the next run no devices are detected
Happen the same as PeterMaes , after rpio.i2cBegin();
I have the same problem.. no fix, no solution. Has anyone solved it? node.js v18 lte/raspberry pi zero 2w
Sensor: bmp180
Model: RPI 2B+
rpio: 1.3.0
Example is simple
i2c.js
:Steps:
$ sudo i2cdetect -y 1
$ sudo node i2c.js
After that the command
sudo i2cdetect -y 1
runs 10 times slower and shows no sensor:More over, I have another sensors which can be read with
rpio
without any issue, but after first read any other program can't get access to i2c bus.For example: After reboot:
$ sudo node ~/api/i2c.js
bmp180.js:
PS:
dtoverlay=gpio-no-irq
$ cat >/etc/udev/rules.d/20-gpiomem.rules <<EOF SUBSYSTEM=="bcm2835-gpiomem", KERNEL=="gpiomem", GROUP="gpio", MODE="0660" EOF
with and without it story is the samePlease let me know what is wrong and how to fix it. Thank you.