Re: Unsolicited Notify with newtmgr over BLE

2016-10-05 Thread Kevin Townsend
I think you're right about that - a CCCD should not be set to one unless the peer writes to it. What I'm not so sure about is whether it is prohibited to send a notification to an unsubscribed peer. I didn't see any language in the spec indicating that this is illegal. The ability to send

Re: Unsolicited Notify with newtmgr over BLE

2016-10-05 Thread Christopher Collins
On Wed, Oct 05, 2016 at 05:07:00PM -0700, Mike Ryan wrote: > On Thu, Oct 06, 2016 at 02:00:25AM +0200, Kevin Townsend wrote: > > I remember some discussions previously about unsolicited notifies > > and whether this was or wasn't supported in the BLE spec > > My reading of the spec suggests that

Re: Improve Unit Tests and Test Suite Output

2016-10-05 Thread Kevin Townsend
Sorry, to answer my own question the 'test' app in apache-mynewt-core show how tests can be run on native HW. On 06/10/16 00:16, Kevin Townsend wrote: Hi Sterling, Are you able to run the unit tests on real HW via newt to pipe the results back to the console? That would probably remove the

Re: Unsolicited Notify with newtmgr over BLE

2016-10-05 Thread Kevin Townsend
Also, would it make sense to have more consistent UUIDs, such as: - 8D530001-1DB7-4CD3-868B-8A527460AA84 - 8D530002-1DB7-4CD3-868B-8A527460AA84 - 8D530003-1DB7-4CD3-868B-8A527460AA84 (potentially?) We could perhaps even settle on a single base 128-bit UUID throughout Mynewt, adjusting the 16

Re: Unsolicited Notify with newtmgr over BLE

2016-10-05 Thread Mike Ryan
On Thu, Oct 06, 2016 at 02:00:25AM +0200, Kevin Townsend wrote: > I remember some discussions previously about unsolicited notifies > and whether this was or wasn't supported in the BLE spec My reading of the spec suggests that it is not legal. Referring to Client Characteristic Configuration on

Unsolicited Notify with newtmgr over BLE

2016-10-05 Thread Kevin Townsend
I'm working with newtmgr over BLE based on the newtmgr lib in the master branch of apache-mynewt-core, which currently has the following structure: Service UUID: 8D53DC1D-1DB7-4CD3-868B-8A527460AA84 Characteristic UUID: DA2E7828-FBCE-4E01-AE9E-261174997C48 The source code has this explanatory

Re: Improve Unit Tests and Test Suite Output

2016-10-05 Thread Kevin Townsend
Hi Sterling, Are you able to run the unit tests on real HW via newt to pipe the results back to the console? That would probably remove the need to 'mock' peripherals in most cases, and be a significantly easier way to run a set of tests that have specific HW requirements, such as BLE which

Initial impressions.

2016-10-05 Thread Glen Darling
Hello mynewt community, I am new to mynewt , and at this point I have just managed to get mynewt running on an Arduino M0 Pro, with an attached pushbutton on one GPIO and an LED with resistor attached on another GPIO pin. My first test program just monitors the button and turns the LED on

Re: Version on statistics structures

2016-10-05 Thread Vipul Rahane
+1 as well. > On Oct 5, 2016, at 6:30 AM, will sanfilippo wrote: > > +1 > >> On Oct 4, 2016, at 12:01 PM, Sterling Hughes wrote: >> >> Also, unless people object I’m going to make the stats_name_map a const >> structure (so it can be located in .text),

Re: Improve Unit Tests and Test Suite Output

2016-10-05 Thread Sterling Hughes
Hi, I don’t think we planned on providing a mock’ing framework in V1 of Mynewt. The approach to mocking has been to implement the lower layers on sim, and then special case things where it only makes sense for a particular regression or unit test. While you won’t get the control you have

Re: Directory re-org in develop

2016-10-05 Thread Sterling Hughes
Yep. That’s the one - Marko and Paul are working this. Marko just moved it into net/oic. Paul/Marko have taken iotivity constrained and plumbed it into Mynewt. mgmt/mgmt is now the generic system interface to management APIs to return data. These APIs return responses as key-value pairs,

Re: Directory re-org in develop

2016-10-05 Thread Wayne Keenan
Hiya, The OIC and OCF to which you refer, is it this?: https://openconnectivity.org/resources/specifications All the best Wayne On 29 September 2016 at 16:50, Sterling Hughes wrote: > Hey, > > On 29 Sep 2016, at 7:42, James Pace wrote: > > >> >> imgmgr, and newtmgr

Re: Oct. board report for Mynewt

2016-10-05 Thread aditi hilbert
Thanks, Jim. The report is posted on the wiki now for signoff: https://wiki.apache.org/incubator/October2016#preview thanks, aditi > On Oct 5, 2016, at 4:15 AM, Jim Jagielski wrote: > > LGTM > >> On Oct 4, 2016, at

Re: Version on statistics structures

2016-10-05 Thread will sanfilippo
+1 > On Oct 4, 2016, at 12:01 PM, Sterling Hughes wrote: > > Also, unless people object I’m going to make the stats_name_map a const > structure (so it can be located in .text), pack it, as the name map is rarely > referenced, and it should save a bunch of space given the

Re: Oct. board report for Mynewt

2016-10-05 Thread Jim Jagielski
LGTM > On Oct 4, 2016, at 1:59 PM, aditi hilbert wrote: > > Hi Mentors, > > Here’s the first draft of Mynewt’s board report for Oct. > Please review it today. It is due by tomorrow. > > thanks, > aditi > > --- > Mynewt > > Mynewt is a real-time