[jira] [Created] (MYNEWT-346) BLE Host - Allow secure connections without requiring legacy pairing
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 Project: Mynewt Issue Type: Bug Components: Nimble Reporter: Christopher Collins Assignee: Christopher Collins There are two options in nimble_opt.h: * NIMBLE_OPT_SM * NIMBLE_OPT_SM_SC The first (sm) enables the security manager and legacy pairing. The second (sm_sc) enables secure connections. Secure connections requires the security manager, so when NIMBLE_OPT_SM_SC is enabled, NIMBLE_OPT_SM gets enabled automatically by nimble_opt_auto.h. The user should be able to enable SC without also enabling legacy pairing. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (MYNEWT-345) BLE Host - Reduce size of event buffers
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 Type: Bug Reporter: Christopher Collins Assignee: Christopher Collins Currently, the size of each HCI event buffer is 260 bytes. This is much larger than necessary. The task is: 1. Determine the size of the largest event the controller will send. 2. Reduce the size of the HCI event buffers to the result from step 1. 3. (optional) Increase the default number of HCI event buffers. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (MYNEWT-344) BLE Host - Don't wake up every second
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: Bug Components: Nimble Reporter: Christopher Collins Assignee: Christopher Collins The host currently wakes up once a second to see if there is any work to do. This is both stupid and wasteful in terms of power. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (MYNEWT-96) Nimble stack configuration
[ 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 configuration > -- > > Key: MYNEWT-96 > URL: https://issues.apache.org/jira/browse/MYNEWT-96 > Project: Mynewt > Issue Type: Improvement > Components: Nimble >Affects Versions: v0_8_0_beta1 >Reporter: William San Filippo >Assignee: Christopher Collins > Fix For: v0_10_0 > > > The current method of configuring various features/memory usage/etc in our > nimble stack is not exactly what we need as we need to have project (or > possibly bsp) configuration capability. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (MYNEWT-337) BLE host - Fragment data packets at the L2CAP
[ 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 host - Fragment data packets at the L2CAP > - > > Key: MYNEWT-337 > URL: https://issues.apache.org/jira/browse/MYNEWT-337 > Project: Mynewt > Issue Type: Improvement > Components: Nimble >Reporter: Christopher Collins >Assignee: Christopher Collins > > The L2CAP never fragments outgoing data packets; it only reassembles incoming > ones. Rather than fragmenting, it just assumes the HCI and controller can > handle whatever it sends. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (MYNEWT-291) BLE Host - Split GATT attribute access function into more specific events
[ 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 specific events > - > > Key: MYNEWT-291 > URL: https://issues.apache.org/jira/browse/MYNEWT-291 > Project: Mynewt > Issue Type: Bug > Components: Nimble >Reporter: Christopher Collins >Assignee: Christopher Collins > Fix For: v0_9_0 > > > Nimble notifies the app that a characteristic or descriptor is being accessed > via an access callback. The access callback takes a context parameter which > points to an instance of the following union: > {noformat} > union ble_gatt_access_ctxt { > struct { > const struct ble_gatt_chr_def *chr; > void *data; > int len; > } chr_access; > struct { > const struct ble_gatt_dsc_def *dsc; > void *data; > int len; > } dsc_access; > }; > {noformat} > This is problematic because the user may wish to point the _data_ fields to > read-only data, requiring them to "cast away const." This looks questionable > in code, and is difficult to document in the user guide with a straight face. > Instead, we should change the union to the following: > {noformat} > union ble_gatt_access_ctxt { > struct { > const struct ble_gatt_chr_def *chr; > const void *data; > int len; > } chr_read; > struct { > const struct ble_gatt_chr_def *chr; > void *data; > int len; > } chr_write; > struct { > const struct ble_gatt_dsc_def *dsc; > const void *data; > int len; > } dsc_read; > struct { > const struct ble_gatt_dsc_def *dsc; > void *data; > int len; > } dsc_write; > }; > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (MYNEWT-296) BLE Host - Scanning procedures provide an incomplete set of parameters
[ 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 set of parameters > -- > > Key: MYNEWT-296 > URL: https://issues.apache.org/jira/browse/MYNEWT-296 > Project: Mynewt > Issue Type: Bug > Components: Nimble >Reporter: Christopher Collins >Assignee: Christopher Collins > > {code} > int > ble_gap_disc(uint32_t duration_ms, uint8_t discovery_mode, > uint8_t scan_type, uint8_t filter_policy, > ble_gap_disc_fn *cb, void *cb_arg) > {code} > We need to support all the parameters (scan interval, window, etc.). -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (MYNEWT-297) BLE Host - Scanning lasts longer than specified duration
[ 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 duration > > > Key: MYNEWT-297 > URL: https://issues.apache.org/jira/browse/MYNEWT-297 > Project: Mynewt > Issue Type: Bug > Components: Nimble >Reporter: Christopher Collins >Assignee: Christopher Collins > -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (MYNEWT-343) nffs crash at bootloader
[ https://issues.apache.org/jira/browse/MYNEWT-343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marko Kiiskila updated MYNEWT-343: -- Attachment: arduino_nffs.bin > nffs crash at bootloader > > > Key: MYNEWT-343 > URL: https://issues.apache.org/jira/browse/MYNEWT-343 > Project: Mynewt > Issue Type: Bug > Environment: Arduino Zero with NFFS >Reporter: Marko Kiiskila > Attachments: arduino_nffs.bin > > > System asserts. I was switching between images. > Program received signal SIGTRAP, Trace/breakpoint trap. > __assert_func (file=, line=, > func=, e=) at os_fault.c:124 > 124 asm("bkpt"); > (gdb) bt > #0 __assert_func (file=, line=, > func=, e=) at os_fault.c:124 > #1 0x105e in nffs_hash_remove (entry=entry@entry=0x20001ad8) > at nffs_hash.c:179 > #2 0x2ff2 in nffs_block_delete_from_ram ( > block_entry=block_entry@entry=0x20001ad8) at nffs_block.c:266 > #3 0x26f2 in nffs_restore_sweep () at nffs_restore.c:353 > #4 0x283e in nffs_restore_full (area_descs=area_descs@entry=0x2000736c) > at nffs_restore.c:1400 > #5 0x04ca in nffs_detect (area_descs=area_descs@entry=0x2000736c) > at nffs.c:606 > #6 0x01e8 in setup_for_nffs () at boot.c:93 > #7 main () at boot.c:173 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (MYNEWT-343) nffs crash at bootloader
Marko Kiiskila created MYNEWT-343: - Summary: nffs crash at bootloader Key: MYNEWT-343 URL: https://issues.apache.org/jira/browse/MYNEWT-343 Project: Mynewt Issue Type: Bug Environment: Arduino Zero with NFFS Reporter: Marko Kiiskila System asserts. I was switching between images. Program received signal SIGTRAP, Trace/breakpoint trap. __assert_func (file=, line=, func=, e=) at os_fault.c:124 124asm("bkpt"); (gdb) bt #0 __assert_func (file=, line=, func=, e=) at os_fault.c:124 #1 0x105e in nffs_hash_remove (entry=entry@entry=0x20001ad8) at nffs_hash.c:179 #2 0x2ff2 in nffs_block_delete_from_ram ( block_entry=block_entry@entry=0x20001ad8) at nffs_block.c:266 #3 0x26f2 in nffs_restore_sweep () at nffs_restore.c:353 #4 0x283e in nffs_restore_full (area_descs=area_descs@entry=0x2000736c) at nffs_restore.c:1400 #5 0x04ca in nffs_detect (area_descs=area_descs@entry=0x2000736c) at nffs.c:606 #6 0x01e8 in setup_for_nffs () at boot.c:93 #7 main () at boot.c:173 -- This message was sent by Atlassian JIRA (v6.3.4#6332)