Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Simblee Libraries / SimbleeRNG
« Last post by jaltet on April 18, 2017, 12:12:46 PM »

Hello everybody!

I am trying to have the Simblee generate a random number using SImbleeRNG. here is my code:
Code: [Select]
void Generate_Ticket_Number()
{
 uint8_t stream[8];
 uint8_t N_Ticket[12];
 SimbleeRNG::generate(stream, sizeof(stream));
 
for (int i=0; i<4; i++)
{
N_Ticket[3*i]   = stream[i]/100;
N_Ticket[3*i+1] = (stream[i]-100*N_Ticket[3*i])/10;
N_Ticket[3*i+2] = stream[i]-100*N_Ticket[3*i]-10*N_Ticket[3*i+1];
}
for (int i=0; i<13;i++)
{
  Serial.print(char(N_Ticket[i]));
}
for (int i=0;i<10;i++)
{
  Ticket[i]= char(N_Ticket[i]+0x30);
}
Serial.println("");
Serial.println(Ticket);
}

This works and I can generate a random number that will be used to print a Ticket. However, if I call this routine in an event related to the User Interface (hitting a button on my iPhone), Simblee looses communication and the software hangs up.
Does this mean that SimbleeRNG() cannot be used within the processing of an event?
Thank you for your attention
12
Support / Re: Simblee - optimal GPIO pin selection
« Last post by LulaNord on April 18, 2017, 09:00:59 AM »
Hi...as per my knowledge any issues with pin utilization. We have no idea how the pins are actually routed within the modules so just have to trust they are layed out well. The nRF5 pins are redefinable to make your board layout design easier. Well, except for the analog ones are fixed. And your right about wanting to keep GPIO[0-1] reserverd for programming.
13
Support / Re: Simblee GZLL performs worse than RFduino GZLL?
« Last post by mjkuwp94 on April 14, 2017, 07:23:01 PM »
hi, sorry for the delay in responding.  We had a family vacation this week and for once I didn't bring the hardware with me  ;)


With this

Code: [Select]
SimbleeCOM.mode = LOW_LATENCY; //new
  SimbleeCOM.begin();

There is a difference.  At 8ms gap between packets being sent I can now employ an ACK from the host to the device and the packets come through at 8ms intervals for the most part.  In one test there was a 16ms gap for one data point. The times were:

(...,8,8,16,1,6,9,8,8,...) ms

and no packets are lost
I modified the Python script so that both Device and Host could send data to the uart to be timed.  With this method it seems like the packets are recieved 11ms after they are sent.  I realize using a UART is not a great way to check timing so my next step is to work out a scheme with the GPIO pins so I can track the timing of the specific packets.  I think the SimbleeCOM protocol will work well for me - thanks!
14
Support / Re: Force 4 byte alignment
« Last post by blieber on April 13, 2017, 02:06:45 PM »
Using __attribute__((packed)) seems to work as suggested here https://forum.arduino.cc/index.php?topic=78026.0
15
Support / Force 4 byte alignment
« Last post by blieber on April 13, 2017, 01:47:42 PM »
It seems the default Simblee compiler (under tools in install package - arm-none-eabi-g++, mac OSX, Simblee board version 1.1.0) is 8-byte aligned. Is there a way to force 4-byte alignment instead (e.g. such as "-m32" flag). This would be convenient for memory compaction purposes.

Thanks,
Ben
16
Support / Communication problems using the GZLL protocol
« Last post by damals58 on April 11, 2017, 11:57:21 PM »
Hi RFduino-friends, :)

i using the GZLL protocol for the communication to RFduino. I have 6 Devices (Rfd77201) and 1 Host (Rfd22301). If I used only one device, the devices work without problems.

But when I use multiple devices at the same time, it works well for about 15-20 minutes till the Connection error.

What can be the Problem? Are six devices at the same time to much?

Best regards

damals58


17
Getting Started / Re: Beginner how to to making an led change through iphone app?
« Last post by tolson on April 11, 2017, 04:33:01 PM »
Do you have a RFduino or Simblee?
You mention RFduino, but you are asking in the Simblee section.

What kind of multicolor LED? The digital neopixel type like WS2812 are complicated. I won't explain this.

Or, the simple 3 separate LEDs in one package type like what comes with the RFD22122 RGB/Button Shield.

For these...
For RFduino there is...
There is an example sketch for this under File->Examples->RFduinoBLE->ColorWheel
And there was a iPhone called the ColorWheel for this.

For the Simblee the same iPhone APP should work. But, I forget if there was an issue with it.
There is an example sketch for this under File->Examples->SimbleBLE->ColorWheel

However, for the Simblee the better approach is to use Simblee For Mobile instead, then you can use iPhone or Android.
There is an example sketch for this under File->Examples->SimbleeForMobile->ColorWheel

18
Getting Started / Re: Beginner how to to making an led change through iphone app?
« Last post by beamin on April 11, 2017, 02:28:10 PM »
Which device do you select in ide 1.8.1?
19
Getting Started / Beginner how to to making an led change through iphone app?
« Last post by beamin on April 11, 2017, 12:35:32 PM »
Im a pretty new to arduino and totally new to rfduino.

I want to make a simple project. I have a multicolor led and want to control it with my iphone.

Where do I start? I'm having trouble finding a sketch thats so simple. Everything seems to include drivers for more complex things that are above my level. Once I have the arduino set up I can make it better , but have no idea where to start.

What would be an example sketch?
Whats the app called that would work?
Is the app specific to the sketch or is there a generic I could use? 
20
Support / Re: Monitoring Voltage Simblee RFD77201 (Device)
« Last post by Wayne on April 10, 2017, 06:12:20 AM »
Elsewhere on the forum has examples of reading the Vdd of the Simblee and will report back the voltage on Vdd. 

If you are using batteries without the boost chip, you can test and see how low Vdd gets to test to replace batteries.
But if using the boost chip, Vdd will always report 3.3v until the batteries die. 

I have simply done a analogRead on a pin to check voltage levels of the batteries while using the boost chip feature.  Using the boost chip allows for LED usage while straight battery the LEDS will dim.

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