I2c app problems


#1

Hi,
I am trying to run an app very similar to BatteryChargerReading which is in:
https://github.com/mangOH/mangOH/tree/master/samples/tutorials/mangOH_Red/i2c/BatteryChargerReading

The thing is: every time I try to run it on the Mangoh, I get these pieces of information on the log:

Jan 6 00:56:16 swi-mdm9x28-wp user.info Legato: INFO | supervisor[796]/supervisor T=main | app.c app_Start() 3377 | Starting app 'i2cReading’
Jan 6 00:56:16 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[796]/supervisor T=main | app.c GetDevID() 670 | Could not get file info for ‘/dev/i2c-0’. No such file or directory.
Jan 6 00:56:16 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[796]/supervisor T=main | app.c SetCfgDevicePermissions() 780 | Failed to set permissions (rw) for app ‘i2cReading’ on device '/dev/i2c-0’

I don’t know why the script is trying to access ‘dev/i2c-0’. I am using i2c-utils.h. Could someone help me?


#2

I saw it here:


#3

Perfect! Thanks a lot!