I2c bus [message #1776856] |
Wed, 22 November 2017 09:59 |
khaleel shaik Messages: 19 Registered: November 2017 |
Junior Member |
|
|
Hello
I successfully access Gpio through jdk.dio library.
Now im trying to access i2c device through index id method , but im facing below error
Quote:
2017-11-22 09:19:43,220 [Component Resolve Thread (Bundle 7)] INFO o.e.k.i.I2c - java.io.IOException
what i have did is
this is my jdk.dio.policy file (/opt/eclipse/kura/kura/jdk.dio.policy) in target
Quote:
grant {
permission jdk.dio.DeviceMgmtPermission "*:*", "open";
permission jdk.dio.gpio.GPIOPinPermission "*:*", "open,setdirection";
permission jdk.dio.gpio.GPIOPortPermission "*:*";
permission jdk.dio.i2cbus.I2CPermission "*:*";
permission jdk.dio.spibus.SPIPermission "*:*";
permission jdk.dio.uart.UARTPermission "*:*";
permission jdk.dio.watchdog.WatchdogTimerPermission "*:*";
permission java.security.AllPermission;
};
i added below line in jdk.dio.properties (/opt/eclipse/kura/kura/jdk.dio.properties) in target
Quote:
41 = deviceType: i2cbus.I2CDevice, address:0x52, addressSize:7, clockFrequency:400000
where 0x52 is my i2c device address.
Is this the path of jdk.dio.policy and jdk.dio.properties i am modifying is correct or some other files i need to modify?
Is something else i need to do?
Regards
khaleel
[Updated on: Wed, 22 November 2017 10:03] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.05595 seconds