Re: Explicitly disabling a feature

2016-08-02 Thread Christopher Collins
Oops... I didn't mean to reply-all. Sorry for the spam... Chris On Tue, Aug 02, 2016 at 08:16:08PM -0700, Christopher Collins wrote: > Hi Sterling, > > Just a heads up - this commit breaks the "newt test" command. The > problem is that there is no app when a package is

Re: bug+patch: Read By Group Type Response

2016-07-25 Thread Christopher Collins
On Mon, Jul 25, 2016 at 02:17:40PM -0700, Christopher Collins wrote: > On Mon, Jul 25, 2016 at 12:09:13PM -0700, Mike Ryan wrote: > > I discovered and patched a bug in the Read Group Type Response message > > when using small MTUs. The details are recorded in the following p

Re: bug+patch: Read By Group Type Response

2016-07-25 Thread Christopher Collins
On Mon, Jul 25, 2016 at 12:09:13PM -0700, Mike Ryan wrote: > I discovered and patched a bug in the Read Group Type Response message > when using small MTUs. The details are recorded in the following pull > request: > > https://github.com/apache/incubator-mynewt-core/pull/79 > > This issue

Re: BLE_HS_ENOMEM when trying to connect to a second peripheral

2016-07-23 Thread Christopher Collins
On Sat, Jul 23, 2016 at 09:32:59PM +, Marco Ferreira wrote: > Here's the complete config in my code: > > > > /* Configure the host. */ >cfg = ble_hs_cfg_dflt; >cfg.max_hci_bufs = 16; >// cfg.max_connections = MAX_CONNECTIONS*3; >// cfg.max_gattc_procs = 5; >

Re: NimBLE host - flat bufs vs. mbufs

2016-07-22 Thread Christopher Collins
Hello all, I have gone ahead and updated the host API on develop to use mbufs rather than flat bufs. This was a fairly big update, so you might want to hold off on pulling from develop until it is a good time to deal with API changes. I think the new API is an improvement over the old one, but

[jira] [Created] (MYNEWT-353) BLE Host - Timeout for ATT queued writes

2016-07-20 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-353: -- Summary: BLE Host - Timeout for ATT queued writes Key: MYNEWT-353 URL: https://issues.apache.org/jira/browse/MYNEWT-353 Project: Mynewt Issue

Re: NimBLE host - flat bufs vs. mbufs

2016-07-19 Thread Christopher Collins
On Tue, Jul 19, 2016 at 03:56:46PM +0200, Kevin Townsend wrote: > I'm curious what you would have done for a simple FIFO where you are > likely storing 1 or 2 bytes at a time? If there isn't a good match, > perhaps it's worth adding a very light weight FIFO or circular buffer > that can deal

Re: NimBLE host - flat bufs vs. mbufs

2016-07-19 Thread Christopher Collins
On Tue, Jul 19, 2016 at 06:38:02AM -0700, will sanfilippo wrote: > I am +1 for mbufs. While they do take a bit of getting used to, I > think converting the host to use them is the way to go, especially if > they replace a large flat buffer pool. > > I also think we should mention that mbufs use a

Re: Mynewt Demo - Bluetooth LE services written in MicroPython + Browser/WebBluetooth UI

2016-07-18 Thread Christopher Collins
On Mon, Jul 18, 2016 at 10:22:54PM +0100, Wayne Keenan wrote: > Hi, > > I've ported MicroPython and some handy Python libraries to Apache Mynewt; > there's a bit more to it but collectively this development effort is > called BubblePy. > > The most recent BubblePy Bluetooth LE GATT example I'd

Re: Handling Notify/Indicate and CCCD Changes

2016-07-17 Thread Christopher Collins
Hello all, I have just committed some NimBLE host API changes to the develop branch. These changes have been made as a result of issues raised in this email thread. Summary of changes: 1. Two new GAP event types: * notify_tx: we sent out a notification or indication, or an

Re: Scan Response and Timing

2016-07-17 Thread Christopher Collins
Hi Kevin, On Sun, Jul 17, 2016 at 03:32:18PM +0200, Kevin Townsend wrote: > Are there any examples of how to setup a Scan Response while > advertising? Apple, for example, recommends putting the Local Name and > TX Power in the scan response to free up space. See section 3.4 of >

Re: Handling Notify/Indicate and CCCD Changes

2016-07-15 Thread Christopher Collins
On Sat, Jul 16, 2016 at 12:10:14AM +0200, Kevin Townsend wrote: > I don't think the disconnect is a massive issue at this point and worth > a lot of effort. There are higher priorities as you said, which gets a > +1 from me anyway, and it isn't entirely unreasonable based on the spec > (thanks

Re: Handling Notify/Indicate and CCCD Changes

2016-07-15 Thread Christopher Collins
Hi Kevin, On Fri, Jul 15, 2016 at 04:50:14PM +0200, Kevin Townsend wrote: > My apologies if I'm missing something in the documentation, but putting > an example together here we are almost done with a barebones app > implementing Nordic's UART service to reuse the apps we've published for >

[jira] [Created] (MYNEWT-351) BLE Host - Delete completed GATT procedure before calling callback

2016-07-14 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-351: -- Summary: BLE Host - Delete completed GATT procedure before calling callback Key: MYNEWT-351 URL: https://issues.apache.org/jira/browse/MYNEWT-351 Project

[jira] [Updated] (MYNEWT-343) nffs crash at bootloader

2016-07-14 Thread Christopher Collins (JIRA)
[ https://issues.apache.org/jira/browse/MYNEWT-343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Collins updated MYNEWT-343: --- Attachment: nffs-inode-invalid-id.bin Here is a bootloader crash using the latest

[jira] [Created] (MYNEWT-350) BLE Host - Function to calculate required GATT server resources

2016-07-13 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-350: -- Summary: BLE Host - Function to calculate required GATT server resources Key: MYNEWT-350 URL: https://issues.apache.org/jira/browse/MYNEWT-350 Project

[jira] [Created] (MYNEWT-348) BLE Host - Function to register mandatory services

2016-07-13 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-348: -- Summary: BLE Host - Function to register mandatory services Key: MYNEWT-348 URL: https://issues.apache.org/jira/browse/MYNEWT-348 Project: Mynewt

[jira] [Created] (MYNEWT-349) BLE Host - API for gatt-service-changed

2016-07-13 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-349: -- Summary: BLE Host - API for gatt-service-changed Key: MYNEWT-349 URL: https://issues.apache.org/jira/browse/MYNEWT-349 Project: Mynewt Issue

Re: NimBLE host API update

2016-07-13 Thread Christopher Collins
On Mon, Jul 11, 2016 at 05:53:27PM -0700, Christopher Collins wrote: > Hello all, > > For the past few weeks I have been hinting at a proposal for an updated > NimBLE host API. It has taken a bit longer than I expected, but I think > the proposal is finally ready to unleash on t

Re: Flash overflow when building bletiny on nrf51dk

2016-07-13 Thread Christopher Collins
Hi Philip, On Wed, Jul 13, 2016 at 12:56:19PM -0700, Philip Levis wrote: > First off, I’m super excited about mynewt: an open-source BLE stack is > tremendously valuable. Great work! Good to hear! > But I’ve run into a problem: I’m trying to get started and build > bletiny for the nrf51dk. When

[jira] [Created] (MYNEWT-347) BLE Host - GAP update params request should fall back to L2CAP update procedure

2016-07-13 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-347: -- Summary: BLE Host - GAP update params request should fall back to L2CAP update procedure Key: MYNEWT-347 URL: https://issues.apache.org/jira/browse/MYNEWT-347

[jira] [Created] (MYNEWT-346) BLE Host - Allow secure connections without requiring legacy pairing

2016-07-12 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-346: -- Summary: BLE Host - Allow secure connections without requiring legacy pairing Key: MYNEWT-346 URL: https://issues.apache.org/jira/browse/MYNEWT-346

[jira] [Created] (MYNEWT-345) BLE Host - Reduce size of event buffers

2016-07-12 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-345: -- Summary: BLE Host - Reduce size of event buffers Key: MYNEWT-345 URL: https://issues.apache.org/jira/browse/MYNEWT-345 Project: Mynewt Issue

[jira] [Created] (MYNEWT-344) BLE Host - Don't wake up every second

2016-07-12 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-344: -- Summary: BLE Host - Don't wake up every second Key: MYNEWT-344 URL: https://issues.apache.org/jira/browse/MYNEWT-344 Project: Mynewt Issue Type

[jira] [Closed] (MYNEWT-96) Nimble stack configuration

2016-07-12 Thread Christopher Collins (JIRA)
[ https://issues.apache.org/jira/browse/MYNEWT-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Collins closed MYNEWT-96. - Resolution: Fixed > Nimble stack configurat

[jira] [Closed] (MYNEWT-337) BLE host - Fragment data packets at the L2CAP

2016-07-12 Thread Christopher Collins (JIRA)
[ https://issues.apache.org/jira/browse/MYNEWT-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Collins closed MYNEWT-337. -- Resolution: Fixed Commit cd66efc0120d6a8a26a4c62ac82869d0de9b0b6e > BLE h

[jira] [Closed] (MYNEWT-291) BLE Host - Split GATT attribute access function into more specific events

2016-07-12 Thread Christopher Collins (JIRA)
[ https://issues.apache.org/jira/browse/MYNEWT-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Collins closed MYNEWT-291. -- Resolution: Fixed > BLE Host - Split GATT attribute access function into more speci

[jira] [Closed] (MYNEWT-296) BLE Host - Scanning procedures provide an incomplete set of parameters

2016-07-12 Thread Christopher Collins (JIRA)
[ https://issues.apache.org/jira/browse/MYNEWT-296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Collins closed MYNEWT-296. -- Resolution: Fixed > BLE Host - Scanning procedures provide an incomplete

[jira] [Closed] (MYNEWT-297) BLE Host - Scanning lasts longer than specified duration

2016-07-12 Thread Christopher Collins (JIRA)
[ https://issues.apache.org/jira/browse/MYNEWT-297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Collins closed MYNEWT-297. -- Resolution: Fixed > BLE Host - Scanning lasts longer than specified durat

Re: Bluetooth, multiple tasks and forwarding events

2016-07-12 Thread Christopher Collins
On Tue, Jul 12, 2016 at 09:10:41AM -0700, Christopher Collins wrote: > I believe I have reproduced this issue. I'll send an update when I > have more information. It appears my exuberance at finding a bug exceeds my skills as a debugger. I thought I was seeing the behavior you ob

Re: Things I'd like to see

2016-07-12 Thread Christopher Collins
On Mon, Jul 11, 2016 at 01:00:24PM -0700, Sterling Hughes wrote: > Hey, > > On 11 Jul 2016, at 12:45, Christopher Collins wrote: > > > On Mon, Jul 11, 2016 at 11:01:45AM -0700, Sterling Hughes wrote: > >> As Will points out, I’m OK if APIs are documented outside of

NimBLE host API update

2016-07-11 Thread Christopher Collins
Hello all, For the past few weeks I have been hinting at a proposal for an updated NimBLE host API. It has taken a bit longer than I expected, but I think the proposal is finally ready to unleash on the dev list. I have not pushed any changes to master or develop; I wanted to give the community

Re: Things I'd like to see

2016-07-11 Thread Christopher Collins
On Mon, Jul 11, 2016 at 11:01:45AM -0700, Sterling Hughes wrote: > As Will points out, I’m OK if APIs are documented outside of the code > itself. For the OS, I went through and added a bunch of Doxygen > comments, but the function calls and their variants were fairly > simple. Function calls

Re: Things I'd like to see

2016-07-11 Thread Christopher Collins
On Mon, Jul 11, 2016 at 08:51:10AM -0700, will sanfilippo wrote: > I have mixed feelings about comments. In my view, it is OK to not > comment the code heavily if there is a document that explains the > code. Either is sufficient in my opinion. Of course, keeping to > Doxygen style comments for

[jira] [Resolved] (MYNEWT-323) Newt - Build options precedence hierarchy

2016-07-09 Thread Christopher Collins (JIRA)
[ https://issues.apache.org/jira/browse/MYNEWT-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Collins resolved MYNEWT-323. Resolution: Fixed Assignee: Christopher Collins Precedence is defined

Re: re-added repository.yml

2016-07-09 Thread Christopher Collins
On Sat, Jul 09, 2016 at 10:40:52AM -0700, Sterling Hughes wrote: > hey, > > i just re-added repository.yml to the master branch — it looks like it > was deleted (again). Deleting this file in the master branch, breaks > newt install and newt upgrade for everyone who is using mynewt. > > when

[jira] [Created] (MYNEWT-341) BLE Host - Handle missing ACL data fragments

2016-07-08 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-341: -- Summary: BLE Host - Handle missing ACL data fragments Key: MYNEWT-341 URL: https://issues.apache.org/jira/browse/MYNEWT-341 Project: Mynewt

Merge develop into master

2016-07-08 Thread Christopher Collins
Hello all, I am planning on merging the apache-mynewt-core develop branch into master later today. I don't think this will affect anyone, since I imagine everyone is either using a released version of Mynewt (0.9.0) or the develop branch. This merge will only affect you if you have configured a

Re: Assert failed in ble_ll_hci.c:999

2016-07-07 Thread Christopher Collins
On Thu, Jul 07, 2016 at 06:37:46PM -0700, Simon Ratner wrote: > So, the assert being where it is, would your bet be on a controller bug, a > host bug, or the app corrupting os memory in some way? (I've certainly done > my fair share of the latter ;) Hi Simon, It looks like this is caused by a

Re: Bluetooth, multiple tasks and forwarding events

2016-07-05 Thread Christopher Collins
On Mon, Jul 04, 2016 at 02:48:30PM +0100, Wayne Keenan wrote: > Hi, > > I have 2 tasks: > > > Task 1 > > Is the 'app_task_handler' > It is the 'host parent task' that calls 'bl_hs_start' and > It dispatches the OS_EVENT_T_TIMER events. > That's all. > > Task 2 > > Makes calls to

[jira] [Created] (MYNEWT-339) BLE host - Retry when an ATT send fails due to mbuf shortage

2016-07-02 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-339: -- Summary: BLE host - Retry when an ATT send fails due to mbuf shortage Key: MYNEWT-339 URL: https://issues.apache.org/jira/browse/MYNEWT-339 Project

[jira] [Created] (MYNEWT-338) NFFS - Can't delete from a completely full file system

2016-07-02 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-338: -- Summary: NFFS - Can't delete from a completely full file system Key: MYNEWT-338 URL: https://issues.apache.org/jira/browse/MYNEWT-338 Project: Mynewt

[jira] [Created] (MYNEWT-337) BLE host - Fragment data packets at the L2CAP

2016-07-02 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-337: -- Summary: BLE host - Fragment data packets at the L2CAP Key: MYNEWT-337 URL: https://issues.apache.org/jira/browse/MYNEWT-337 Project: Mynewt

Re: Read rssi of established connection

2016-07-02 Thread Christopher Collins
On Sat, Jul 02, 2016 at 10:18:03AM -0700, Simon Ratner wrote: [ble_hci_util_read_rssi()] > Correct, the return value is 4, and the out param remains unchanged. I have fixed this bug in develop. Thanks again for reporting it. A proper function for querying rssi will get added to the API soon.

Re: Read rssi of established connection

2016-07-02 Thread Christopher Collins
On Sat, Jul 02, 2016 at 10:18:03AM -0700, Simon Ratner wrote: > Correct, the return value is 4, and the out param remains unchanged. > > I am testing on nrf51; have tried calling it both directly from the > EVENT_CONNECT callback, as well as some time later, just in case it was > state-related.

Re: Read rssi of established connection

2016-07-02 Thread Christopher Collins
On Sat, Jul 02, 2016 at 08:31:18AM -0700, Christopher Collins wrote: > * ble_hci_util_read_rssi() should work. 4 (BLE_HS_EMSGSIZE) is an odd > return code to be getting; it indicates that the host thinks the > controller sent back an invalid command complete event in > acknowledg

Re: Read rssi of established connection

2016-07-02 Thread Christopher Collins
On Sat, Jul 02, 2016 at 03:40:25AM -0700, Simon Ratner wrote: > Hi devs, > > Any plans to expose a way to read last-seen rssi of a connection? > I found ble_hci_util_read_rssi(), but it seems to always return rc=4 for me. > > Cheers, > simon Hi Simon, Two things: * Yes - we will need to add a

Re: Disconnect reason wrong on local termination

2016-06-30 Thread Christopher Collins
On Thu, Jun 30, 2016 at 12:39:00PM -0700, Simon Ratner wrote: > Hi devs, > > I've been looking at the reasons I get in BLE_GAP_EVENT_DISCONNECT to make > sure I cover all edge cases, and this is what I see (on an nrf51-based > board): > > switch (ctxt->disconnect.reason) { > case

Re: Disconnect reason wrong on local termination

2016-06-30 Thread Christopher Collins
On Thu, Jun 30, 2016 at 01:31:00PM -0700, Simon Ratner wrote: > It is sometimes hard to tell if they are "expected", but below are a couple > of sample traces. > > Based on the timestamps, I would say the first two are expected (device was > slow to respond), while the last one is unexpected. In

Re: Query current state of master and slave

2016-06-29 Thread Christopher Collins
On Wed, Jun 29, 2016 at 05:45:58PM -0700, Simon Ratner wrote: > For example: > > ble_gap_is_adv > ble_gap_is_disc > ble_gap_is_connecting > > You get the idea. > > As a concrete example, I want the master to be scanning whenever it isn't > handling a connection. Ditto for

Re: Clarification on ble_gattc_*_by_uuid calls

2016-06-27 Thread Christopher Collins
On Mon, Jun 27, 2016 at 04:13:09PM -0700, Simon Ratner wrote: > Hi Chris, > > One quick clarification question: after receiving a callback with any > error status, do you guarantee that the callback will never be called > again (including with a NULL svc param)? Hi Simon, Yes, that is the

Re: Adding CLI seems to fail

2016-06-24 Thread Christopher Collins
On Fri, Jun 24, 2016 at 11:59:49AM -0400, David G. Simmons wrote: > The trouble arises at this point. No device is ever registered for > the USB port, so using minicom (or screen, etc.) isn’t an option as > there is not device. I’ve tried everything I can think of, from > removing the STLINK

[jira] [Closed] (MYNEWT-326) ble_gattc_*_by_uuid callbacks called twice (with bogus data)

2016-06-20 Thread Christopher Collins (JIRA)
[ https://issues.apache.org/jira/browse/MYNEWT-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Collins closed MYNEWT-326. -- Resolution: Not A Problem Yes, you are correct - the second callback indicates

OS_EINVAL vs. OS_INVALID_PARM

2016-06-18 Thread Christopher Collins
Hello all, I noticed libs/os/include/os/os.h defines the following two error codes: OS_EINVAL = 2, OS_INVALID_PARM = 3, Do these error codes convey different results? After a brief look through the code, my impression is that they mean the same thing. If that is the case, I think one

[jira] [Updated] (MYNEWT-323) Newt - Build options precedence hierarchy

2016-06-18 Thread Christopher Collins (JIRA)
[ https://issues.apache.org/jira/browse/MYNEWT-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Collins updated MYNEWT-323: --- Component/s: (was: t) > Newt - Build options precedence hierar

[jira] [Created] (MYNEWT-323) Newt - Build options precedence hierarchy

2016-06-18 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-323: -- Summary: Newt - Build options precedence hierarchy Key: MYNEWT-323 URL: https://issues.apache.org/jira/browse/MYNEWT-323 Project: Mynewt Issue

Re: boot_serial support

2016-06-18 Thread Christopher Collins
On Sat, Jun 18, 2016 at 11:38:02AM +0200, Kevin Townsend wrote: > Hi Marko, > > Thanks for getting this into the development branch! ... I was just > setting things up to test it out, and I had a look at the code directly > on github in the 'develop' branch, but despite my project being on >

[jira] [Updated] (MYNEWT-241) Diffucult to use newt to download code to two devices

2016-06-18 Thread Christopher Collins (JIRA)
[ https://issues.apache.org/jira/browse/MYNEWT-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Collins updated MYNEWT-241: --- Component/s: Newt > Diffucult to use newt to download code to two devi

[jira] [Updated] (MYNEWT-238) newt target build succeeds without a project defined.

2016-06-18 Thread Christopher Collins (JIRA)
[ https://issues.apache.org/jira/browse/MYNEWT-238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Collins updated MYNEWT-238: --- Component/s: Newt > newt target build succeeds without a project defi

Re: Base a custom bsp on an existing one

2016-06-17 Thread Christopher Collins
Hi Wayne, On Fri, Jun 17, 2016 at 02:28:26PM +0100, Wayne Keenan wrote: > or perhaps I'll break up my app into parts that can be independently > included as dependencies in the pkg.deps section of pkg.yml. > > Is it possible to use 'features' to include/exclude subdirectories of > > source and

Re: Tx power is always advertised as 0dBm on nrf51

2016-06-10 Thread Christopher Collins
Hi Simon, On Thu, Jun 09, 2016 at 02:53:14PM -0700, Simon Ratner wrote: [...] > The above doesn't seem to have an effect on the contents of the advertising > packet; it still advertises 0dBm. The comment in >

[ANNOUNCE] Apache Mynewt 0.9.0-incubating released

2016-06-09 Thread Christopher Collins
Hello all, The Apache Mynewt team is pleased to announce the first release of Apache Mynewt: 0.9.0-incubating. Apache Mynewt is a community-driven module OS for constrained, embedded applications. Mynewt provides a real-time operating system, flash file system, network stacks, and support

Re: New Demo for stm32F3Discovery Based on Blinky

2016-06-06 Thread Christopher Collins
On Mon, Jun 06, 2016 at 12:42:38PM -0700, marko kiiskila wrote: > I would leave blinky as is. It is beneficial to have a sample that > shows that you can have applications which don’t need any platform > specific changes. I agree. Blinky is Mynewt's "hello world" applications.hhC, and I think it

[RESULT][VOTE] Release Apache Mynewt 0.9.0-incubating-rc3

2016-06-06 Thread Christopher Collins
Hello all, Voting for Apache Mynewt 0.9.0-incubating-rc3 is now closed. The release has passed. The vote breakdown is as follows: +1 Jim Jagielski(binding) +1 John D. Ament(binding) +1 Justin Mclean(binding) +1 Sterling Hughes (binding) Total: +4 Thank you to all who voted.

[VOTE] Release Apache Mynewt 0.9.0-incubating-rc3

2016-06-02 Thread Christopher Collins
Hello all, I am pleased to be calling this vote for the source release of Apache Mynewt 0.9.0. Given that it is version 0.x, it is still a bit of a beta. This is the third release candidate for Mynewt 0.9.0 (rc3). A summary of what changed between the prior release candidates can be found in the

Re: [VOTE] Release Apache Mynewt 0.9.0-incubating-rc3

2016-06-02 Thread Christopher Collins
On Mon, May 30, 2016 at 11:34:24AM -0700, Christopher Collins wrote: > [X] +1 Release this package > [ ] 0 I don't feel strongly about it, but don't object > [ ] -1 Do not release this package because... Chris

Re: BLE_GATT_CHR_F_NOTIFY and pinkey

2016-06-02 Thread Christopher Collins
On Thu, Jun 02, 2016 at 02:25:33PM +0200, Stephane D'Alu wrote: > Adding the "| BLE_GATT_CHR_F_NOTIFY" result in an error when setting > advertisement, which seems to be: pinkey missing. > > 105:[ts=102480ssb, mod=64 level=3] error enabling advertisement; rc=6 > 111:[ts=108336ssb, mod=4 level=0]

Re: Adding service to bleprph

2016-06-01 Thread Christopher Collins
On Wed, Jun 01, 2016 at 07:24:01PM +0200, Stephane D'Alu wrote: > Hello again, > > I was trying to add a service/characteristic to the bleprph example, and > thought it would be as simple as: > > * add a gatt_svr_chr_access_ function > * add the service definition in gatt_svr_svcs > * increase

Re: GDB scripts

2016-06-01 Thread Christopher Collins
On Wed, Jun 01, 2016 at 10:04:05AM -0700, Vipul Rahane wrote: > Hello, > > While debugging a bunch of things, I felt the need for a few gdb scripts to > print out the data structures that we would use regularly. I was thinking of > creating a common gdb script which would contain different

Re: Triggering GATT Notification's

2016-06-01 Thread Christopher Collins
On Wed, Jun 01, 2016 at 07:04:02AM +0100, Wayne Keenan wrote: > Because I'm creating a 'ble_gatt_svc_def' at runtime these are the steps > I'm having todo to be able to keep hold of the characteristic handle in > order to be able to call 'ble_gatts_chr_updated(handle)' to send the > notification

Re: Triggering GATT Notification's

2016-05-31 Thread Christopher Collins
Hi Wayne, On Tue, May 31, 2016 at 12:59:20PM +0100, Wayne Keenan wrote: > Hi, > > I have a custom GATT service working with read/write all ok; now I am > looking at adding notify support. > > On my first look thru the newt source my first take was that the app needs > to cache the GATT

Re: [VOTE] Release Apache Mynewt 0.9.0-incubating-rc2

2016-05-29 Thread Christopher Collins
On Sun, May 29, 2016 at 10:56:09AM -0700, Christopher Collins wrote: > The CMSIS-CORE files that Mynewt bundles fall into two categories: [...] > 2. Functional changes were made by ARM mbed before the BSD license >was added; the oldest revisions containing the BSD lic

Re: [VOTE] Release Apache Mynewt 0.9.0-incubating-rc2

2016-05-29 Thread Christopher Collins
Thanks again, Justin. My responses are inline below. I rearranged your email such that your first finding comes last, since it is the most difficult to address :). On Sun, May 29, 2016 at 11:23:25AM +1000, Justin Mclean wrote: [...] > The core release notes is out of data and talks about March

Re: [DISCUSS] Release Apache Mynewt 0.9.0-incubating-rc2

2016-05-28 Thread Christopher Collins
Hi David, On Sat, May 28, 2016 at 06:05:10PM -0700, David Moshal wrote: > how do I find the name of the target? newt target show e.g., [ccollins@iori:~/tmp/newttest]$ newt target show targets/blink_nordic app=apps/blinky bsp=@apache-mynewt-core/hw/bsp/nrf52pdk

Re: How to determine the length of received data in a GATT callback

2016-05-28 Thread Christopher Collins
Hi James, On Sat, May 28, 2016 at 12:53:14PM -0700, James Howarth wrote: > Hi, > > Looking at the peripheral callback gatt_svr_chr_access_gatt, is there a way > to determine the length of data received? > > Here's the whole function definition. > > static int >

Re: [DISCUSS] Release Apache Mynewt 0.9.0-incubating-rc2

2016-05-28 Thread Christopher Collins
On Sat, May 28, 2016 at 01:38:48PM -0700, Sterling Hughes wrote: > $ newt run > > Will do this for you. No need to call binary directly. If you are building for real hardware (i.e., not sim), then you need to add a version number to the end of the command. So, the command would look

Re: [VOTE] Release Apache Mynewt 0.9.0-incubating-rc2

2016-05-27 Thread Christopher Collins
On Fri, May 27, 2016 at 07:56:39PM -0700, Christopher Collins wrote: > [X] +1 Release this package > [ ] 0 I don't feel strongly about it, but don't object > [ ] -1 Do not release this package because... +1 (binding)

[DISCUSS] Release Apache Mynewt 0.9.0-incubating-rc2

2016-05-27 Thread Christopher Collins
Hello all, This thread is for any and all discussion regarding the release of apache-mynewt-0.9.0-incubating-rc2. All feedback is welcome. Thanks, Chris

[VOTE] Release Apache Mynewt 0.9.0-incubating-rc2

2016-05-27 Thread Christopher Collins
Hello all, I am pleased to be calling this vote for the source release of Apache Mynewt 0.9.0. Given that it is version 0.x, it is still a bit of a beta. This is the second release candidate for Mynewt 0.9.0 (rc2); voting for rc1 was cancelled due to a packaging mishap involving the newt source.

[CANCEL][VOTE] Release Mynewt 0.9.0-incubating-rc1

2016-05-27 Thread Christopher Collins
Hello all, Voting for the release of 0.9.0-incubating-rc1 has been cancelled due to some incorrectly packaged source [*]. Sorry for the confusion, and thank you to everyone who voted. A second release candidate will be put up for a vote on the dev list shortly. Thanks, Chris [*] For the newt

Re: [VOTE] Release Apache Mynewt 0.9.0-incubating-rc1

2016-05-24 Thread Christopher Collins
that there is a lot going on right now. All votes, positive and negative, are greatly appreciated. Chris On Sun, May 22, 2016 at 11:52:15AM -0700, Christopher Collins wrote: > Hello, > > The Apache Mynewt Incubator PPMC has approved a proposal to release > Apache Mynewt 0.9.0-incubating. W

Re: BLE Stack

2016-05-24 Thread Christopher Collins
On Tue, May 24, 2016 at 03:15:22PM +0400, Vitya Gnatyuk wrote: > I make up your stack in EmBitz 0.42 with apps\bleprph example. But an one > error has occurred: undefined reference to `__vector_tbl_reloc__' > What I can do with it? Hi Vitya, Are you using the "newt" tool to build your project,

Re: Respond to a write characteristic

2016-05-23 Thread Christopher Collins
On Mon, May 23, 2016 at 09:22:42PM -0700, James Howarth wrote: > Hi Chris, > > Looking at the LightBlue app on my iPhone, it tells me the response is 'null'. Hmm... I am not sure. A write response does not contain any data of its own; all write responses are alike. Is it possible lightblue

Re: Respond to a write characteristic

2016-05-23 Thread Christopher Collins
Hi James, On Mon, May 23, 2016 at 02:24:15PM -0700, James Howarth wrote: > Hi, > > I am looking to issue a response to a write characteristic, and seem to be > just getting a null response. > [...] > static int > gatt_svr_p_command_cb(uint16_t conn_handle, uint16_t attr_handle, uint8_t > op, >

[VOTE] Release Apache Mynewt 0.9.0-incubating-rc1

2016-05-22 Thread Christopher Collins
Hello, The Apache Mynewt Incubator PPMC has approved a proposal to release Apache Mynewt 0.9.0-incubating. We now kindly request that the Incubator PMC members review and vote on this incubator release. Apache Mynewt is a community-driven, permissively licensed open source initiative for

[RESULT][VOTE] Release Apache Mynewt 0.9.0-incubating-rc1

2016-05-22 Thread Christopher Collins
Hello all, Voting for Apache Mynewt 0.9.0-incubating-rc1 is now closed. The release has passed this step of the process. The vote breakdown is as follows: +1 Marko Kiiskila +1 Christopher Collins +1 Will san Filippo +1 Sterling Hughes Total: +4 We can now call a vote on the general@incubator

Re: [DISCUSS] Release Apache Mynewt 0.9.0-incubating-rc1

2016-05-20 Thread Christopher Collins
All, It is certainly not a big problem, but it is best if discussion about the release goes in the [DISCUSS] thread rather than the [VOTE] thread. Reserving the [VOTE] thread for votes makes it easy for lazy people such as myself to produce a tally when the vote closes. Please don't interpet

Re: [VOTE] Release Apache Mynewt 0.9.0-incubating-rc1

2016-05-20 Thread Christopher Collins
On Wed, May 18, 2016 at 11:26:50PM -0700, Christopher Collins wrote: > [X] +1 Release this package > [ ] 0 I don't feel strongly about it, but don't object > [ ] -1 Do not release this package because... +1 (binding) Thanks, Chris

[jira] [Created] (MYNEWT-297) BLE Host - Scanning lasts longer than specified duration

2016-05-19 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-297: -- Summary: BLE Host - Scanning lasts longer than specified duration Key: MYNEWT-297 URL: https://issues.apache.org/jira/browse/MYNEWT-297 Project: Mynewt

[jira] [Created] (MYNEWT-295) BLE Host - Persist client characteristic configuration for bonded peers

2016-05-19 Thread Christopher Collins (JIRA)
Christopher Collins created MYNEWT-295: -- Summary: BLE Host - Persist client characteristic configuration for bonded peers Key: MYNEWT-295 URL: https://issues.apache.org/jira/browse/MYNEWT-295

Re: Correct way to specify custom UUID's

2016-05-19 Thread Christopher Collins
On Thu, May 19, 2016 at 12:57:53PM -0700, James Howarth wrote: > Hi Chris, > > A) Thanks for the style tips. I always appreciate those. > > B) The device seems to be stuck in trying to register attributes loop, > similar to what had happened when I didn't have enough attributes > supported.

Re: Correct way to specify custom UUID's

2016-05-19 Thread Christopher Collins
On Thu, May 19, 2016 at 11:57:45AM -0700, James Howarth wrote: > I'm not quite sure how to define a custom 128 bit UUID and pass it to > .uuid128. > > I thought it might be a global variable e.g. > static uint8_t UUID_BASE[16] = {0x03, 0x04, 0x00, 0x00, 0x2A, 0xAE, > 0x4D, > 0x26, 0xAD, 0x62,

Re: Procedure for changing power level

2016-05-19 Thread Christopher Collins
On Thu, May 19, 2016 at 11:12:39AM -0700, James Howarth wrote: > Hi Chris, > > I think it needs to be a signed int right, as txpwer can be negative, does > that sound right? Yes, good catch (thanks also, Kevin!). In that case, you should declare the tx power variable as an int8_t. Chris

Re: [DISCUSS] Release Apache Mynewt 0.9.0-incubating-rc1

2016-05-19 Thread Christopher Collins
On Wed, May 18, 2016 at 11:28:03PM -0700, Christopher Collins wrote: > Hello all, > > This thread is for any and all discussion regarding the release of > apache-mynewt-0.9.0-incubating. All feedback is welcome. There is one thing I really should have mentioned in the vote email.

Re: [DISCUSS] Release Apache Mynewt 0.9.0-incubating-rc1

2016-05-19 Thread Christopher Collins
On Thu, May 19, 2016 at 11:30:05AM +0200, Kevin Townsend wrote: > I'm running in 'develop' which may not be the right branch, but > switching a bare bones BLE project to 'native' as a BSP generates this > error: > > $ newt build bleuart > Building target targets/bleuart > Compiling ble_ll_adv.c

[DISCUSS] Release Apache Mynewt 0.9.0-incubating-rc1

2016-05-19 Thread Christopher Collins
Hello all, This thread is for any and all discussion regarding the release of apache-mynewt-0.9.0-incubating. All feedback is welcome. Thanks, Chris

[VOTE] Release Apache Mynewt 0.9.0-incubating-rc1

2016-05-19 Thread Christopher Collins
Hello all, I am pleased to be calling this vote for the source release of Apache Mynewt 0.9.0. Given that it is version 0.x, it is still a bit of a beta. Apache Mynewt is a community-driven, permissively licensed open source initiative for constrained, embedded applications. Mynewt provides a

Re: Problem with GATT service definition

2016-05-18 Thread Christopher Collins
On Wed, May 18, 2016 at 08:28:16PM -0700, James Howarth wrote: > Hi Chris, > > You are 100% right, and I realized after I had just it send, it was a > copy/paste error. No worries. I think the problem is that bleprph is trying to allocate more attributes than it is configured for. Bleprph's

Re: Trouble running bleprh example

2016-05-17 Thread Christopher Collins
On Mon, May 16, 2016 at 09:29:37PM -0700, James Howarth wrote: > Hi Chris, > > Thanks. I'm getting closer. > > Using the 'LightBlue Explorer' app: > >- I can see the nimble-bleprh device >- nim-bleprh appears to be advertising no services. >- When I try and connect to the nRF52,

Re: Trouble running bleprh example

2016-05-16 Thread Christopher Collins
Hi James, On Mon, May 16, 2016 at 10:49:10AM -0700, James Howarth wrote: > Hi, > > I am trying to get the bleprph example up and running on a Nordic nRF52 > PDK. But I can't seem to see the device using the LightBlue app running on > my iPhone. [...] Hi James, I'm pretty sure I know what the

<    2   3   4   5   6   7   8   9   10   >