Ming
Ming
DIIDevHeads IoT Integration Server
Created by Boss lady on 7/2/2024 in #middleware-and-os
How can I interface an I2C device with BeagleBone Black running Embedded Linux
@Boss lady if the devices exist, then the next thing I would check are the permissions. Having just taken a quick look on mine...
debian@BeagleBone:~$ ls -l /dev/i2c-*
crw-rw---- 1 root gpio 89, 0 May 17 12:23 /dev/i2c-0
crw-rw---- 1 root gpio 89, 1 May 17 12:23 /dev/i2c-1
crw-rw---- 1 root gpio 89, 2 May 17 12:23 /dev/i2c-2
debian@BeagleBone:~$ ls -l /dev/i2c-*
crw-rw---- 1 root gpio 89, 0 May 17 12:23 /dev/i2c-0
crw-rw---- 1 root gpio 89, 1 May 17 12:23 /dev/i2c-1
crw-rw---- 1 root gpio 89, 2 May 17 12:23 /dev/i2c-2
Then that shows me they are only readable by the root user and anyone belonging to the gpio group. First thing to try is therefore running you program with sudo . If that works, then it is likely to be a permission issue. If it works, then the simplest solution would be to add yourself to the gpio group.
7 replies