Comments (5)
That's a good point. We've discussed this a bit, and believe that the entire event handling system needs a redesign, and that this is a sign of a bigger issue. The event handling is sort of backwards the way it is today, as the user application calls the event handler, and all sd-events are consumed in the framework. We'll probably turn this around, by having the framework take direct control of the SD ISR, and create some event distribution system where we filter out the events that are relevant to the mesh framework, and send the rest to the application.
For a more immediate solution your suggestion is a good fit. I believe the default case should still be APP_ERROR_CHECK(NRF_ERROR_INVALID_STATE);
, as the APP_ERROR_CHECK()
is to be treated as an assert for nRF51 SDK status codes, rather than checking the validity of SD events.
from nrf51-ble-bcast-mesh.
I agree with the check. You're right. Although for now the user might find out other corner cases faster if the actual error code isn't shielded.
Looking forwards to the new implementation! I think this would be indeed nice from the viewpoint of the application.
from nrf51-ble-bcast-mesh.
The new release includes a document that steps through the necessary steps required for integrating the mesh with existing Softdevice-based applications. Unfortunately, the event handler restructure didn't make it for this release, but we hope that the solution for future problems with this is properly explained in the guide. I'll leave the issue as pending.
from nrf51-ble-bcast-mesh.
Hi again,
With the SD8-support, the project now utilizes the SDK-module softdevice_handler, which addresses this issue. The softdevice_handler provides an interface to set different interrupt handlers for the different event classes, which should give the application the needed freedom to propagate events the right way. There are no additional changes to this under the hood in the rbc-mesh, but I think the handler should provide a sufficient interface to handle this case :)
from nrf51-ble-bcast-mesh.
Nice! I will check it out the coming weeks!
from nrf51-ble-bcast-mesh.
Related Issues (20)
- Mesh encryption of data HOT 1
- Multiple frequencies and modulation types for RX and TX HOT 3
- OTA for mesh nodes HOT 2
- into module? HOT 2
- Notification not enabled for sdk13 and nRF52832 HOT 2
- hack HOT 1
- What does "radio_order" and "RADIO_EVENT_TYPE_RX_PREEMPTABLE" etc. do? HOT 1
- consider storing i_relative as log2(i_relative) to save 3 bytes per trickle
- it seems a bug! HOT 1
- Packet loss in mesh network HOT 1
- 3 Questions regarding migrating to Nrf52 platforms HOT 1
- GATT Service HOT 1
- DFU questions
- Mesh monitoring on a device HOT 1
- What is the hop delays and relevant solutions? HOT 1
- battery usage / fruity mesh HOT 2
- rbc_mesh_stop sometimes crashes my program HOT 3
- Timeslot SD crash fix only applicable for NRF52?
- P
- b16e1105f3da788022c24e75b8603f9f4426a636
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 nrf51-ble-bcast-mesh.