Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Device IO Properties Files
Device IO Properties Files [message #1715288] Sat, 21 November 2015 00:21 Go to next message
Nick Apperley is currently offline Nick ApperleyFriend
Messages: 1
Registered: November 2015
Junior Member
Been using a Device IO (DIO) properties file for the Raspberry Pi (comes from the latest OpenJDK Device IO revision - 02 Oct 2015) but don't know which version of the Raspberry Pi is being targeted. Are there any DIO properties files in the Kura source and if so where are they located?

Need a DIO properties file for the Raspberry Pi 2 Model B and one for the Beaglebone Black. Below is the contents of the DIO properties file that is currently being used for the Raspberry Pi 2 Model B:

--------------------------------------------------------
# RPi rev2 P1 header pins
1 = deviceType: gpio.GPIOPin, pinNumber:4, name:GPIO4, predefined:true
2 = deviceType: gpio.GPIOPin, pinNumber:7, name:GPIO7, mode:4, direction:1, predefined:true
3 = deviceType: gpio.GPIOPin, pinNumber:17, name:GPIO17, predefined:true
4 = deviceType: gpio.GPIOPin, pinNumber:18, name:GPIO18, mode:4, direction:1, predefined:true
5 = deviceType: gpio.GPIOPin, pinNumber:22, name:GPIO22, predefined:true
6 = deviceType: gpio.GPIOPin, pinNumber:23, name:GPIO23, mode:4, direction:1, predefined:true
7 = deviceType: gpio.GPIOPin, pinNumber:24, name:GPIO24, mode:4, direction:1, predefined:true
8 = deviceType: gpio.GPIOPin, pinNumber:25, name:GPIO25, mode:4, direction:1, predefined:true
9 = deviceType: gpio.GPIOPin, pinNumber:27, name:GPIO27, predefined:true

300 = deviceType: spibus.SPIDevice, name:SPI0.0, controllerNumber:0, address:0, csActive:1, wordLength:8, clockFrequency:500000, clockMode:1, bitOrdering:1, predefined:true

100 = deviceType: uart.UART, controllerName:ttyAMA0, name:ttyAMA0, baudRate:19200, dataBits:8, parity:0, stopBits:1, flowControl:0, predefined:true

gpio.GPIOPin = initValue:0, controllerNumber:0, direction:0, mode:1, trigger:0, predefined:true
uart.UART = baudRate:19200, parity:0, dataBits:8, stopBits:1, flowControl:0, predefined:true
--------------------------------------------------------
Re: Device IO Properties Files [message #1715627 is a reply to message #1715288] Tue, 24 November 2015 18:14 Go to previous message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hi Nick,

Kura also uses OpenJDK Device IO. The properties file is located at /opt/eclipse/kura/kura/jdk.dio.properties . Alternately, you can manually configure your pins using Java code. Documentation can be found here: http://eclipse.github.io/kura/doc/kura-dio-apis.html .

Thanks,
--Dave
Previous Topic:Using Wifi
Next Topic:eclipse Kura installation
Goto Forum:
  


Current Time: Tue May 07 20:48:37 GMT 2024

Powered by FUDForum. Page generated in 0.03381 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top