Recent Posts

Pages: [1] 2 3 ... 10
1
Support / Re: Simblee GZLL performs worse than RFduino GZLL
« Last post by tolson on Today at 09:32:33 AM »

 I don't understand what SimbleeCOM is so I am hesitant to go down that rabbit hole.

I am using bone stock RFdigital dev boards, 2 Simblee boards (one is the large one with all pins), 2 RFduino boards and 2 USB serial converter boards.

SimbleeCOM is a RF Digital propriatary modification of  BLE protocol that only works on the Simlbee firmware and not supported on RFduino firmware or other BLE devices. It is not applicable to a mixed Simblee/RFduino/Competitor BLE environment, nor a GZLL project per se.

So whatever is going on with GZLL Simblee vs RFduino needs to be figured out.


2
Support / Re: Simblee GZLL performs worse than RFduino GZLL
« Last post by mjkuwp94 on Today at 06:10:50 AM »
thank you!

I took some time and pared the sketches down toward the minimum for the demo.  Each sketch can be changed between Simblee and RFduino by changing line 3.  There is a line to change to SimbleeCOM but I didn't test that code.  I don't understand what SimbleeCOM is so I am hesitant to go down that rabbit hole.

The attached .zip file has some example output in addition to the two sketch files and a helper script written in Python.  The Python code isn't necessary but it was helpful to me in making the results just a bit more clear on the receiving end.

It is enough to change just the Device (switch between Simblee/RFduino) and leave the Host the same but to validate things I changed board types at both ends.

The Device code runs for 20 seconds and then stops on purpose. This length of time is sufficient to notice the differences.  Small packets are sent each 8ms and there is a counter from 0 to 31 used to track the 'ack' of each specific packet.  With either setup there can be moments when the communication time varies enough that it appears to be a lost packet according to the time between receiving them.  However with the RFduino no packets are lost as indicated by the counter.  When the Simblee is sending as the Device there are several instances of time gaps in receipt corresponding to 6 missing packets. 

Summary:
Simblee sending - 6 instances of 6 lost packets in a row within 20 seconds (about 50ms gap)
RFduino sending - jitter but no lost packets.


thanks,
Mark


PS
I am using bone stock RFdigital dev boards, 2 Simblee boards (one is the large one with all pins), 2 RFduino boards and 2 USB serial converter boards.
3
Production Application Guidance / Re: Both RFduino and Simblee with other BLE's
« Last post by Wayne on March 24, 2017, 11:01:05 AM »
Ok, on the other computer, here is the send code

Code: [Select]
#include "SimbleeCOM.h"

uint8_t buttonA = 5;
char nodeA[] = {'1'};
uint8_t buttonB = 6;
char nodeB[] = {'2'};

void setup() {
  Serial.begin(9600);
  pinMode(buttonA, INPUT);
  pinMode(buttonB, INPUT);
  SimbleeCOM.mode = LOW_LATENCY;
  SimbleeCOM.begin();
  printf("The factory assigned ESN for this Simblee is: 0x%08x\n", SimbleeCOM.getESN());
}

void loop() {

   if (digitalRead(buttonA))
  {
    SimbleeCOM.send(nodeA, sizeof(nodeA));
  }
  if (digitalRead(buttonB))
  {
    SimbleeCOM.send(nodeB, sizeof(nodeB));
  }
  // SimbleeCOM.send(payload, sizeof(payload));
}

4
Production Application Guidance / Re: Both RFduino and Simblee with other BLE's
« Last post by Wayne on March 24, 2017, 10:47:58 AM »
I have assigned buttons as "1", "2" as signals for send. These end up as mode ( changes workstation modes) and Xray (this has 2 closures)
I mimic this by RED led for mode and GREEN and BLUE led's for Xray and Security.

I ended up using Switch Case to read the byte code.

1st part of code:
Code: [Select]
#include "SimbleeCOM.h"
int button = 0;
int mode_led = 2;
int xray_led = 3;
int security_led = 4;


2nd part.. Setup   

Code: [Select]
void setup() {
  Serial.begin(9600);
  SimbleeCOM.mode = LOW_LATENCY;
  SimbleeCOM.begin();
  printf("The factory assigned ESN for this Simblee is: 0x%08x\n", SimbleeCOM.getESN());
  pinMode(mode_led, OUTPUT);
  pinMode(xray_led, OUTPUT);
  pinMode(security_led, OUTPUT);

The void loop has to take care of turning off the LEDs. Still working out how to make faster, but for testing.. good enuf

Code: [Select]
void loop() {

  if (button == 0)
  {
    digitalWrite(mode_led, LOW);
    digitalWrite(xray_led, LOW);
    digitalWrite(security_led, LOW);
  }
}

Now the bulk..
Thanks to RFD_Nelson for pointers..

Code: [Select]
void SimbleeCOM_onReceive(unsigned int esn, const char *payload, int len, int rssi)
{

  printf("%d ", rssi);
  printf("0x%08x ", esn);
  // for (int i = 0; i < len; i++)
  // printf("%02x ", byte (payload[0]));
  button = byte (payload[0]);
  printf("\n");

  Serial.println(button);
  switch (button)
  {
    case 49:        // mode only
      //     Serial.println("its mode");
      digitalWrite(mode_led, HIGH);

      break;

    case 50:        // x-ray with security
      //    Serial.println("X-ray and Security");
      digitalWrite(xray_led, HIGH); digitalWrite(security_led, HIGH);
      break;
  }
  button = 0;

}

on recv, read in payload as a byte..set var button to its value.. number please for switch case

on the case of 49 ("1") recv, lite RED led
on case 50 ("2") recv, lite both Blue and Green leds

all done, button to zero.

This is the recv..  I will post the send if you like.

Wayne
5
Production Application Guidance / Re: Both RFduino and Simblee with other BLE's
« Last post by tolson on March 24, 2017, 10:05:15 AM »
Ok, I have learn that the SimbleeCOM.mode has to be in both the send and recv.  Done and works.

I have now change the payload of the sketch to work with buttons assignments and will attempt to light led's

This to mimic the easiest system.

How can I bond or link these together so to lockdown that other stuff can't sniff or interfere.

Wayne

Hi Wayne,
[HINT] SimbleeCOM has access to a unique ESN for each Simblee chip. So you will need to develop a method how you can best access, share, and  sync up the ESNs for your devices.
It would be cool if you can share your concept of doing so in this thread as I am sure many others want to know too.
6
Production Application Guidance / Re: Both RFduino and Simblee with other BLE's
« Last post by Wayne on March 24, 2017, 06:41:21 AM »
Ok, I have learn that the SimbleeCOM.mode has to be in both the send and recv.  Done and works.

I have now change the payload of the sketch to work with buttons assignments and will attempt to light led's

This to mimic the easiest system.

How can I bond or link these together so to lockdown that other stuff can't sniff or interfere.

Wayne


7
Production Application Guidance / Re: Both RFduino and Simblee with other BLE's
« Last post by Wayne on March 23, 2017, 11:37:05 AM »
Will this work connected to another Simblee as a host.

I might need to send you a rough draft of the project because we will need bonding (some type of security) and signal of button/pedals that mimic the action of the buttons or pedal.
Like if it is depress, send the signal until released.

Been trying some examples now and changing as I go.

I thought com was related to apps like on iPhone and Android.

Guess I was thinking mobile..

RFD_Nelson, can you check to see if SimbleeCOM.mode = LOW_LATENCY; works.  The .mode part is black type, while the SimbleeCOM is red.
The line that says SimbleeCOM.send is all red..
8
Production Application Guidance / Re: Both RFduino and Simblee with other BLE's
« Last post by RFD_Nelson on March 23, 2017, 11:04:26 AM »
Hi Wayne,

You can use an unlimited number of devices with SimbleeCOM. Here's a sample sketch that you could load on one of your devices to speak with the host when a button is pushed:

Code: [Select]
uint8_t buttonA = 5;
char node = 'A';

void setup() {
  pinMode(buttonA, INPUT);
  SimbleeCOM.mode = LOW_LATENCY;
  SimbleeCOM.begin();
}

void loop() {
  if (digitalRead(buttonA)) {
    SimbleeCOM.send(node, 1);
  }
}

NOTE: This is an extremely simple sketch to simply show you the basics of using SimbleeCOM. Please also check out the SimbleeCOM examples in the Simblee package.
9
Getting Started / Re: RFDuino ULP comsumption
« Last post by RFD_Nelson on March 23, 2017, 10:59:45 AM »
Hi ben,

Can you please attach a schematic?
10
Getting Started / RFDuino ULP comsumption
« Last post by ben on March 23, 2017, 02:21:53 AM »
Hi,
i have a question about RFDuino ULP consumption
i am attaching to the rfduino board (Vcc and GND)two resistors
i want to know if the resistors still consuming power when the RFDuino is switched to the ulp mode
thank you for your help
Pages: [1] 2 3 ... 10
anything