Open panzoide opened 7 years ago
@panzoide you'll have to pass in the correct pins into the BLEPeripheral
constructor. Please see: https://github.com/sandeepmistry/arduino-BLEPeripheral/blob/master/API.md#constructor
What Arduino board are you using with the olimexino-nano-ble
?
im using an olimexino-nano, and i did pass the correct pins to the BLEperipheral, REQ=6 RDY=4 RST=5, they work for this library, but doesnt have eddystone (https://github.com/NordicSemiconductor/ble-sdk-arduino)
@panzoide could you please try uncommenting the following define: https://github.com/sandeepmistry/arduino-BLEPeripheral/blob/master/src/nRF8001.cpp#L6
To enable debug output.
it just stay at:
Evt Device Started: Setup 07 06 00 00 03 02 41 FE
it's the only output after 3 minutes running
Ok, it's a bit difficult for me to figure this out without a physical board, but just to confirm you have BLEPeripheral(6, 4, 5)
?
What version of the Arduino IDE are you using?
i have the exact starter.ino with
BLEPeripheral blePeripheral = BLEPeripheral(6,4,5);
and im using the 1.8.1v
@panzoide maybe this is an SPI speed issue.
Could you try changing: https://github.com/sandeepmistry/arduino-BLEPeripheral/blob/f591da1a841bf6b0a5c1eac4d1255ba6e71154e8/src/nRF8001.cpp#L133 ? Maybe DIV16 will be better?
I am new to Arduino. Using the Arduino Uno R3 with a Adafruit Bluefruit LE nRF8001. I'm following this tutorial: https://library.oreilly.com/book/0636920031932/make-bluetooth/22.xhtml?ref=toc#connecting-to-an-arduino I have the correct pins passing through to BLEPeripheral per the tutorial. I have also tried downgrading to a few versions of this library with no luck.
I am having the same issue as @panzoide - I tried changing that line to DIV16 with no luck.
It appears the problem I was having was the example cheating a bit on the uuid:
BLEService lightswitch = BLEService("FF10");
Changing this to 32 character uuid clears up the begin() issue that I was having.
I have the same problem: it stops after blePeripheral.begin(); I'm working with a NRF52832 module, softdevice 132, Generic NRF52 board.
I've tried to change BLEService to 32 chars but no success for me. It stops, too.
Any suggestion will be a real help.
I've figured out my problem: I don't have a low frequency crystal. Only 32Mhz crystal. And every time when I make a short between P0.00 and P0.01 - LFCLK pins, the module appears in the smartphone app, but I can't connect because of the short. I've compiled with internal oscillator, by selecting from Tools>RC oscillator and it works, I can connect to it. Now I try to figured out how to disable the external LFCLK on Arduino Primo board, cause it doesn't have a menu in Tools dedicated to it.
it just stay at:
Evt Device Started: Setup 07 06 00 00 03 02 41 FE
it's the only output after 3 minutes running
Sorry to dig this back up, having this problem in 2021 with the same board. Did you ever figure it out?
Some debugging has shown that it is actually freezing in this->sendSetupMessage(&setupMsg);
from line 314 of nrf8001.cpp, I will investigate more in there...
...because the loop on line 1504 never terminates. I am not sure where to go from here.
Could it be working correctly? I do not understand what the output after Evt Device Started: Setup
is, I see eight bytes while the bdaddr should be six right?
Having the same/similar issue, Have added some more details over on my issue https://github.com/sandeepmistry/arduino-BLEPeripheral/issues/291
i have an olimexino-nano-ble, and i try everithing that i could, but i couldnt even get the starter.ino working.
it stopjust after i call "blePeripheral.begin();"
i did make it work with the "olimex libraries", so i know that the pins for REQN, RDYN and reset are correct,
What could be the problem?
thx