Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-09-04 | Linear decrease of advert rate to conserve battery | James A. Jerkins | 2 | -0/+6 | |
Start advertising aggressively when powered on then slow down linearly over 75 seconds. This will conserve battery by not advertising rapidly the whole time we are seeking a connection. The slowest rate is approximately once every 4.5 seconds to balance responsiveness and battery life. We use a fixed advertising duration of 5 seconds and start with a 62.5 ms advertising interval. Every 5 seconds (the advertising duration) we step up to a larger advertising interval (slower advertising). We continue to increase the advertising interval linearly for 75 seconds from the start of advertising. At 75 seconds we have an advertising interval of 4.44 seconds which we keep until connected. A reboot will restart the sequence. When we receive a disconnect event we restart the sequence with fast advertising and then slow down as described above. Note that we are not using the BLE high duty cycle setting to change the advertising rate. The rate is managed by repeatedly setting the minimum and maximum intervals. The linear rate of decrease and the slowest interval size were determined experimentally by the author. The 5.3 Core spec suggests that you not advertise slower than once every 1.2 seconds to preserve responsiveness but we ignored that suggestion. | |||||
2021-09-01 | Fix styles issues - no change to functionality | James A. Jerkins | 1 | -6/+6 | |
2021-09-01 | Fix race condition, connect->disconnect->discovery | James A. Jerkins | 1 | -1/+3 | |
2021-08-30 | Completely reset connection state on fail | James A. Jerkins | 1 | -0/+3 | |
2021-08-29 | WIP Refactor ble advertising | James A. Jerkins | 2 | -40/+60 | |
Refactor ble advertising based on ble standards and conventions. Changes are based on the bleprph example code, bluetooth docs, and nimble docs. | |||||
2021-07-24 | Move callback function into anonymous namespace | Jonathan Vander Mey | 1 | -5/+5 | |
2021-07-24 | Remove unnecessary C-style casts with BLE UUIDs | Jonathan Vander Mey | 10 | -64/+55 | |
Instead of casting the UUID object to the ble_uuid_t* used throughout the NimBLE API just pass the address of the ble_uuid_t member that's at the start of each of the UUID structs. | |||||
2021-07-24 | Update nav service UUID macro to constexpr functions | Jonathan Vander Mey | 2 | -28/+20 | |
2021-07-24 | Set navigation service id is base UUID macro | Jonathan Vander Mey | 2 | -13/+1 | |
Avoids the need to copy the same ID into every characteristic UUID genereated from it. | |||||
2021-07-24 | Update Navigation UUID documentation | Jonathan Vander Mey | 1 | -1/+1 | |
Fixed mismatch between the service and characteristic IDs in the navigation service comments and documentation. They had old values not reflecting the current code and changes in doc/ble.md | |||||
2021-07-22 | Make firmware updating more foolproof (#469) | Riku Isokoski | 1 | -5/+4 | |
* Make firmware updating more foolproof and fix bugs * No need to manually handle overflow * Make startTime TickType_t * Don't process TouchEvents::None * Fix sleep getting re-enabled issue more directly | |||||
2021-07-11 | Notify battery level every 10 minutes when connected to a BLE host. | Jean-François Milants | 4 | -4/+15 | |
Refactor battery percent : only use uint8_t to store the battery % remaining. | |||||
2021-07-02 | Inititialize members in class declaration | Jonathan Vander Mey | 2 | -22/+12 | |
Also added initializers for previously unintialized members. | |||||
2021-07-02 | Move local-only function into anonymous namespace | Jonathan Vander Mey | 1 | -4/+3 | |
2021-07-02 | Make MusicService UUID objects static constexpr | Jonathan Vander Mey | 2 | -22/+31 | |
2021-07-02 | Eliminate reinterpret_casting | Jonathan Vander Mey | 1 | -26/+26 | |
2021-06-26 | SPI flash sleep if bootloader >= 1.0.0 (#322) | Neil O'Fix | 1 | -0/+5 | |
* Retrieve and display bootloader version - Display bootloader version on System Info screen - Enable SPI flash sleep mode if bootloader version >= 1.0.0 * Wait for SPI flash to wakeup before starting OTA DFU | |||||
2021-06-12 | Merge pull request #359 from Avamander/patch-2 | JF002 | 2 | -157/+95 | |
Used a macro for UUID generation, switched from C-style casts to reinterpret_cast, renamed callback | |||||
2021-06-06 | Initialize SystemTask, DisplayApp and HeartRateTask as global static ↵ | Jean-François Milants | 5 | -7/+7 | |
variable instead of variables on the heap. We don't need them on the heap as we know their size at build time, it'll reduce memory fragmentation and it'll make memory analysis easier. | |||||
2021-05-17 | Updated license header year | Avamander | 2 | -2/+2 | |
2021-05-17 | Used a macro for UUID generation, switched from C-style casts to ↵ | Avamander | 2 | -155/+93 | |
reinterpret_cast, renamed callback | |||||
2021-04-24 | Changed access modified indentation | Avamander | 16 | -36/+36 | |
2021-04-24 | Reformatted all the files according to clang-format style | Avamander | 31 | -1359/+1095 | |
2021-04-09 | Merge branch 'develop' into notification-title | Jean-François Milants | 1 | -1/+1 | |
# Conflicts: # src/displayapp/screens/Notifications.cpp | |||||
2021-04-04 | Fix music app : | Jean-François Milants | 1 | -1/+1 | |
- Enable LVGL animation (and disable groups, which were not used), and set the speed. - Fix disc animation and progress display by initializing lastIncrement at 0 (a random value will be used otherwise, in release build) | |||||
2021-04-04 | Ignore notification with empty message. | Jean-François Milants | 2 | -4/+10 | |
2021-04-04 | Add support for notification title. The notification buffer must contain the ↵ | Jean-François Milants | 6 | -2/+22 | |
title and the message separated by a '\0' character. If the buffer does not contain any \0, the whole buffer is considered to be the message of the notification. A default title will be displayed in the notification app. | |||||
2021-02-14 | Merge pull request #182 from petterhs/warnings | JF002 | 2 | -5/+3 | |
Fix build warnings coming from HR implementation | |||||
2021-02-14 | Fix merge conflict. | Jean-François Milants | 2 | -0/+11 | |
2021-02-14 | Merge pull request #161 from petterhs/calls | JF002 | 4 | -5/+98 | |
Call functionality with changed UUID for notification event characteristic | |||||
2021-02-07 | add vibration toggle | petter | 2 | -0/+11 | |
2021-02-02 | Update to nimble 1.3 master branch commit ↵ | Jean-François Milants | 3 | -0/+3 | |
82153e744833821e20e9a8b0d61c38b2b0dbcfe1 WARNING : heartbeat task is disabled! | |||||
2021-01-27 | add mute button and functionality for call notification + new button icons | petter | 2 | -1/+16 | |
2021-01-25 | fix build warnings in HR implementation | petter | 2 | -5/+3 | |
2021-01-24 | Handle call notification the same way than other notifications. | Jean-François Milants | 2 | -26/+46 | |
Display the call notifications in the Notification app, with buttons to accept/reject the call. | |||||
2021-01-21 | change Notification Event base UUID | petter | 2 | -14/+14 | |
2021-01-21 | change Notification Event UUID | petter | 2 | -6/+8 | |
2021-01-21 | Add incoming call functionality | Rasmus Schenstrom | 4 | -4/+60 | |
Add categories to AlertNotification Add new alert notification screens bases Add Incoming Call Add Modal Add event to AlertNotification Co-authored-by: Robin Karlsson <robin.karlsson@protonmail.com> | |||||
2021-01-20 | Merge branch piggz/nav into develop: | Jean-François Milants | 4 | -0/+238 | |
- fix conflict - add a icon for the navigation app. | |||||
2021-01-20 | Merge pull request #169 from JF002/heartRateSensor | JF002 | 4 | -3/+135 | |
Heart rate sensor | |||||
2021-01-19 | Music UUID must start with 00000000 instead of 00010000 (copy/paste error) | Jean-François Milants | 1 | -1/+1 | |
2021-01-19 | Adapt the UUID of Music service according to new guidelines. | Jean-François Milants | 2 | -41/+77 | |
2021-01-17 | Add heart rate BLE service. | Jean-François Milants | 4 | -3/+135 | |
2021-01-08 | fix MusicService UUID typo in comment | petter | 1 | -1/+1 | |
2020-11-16 | Include cleanup: components | okaestne | 23 | -57/+115 | |
2020-10-29 | Refactoring of BLE service discovery : it is now implemented into the ↵ | JF | 9 | -227/+251 | |
classes of the services. | |||||
2020-10-28 | Reset BLE services on disconnect, do not start advertising if a connection ↵ | JF | 5 | -23/+54 | |
is already established. | |||||
2020-10-27 | Fix conflicts | JF | 2 | -165/+335 | |
2020-10-22 | Notifications : Fix copy when the messages is spread across multiple os_mbuf. | JF | 5 | -23/+28 | |
2020-10-21 | Notifications : Fix display of notification index/number. | JF | 2 | -1/+6 | |