Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - disk91

Pages: [1] 2
1
Software / Re: how to Stop BLE Stack ?
« on: January 30, 2014, 01:41:41 PM »
Ok ... so some deaper test show me that the problem was coming from my assembly that have some changing register ...
It seems to work correctly now !!

Paul

2
void colorWipe(uint32_t c, uint8_t wait) {
  for(uint16_t i=0; i<strip.numPixels(); i++) {
(RFduinoBLE.radioActive)
;
      strip.setPixelColor(i, c);
      strip.show();
      delay(wait);
  }
}
as one show() required to be nointerrupt(), I think it is better to have this :
void colorWipe(uint32_t c, uint8_t wait) {
  for(uint16_t i=0; i<strip.numPixels(); i++) {
      strip.setPixelColor(i, c);
(RFduinoBLE.radioActive)
;
      strip.show();
      delay(wait);
  }
}

matter is : if you have too much led in your strip, BLE will crash sometime after show finished.

3
Software / Re: how to Stop BLE Stack ?
« on: January 30, 2014, 12:52:27 AM »
I mean that my heartbit led stop blinking and I have to unplug/plug to get it back ... no so much industrial process  ;D

I'll create a sketch for you tonight. thank you for the reply

4
  Thank you for posting the links and info. I also got an RGB-123 kit, but I've been working with WS2811 strips and Arduino Pro Mini boards. February is my month to hack. (Maybe January was a much-needed vacation for our moderator? Hopefully, he'll be back soon, with help on the libraries.  :-)

The main issue we have to manage with RGB123 led strip is that we have to respect a perfect time during a long period. This period is longer than time BLE can survive w/o interruption. If you keep interruption running you'll lose syncho and led strip will not be configured correctly.. That's the mess.

I'm on the way to solve this problem, but I did not yet accomplish this miracle !

Any help welcome on my topic on how stop & restart BLE stack before & after led strip update !

5
Software / how to Stop BLE Stack ?
« on: January 29, 2014, 05:57:37 AM »
Hello,

I have the need to run a long non interuptible procedure. This cause the BLEStack to crash. I have no issue about shutting it down during this process and bring it back after.

I've tryed to RFduinoBLE.end() befor my non interruptible procedure and then restart it. This crash the RFDuino.

Here is how it looks like :

proc() {
   while ( RFDuinoBLE.radioActive() );
   RFDuinoBLE.end();
   nointerrupt();

   ....

   interrupt();
  RFDuinoBLE.begin();
}   

This code is crashing RFDuino.
Can you help ?


6
Software / Re: startup problem
« on: January 26, 2014, 05:49:38 AM »
I'have implemented it. I'll see if my code works once connected to iOS, otherwize, I'll have to stop Bluetooth then restart after as my code can't be interrupted. :(

7
Software / Re: Software reset
« on: January 22, 2014, 06:28:13 AM »
Yes, it works ... I missed to update the topic  :-\

8
Here is an article on how to add a hc-05 module to rfduino to have bluetooth support for iphone and old non LBE android & laptop

http://www.disk91.com/2014/technology/hardware/add-a-hc-05-bluetooth-2-to-a-rfduino-ble/

9
Software / Re: startup problem
« on: January 21, 2014, 12:48:37 PM »
I confirm it looks good now.
What i've done for setup() is to execute RFduinoBLE.begin(); at the end of the setup after doing all my stuff. so noInterrupt() does not occurs right after begin and it seems it works better.
thanks for help.

10
Software / Re: readBytes is blocking 1 second. Normal ?
« on: January 21, 2014, 01:49:56 AM »
It seems that this line is blocking for about 1s

readBytes((char *)buf,BUFSZ);

is it normal ? on classical arduino, i do not remember a such behavior.

OK ... I'll change Serial.setTimeout() ...
 :-\ :-\

sorry

11
Software / Re: startup problem
« on: January 21, 2014, 01:36:39 AM »
I made the change and it looks more stable ! thank you for this proposal.
It's not perfect but your analysis sounds good. Problem is that I need to have this time critical noInterrupt section.

The solution to add a watchdog timer could be a good workaround. Where to get information on how to create some ?

12
Software / readBytes is blocking 1 second. Normal ?
« on: January 20, 2014, 11:11:01 PM »
It seems that this line is blocking for about 1s

readBytes((char *)buf,BUFSZ);

is it normal ? on classical arduino, i do not remember a such behavior.

13
Software / Software reset
« on: January 20, 2014, 12:54:54 PM »
What would be the best way to do a software reset ?
asm volatile ( "b 0 \n\t" ); .. make sense ?

Or do you have a better way ?

I saw exemple of code based on watchdogtimer but it seems not valide for RFDuino
like this :
       wdt_enable(WDTO_15ms);
       while(1);

14
Software / Re: startup problem
« on: January 20, 2014, 12:52:00 PM »
Ok, i'm going to try this as it looks like a safe advice before calling noINterrupt. but due to the timing contraints on led, I can't accept interrupt or everything will be corrupted.
Once the startup is finished, I have no issues with noInterrupt, it is only during startup.

15
Support / Re: EEPROM/Flash
« on: January 20, 2014, 01:20:43 AM »
Really good to see this upgrade. Will you update the documentation with the API to be used ?

Pages: [1] 2