Commit graph

490 commits

Author SHA1 Message Date
Rohit Grover
3434e4b0ee 60:e861f2041469
Release 0.1.2: Minor bugfix release.

Bugfixes
~~~~~~~~

- drop un-necessary app_button.c.

Compatibility
~~~~~~~~~~~~~

Compatible with revision 0.1.0 of the BLE_API.
2014-09-02 17:07:29 +01:00
Rohit Grover
7e37dcfa50 drop un-necessary app_button.c 2014-09-02 17:05:43 +01:00
Rohit Grover
4fa4609d3e 59:2819e564b613
Release 0.1.1
=============

Minor bugfix release.

Bugfixes
~~~~~~~~

- drop duplicate app_timer.cpp; it's already present in the mbed SDK.
- add missing code for custom_add_in_descriptor() to custom_helper.cpp

Compatibility
~~~~~~~~~~~~~

Compatible with revision 0.1.0 of the BLE_API.
2014-09-02 16:46:14 +01:00
Rohit Grover
d60f340383 drop app_timer.cpp because it is already a part of mbed sdk 2014-09-02 16:39:24 +01:00
Rohit Grover
384c84522b 58:de6b64cd7f21
Release 0.1.0
=============

We've achieved significant gains in power consumption: the BLE_Beacon demo now
runs at around 35uA of average current broadcasting once a second at 0dB; when
not using the radio, this demo consumes around 7uA.

Features
~~~~~~~~

- Replace initialization of high-frequency external crystal clock-source with
  the use of low-frequency clock. This brings in significant gains in power
  consumption.

- Re-implement the micro-second timer on nRF51 using the app_timer module
  (which internally uses RTC). This limits the precision of the us_Timer to
  30uS; but brings in significant gains in power consumption.

- Reduce the number of available app_timers and the event depths for app-timer
  events; this will reduce memory consumption for zero-initialized data by
  around 1K.

- Remove the call to conn_params_init() at startup. This is not mandatory; and
  was causing an unnecessary re-negotiation of connection parameters a few
  seconds into every connection.

- Reduce default transmission power level to 0dbB (was 4dbB before).

- Reduce min connection interval to 50ms and max to 500ms (previous values
  were much larger).

- Replace a few instances of use of wait() with nrf_delay_us().

- onConnection() callback now receives connection-parameters applicable to the
  new connection.

- onDataSent() callback now receives a count parameter containing the number of
  times notifications were sent out since the last callback.

- A 'reason' parameter has been added to Gap::disconnect() to indicate the
  reason for disconnection; and also to the onDisconnection callback to
  receive a reason from the remote host.

- disable the app_gpiote module by default.

Bugfixes
~~~~~~~~

- onDataWritten() callback now passes an additional parameter
  (GattServer::WriteEventCallback_t) encapsulating the update. This avoids
  having to re-fetch the updated characteristic's value attribute. It also
  fixes a bug where multiple updates to the characteristic's value-attribute
  could get clobbered if they occurred in quick succession before the
  callbacks could be processed.

Compatibility
~~~~~~~~~~~~~

Compatible with revision 0.1.0 of the BLE_API.
2014-09-02 16:18:30 +01:00
Rohit Grover
ff8e8673ef white space diff 2014-09-02 16:16:51 +01:00
Rohit Grover
6b7b440642 connection event callbacks now pass in connection parameters. 2014-09-02 14:36:09 +01:00
Rohit Grover
82cbf21ff3 white space diffs 2014-09-02 14:20:25 +01:00
Rohit Grover
442e7fd98d disable app_gpiote by default 2014-09-02 13:44:52 +01:00
Rohit Grover
7050c1e1c8 add a 'reason' parameter for disconnect() and onDisconnection callback 2014-09-02 13:44:52 +01:00
Rohit Grover
118f9d8bfa white space diffs. 2014-09-02 13:44:52 +01:00
Rohit Grover
4e77274ffc move get/set of deviceName and appearance to Gap 2014-09-02 13:44:52 +01:00
Rohit Grover
10ad7e4f1a introduce a handleDataSentEvent which takes a count. 2014-09-02 13:44:52 +01:00
Rohit Grover
900ead3cc5 have onDataSent() invoked repeatedly based on the count parameter in the event. 2014-09-02 13:44:52 +01:00
Rohit Grover
2d70b38dbe disable pstorage by default 2014-09-02 13:44:52 +01:00
Rohit Grover
255e02b003 removing call to ble_conn_params_init(). 2014-09-02 13:44:52 +01:00
Rohit Grover
1a528c703e white space diff 2014-09-02 13:44:52 +01:00
Rohit Grover
0820367e70 Merge branch 'handleEvent' into develop 2014-09-02 13:44:52 +01:00
Rohit Grover
2b9fee3a56 rename WriteEvent as WriteCBParams 2014-09-02 13:44:52 +01:00
Rohit Grover
a601082563 define a new handler for dataWritten event;
this exposes the data to the callback handler.
2014-09-02 13:44:50 +01:00
Rohit Grover
04c2ea794f Merge branch 'power' into tmp 2014-09-02 13:44:09 +01:00
Rohit Grover
d6f898c2fc bring in app_button.c from nordic-sdk 2014-09-02 13:44:09 +01:00
Rohit Grover
c0519cf895 minor cleanup of call to APP_TIMER_INIT(). removing a duplicate. 2014-09-02 13:44:09 +01:00
Rohit Grover
dba36be51b refresh pstorage.cpp from nordic sdk; this also re-enables the pstorage module. 2014-09-02 13:44:09 +01:00
Rohit Grover
56a9b23778 We need only one app_timer timer with a queue depth of 1.
This is used in the implementation of ticker.
2014-09-02 13:44:09 +01:00
Rohit Grover
1b8ca8fa03 remove include of 'mbed.h' from app_timer.cpp 2014-09-02 13:44:09 +01:00
Rohit Grover
53649fb81d start RTC1 automatically from app_timer_init(). 2014-09-02 13:44:09 +01:00
Rohit Grover
5f7f6f5423 rehome call to sd_ble_enable() to btle.cpp.
softdevice_handler.cpp is shared with non-application projects like the bootloader.
2014-09-02 13:44:09 +01:00
Rohit Grover
c06fa23971 return a 64-bit value from app_timer_cnt_get() 2014-09-02 13:44:09 +01:00
Rohit Grover
32e57e1a8d white space diff 2014-09-02 13:44:09 +01:00
Rohit Grover
2478b742d7 move some constants out to the common header. 2014-09-02 13:44:09 +01:00
Rohit Grover
1a3d7ba9b9 improve the default configuration parameters for faster connection interval and lower tx power 2014-09-02 13:44:09 +01:00
Rohit Grover
1644a74d73 Bringing app_timer in line with the code in the latest SDK release.
Also replace a few uses of wait() with nrf_delay(). This has an impact
on power consumption.
2014-09-02 13:44:09 +01:00
Rohit Grover
76f958494c replace wait() with nrf_delay_us() 2014-09-02 13:44:09 +01:00
Rohit Grover
6086db38fd white space diffs. 2014-09-02 13:44:09 +01:00
Rohit Grover
cb99ef6070 reduce event queue depth for timers in app_timer_init() 2014-09-02 13:44:09 +01:00
Rohit Grover
d3a81cb072 minor rename of a type 2014-09-02 13:44:09 +01:00
Rohit Grover
83f44c29d5 54:e2294c844c83 Move value attribute as member of the char class 2014-09-02 13:35:55 +01:00
Rohit Grover
d22868169f 54:e2294c844c83 Add support for adding descriptors 2014-09-02 13:34:54 +01:00
Rohit Grover
d1a8667c1d forking from 53:1e5c300cec7f 2014-07-30 11:36:32 +01:00