Author Topic: An observation on SimbleeCOM.mode = LOW_LATENCY and ULPDelay  (Read 196 times)

StillAlive5

  • RFduino Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
An observation on SimbleeCOM.mode = LOW_LATENCY and ULPDelay
« on: September 20, 2017, 02:38:58 PM »
These are compatible, but all calls to change mode, power levels, etc.  have to come before issuing begin().    BTW with the round trip xmit followed by immediate receive time for Low_Latency mode is about 10 ms (as measured by one of the 16 bit timers).  Without Low_Latency, it's about 25 mS.  This is likely best case and will be affected by local wireless pollution, device separation, ...

/*
 * Copyright (c) 2015 RF Digital Corp. All Rights Reserved.
 *
 * The source code contained in this file and all intellectual property embodied in
 * or covering the source code is the property of RF Digital Corp. or its licensors.
 * Your right to use this source code and intellectual property is non-transferable,
 * non-sub licensable, revocable, and subject to terms and conditions of the
 * SIMBLEE SOFTWARE LICENSE AGREEMENT.
 * http://www.simblee.com/licenses/SimbleeSoftwareLicenseAgreement.txt
 *
 * THE SOURCE CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
 *
 * This heading must NOT be removed from this file.
 */

#include "SimbleeCOM.h"

char payload[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };

void setup() {
  SimbleeCOM.txPowerLevel=-4;
  SimbleeCOM.mode = LOW_LATENCY;
  SimbleeCOM.begin();
}

void loop() {
  SimbleeCOM.send(payload, sizeof(payload));
  SimbleeCOM.end();
  Simblee_ULPDelay(100);
  SimbleeCOM.begin();
}

void SimbleeCOM_onReceive(unsigned int esn, const char *payload, int len, int rssi)
{
}

 
« Last Edit: September 25, 2017, 08:52:03 AM by StillAlive5 »