Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mw320] Sve2 pr #22915

Merged
merged 40 commits into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
c700aee
Add the Software Version Info for TC-BINFO-2.1
crlonxp Jul 25, 2022
0bc7eb3
Add to save the information of the last connected AP
crlonxp Jul 25, 2022
ebff548
Add to support "Manual controlled feature" for TC-OO-2.2
crlonxp Jul 25, 2022
34e62ac
Move mw320_sdk initialization to a function
crlonxp Jul 25, 2022
96e74bc
Add Identify_Timer_Handler() for TC-I-2.2
crlonxp Jul 25, 2022
606a8e9
Add modules: - ConnectivityUtils.* - DeviceInfoProviderImpl.*
crlonxp Jul 25, 2022
92939df
Add the implementation of read/write configuration key to flash
crlonxp Jul 25, 2022
fda2852
Add to report information for TC_DGGEN-3.1
crlonxp Jul 25, 2022
5715b2e
Add the missing functions for handling tc-wifidiag-3.1 Some of them a…
crlonxp Jul 25, 2022
747f5eb
Restyled by clang-format
restyled-commits Jul 25, 2022
b120d7c
Restyled by gn
restyled-commits Jul 25, 2022
e21d6c1
Implement the functions for WiFiDiagnostics / Generic Diagnostics * w…
crlonxp Jul 28, 2022
249b2be
Add to support Identify_Time on multiple endpoints Verify: pass TC_I_…
crlonxp Aug 3, 2022
d66047a
Add "reset watermark" handler
crlonxp Aug 3, 2022
323e4a5
Add to support Ethernet / WiFi network commissioning Test: pass TC-CN…
crlonxp Aug 12, 2022
d16bfe2
* Remove unused module: DeviceInfoProviderImpl.cpp/DeviceInfoProvider…
crlonxp Aug 19, 2022
d608af0
Add to print the version string
crlonxp Aug 19, 2022
823f6aa
* Add the Shutdown handler in PlatformMgr() * Add to register the shu…
crlonxp Aug 24, 2022
027bb17
Add back DeviceInfoProviderImpl.cpp / DeviceInfoProviderImpl.h to pas…
crlonxp Aug 26, 2022
997a950
Change to comparing SSID with characters, instead of ASCII code (prev…
crlonxp Aug 29, 2022
8974b09
Update version number to: mw320-2.9.10-003
crlonxp Sep 1, 2022
ec8fc82
Update README.md
nxptest Sep 1, 2022
0b9aa9d
Correct the printed Rendzvous Information (QR-code, Manual code) from…
crlonxp Sep 1, 2022
435c057
Add the function to change the pincode of mw320: Usage: > pincode [pi…
crlonxp Sep 1, 2022
310e975
Update version number to: mw320-2.9.10-004
crlonxp Sep 1, 2022
e284f78
Limit the maximum supported fabric number == 5
crlonxp Sep 13, 2022
a4c84f4
Add a shell command to save the ssid / password of the default ap
crlonxp Sep 13, 2022
d26a528
Put manual_control implementation into a compile option controlled
crlonxp Sep 16, 2022
3d02525
Add to dump progressing message on mw320
crlonxp Sep 16, 2022
e116690
Update version number to: mw320-2.9.10-005
crlonxp Sep 16, 2022
aa8c95c
Add to support reading the manufacture data from a partition.
crlonxp Sep 23, 2022
d130bb3
Add to support save/get BootReason Verify: step#5 of TC-DGGEN-2.2
crlonxp Sep 26, 2022
d010bd7
Add 2 console commands: * wlan-stat: Show the current dut status > wl…
crlonxp Sep 28, 2022
c12dbb2
Restyled by whitespace
restyled-commits Sep 28, 2022
ee7b2f9
Restyled by clang-format
restyled-commits Sep 28, 2022
f8e2ff3
Restyled by gn
restyled-commits Sep 28, 2022
c8a8ba6
Disable the chip_detail_logging
crlonxp Sep 28, 2022
0fd430d
Add a building option, wifi_conn_abort_support, to make it configurable
crlonxp Sep 28, 2022
69a7e8f
Restyled by gn
restyled-commits Sep 28, 2022
6b26e45
update submodule
crlonxp Sep 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion examples/all-clusters-app/nxp/mw320/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ mw320_sdk("sdk") {
"include/FreeRTOSConfig.h",
]

defines = []
defines = [ "CHIP_CONFIG_MAX_FABRICS=5" ]

if (is_debug) {
defines += [ "BUILD_RELEASE=0" ]
} else {
defines += [ "BUILD_RELEASE=1" ]
}
if (wifi_conn_abort_support == true) {
defines += [ "WIFI_CONN_ABORT_SUPPORT" ]
}
}

mw320_executable("shell_mw320") {
Expand Down
3 changes: 2 additions & 1 deletion examples/all-clusters-app/nxp/mw320/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Building the example application is quite straightforward. It can be done via
following commands:

```
$ cd examples/all-clusters-app/nxp/mw320/
$ git submodule update --init
$ source third_party/connectedhomeip/scripts/activate.sh
$ gn gen out/debug
Expand All @@ -56,7 +57,7 @@ Note: This solution is temporary.
In order to use the tinycrypt ecc operations, use the following build arguments:

```
$ gn gen out/debug --args='treat_warnings_as_errors=false mbedtls_repo="//third_party/connectedhomeip/third_party/nxp/libs/mbedtls" mbedtls_use_tinycrypt=true'
$ gn gen out/debug --args='treat_warnings_as_errors=false mbedtls_repo="//third_party/connectedhomeip/third_party/nxp/libs/mbedtls" chip_crypto="tinycrypt"'
```

<a name="flashdebug"></a>
Expand Down
47 changes: 47 additions & 0 deletions examples/all-clusters-app/nxp/mw320/include/CHIPProjectConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,49 @@

#endif // BUILD_RELEASE

#if (defined(CONFIG_CHIP_MW320_REAL_FACTORY_DATA) && (CONFIG_CHIP_MW320_REAL_FACTORY_DATA == 1))

// VID/PID for product => will be used by Basic Information Cluster
#define CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID 0x1037
#define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0xA220

// set it to 0 for the moment
#define CHIP_DEVICE_CONFIG_ENABLE_DEVICE_INSTANCE_INFO_PROVIDER 0

#ifndef CHIP_DEVICE_CONFIG_CERTIFICATION_DECLARATION
//-> format_version = 1
//-> vendor_id = 0x1037
//-> product_id_array = [ 0xA220 ]
//-> device_type_id = 0x0015
//-> certificate_id = "ZIG20142ZB330003-24"
//-> security_level = 0
//-> security_information = 0
//-> version_number = 0x2694
//-> certification_type = 1
//-> dac_origin_vendor_id is not present
//-> dac_origin_product_id is not present
#define CHIP_DEVICE_CONFIG_CERTIFICATION_DECLARATION \
{ \
0x30, 0x81, 0xe7, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x07, 0x02, 0xa0, 0x81, 0xd9, 0x30, 0x81, 0xd6, \
0x02, 0x01, 0x03, 0x31, 0x0d, 0x30, 0x0b, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x30, \
0x43, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x07, 0x01, 0xa0, 0x36, 0x04, 0x34, 0x15, 0x24, 0x00, \
0x01, 0x25, 0x01, 0x37, 0x10, 0x36, 0x02, 0x05, 0x20, 0xa2, 0x18, 0x24, 0x03, 0x15, 0x2c, 0x04, 0x13, 0x5a, 0x49, \
0x47, 0x32, 0x30, 0x31, 0x34, 0x31, 0x5a, 0x42, 0x33, 0x33, 0x30, 0x30, 0x30, 0x31, 0x2d, 0x32, 0x34, 0x24, 0x05, \
0x00, 0x24, 0x06, 0x00, 0x24, 0x07, 0x01, 0x24, 0x08, 0x01, 0x18, 0x31, 0x7d, 0x30, 0x7b, 0x02, 0x01, 0x03, 0x80, \
0x14, 0x62, 0xfa, 0x82, 0x33, 0x59, 0xac, 0xfa, 0xa9, 0x96, 0x3e, 0x1c, 0xfa, 0x14, 0x0a, 0xdd, 0xf5, 0x04, 0xf3, \
0x71, 0x60, 0x30, 0x0b, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x30, 0x0a, 0x06, 0x08, \
0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x03, 0x02, 0x04, 0x47, 0x30, 0x45, 0x02, 0x20, 0x11, 0x8c, 0x13, 0x63, 0x9a, \
0xe7, 0x77, 0xaa, 0xc1, 0x52, 0x8c, 0x46, 0x40, 0x82, 0xcc, 0xdb, 0x6c, 0x43, 0x4d, 0xfc, 0xff, 0xe2, 0x5e, 0x1f, \
0xda, 0xef, 0xdf, 0x0d, 0xf1, 0x7c, 0x2c, 0xcd, 0x02, 0x21, 0x00, 0xbf, 0xad, 0x91, 0xc3, 0x3b, 0xf5, 0xb9, 0x89, \
0x2e, 0x5e, 0x15, 0x3c, 0x52, 0x61, 0xad, 0xb8, 0x53, 0x42, 0x46, 0xc6, 0x7d, 0xec, 0xc0, 0x93, 0x10, 0x1f, 0xc4, \
0xd2, 0xc3, 0x8a, 0xd5, 0x16, \
}

// All remaining data will be pulled from the provisioning region of flash.
#endif

#else // CONFIG_CHIP_MW320_REAL_FACTORY_DATA

// Use a default pairing code if one hasn't been provisioned in flash.
#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021
#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
Expand All @@ -85,6 +128,8 @@
*/
#define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0x8001

#endif // CONFIG_CHIP_MW320_REAL_FACTORY_DATA

/**
* CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION
*
Expand Down Expand Up @@ -163,3 +208,5 @@
#else
#define CHIP_CONFIG_EVENT_LOGGING_DEFAULT_IMPORTANCE chip::Profiles::DataManagement::Debug
#endif // BUILD_RELEASE

#define CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION 1
Loading