Comments (7)
@ThomasHeb thanks for reporting and providing sample code!
I need to try it out on my board still, much I imagine the call to sd_ble_uuid_vs_add
is failing at some point, see documentation: https://devzone.nordicsemi.com/documentation/nrf51/4.1.0/html/group__ble__api.html#gab3101ab721b427d1548b5f77bf5118cf
NRF_ERROR_NO_MEM If the size exceeds the number of free slots for VS UUIDs.
This library tries to add a new VS UUID id for each attribute, even though a slot might be able to be re-used. One thing to try is switching to all 16-bit id's to test this theory.
Btw, for future issue reported please supply as example sketch that can be used with the library as is. This simplifies things for me.
from arduino-bleperipheral.
@ThomasHeb ping ....
from arduino-bleperipheral.
Hi Sandeep,
I am back from holiday and on a business trip for the next two weeks, so sorry for my delay.
I reworked my code to reduce the number of used attributes, so actually I got all communication running between the BLE and the iPad.
Never the less i can populate the system with a high number of dive computer UUIDs. I will check 16 bit IDs over the weekend and post my results here.
Regards
Thomas
from arduino-bleperipheral.
Hi Sandeep,
I changed to 16bit UUIDs. With that modification I am able to increase the number of working characteristics. So this issue seems to be around sd_ble_uuid_vs_add .
Regards
Thomas
from arduino-bleperipheral.
@ThomasHeb thanks for looking into this, I've updated the title of the issue to include 128-bit.
from arduino-bleperipheral.
Thomas
Are you sure you are simply not exceeding the maximum advertising packet size.
Each time you add a new data block to the advertising, it not only adds the data but it has a block header which contains the block type and I think the block length.
So if you have a Name block and a 16 bit services ID block, you have 2 block headers as well as the data
If the name is not essential to you, its possible to not send it.
Using 128 bit UUIDs takes up loads of space, and I think there is only room for 1 128 bit service UUID
If you want to advertising multiple services you'd need to use 16 or 32 bit services. and even then, you soon run out of space if you have a lot of different services
You may be better off rolling all your comms into one custom service
from arduino-bleperipheral.
@rogerclarkmelbourne this is not related to advertising, this library only support advertising 1 service UUID.
The root cause is the multiple calls to sd_ble_uuid_vs_add
that add a custom 128-bit UUID to the Nordic stack. There's a limit to how many UUID's can be added, and the library currently doesn't check if a previously added 128-bit UUID can be re-used. Adding the smarts for this can remove the issue in some scenarios, however it will still exist if you try to add N unique custom 128-bit UUIDs.
from arduino-bleperipheral.
Related Issues (20)
- Can't detect remote devices
- NRF5: CCCDs aren't persisted for bonded peers
- How to set service name ? HOT 1
- ANCS Implementation canWrite is false
- Speed / baudrate of the BLE connection?
- Numpad key codes, anyone?
- How to send more than 20bytes in each transaction with bleSerial.write()?
- Olimexino-nano + Olimexino-nano-ble freezes after begin()
- Why is my BLE Service not appearing after a successful flash? HOT 2
- [Question] Sending long string BLECharacteristic
- Abandoned project?
- nrf52840 HOT 4
- Freeze on blePeripheral.begin(); HOT 7
- BLE Scan
- softdevice_sys_evt_handler_set()
- RFDuino using BLEPerfipheralObserver to scan for iBeacons - Issue HOT 2
- Update iBeacon broadcast packet after starting
- Setting chip to idle state in between measurements
- nRF52832 Supported?
- UART Rx hangs after a few seconds when BLEPeripheral.begin(); is called on nRF51802
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-bleperipheral.