Skip to content

Commit 3b43b68

Browse files
author
Unify Automated
committed
Release ver_1.5.0
1 parent 4d72f4e commit 3b43b68

File tree

10,729 files changed

+756609
-591584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

10,729 files changed

+756609
-591584
lines changed

.gitattributes

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"slc_cli_linux.zip" filter=lfs diff=lfs merge=lfs -text
2-
"zap_apack_linux.zip" filter=lfs diff=lfs merge=lfs -text
3-
"zap_2022.1.10_amd64.deb" filter=lfs diff=lfs merge=lfs -text
1+
"zap-2022.1.10.dmg" filter=lfs diff=lfs merge=lfs -text
42
"slc_cli_mac.zip" filter=lfs diff=lfs merge=lfs -text
53
"zap_apack_mac.zip" filter=lfs diff=lfs merge=lfs -text
6-
"zap-2022.1.10.dmg" filter=lfs diff=lfs merge=lfs -text
4+
"zap_2022.1.10_amd64.deb" filter=lfs diff=lfs merge=lfs -text
5+
"slc_cli_linux.zip" filter=lfs diff=lfs merge=lfs -text
6+
"zap_apack_linux.zip" filter=lfs diff=lfs merge=lfs -text

.github/workflows/build.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ set(CMAKE_INCLUDE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/include/"
1111
# ##############################################################################
1212
# Include Configurations
1313
# ##############################################################################
14+
if(NOT CMAKE_BUILD_TYPE)
15+
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "default build type: Debug" FORCE)
16+
endif()
17+
1418
message(STATUS "Building Unify with BUILD_TYPE=${CMAKE_BUILD_TYPE}")
1519

1620
include(cmake/include/version.cmake)

CODEOWNERS

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
@@@UnifyCore @naagarwa @mamehta @sushanka
2+
@@@UnifyZWave @phcoval @jeboullo
3+
@@@UnifyZigbee @jolitwin @mpbreton
4+
@@@UnifyBT @tabenyhe @tahornos
5+
@@@Documentation @naagarwa @mamehta @phcoval @jolitwin @mpbreton @nibertol @tabenyhe @jeboullo
6+
@@@UnifyFwkServices @naagarwa @mamehta @sushanka
7+
@@@UnifyIoTServices @naagarwa @sushanka @sepastuk
8+
@@@CICD @naagarwa @dethammi @sushanka
9+
@@@UnifyMultiProtcol @nibertol @supratap @frkillee @ismaghni @alautott
10+
11+
# Pipeline rule and scripts
12+
Jenkinsfile @@CICD
13+
scripts/ @@CICD
14+
15+
# Documentations
16+
**/*.md @@Documentation
17+
doc/ @@Documentation
18+
19+
components/ @@UnifyCore
20+
docker/ @@UnifyCore
21+
cmake/ @@UnifyCore
22+
portable_runtime/ @@UnifyCore
23+
applications/aox/ @@UnifyBT
24+
applications/bt_host_empty/ @@UnifyBT
25+
applications/cpc-hci-bridge/ @@UnifyBT
26+
applications/cpcd/ @@UnifyMultiProtcol
27+
applications/dev_ui/ @@UnifyIoTServices
28+
applications/examples/ @@UnifyCore
29+
applications/gms/ @@UnifyFwkServices
30+
applications/home_assistant/ @@UnifyIoTServices
31+
applications/image_provider/ @@UnifyFwkServices
32+
applications/nal/ @@UnifyFwkServices
33+
applications/openthread_border_router/ @@UnifyMultiProtcol
34+
applications/upti_cap/ @@UnifyFwkServices
35+
applications/upti_writer/ @@UnifyFwkServices
36+
applications/upvl/ @@UnifyFwkServices
37+
applications/zigbeed/ @@UnifyZigbee
38+
applications/zigpc/ @@UnifyZigbee
39+
applications/zpc/ @@UnifyZWave
40+
41+
CODEOWNERS @@UnifyCore
42+
43+
44+
45+
# If a group is involved, at least one reviewer of the group must approve
46+
(Check(@@UnifyCore >= 1))
47+
(Check(@@UnifyZigbee >= 1))
48+
(Check(@@UnifyZWave >= 1))
49+
(Check(@@UnifyBT >= 1))
50+
(Check(@@UnifyFwkServices >= 1))
51+
(Check(@@UnifyIoTServices >= 1))
52+
(Check(@@UnifyMultiProtcol >= 1))
53+
(Check(@@CICD >= 1))
54+
(Check(@@Documentation >= 1))
55+
56+
OverallCheck(2)

CONTRIBUTING.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Contributing to UnifySDK
2+
3+
## Reporting issues
4+
5+
Currently there is no way to report issue in the github project,
6+
however supported @SiliconLabs customers can report cases individually.
7+
8+
## Git Branch naming conventions
9+
10+
There is no strong requirement for now, but user are encouraged to
11+
track their changes by prefixing branch names with meaningful prefixes
12+
such as "feature" or "bugfix".
13+
14+
If the change refers to existing context id, feel free to add it.
15+
16+
| Sl No | Type of Branch | Use Case | Example |
17+
| ----- | -------------- | -------- |-------- |
18+
| 1 | Feature Branches | For developing new features or functionalities. These branches are often used for longer-lived work and may be merged into the main branch when completed. |feature/user-authentication
19+
| 2 | Bugfix Branches | For addressing specific issues or bugs. Bugfix branches are created to isolate and fix a problem, and they're often merged back into the main branch (or a release branch) once the fix is verified. | bugfix/GH-1234-fix-for-UMB-crash
20+
| 3 | Experimental Branches | For highly experimental or uncertain work that may or may not make it into the main codebase. These branches allow team members to collaborate on new ideas without affecting the main development flow | experimental/GH-1234-migration-of-core
21+
| 4 | Documentation Branches | For creating or updating documentation, such as README files, user guides, or API documentation. Separate documentation branches make it easier to manage documentation changes independently from code changes | docs/GH-1234-updates-readme
22+
| 5 | Refactoring Branches | For making significant changes to the codebase that don't add new features or fix bugs but improve the code's structure, readability, or maintainability. Separate refactoring branches help keep refactoring efforts organized | refactor/GH-1234-refactors-authentication-module
23+
| 6 | Test Branches | For adding or modifying test cases. These branches allow for the isolation of test-related changes and help maintain a robust testing suit | test/adds -thermostat-test-cases
24+
25+
## Commit message format
26+
27+
Commit message should not exceed 50 characters.
28+
29+
Within your commits, you can include a commit description,
30+
allowing to add even more detail / context as to what you did.
31+
32+
Add an empty line underneath the commit message,
33+
and begin writing a description from line 3.
34+
35+
Example:
36+
37+
```
38+
GH-XYZ: Fix issue with login button not showing.
39+
40+
- Update login form validation
41+
- Update login styling for showing the button
42+
```
43+
44+
| Sl No | Commit Message Examples |
45+
| ----- | ----------------------- |
46+
| 1 | Add support for thermostat cluster |
47+
| 2 | Remove python2 deprecated dependencies |
48+
| 3 | Update rust dependencies to latest version |
49+
| 4 | Fix portable runtime crash |
50+
| 5 | Refactor core components into rust |
51+
| 6 | Add unit tests for thermostat cluster |
52+
53+
## Pull request guidelines
54+
55+
### As a Developer
56+
57+
What to consider while raising a Pull Request
58+
59+
* Pull request naming
60+
61+
```
62+
Context: <message clearing explaining what commit does>
63+
```
64+
65+
* Write a useful description in the “details” section of the pull request. i.e, mention the root cause of problem and approach of the solution.
66+
* Max size of Pull request should be < 300 lines (excluding autogenerated code)
67+
* If Changes are greater than 300 lines, split the changes into logical groups using multiple PRs.
68+
* Pull Request should be raised only after successful execution of the existing unit Test cases.
69+
* One Pull Request should address only one issues (don’t combine multiple changes, this applies for indentation changes as well)
70+
* Don’t change the code while reviewing, use "Draft" state for asking developers not to review the code or to block merging of code.
71+
* Design the code in a modular fashion that allows functional tesing.
72+
73+
### As a Reviewer
74+
75+
What to consider while reviewing a Pull Request
76+
77+
* Does the code has successful build?
78+
* Does the code follow unify coding guidelines?
79+
* Does the code meet its objective / acceptance criteria?
80+
* Does the code have unit test and documentation included?
81+
* Does the code need any refactoring, considering security, performance or simply ease of reading?
82+
* Use "Suggestion" feature which allows you to add a code suggestion directly into the comment, which can instantly be accepted and committed from within the PR.
83+
* Write clear comments. Describe the issue, why you don’t agree (mistakes, errors, violations against conventions, performance risk, security issues, etc.), and propose other solutions to simplify and improve the code.
84+
* If any of the comments need to be addressed mandatorily, mark the pull request as “Draft”
85+
86+
## Unit tests
87+
88+
All contributors have to manually run the unit test locally before raising the Pull request.
89+
90+
* Inside docker, build with -DBUILD_TESTING=ON.
91+
* Then “ninja” and “ninja test” (this command runs all the tests.)
92+
93+
If you want to test individually
94+
you can do by running test executables from shell
95+
96+
Build and unit tests are run from contributor fork using github actions.

applications/aox/applications/aoxpc/components/aoxpc_ncp_process/src/aoxpc_ncp_process.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ PROCESS_THREAD(ncp_process, ev, data)
5151
while (1) {
5252
switch (ev) {
5353
case PROCESS_EVENT_INIT:
54+
ncp_flush();
5455
sl_log_info(LOG_TAG, "Reset NCP");
5556
sl_bt_system_reset(sl_bt_system_boot_mode_normal);
56-
ncp_flush();
5757
break;
5858
case BT_EVENT:
5959
if (NULL != ncp_bt_on_event) {

applications/cpc-hci-bridge/CMakeLists.txt

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,40 @@
1-
add_executable(cpc-hci-bridge cpc-hci-bridge.c)
1+
find_package(GeckoSDK 4.3.0 REQUIRED)
2+
find_package(CPCD 4.3.0 REQUIRED)
3+
4+
set(CPC_HCI_BRIDGE_SOURCE_FILES
5+
${GeckoSDK_ROOT_DIR}/app/bluetooth/example_host/bt_host_cpc_hci_bridge/main.c
6+
${GeckoSDK_ROOT_DIR}/app/common/util/app_log/app_log.c
7+
${GeckoSDK_ROOT_DIR}/app/bluetooth/common_host/iostream_mock/sl_iostream_handles.c
8+
)
9+
10+
set(CPC_HCI_BRIDGE_INCLUDES
11+
${GeckoSDK_ROOT_DIR}/app/bluetooth/example_host/bt_host_cpc_hci_bridge
12+
${GeckoSDK_ROOT_DIR}/platform/common/inc
13+
${GeckoSDK_ROOT_DIR}/protocol/bluetooth/bgstack/ll/utils/hci_packet/inc
14+
${GeckoSDK_ROOT_DIR}/app/common/util/app_log
15+
${GeckoSDK_ROOT_DIR}/app/bluetooth/common_host/iostream_mock
16+
${GeckoSDK_ROOT_DIR}/app/bluetooth/common_host/app_log
17+
${GeckoSDK_ROOT_DIR}/app/bluetooth/common_host/app_log/config
18+
)
19+
20+
add_executable(cpc-hci-bridge ${CPC_HCI_BRIDGE_SOURCE_FILES})
21+
22+
target_include_directories(cpc-hci-bridge BEFORE PRIVATE
23+
${CPC_HCI_BRIDGE_INCLUDES}
24+
${cpcd_SOURCE_DIR}/lib
25+
)
26+
27+
target_compile_definitions(cpc-hci-bridge PRIVATE
28+
-DHOST_TOOLCHAIN
29+
-DPOSIX
30+
)
231

332
target_link_libraries(cpc-hci-bridge
433
cpc
5-
unify
634
util
735
pthread
836
)
9-
10-
if(CPCD_LOCATION)
11-
target_include_directories(cpc-hci-bridge PRIVATE ${CPCD_LOCATION}/include)
12-
set_source_files_properties(
13-
cpc-hci-bridge.c PROPERTIES COMPILE_FLAGS -Wno-error=unused-result
14-
)
15-
else()
16-
get_target_property(CPC_SOURCE_DIR cpc SOURCE_DIR)
17-
target_include_directories(cpc-hci-bridge PRIVATE ${CPC_SOURCE_DIR}/lib)
18-
endif()
37+
target_link_directories(cpc-hci-bridge PRIVATE ${cpcd_BINARY_DIR})
1938

2039
install(TARGETS cpc-hci-bridge RUNTIME DESTINATION "bin" COMPONENT uic-cpc-hci-bridge)
2140

@@ -51,7 +70,7 @@ add_component_to_uic(
5170
uic-cpc-hci-bridge
5271
"Universal IOT controller - cpc-hci-bridge"
5372
"${CMAKE_PROJECT_NAME}-cpc-hci-bridge"
54-
""
73+
"${CMAKE_PROJECT_NAME}-cpcd"
5574
""
5675
"${CMAKE_BINARY_DIR}/applications/aox/applications/cpc-hci-bridge/debconf/postinst;\
5776
${CMAKE_BINARY_DIR}/applications/aox/applications/cpc-hci-bridge/debconf/prerm")

0 commit comments

Comments
 (0)