
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
<title>Chibi Extension – Tinkerforge</title>

<!--<link type="text/css" rel="stylesheet" href="http://www.tinkerforge.com/static/base_tf.css" />-->
<link type="text/css" rel="stylesheet" href="http://www.tinkerforge.com/static/jquery.lightbox-0.5.css" />
<meta name="keywords" content="Tinkerforge, Open Source Hardware, Bricks, Bricklets, USB Controllable, USB Sensing, USB Controlling" />
<meta name="description" content="Easy-to-use open source hardware. Control motors and sense the environment over USB, Ethernet or Wi-Fi/WLAN with C/C++, C#, Delphi/Lazarus, Java, JavaScript, LabVIEW, Mathematica, MATLAB/Octave, Perl, PHP, Python, Ruby, Shell, Visual Basic .NET or directly over TCP/IP." />
<meta name="copyright" content="Tinkerforge GmbH" />
<!--<script type="text/javascript">document.write('<style>.noscript { display: none; }</style>');</script>-->


    
    <link rel="stylesheet" href="../../_static/documentation_tf.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../',
        VERSION:     '1.0',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <link rel="top" title="Tinkerforge" href="../../index.html" />
    <link rel="up" title="Master Extensions" href="Master_Extensions.html" />
    <link rel="next" title="Ethernet Extension" href="Ethernet_Extension.html" />
    <link rel="prev" title="Master Extensions" href="Master_Extensions.html" />

<script type="text/javascript" src="http://www.tinkerforge.com/static/jquery.lightbox-0.5.js"></script>
<script type="text/javascript">$(function() { $('#gallery a').lightBox(); });</script>
<script type="text/javascript">$(function() { $(".sphinxsidebarwrapper").filter(function() { return $.trim($(this).text()).length == 0; }).parent().hide(); });</script>


  </head>
  <body>
<div id="wrapper">
	<div id="tfcontent">
		<div class="boxContent3">


<div class="toctree">
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../Getting_Started.html">Getting Started</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../../Primer.html">Primer</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Tutorials/Tutorials.html">Tutorials</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../FAQ.html">FAQ</a></li>
</ul>
</li>
<li class="toctree-l1 current"><a class="reference internal" href="../Hardware.html">Hardware</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../Bricks/Bricks.html">Bricks</a></li>
<li class="toctree-l2"><a class="reference internal" href="../Bricklets/Bricklets.html">Bricklets</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="Master_Extensions.html">Master Extensions</a><ul class="current">
<li class="toctree-l3 current"><a class="current reference internal" href="">Chibi Extension</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#features">Features</a></li>
<li class="toctree-l4"><a class="reference internal" href="#description">Description</a></li>
<li class="toctree-l4"><a class="reference internal" href="#technical-specifications">Technical Specifications</a></li>
<li class="toctree-l4"><a class="reference internal" href="#resources">Resources</a></li>
<li class="toctree-l4"><a class="reference internal" href="#chibi-network-assembly">Chibi Network Assembly</a><ul>
<li class="toctree-l5"><a class="reference internal" href="#chibi-configuration">Chibi Configuration</a></li>
<li class="toctree-l5"><a class="reference internal" href="#chibi-network-modification">Chibi Network Modification</a></li>
<li class="toctree-l5"><a class="reference internal" href="#chibi-frequency-and-channel">Chibi Frequency and Channel</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="#programming-interface">Programming Interface</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="Ethernet_Extension.html">Ethernet Extension</a></li>
<li class="toctree-l3"><a class="reference internal" href="RS485_Extension.html">RS485 Extension</a></li>
<li class="toctree-l3"><a class="reference internal" href="WIFI_Extension.html">WIFI Extension</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../Power_Supplies/Power_Supplies.html">Power Supplies</a></li>
<li class="toctree-l2"><a class="reference internal" href="../Accessories/Accessories.html">Accessories</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Timeline.html">Timeline</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Software/Software.html">Software</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../../Software/Brickd.html">Brick Daemon (brickd)</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Software/Brickv.html">Brick Viewer (brickv)</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Software/API_Bindings.html">API Bindings</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Software/Firmwares_And_Plugins.html">Firmwares and Plugins</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Software/Device_Identifier.html">Device Identifier</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Source_Code.html">Source Code and Bug Tracking</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Programming_Interface.html">Programming Interface</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Kits/Kits.html">Starter Kits</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../../Kits/WeatherStation/WeatherStation.html">Weather Station</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Kits/HardwareHacking/HardwareHacking.html">Hardware Hacking</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Kits/ServerRoomMonitoring/ServerRoomMonitoring.html">Server Room Monitoring</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Kits/Blinkenlights/Blinkenlights.html">Blinkenlights</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Kits/InternetOfThings/InternetOfThings.html">Internet of Things</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Kits/CameraSlider/CameraSlider.html">Camera Slider</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Embedded/Boards.html">Embedded Boards</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../../Embedded/Raspberry_Pi.html">Raspberry Pi</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Specifications.html">Specifications</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../../Technical_Data.html">Technical Data</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Low_Level_Protocols/TCPIP.html">TCP/IP Protocol</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Low_Level_Protocols/Modbus.html">Modbus Protocol</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../Low_Level_Protocols/Wireshark_Dissector.html">Wireshark Dissector</a></li>
</ul>
</li>
</ul>

</div>





    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="chibi-extension">
<span id="id1"></span><h1>Chibi Extension<a class="headerlink" href="#chibi-extension" title="Permalink to this headline">¶</a></h1>
{% from "macros.html" import tfdocstart, tfdocimg, tfdocend %}
{{
    tfdocstart("Extensions/extension_chibi_tilted_350.jpg",
               "Extensions/extension_chibi_tilted_600.jpg",
               "Chibi Extension")
}}
{{
    tfdocimg("Extensions/extension_chibi_tilted_complete_100.jpg",
             "Extensions/extension_chibi_tilted_complete_600.jpg",
             "Chibi Extension")
}}
{{
    tfdocimg("Extensions/extension_chibi_top_100.jpg",
             "Extensions/extension_chibi_top_600.jpg",
             "Chibi Extension top")
}}
{{
    tfdocimg("Extensions/extension_chibi_bottom_100.jpg",
             "Extensions/extension_chibi_bottom_600.jpg",
             "Chibi Extension bottom")
}}
{{ tfdocend() }}<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">The Chibi Extension is discontinued and is no longer sold. Depending on the
use-case the <a class="reference internal" href="WIFI_Extension.html#wifi-extension"><em>WIFI Extension</em></a> can be a replacement.</p>
</div>
<div class="section" id="features">
<h2>Features<a class="headerlink" href="#features" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>700/800/900MHz radio transceiver</li>
<li>Allows wireless interconnection between stacks</li>
<li>Configurable frequency and channel</li>
<li>Integrated signal strength measurement</li>
</ul>
</div>
<div class="section" id="description">
<h2>Description<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
<p>The Chibi Extension is equipped with a 700/800/900MHz radio transceiver.
Typically this transceiver is used for long range
<a class="reference external" href="http://en.wikipedia.org/wiki/Zigbee">Zigbee</a> networks. Unfortunately
the Zigbee terms of use do forbid a GPL implementation of the
Zigbee protocol stack (see <a class="reference external" href="http://www.freaklabs.org/index.php/Blog/Zigbee/Zigbee-Linux-and-the-GPL.html">here</a>
for more information).</p>
<p>Thus we decided to port the open source <a class="reference external" href="http://www.freaklabs.org/index.php/Blog/Embedded/Introducing...Chibi-A-Simple-Small-Wireless-stack-for-Open-Hardware-Hackers-and-Enthusiasts.html">Chibi Wireless Stack</a>
or this extension. It is a
simple and small protocol stack that is perfectly suited for our use cases.</p>
<p>In good conditions a range of <strong>up to 2km</strong> can be achieved outdoors.</p>
<p>To establish a Chibi network with Bricks, at least two Chibi Extensions and two
Master Bricks are needed. Both Master Bricks can be connected to a
full stack of Bricks and Bricklets, whereas one Master Brick is Battery
powered and one is connected with USB. From a programming perspective
the Chibi network is completely transparent, i.e. the two stacks can
be used exactly the same way as if they were both connected via USB.</p>
<p>It is also possible to create a network with several Chibi Extension where
only one is connected via USB (many-to-one routing).</p>
<p>The following combinations with other Extensions in a stack are possible
(regardless of order):</p>
<ul class="simple">
<li>Chibi Master / RS485 Slave</li>
<li>Chibi Slave / RS485 Master</li>
</ul>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">After configuring a Chibi network all devices will behave as
connected via USB to your PC. Therefore you need no code changes if you
change your system from cable based to Chibi. But be aware that you will
loose through put since the Chibi transmission speed is slower than USB
transmission speed.</p>
</div>
</div>
<div class="section" id="technical-specifications">
<h2>Technical Specifications<a class="headerlink" href="#technical-specifications" title="Permalink to this headline">¶</a></h2>
<table border="1" class="docutils">
<colgroup>
<col width="35%" />
<col width="65%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Property</th>
<th class="head">Value</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>Current Consumption</td>
<td>10mA</td>
</tr>
<tr class="row-odd"><td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="row-even"><td>Maximum Range (Outdoor)</td>
<td>2km</td>
</tr>
<tr class="row-odd"><td>Maximum Baud Rate</td>
<td>250kbit/s</td>
</tr>
<tr class="row-even"><td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="row-odd"><td>Dimensions (W x D x H)</td>
<td>40 x 40 x 16mm (1.57 x 1.57 x 0.63&quot;)</td>
</tr>
<tr class="row-even"><td>Weight</td>
<td>13g</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="resources">
<h2>Resources<a class="headerlink" href="#resources" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>AT86RF212 datasheet (<a class="reference external" href="https://github.com/Tinkerforge/chibi-extension/raw/master/datasheets/at86rf212.pdf">Download</a>)</li>
<li>Schematic (<a class="reference external" href="https://github.com/Tinkerforge/chibi-extension/raw/master/hardware/chibi-extension-schematic.pdf">Download</a>)</li>
<li>Outline and drilling plan (<a class="reference external" href="../../_images/Dimensions/chibi_extension_dimensions.png">Download</a>)</li>
<li>Source code and design files (<a class="reference external" href="https://github.com/Tinkerforge/chibi-extension/zipball/master">Download</a>)</li>
</ul>
</div>
<div class="section" id="chibi-network-assembly">
<h2>Chibi Network Assembly<a class="headerlink" href="#chibi-network-assembly" title="Permalink to this headline">¶</a></h2>
<p>A Chibi network consists of one master and multiple slaves.
Chibi master is the Master Brick which has a USB connection to the PC
running the Brick Daemon. All the other Master Bricks with Chibi Extension must
not have a USB connection (they can use a USB Power Supply since Master Brick
firmware 1.1.3). Each Chibi Extension is identified with its own address.
The addresses have to be unique in the transmission range.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">If you use multiple networks in parallel with identical channel and
frequency make sure that every address is unique and not used in different
networks in transmission range.</p>
</div>
<p>To create a Chibi network, stack the Chibi Extension on top of a Master Brick.
Connect the Master Brick via USB with your PC and start the Brick Viewer
software. You should see the Master Brick view
with the identified Chibi Extension (see image below). Configure the extension
as slave or master (as described <a class="reference internal" href="#chibi-configuration"><em>here</em></a>).</p>
<p>If you have configured all extensions you can build your system. Connect
Bricks and Bricklets as you like. The Master of each stack has to be the
lowermost Brick (except if you are using a Power Supply). The Chibi Extension
can be positioned in the stack as you wish.</p>
<p>After you have plugged together your system you have to power it up.
You have to power up the slaves before the master, since the Chibi master
searches for slaves only at startup.
You should now be able to see all connected stacks in the Brick Viewer.</p>
<div class="section" id="chibi-configuration">
<span id="id2"></span><h3>Chibi Configuration<a class="headerlink" href="#chibi-configuration" title="Permalink to this headline">¶</a></h3>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p>The Chibi configuration changed starting from Brick Viewer version 1.0.6,
before this version it was not necessary to specify if the extension
should be used as master or slave (it was inferred by other means).</p>
<p class="last">It turns out that this was highly confusing to most, so we recommend that
you update to the newest Brick Viewer version before you configure your
Chibi network.</p>
</div>
<p>To configure a Chibi Extension you have to choose a unique
address and a frequency and channel first.</p>
<a class="reference external image-reference" href="../../_images/Extensions/extension_chibi.jpg"><img alt="Configuration of Chibi address, frequency and channel" class="align-center" src="../../_images/extension_chibi.jpg" style="width: 405.0px; height: 294.0px;" /></a>
<p>If you want to configure the extension as slave, you have to choose
&quot;Slave&quot; as type and specify the address of the Chibi master.</p>
<a class="reference external image-reference" href="../../_images/Extensions/extension_chibi_slave.jpg"><img alt="Configuration of Chibi in slave mode" class="align-center" src="../../_images/extension_chibi_slave.jpg" style="width: 405.0px; height: 294.0px;" /></a>
<p>If you want to configure the extension as master, you have to choose
&quot;Master&quot; as type and specify a list of the slave addresses the master should
be able to talk to (as a comma separated list).</p>
<a class="reference external image-reference" href="../../_images/Extensions/extension_chibi_master.jpg"><img alt="Configuration of Chibi in master mode" class="align-center" src="../../_images/extension_chibi_master.jpg" style="width: 406.0px; height: 365.0px;" /></a>
<p>At the end, press &quot;Save Chibi Configuration&quot; to save the configuration permanently
on the Chibi Extension.
The Master Brick has to be restarted to apply the new configuration.</p>
</div>
<div class="section" id="chibi-network-modification">
<h3>Chibi Network Modification<a class="headerlink" href="#chibi-network-modification" title="Permalink to this headline">¶</a></h3>
<p>If you want to change something in your network, e.g. add new Bricks or
Bricklets, you have to power down the stack you like to change. Change it
and repower it. If the node was a Chibi slave, you also have to reset the
Chibi master (it only searches for new Bricks and Bricklets on startup).
This can be achieved by a power cycle or pressing the reset
button on the Master Brick.</p>
</div>
<div class="section" id="chibi-frequency-and-channel">
<h3>Chibi Frequency and Channel<a class="headerlink" href="#chibi-frequency-and-channel" title="Permalink to this headline">¶</a></h3>
<p>The Chibi Extension supports several frequencies with different channels
and different frequencies are allowed in different countries.</p>
<p>Here is a small list of frequencies with corresponding possible channels:</p>
<table border="1" class="docutils">
<colgroup>
<col width="40%" />
<col width="60%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Frequency</th>
<th class="head">Possible Channels</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>OQPSK 868MHz (Europe)</td>
<td>0</td>
</tr>
<tr class="row-odd"><td>OQPSK 915MHz (US)</td>
<td>1, 2, 3, 4, 5, 6, 7, 8, 9, 10</td>
</tr>
<tr class="row-even"><td>OQPSK 780MHz (China)</td>
<td>0, 1, 2, 3</td>
</tr>
<tr class="row-odd"><td>BPSK40 915MHz</td>
<td>1, 2, 3, 4, 5, 6, 7, 8, 9, 10</td>
</tr>
</tbody>
</table>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">The Chibi Extension is sold as an electronic component. <strong>You</strong> are building
a system with this component and it is your responsibility that the
system you are building meets your local statutory regulations. Make sure that
you are allowed to use the frequency you are configuring!</p>
</div>
</div>
</div>
<div class="section" id="programming-interface">
<h2>Programming Interface<a class="headerlink" href="#programming-interface" title="Permalink to this headline">¶</a></h2>
<p>See <a class="reference internal" href="../Bricks/Master_Brick.html#master-brick-programming-interface"><em>Master Brick documentation</em></a>.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
		<div id="tf_license">
			<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
				<img alt="Creative Commons Licence" width="88" height="31" style="border-width:0" src="/static/images/cc_license_logo.png" />
			</a>
			The content of this page is licensed under
			<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution 3.0 Unported License</a>.
		</div>
		</div>
	</div>
</div>

    <div class="footer">
        &copy; Copyright 2011-2015, Olaf Lüke (olaf@tinkerforge.com).
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
    </div>
  </body>
</html>