<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Janna,</p>
    <p><br>
    </p>
    <p>just in case, note that the examples you gave in the iot-lab wiki
      were written for the iot-lab nodes port for Contiki.<br>
      So will not directly apply to RIOT for the macro names.<br>
    </p>
    <p><br>
    </p>
    <p>I understand that you can need both limiting power and increasing
      the threshold when you want to have a lower connectivity with the
      hardware deployment in IoT-LAB.<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p>The "set_rssi_threshold" is currently not implemented in RIOT,
      but you could easily do it yourself (and do a PR maybe :))<br>
    </p>
    <p><br>
    </p>
    <p>The code I wrote in openlab was this one<br>
    </p>
    <p><br>
    </p>
<a class="moz-txt-link-freetext" href="https://github.com/iot-lab/openlab/commit/e1b7709b45d0fc926a15864e75081fbdd66c98fa">https://github.com/iot-lab/openlab/commit/e1b7709b45d0fc926a15864e75081fbdd66c98fa</a>
    <p><a class="moz-txt-link-freetext" href="https://github.com/iot-lab/openlab/commit/453b5205016cf508ee0bb1826f1a0cf31b13a096">https://github.com/iot-lab/openlab/commit/453b5205016cf508ee0bb1826f1a0cf31b13a096</a></p>
    <p><br>
    </p>
    <p>And it could be adapted by using RIOT at86rf2xx API like:<br>
    </p>
    <p><br>
    </p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/RIOT-OS/RIOT/blob/master/drivers/at86rf2xx/at86rf2xx.c#L181-L183">https://github.com/RIOT-OS/RIOT/blob/master/drivers/at86rf2xx/at86rf2xx.c#L181-L183</a></p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p>From looking in the other at86rfxx drivers datasheets the
      configuration is the same but with different values for RSSI
      configuration<br>
    </p>
    <p><br>
    </p>
    <p>* at86rf231 page 103
      <a class="moz-txt-link-freetext" href="http://ww1.microchip.com/downloads/en/DeviceDoc/doc8111.pdf">http://ww1.microchip.com/downloads/en/DeviceDoc/doc8111.pdf</a><br>
    </p>
    <p>* at86rf212b page 120
<a class="moz-txt-link-freetext" href="http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42002-MCU_Wireless-AT86RF212B_Datasheet.pdf">http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42002-MCU_Wireless-AT86RF212B_Datasheet.pdf</a></p>
    <p>* at86rf233 page 113
<a class="moz-txt-link-freetext" href="http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-8351-MCU_Wireless-AT86RF233_Datasheet.pdf">http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-8351-MCU_Wireless-AT86RF233_Datasheet.pdf</a></p>
    <p><br>
    </p>
    <p>So the threshold definitions should be enclosed in the header
      with `#if† MODULE_AT86RF231`.</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p>Regards,</p>
    <p>GaŽtan<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 28.05.2018 13:13, Janna Om wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:AM5PR0101MB2497E37E102756A36AE47D34F86E0@AM5PR0101MB2497.eurprd01.prod.exchangelabs.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
        dir="ltr">
        <div>Hello,<br>
          i'm trying to reduce the transmission distance of iot-lab m3
          sensor nodes.(The number of sensor nodes that can communicate
          directly with each other.)<br>
          I have used the solution proposed here <a
            href="https://github.com/iot-lab/iot-lab/wiki/Limit-nodes-connectivity"
            target="_blank" id="LPlnk374917" class="OWAAutoLink"
            previewremoved="true" moz-do-not-send="true">
https://github.com/iot-lab/iot-lab/wiki/Limit-nodes-connectivity</a>. I
          could set the transmission power to -17dBm, but I couldn't
          find how to set the receiver sensitivity of the node. Is there
          a way in Riot to reduce the receiver sensitivity, or perhaps
          other ways to reduce the transmission range between the nodes?
          <div id="LPBorder_GT_15275060128680.9442060410269599"
            style="margin-bottom: 20px; overflow: auto; width: 100%;
            text-indent: 0px;">
            <table id="LPContainer_15275060128590.05084543204602476"
              style="width: 90%; background-color: rgb(255, 255, 255);
              position: relative; overflow: auto; padding-top: 20px;
              padding-bottom: 20px; margin-top: 20px; border-top: 1px
              dotted rgb(200, 200, 200); border-bottom: 1px dotted
              rgb(200, 200, 200);" role="presentation" cellspacing="0">
              <tbody>
                <tr style="border-spacing: 0px;" valign="top">
                  <td id="ImageCell_15275060128610.5604206155426517"
                    style="width: 250px; position: relative; display:
                    table-cell; padding-right: 20px;" colspan="1">
                    <div
                      id="LPImageContainer_15275060128620.1556535111616063"
                      style="background-color: rgb(255, 255, 255);
                      height: 192px; position: relative; margin: auto;
                      display: table; width: 192px;">
                      <a
                        id="LPImageAnchor_15275060128620.5282143192639791"
                        style="display: table-cell; text-align: center;"
href="https://github.com/iot-lab/iot-lab/wiki/Limit-nodes-connectivity"
                        target="_blank" moz-do-not-send="true"><img
                          style="display: inline-block; max-width:
                          250px; max-height: 250px; height: 192px;
                          width: 192px; border-width: 0px;
                          vertical-align: bottom;"
                          id="LPThumbnailImageID_15275060128620.11730864488956105"
src="https://avatars3.githubusercontent.com/u/5746539?s=400&v=4"
                          moz-do-not-send="true" height="192"
                          width="192"></a></div>
                  </td>
                  <td id="TextCell_15275060128620.7175731043435059"
                    style="vertical-align: top; position: relative;
                    padding: 0px; display: table-cell;" colspan="2">
                    <div id="LPTitle_15275060128630.6979450561942336"
                      style="top: 0px; color: rgb(0, 120, 215);
                      font-weight: 400; font-size: 21px; font-family:
                      "wf_segoe-ui_light", "Segoe UI
                      Light", "Segoe WP Light",
                      "Segoe UI", "Segoe WP",
                      Tahoma, Arial, sans-serif; line-height: 21px;">
                      <a
                        id="LPUrlAnchor_15275060128630.42134764713777817"
                        style="text-decoration: none;"
                        href="https://github.com/iot-lab/iot-lab/wiki/Limit-nodes-connectivity"
                        target="_blank" moz-do-not-send="true">Limit
                        nodes connectivity ∑ iot-lab/iot-lab Wiki ∑
                        GitHub</a></div>
                    <div
                      id="LPMetadata_15275060128660.14802406730098683"
                      style="margin: 10px 0px 16px; color: rgb(102, 102,
                      102); font-weight: 400; font-family:
                      "wf_segoe-ui_normal", "Segoe
                      UI", "Segoe WP", Tahoma, Arial,
                      sans-serif; font-size: 14px; line-height: 14px;">
                      github.com</div>
                    <div
                      id="LPDescription_15275060128670.974780148166595"
                      style="display: block; color: rgb(102, 102, 102);
                      font-weight: 400; font-family:
                      "wf_segoe-ui_normal", "Segoe
                      UI", "Segoe WP", Tahoma, Arial,
                      sans-serif; font-size: 14px; line-height: 20px;
                      max-height: 100px; overflow: hidden;">
                      GitHub is where people build software. More than
                      27 million people use GitHub to discover, fork,
                      and contribute to over 80 million projects.</div>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
          <br>
          I would also like to measure the energy consumption of nodes
          while running my application. Does the Riot have an approach
          like Contiki's power profiler?<br>
          Many thanks in advance!<br>
          <br>
          With kind regards,<br>
          Janna</div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:devel@riot-os.org">devel@riot-os.org</a>
<a class="moz-txt-link-freetext" href="https://lists.riot-os.org/mailman/listinfo/devel">https://lists.riot-os.org/mailman/listinfo/devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>