Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Hi,

I have an original RFDuino (RFD22102) and I'm trying to get it to read a ds18b20 temperature sensor over the one wire interface.  I am using the arduino 1.8.3 IDE and have the RFDuino updated to the lastest firmware.

I first tried accessing the ds18b20 with a normal Arduino using the 'official' OneWire library 2.3.3 https://github.com/PaulStoffregen/OneWire .  This worked fine, I can read the temperature.  I then used the same circuit and same code (except for changing the pin number) on the RFDuino and it compiled fine but it was not able to find any devices on the bus.  I don't have an oscilloscope but it seems the data pin is just sitting at 1.1 volts.

I then found this post on this forum.
http://forum.rfduino.com/index.php?topic=103.msg3912;topicseen#msg3912

This person had some 'hacked' one wire code that was created from the version 2.2 of the 'official' one.  It was to fix compile issues.  I didn't have issues compiling the 2.3.3 one but I figured I'd give it a try.  It did not produce different results.  I even tried it with older versions of the arduino IDE.

People clearly are getting one wire to work with RFDuino.  Is there something I'm missing?  Is there a hidden RFDuino version of One Wire library I should be using?

Thanks,
22
Support / Re: OneWire
« Last post by jjv on July 16, 2017, 09:45:20 PM »
Hi, I have been trying to get One Wire to work with the original RFDuino but to no avail.  Can any of you please inform me where this "RFDuino One Wire Library" is located that you are talking about?

Thanks,
23
Support / dualMode for BLE+COM
« Last post by Tim on July 15, 2017, 05:36:14 PM »
Hi all ...

RDF_Nelson posted a video tutorial on using dual mode on January 12th in the Videos/Guides/Tutorials section and I posted this as a reply there. Thought more of you might see it here though. Hope it's okay to post here also.

Seeing the video sparked some hope that dual mode might be helpful for our project. I can get COM<->COM working, no problem. But BLE+dualMode+COM <-> COM, as shown in the video, appears not to work.

I created very simple sketches to test: Once (sender) sends a COM message every second. The other (replier) sends a reply COM message half a second after receiving a COM message. The replier is straight COM. If the sender is straight COM, all works well. Here are the sender and replier sketches:

Sender - straight COM:

Code: [Select]
#include <SimbleeCOM.h>

void setup() {
  Serial.begin(9600);
  SimbleeCOM.mode = LONG_RANGE;
  SimbleeCOM.begin();
}

void loop() {
  delay(1000);
  SimbleeCOM.send("ABC", 4);
  Serial.println("sent ABC");
}

void SimbleeCOM_onReceive(unsigned int esn, const char *payload, int len, int rssi) {
  Serial.print("received ");
  Serial.println(payload);
}

The replier - straight COM:

Code: [Select]
#include <SimbleeCOM.h>

volatile bool sendAReply = false;

void setup() {
  Serial.begin(9600);
  SimbleeCOM.mode = LONG_RANGE;
  SimbleeCOM.begin();
}

void loop() {
  if (sendAReply) {
    sendAReply = false;
    // Wait half a second before sending reply.
    delay(500);
    SimbleeCOM.send("DEF", 4);
    Serial.println("sent DEF");
  }
}

void SimbleeCOM_onReceive(unsigned int esn, const char *payload, int len, int rssi)
{
  Serial.print("received ");
  Serial.println(payload);
  // Send a reply in loop().
  sendAReply = true;
}

If I replace the sender (straight COM) with a sender that uses BLE plus dualMode COM, the replier does not receive any COM messages from the sender. I've also verified that the sender (BLE+dualMode COM) does not receive COM messages.

Sender - BLE+dualMode:

Code: [Select]
#include <SimbleeBLE.h>

volatile bool sendAMessage = false;

void setup() {
  Serial.begin(9600);
  SimbleeCOM.mode = LONG_RANGE;
  SimbleeBLE.begin();
}


void loop() {
  // Send a message every second.
  delay(1000);
  sendAMessage = true;
}


void SimbleeBLE_onConnect() {
 
  // Once connected to BLE central, start dual mode.
  // SimbleeBLE_onDualModeStart() / SimbleeBLE_onDualModeStop() will be called
  // repeatedly. Only inside SimbleeBLE_onDualModeStart() is it safe to send
  // a COM message (my understanding).
 
  SimbleeBLE.dualModeBegin();
  Serial.println("dual mode started");
}


void SimbleeBLE_onDisconnect() {

  // When disconnected from BLE central, stop dual mode.
  SimbleeBLE.dualModeEnd();
  Serial.println("dual mode ended");
}


void SimbleeBLE_onDualModeStart() {
  // SimbleeBLE_onDualModeStart is called frequently. Send a message only
  // when sendAMessage is true (once a second, see loop()).
  if (sendAMessage) {
    sendAMessage = false;
    SimbleeCOM.send("ABC", 4);
    Serial.println("sent ABC");
  }
}


void SimbleeCOM_onReceive(unsigned int esn, const char *payload, int len, int rssi) {
  Serial.print("received ");
  Serial.println(payload);
}

As you can see, when using dualMode, SimbleeCOM.send() can be only in the SimbleeBLE_onDualModeStart() routine.

Anyone have any better luck? I will send this to RF Digital support.

The ideal for our project would be:

- A single BLE central (iOS app) connects to 3 Simblees and uses BLE to communicate with them.
- Periodically, one of the Simblees, while still connected to BLE central, sends low latency COM message to other two Simblees, also while still connected to BLE central.

Currently when periodic COM messaging is needed, Simblees are disconnected from BLE central, COM messaging occurs, then all 3 Simblees are reconnected to BLE central. Unfortunately the reconnection process can take a while so that the whole process (disconnect, COM messaging, reconnect) takes as long as 10-15 seconds, sometimes longer.

We choose Simblee on the bases that simultaneous BLE+COM messaging was supported. The how-to video posted by RFD_Nelson gives me hope that it actually might work.

Thanks for any insights.

Cheers,

Tim
24
Videos/Guides/Tutorials / Re: Simblee for Mobile and SimbleeCOM - Dual Mode
« Last post by Tim on July 15, 2017, 02:28:44 PM »
Hi all ...

Seeing the how-to video spark more hope that dual mode might be helpful for our project. I can get COM<->COM working, no problem. But BLE+dualMode <-> COM, as shown in the video, appears not to work.

I created very simple sketches to test: Once (sender) sends a COM message every second. The other (replier) sends a reply COM message half a second after receiving a COM message. The replier is straight COM. If the sender is straight COM, all works well. Here are the sender and replier sketches:

Sender - straight COM:

Code: [Select]
#include <SimbleeCOM.h>

void setup() {
  Serial.begin(9600);
  SimbleeCOM.mode = LONG_RANGE;
  SimbleeCOM.begin();
}

void loop() {
  delay(1000);
  SimbleeCOM.send("ABC", 4);
  Serial.println("sent ABC");
}

void SimbleeCOM_onReceive(unsigned int esn, const char *payload, int len, int rssi) {
  Serial.print("received ");
  Serial.println(payload);
}

The replier - straight COM:

Code: [Select]
#include <SimbleeCOM.h>

volatile bool sendAReply = false;

void setup() {
  Serial.begin(9600);
  SimbleeCOM.mode = LONG_RANGE;
  SimbleeCOM.begin();
}

void loop() {
  if (sendAReply) {
    sendAReply = false;
    // Wait half a second before sending reply.
    delay(500);
    SimbleeCOM.send("DEF", 4);
    Serial.println("sent DEF");
  }
}

void SimbleeCOM_onReceive(unsigned int esn, const char *payload, int len, int rssi)
{
  Serial.print("received ");
  Serial.println(payload);
  // Send a reply in loop().
  sendAReply = true;
}

If I replace the sender (straight COM) with a sender that uses BLE plus dualMode COM, the replier does not receive any COM messages from the sender. I've also verified that the sender (BLE+dualMode COM) does not receive COM messages.

Sender - BLE+dualMode:

Code: [Select]
#include <SimbleeBLE.h>

volatile bool sendAMessage = false;

void setup() {
  Serial.begin(9600);
  SimbleeCOM.mode = LONG_RANGE;
  SimbleeBLE.begin();
}


void loop() {
  // Send a message every second.
  delay(1000);
  sendAMessage = true;
}


void SimbleeBLE_onConnect() {
 
  // Once connected to BLE central, start dual mode.
  // SimbleeBLE_onDualModeStart() / SimbleeBLE_onDualModeStop() will be called
  // repeatedly. Only inside SimbleeBLE_onDualModeStart() is it safe to send
  // a COM message (my understanding).
 
  SimbleeBLE.dualModeBegin();
  Serial.println("dual mode started");
}


void SimbleeBLE_onDisconnect() {

  // When disconnected from BLE central, stop dual mode.
  SimbleeBLE.dualModeEnd();
  Serial.println("dual mode ended");
}


void SimbleeBLE_onDualModeStart() {
  // SimbleeBLE_onDualModeStart is called frequently. Send a message only
  // when sendAMessage is true (once a second, see loop()).
  if (sendAMessage) {
    sendAMessage = false;
    SimbleeCOM.send("ABC", 4);
    Serial.println("sent ABC");
  }
}


void SimbleeCOM_onReceive(unsigned int esn, const char *payload, int len, int rssi) {
  Serial.print("received ");
  Serial.println(payload);
}

As you can see, when using dualMode, SimbleeCOM.send() can be only in the SimbleeBLE_onDualModeStart() routine.

Anyone have any better luck? I will send this to RF Digital support.

The ideal for our project would be:

- A single BLE central (iOS app) connects to 3 Simblees and uses BLE to communicate with them.
- Periodically, one of the Simblees, while still connected to BLE central, sends low latency COM message to other two Simblees, also while still connected to BLE central.

Currently when periodic COM messaging is needed, Simblees are disconnected from BLE central, COM messaging occurs, then all 3 Simblees are reconnected to BLE central. Unfortunately the reconnection process can take a while so that the whole process (disconnect, COM messaging, reconnect) takes as long as 10-15 seconds, sometimes longer.

We choose Simblee on the bases that simultaneous BLE+COM messaging was supported. The how-to video posted by RFD_Nelson gives me hope that it actually might work.

Thanks for any insights.

Cheers,

Tim
25
Does lazarus really work with Simblee?
I couldn't get it to work and filed an issue at this git repo.
https://github.com/OpenHAK/lazarus
I recall that it was working with RFDuino.

26
RFduino Announcements / Re: How do I change RFDuino device name from iOS app?
« Last post by Tim on July 12, 2017, 10:48:55 AM »
You can also set the device name before starting BLE:

Code: [Select]
  SimbleeBLE.deviceName = "myName";
  SimbleeBLE.begin();
(We use Simblee, but works the same with RFduino.)

In our product, we actually allow the user to set the device name. It defaults to a generic name (using method above), then once connected to our iOS app, the app presents UI allowing the user to change the name. Then the iOS app sends message to device with new name and sketch writes the new name to flash, disconnects, then restarts BLE. The next time a central (iOS app) connects, Simblee advertises using the new name.

Hope helpful ...

Tim
27
Simblee Libraries / Re: Simblee Library v1.1.3 has now been released
« Last post by RFD_Nelson on July 11, 2017, 07:08:14 AM »
Hi rtvoorhees,

I would try uninstalling and reinstalling the Arduino IDE and be sure to store the Arduino packages in a different folder than your Dropbox folder.

Thanks,

Nelson
28
RFduino Announcements / Re: How do I change RFDuino device name from iOS app?
« Last post by RFD_Nelson on July 11, 2017, 07:03:39 AM »
Hi iDeveloper,

The name of the device is coded in the sketch, and defaults to "RFduino". If you want to be able to change that from the application, you'll need to connect to the RFduino, send a message which would be recieved in the RFduinoBLE_onReceive() in the sketch telling it to change it's deviceName. Once the deviceName has been changed in the sketch, you'll need to restart RFduinoBLE and restart it before the iOS app would see a different name in the advertisementData.

Thanks,

Nelson
29
RFduino Announcements / How do I change RFDuino device name from iOS app?
« Last post by iDeveloper on July 11, 2017, 06:40:38 AM »
I am writing an application where I am using Core Bluetooth Services. I am stuck at a point where I need to change the name of RFDuino device. i.e. Currently whenever my app starts searching for devices the device shows its name as 'RFduino' I need it to be changed from within my iOS app. And when I search the same device from different iPhone its should show the "New Name". I tried searching the web but din't get any success. Any help will be highly appriciated. TIA
30
Simblee For Mobile / Re: Simblee with Android 7.0 failing
« Last post by RFD_Nelson on July 10, 2017, 12:29:57 PM »
Hello everyone,

There has been a new version of Simblee for Mobile released that fixes issues found in Android 7.0 devices. Please test it out and feel free to reach out to us if you have any issues.

Thanks,

Nelson
Pages: 1 2 [3] 4 5 ... 10
anything