Dear Sirs,
How to advertise with nRF52810 (peripheral mode) in order to be seen by BT4 devices (Smartphones)?
Is it necessary to make a special configuration (settings)? If yes, where can I find an example?
I try to use
Dear Sirs,
How to advertise with nRF52810 (peripheral mode) in order to be seen by BT4 devices (Smartphones)?
Is it necessary to make a special configuration (settings)? If yes, where can I find an example?
I try to use
Thank you very much for your reply.
Unfortunately, your SDK examples are very complex and hard to understand, using event handlers, LEDS, buttons etc.
On my PCB board I have not LEDS and buttons.
I have already tried with your SDK example, I have even began with it, but I could not understand it.
It is my reason to ask you a simpler one.
It MUST work on my custom board, not on your proprietary board...
I need a an example of advertising with a minimum initialization and without communication (no services), not depending of hardware.
Is it possible?
Cordially yours
Andre
Event handlers are necessary to receive events from the Softdevice. You can't use it without them. If you don't want to modify the board file you can just remove every reference to it in the main file. It should work without it. 0x03 returned from the ble_conn_params_init() is NRF_ERROR_INTERNAL, which may indicate that the bug is before the function call. ble_conn_params_init() is necessary first once you connect to the central.
Dear Jared,
Thank you very much for your reply.
I am simply trying to strip unnecessary code.
My board works (advertises) well, and I use, of course, my custom board file, but without LEDS and GPIOS used by your examples...
I was talking about GPIO event handler, not about event handlers in general...
It seems, I have to use services_init() function before advertising, I do not understand why (I do not use any service). Otherwise I get run time error from also from advertising_init function.
Maybe I am wrong, I will check it once more...
Concerning error, I have copied all initialization functions from your example, so I do not understand the bug...
However, I have removed conn_params_init(), since I do not need the connection at this moment.
I would like simply to know, when such error occurs (if I plan to use connection in future).
Cordially yours
Andre
Hi,
Jared
All your examples use LED/button interface, it was a main reason I asked you for a simpler one...
Really, is it impossible for you to give a simple example with a minimum code (without LEDS & buttons handlers) ?
The error 03 (internal error) is from ble_conn_params_init(). Fortunately I do not need it, for instant...
Could you confirm that the following code sequence is sufficient for advertising?
The functions are from https://github.com/NordicPlayground/nrf51-ble-tutorial-advertising/blob/master/nrf52-ble-tutorial-advertising/main.c
ble_stack_init();
gap_params_init();
gatt_init();
advertising_init();
// Start execution
advertising_start();
Cordially
Andre
Try this one:
Try this one:
Thank you for your simplified example...
I will try it
Cordially
Andre
I said it too quickly, alas...
Unfortunately I cannot run your example.
Keil asks for software packs, even if I use the arm5_no_packs version. I cannot understand it at all...
What have I to do in such case? What version have I to use?
What does it mean: INSTALL missing Software Packs?
Where to put files (what files) and where have I to set there paths?
As you can see on screenshot, the both files are at correct place in project tree:
D:\Nordic_ble_app_beacon\pca10040e\s112\arm5_no_packs\RTE\Device\nRF52810_xxAA
Obviously, the compiler does not see them...
How to edit paths for project files? There is no such option in project items manager
Unfortunately, when I try to INSTALL packs as asked by Keil, the installer try to modify my default Keil configuration (not only the project).
I do not understand it at all, because I can build and run my current project using 52810 device without any additional installs of soft packs...
Anyway, the installer could not install packs (Keil site error when trying to download files)
I'm really very sorry to bother you all the time, believe me...
Simply, I am very, very frustrated, least thing takes hours, days or weeks and I have non-stop to ask questions to your development (support) team.
Why it is impossible to get some SIMPLE and working examples????
For me, your IDE (Keil) is too complicated and really incomprehensible, but I do not want to change it once more... Before now, I used several IDE, among others Visual Studio & Microchip IDE...
Hi,
The pack installer in Keil uvision requires you to update software packs. The update should install the missing files itself once allowed. If you're using a newer version of the SDK you have the option to use SES or gcc. Visual studio, and Microchip IDE is not officially supported. Question regarding Keil uvision should be asked here.
Best regards
Jared
Concern your last post (3 hours ago)
Dear Jared,
Thank you for your response.
However I cannot understand.
I do not use Keil packs for my SDK 14.2 project...
I simply open an SDK example, and (generally) this works.
BTW
Your last post has not an option to reply :-(
How does this new site work? Sometimes the options are: reply or edit, sometimes (as your last reply now) nothing. How, for example, to close a tread?
I understand nothing. After editing this text (as response to your previous post), the options have appeared and the text was placed on right place.
Cordially yours
Andre
"I do not use Keil packs for my SDK 14.2 project...
I simply open an SDK example, and (generally) this works".
The SDK examples use Keil uvision which again use Keil pack installer as it is part of the uvision IDE. Updating to SDK 15.2.0 gives you SEGGER Embedded Studio support. GCC is supported by 14.2.
Thank you for answer, but I still do not understand.
It was recommanded by Nordic to not use Keil packs since SDK 14.
So I use only Keil IDE without packs and it works with SDK 14.2 examples.
Only yours 1462.ble_app_beacon.zip does not work.
If it is necessary I will install Keil packs, but it will be contrary to your recommendation...
Cordially
Andre