Support for BlueDuino board

Ask, and ye shall receive.
internetizen
Posts: 14
Joined: 12:00, 15 Oct 2014

Support for BlueDuino board

Postby internetizen » 11:31, 15 Feb 2016

Hi,

I purchased this Arduino board with BLE module: http://wiki.aprbrother.com/wiki/BlueDui ... okup_Guide
The BLE module has TI's CC2540.

I want to send few float/int numbers and a analog waveform from this BlueDuino to Evothings.
I don't need any fancy things, just displaying few pictures with the data.
Would you please give me some pointers/examples?

Thank you so much

internetizen
Posts: 14
Joined: 12:00, 15 Oct 2014

Re: Support for BlueDuino board

Postby internetizen » 05:52, 18 Feb 2016

After changing all the UUID and device name in my app.js (using Arduino BLE as an example), I got stuck to "Status: Enabling notifications..."

I can't turn my LED on or off. Is there anything else I need to change? Thanks

internetizen
Posts: 14
Joined: 12:00, 15 Oct 2014

Re: Support for BlueDuino board

Postby internetizen » 07:22, 18 Feb 2016

ok... I think I find out more for the LOG.
Is "Status: Disconnected" ok here? What is 185 the handle?
Looks like it is writing something when I press ON or OFF. However, my LED is just still on all the time...

appreciate any comments/help. Thanks!

-----------------------------------------------
LOG: Status: Scanning...
LOG: found device: null
LOG: found device: BLE
LOG: Found BLE
LOG: Status: Connecting...
LOG: Status: Disconnected
LOG: Status: Reading services...
LOG: RX/TX services found.
LOG: Status: Enabling notifications...
LOG: writeDescriptor: 185 success.
LOG: writeCharacteristic: 184 success.
LOG: writeCharacteristic: 184 success.
LOG: writeCharacteristic: 184 success.
LOG: writeCharacteristic: 184 success.
LOG: writeCharacteristic: 184 success.
....

internetizen
Posts: 14
Joined: 12:00, 15 Oct 2014

Re: Support for BlueDuino board

Postby internetizen » 08:52, 18 Feb 2016

After I change my LED_PIN to LOW instead of HIGH in my setup() , I can turn it ON now!
However, after it got turned on. The status will go to "Active" and no more response.
I see the RangeError in the LOG. Do you know what does it mean?

anyone can help...?

-------------------------------------------------------------------------------
LOG: Status: Connecting...
LOG: Status: Disconnected
LOG: Status: Reading services...
LOG: RX/TX services found.
LOG: Status: Enabling notifications...
LOG: writeDescriptor: 355 success.
LOG: writeCharacteristic: 354 success.
LOG: Status: Active
LOG: Error in Success callbackId: BLE229123105 : RangeError: Out of bounds access
LOG: [ERR] RangeError: Out of bounds access [hyper/1015299b-e913-438c-b794-72498da2958f/e23cf235-cec7-4d1f-9f60-bb008dc33667/cordova.js: 314]
LOG: writeCharacteristic: 354 error: device not found

internetizen
Posts: 14
Joined: 12:00, 15 Oct 2014

Re: Support for BlueDuino board

Postby internetizen » 09:41, 18 Feb 2016

ok...something very strange.
Basically, I can't turn my LED on or off if I just upload my sketch then "RUN" my Evo apps.
However, I can turn LED on or off only once before the Status turning into Active mode. Here is what I did:

1) upload my sketch
2) open IDE's serial monitor
3) "RUN" evo apps

Then, I can turn my LED on or off only once. The BLE connection will turn into "Status: Active." and no more response from the soft "LED ON" and "LED OFF" buttons.

Is it my hardware problem? or software?

User avatar
micke
Posts: 256
Joined: 20:49, 18 Nov 2013

Re: Support for BlueDuino board

Postby micke » 13:10, 18 Feb 2016

Hi,

The error "RangeError: Out of bounds access" points to a problem with the BLE-plugin. I have however no solution at hand, did a google search and that particular error does not have any hits, which is strange. Also searched the source code without finding anything.

Do you have any idea about after what call to the plugin this happens? The log says "writeCharacteristic" happened before the error, was this the last operation? Or is it when notifications start to come? Perhaps there is a buffer out-of-bounds read/write somewhere.

Can you comment out the code in your app that performs read/write on the notified data? Or simply disable notifications as a first step and see if the app produces the error?

It could be a problem with the plugin, but it could also be the code in the app that tries to access data outside the bounds of a buffer.

Best, Micke


Return to “Questions and answers”

Who is online

Users browsing this forum: No registered users and 15 guests