Commit 3459223
Migrate to BLE Library v2; New Sample App
All changes made in this commit are courtesy of @philips77
Major Additions/Changes
-------------------------
* Migrates the old nordic Android-BLE-Library v1 to v2 and
overhauls the McuManager BLE scheme implementation.
* Add new (more functional) sample app
* Update FirmwareUpgradeManager to be cleaner and more
configurable.
* Implement FileSystemManager
* Add additional functionality to McuMgrTransport for
connection observation and shutdown.
Full list of commits from @philips77 squashed in merge:
-------------------------------------------------------
* Android Studio 3.1.2
* Switching to external BLE Library v2
* Migrating to BLE Library v2
* Code cleanup, comments, warnings etc.
* Fix Mcu Mgr Transport to match BLE lib changes
* Refactoring in the sample app
* Reverting access modifiers
* Minor: code and comments cleanup
* Increasing polling interval to 7 sec + minor changes
* Improved packet length calculation
* Refactoring, FirmwareUpgradeController added
* MTU fixed again
* Documentation added
* Bug fix: looping with the same MTU fixed
* Exceptions improved
* BLE transport migrated to reflect BLE Lib changes, release method added to the mcu mgr transport interface.
* Licenses added
* Comments
* Response field made public
* Resource files removed from the library
* Annotations added, MTU moved to McuManager
* MTU moved to McuManager: Image and FirmwareUpgradeManager updated,
erase() fixed
* Annotations added,
Bug fixed in McuMgrBleManager: calling onError if rc != 0,
Refactoring
* Warning hidden
* FsManager added
* Sample app rebuilt. FsManager not yet supported.
* Tabs to Spaces
* Line wrapping
* Handling notification timeouts and disconnection
* Support for handling Bluetooth disabled event
* Bug fixed: cancelling upload
* Annotations added
* Adding State and Connection observers
* Android Studio 3.1.3
* State observers removed
* Basic and Advanced views on Image tab,
Disabling controls when the device is busy,
Reset moved to Image->Advanced tab
* Keeping only English resources
* Work indicator added
* Tabs to spaces
* continueUpload -> continueTransfer
* UI for FsManager, other bug fixes
* Moving common code to base class
* Test file generation
* Displaying graphical files as images
* Destination added to Files Upload
* New lines
* Comments
* Minor refactoring in EchoFragment
* Hello! as initial text for Echo
* Saving recent file names
* Unused imports removed, warnings suppressed.
* Bugs fixed: value validation added
* Bug fixed: Recreating MainActivity fails as BluetoothDevice wasn't saved.
* Image Manager: Erase state command added
* McuMgr responses comments.
* Initially, move the cursor to the end.
* Adjusting to library changes
* BLE Library imported from jcenter
* Constraint-layout 1.1.2
* License changed to Apache 2.0
* Bug fixed: Ble Library must be available for the app.
* Bug fixed
* Bug fix: confirm slot 0 in test mode
* BLE Library v2.0-alpha2
* BLE Library v2.0-alpha3
* License of the Sample app changed to Apache 2.0
* Zephyr icon fixed
* Other device icons
* Feature: option to filter device list by UUID and RSSI.
* Info text updated
* Bug fixed: formatting stats fixed
* BLE Library version 2.0-alpha4
* Improved device filtering
* Vector drawables set using scrCompat
* Improved UI for smaller phones
* BLE Library version 2.0-alpha5
* LogCat disabled
* Bug fixed: Buttons get invalid state after screen rotation during upload
* Bug fixed: Displaying long echos fixed
* Bug fixed: Scanning progress bar fixed on Lollipop1 parent e5031b5 commit 3459223
File tree
197 files changed
+10630
-4158
lines changed- mcumgr-android-lib
- src/main
- java/io/runtime/mcumgr
- ble
- callback
- manager
- error
- utils
- dfu
- exception
- image
- tlv
- managers
- response
- config
- dflt
- fs
- img
- stat
- util
- res/values
- sample
- src/main
- java/io/runtime/mcumgr/sample
- adapter
- application
- dialog
- di
- component
- module
- fragment
- mcumgr
- utils
- viewmodel
- mcumgr
- res
- color
- drawable-v21
- drawable-v24
- drawable-xhdpi
- drawable-xxhdpi
- drawable
- layout
- mipmap-anydpi-v26
- values-w360dp
- values-w380dp
- values-w820dp
- values
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
197 files changed
+10630
-4158
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
Lines changed: 145 additions & 94 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | | - | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
| 20 | + | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
21 | 23 | | |
22 | | - | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | | - | |
| 31 | + | |
30 | 32 | | |
Lines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | | - | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | | - | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | | - | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | | - | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | | - | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
96 | | - | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
Lines changed: 23 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
18 | 21 | | |
19 | | - | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
98 | 105 | | |
99 | | - | |
| 106 | + | |
100 | 107 | | |
101 | 108 | | |
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
109 | 118 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
114 | 123 | | |
| 124 | + | |
115 | 125 | | |
116 | 126 | | |
117 | 127 | | |
| |||
Lines changed: 54 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
21 | 35 | | |
22 | 36 | | |
23 | | - | |
| 37 | + | |
| 38 | + | |
24 | 39 | | |
| 40 | + | |
25 | 41 | | |
26 | 42 | | |
27 | 43 | | |
28 | 44 | | |
29 | 45 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
34 | 51 | | |
35 | | - | |
| 52 | + | |
36 | 53 | | |
37 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
38 | 57 | | |
39 | 58 | | |
40 | 59 | | |
41 | 60 | | |
42 | 61 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
47 | 89 | | |
48 | | - | |
49 | | - | |
| 90 | + | |
50 | 91 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | | - | |
| 11 | + | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 20 | + | |
43 | 21 | | |
44 | 22 | | |
45 | 23 | | |
| |||
58 | 36 | | |
59 | 37 | | |
60 | 38 | | |
61 | | - | |
| 39 | + | |
62 | 40 | | |
63 | 41 | | |
64 | 42 | | |
| |||
82 | 60 | | |
83 | 61 | | |
84 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
85 | 67 | | |
86 | 68 | | |
87 | 69 | | |
| |||
0 commit comments