You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2015/04/17 12:18:56 UTC
svn commit: r947997 - in /websites/production/camel/content:
cache/main.pageCache raspberrypi.html
Author: buildbot
Date: Fri Apr 17 10:18:55 2015
New Revision: 947997
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/raspberrypi.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/raspberrypi.html
==============================================================================
--- websites/production/camel/content/raspberrypi.html (original)
+++ websites/production/camel/content/raspberrypi.html Fri Apr 17 10:18:55 2015
@@ -85,14 +85,14 @@
<tbody>
<tr>
<td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="RaspberryPi-RaspberryPi(raspberrypi)Component">Raspberry Pi (raspberrypi) Component</h2><p><strong>Available as of Camel 2.16+</strong></p><p>The <strong>rbpi:</strong> component provides Raspberry Pi based <a shape="rect" href="https://cwiki.apache.org/confluence/display/CAMEL/Endpoint">endpoints</a> for consuming GPIO Event. It can generates GPIO output event<br clear="none"> The component uses the <a shape="rect" class="external-link" href="http://pi4j.com/" rel="nofollow">pi4j</a> library.</p><p>Maven users will need to add the following dependency to their <code>pom.xml</code> for this component:</p><p> </p><div class="container" title="Hint: double-click to select code"><p> </p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<div class="wiki-content maincontent"><h2 id="RaspberryPi-RaspberryPi(raspberrypi)Component">Raspberry Pi (raspberrypi) Component</h2><p><strong>Available as of Camel 2.16+ on Camel-extra-repository (in progress)<br clear="none"></strong></p><p>The <strong>rbpi:</strong> component provides Raspberry Pi based <a shape="rect" href="https://cwiki.apache.org/confluence/display/CAMEL/Endpoint">endpoints</a> for consuming GPIO Event. It can generates GPIO output event<br clear="none"> The component uses the <a shape="rect" class="external-link" href="http://pi4j.com/" rel="nofollow">pi4j</a> library.</p><p>Maven users will need to add the following dependency to their <code>pom.xml</code> for this component:</p><p> </p><div class="container" title="Hint: double-click to select code"><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-raspberrypi</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>]]></script>
-</div></div><p> </p></div><h3 id="RaspberryPi-URIformat">URI format</h3><p>The URI format to configure and manage PIN</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div></div><h3 id="RaspberryPi-URIformat">URI format</h3><p>The URI format to configure and manage PIN</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[raspberrypi://type:id?mode={output}&action={action}...
raspberrypi:type:id[?options]]]></script>
</div></div><div class="syntaxhighlighter nogutter java"><p> </p></div><h3 id="RaspberryPi-RaspberryOption">Raspberry Option</h3><p> </p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Name</th><th colspan="1" rowspan="1" class="confluenceTh">Type</th><th colspan="1" rowspan="1" class="confluenceTh">Required</th><th colspan="1" rowspan="1" class="confluenceTh">Enum Values</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">id</td><td colspan="1" rowspan="1" class="confluenceTd">java.lang.String</td><td colspan="1" rowspan="1" class="confluenceTd">true</td><td colspan="1" rowspan="1" class="confluenceTd"> </td><td colspan="1" rowspan="1" class="confluenceTd">To configure the pin id (Pi4j index)</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">state</td><td colspan="1" rowspan="1" class="confluenceTd">com.pi4j.io.gpio
.PinState</td><td colspan="1" rowspan="1" class="confluenceTd"> </td><td colspan="1" rowspan="1" class="confluenceTd"><strong>LOW</strong><br clear="none">HIGH</td><td colspan="1" rowspan="1" class="confluenceTd"><p>To configure pin state :</p><p>if DIGITAL_INPUT then it is the event trigger state</p><p>if DIGITAL_OUTPUT then started state</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">mode</td><td colspan="1" rowspan="1" class="confluenceTd">com.pi4j.io.gpio.PinMode</td><td colspan="1" rowspan="1" class="confluenceTd">true</td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>DIGITAL_OUTPUT</strong></p><p>DIGITAL_INPUT</p><p>PWM_OUTPUT</p><p>ANALOG_OUTPUT</p><p>ANALOG_INPUT</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>To configure GPIO pin mode</p><p>Check Pi4j library for more details</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">action</td><td colspan="1" rowspan="1" class="confluenceTd">org.apache.cam
el.component.raspberrypi.PinAction</td><td colspan="1" rowspan="1" class="confluenceTd"> </td><td colspan="1" rowspan="1" class="confluenceTd"><p>TOGGLE</p><p>BUZZ</p><p>HIGH</p><p>LOW</p><p>HEADER</p></td><td colspan="1" rowspan="1" class="confluenceTd">Default : use Body to if Action for ouput Pin (TOGGLE, BUZZ, HIGH, LOW for digital only) (HEADER digital and analog TODO)</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">value</td><td colspan="1" rowspan="1" class="confluenceTd">double</td><td colspan="1" rowspan="1" class="confluenceTd"> </td><td colspan="1" rowspan="1" class="confluenceTd">0</td><td colspan="1" rowspan="1" class="confluenceTd"><p>To configure the started value</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">shutdownExport</td><td colspan="1" rowspan="1" class="confluenceTd">boolean</td><td colspan="1" rowspan="1" class="confluenceTd"> </td><td colspan="1" rowspan="1" class="confluenceTd">true</td><td colspan="1" rowsp
an="1" class="confluenceTd">To configure the pin shutdown behavior</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">shutdownState</td><td colspan="1" rowspan="1" class="confluenceTd">com.pi4j.io.gpio.PinState</td><td colspan="1" rowspan="1" class="confluenceTd"> </td><td colspan="1" rowspan="1" class="confluenceTd"><strong>LOW</strong><br clear="none">HIGH</td><td colspan="1" rowspan="1" class="confluenceTd">To configure the pin state value before exit</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">shutdownResistance</td><td colspan="1" rowspan="1" class="confluenceTd">com.pi4j.io.gpio.PinPullResistance</td><td colspan="1" rowspan="1" class="confluenceTd"> </td><td colspan="1" rowspan="1" class="confluenceTd"><strong>OFF</strong><br clear="none">PULL_DOWN<br clear="none">PULL_UP</td><td colspan="1" rowspan="1" class="confluenceTd">To configure the pin resistance before exit</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">pullResist
ance</td><td colspan="1" rowspan="1" class="confluenceTd">com.pi4j.io.gpio.PinPullResistance</td><td colspan="1" rowspan="1" class="confluenceTd"> </td><td colspan="1" rowspan="1" class="confluenceTd">OFF<br clear="none">PULL_DOWN<br clear="none"><strong>PULL_UP</strong></td><td colspan="1" rowspan="1" class="confluenceTd"><p>To configure the input pull resistance,</p><p>Avoid strange value for info <a shape="rect" class="external-link" href="http://en.wikipedia.org/wiki/Pull-up_resistor" rel="nofollow">http://en.wikipedia.org/wiki/Pull-up_resistor</a></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">type</td><td colspan="1" rowspan="1" class="confluenceTd">org.apache.camel.component.raspberrypi.RaspberryType</td><td colspan="1" rowspan="1" class="confluenceTd">true</td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>pin</strong></p><p>i2c</p><p>spi</p><p>serial</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>pin : GPIO pi4j and wiringpi
mapping,</p><p>i2c, spi, serial not yet available</p></td></tr></tbody></table></div><p> </p><h3 id="RaspberryPi-Example:">Example :</h3><h4 id="RaspberryPi-Simplebuttonw/LEDmode">Simple button w/ LED mode</h4><p>Plug an button on GPIO 1, and LED on GPIO 2 (with Resistor) and code a route like this</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">