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

Update local master #13

Merged
merged 89 commits into from
Jan 15, 2021
Merged
Changes from 1 commit
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
ece9baa
Use enum class for message types and status codes for secure channel.…
bzbarsky-apple Dec 10, 2020
ccbffc1
Allow chip-tool listen port to be configured (#3675)
vivien-apple Dec 10, 2020
2090fbe
[doc] Add instruction for running cirque tests (#4140)
erjiaqing Dec 10, 2020
97a07fb
[exchange] Add echo test to validate exchange manager in Cirque (#4137)
erjiaqing Dec 10, 2020
b4f5ddd
Update pigweed repo version. Contains watchdog fix (#4165)
andy31415 Dec 10, 2020
0998211
Add Workflow for ZAP templates generation (#3929)
jepenven-silabs Dec 10, 2020
fb469ce
Add platform persistent storage KVS API (#4079)
Dec 10, 2020
27d3ea8
Make CHIP devices advertise as operational devices via mDNS (#4132)
andy31415 Dec 11, 2020
e5b4a69
[nrfconnect] Fix lighting-app build with Pigweed RPC server (#4161)
Damian-Nordic Dec 11, 2020
c2de7ed
Fix CHIPDeviceController when storage delegate is nullptr (#4089)
Damian-Nordic Dec 11, 2020
72261ff
Add support to read 'uint64_t' parameters in the ZCL payload (#4157)
vivien-apple Dec 11, 2020
fb65a31
Convert 'echo' command to a manufacturer specific 'ping' command (#4127)
vivien-apple Dec 11, 2020
4bfade2
Mdns broke running the server examples locally on macOS (#4184)
vivien-apple Dec 11, 2020
fd1da07
Add regen all script (#4180)
jepenven-silabs Dec 11, 2020
8a75ed7
[shell]:Start CHIP event-loop by default during initialization. (#4185)
yufengwangca Dec 12, 2020
34d8115
Update SPAKE2p pairing code to match spec (#4166)
pan-apple Dec 12, 2020
991653e
Convert packet send path to use PacketBufferHandle (#4160)
kpschoedel Dec 14, 2020
1ad6f09
Disable WPA initialization by default on Linux platform (#4186)
yufengwangca Dec 14, 2020
3c45d43
Add a second endpoint to the 'all-clusters-app' configuration '.zap' …
vivien-apple Dec 14, 2020
988cf67
Load default configuration for the reporting plugin (#4154)
vivien-apple Dec 14, 2020
6e93893
Use the latest Docker images in the workflows (#4153)
Damian-Nordic Dec 14, 2020
bd78140
[controller] Support ble connect using discriminator in python cli (#…
erjiaqing Dec 14, 2020
c0889c6
[nrfconnect] Build CHIP as out-of-tree Zephyr module (#4174)
Damian-Nordic Dec 14, 2020
4ecf7b8
Change the 'chip-zcl-zpro-codec-api' encode methods to returns a 'Pac…
vivien-apple Dec 15, 2020
5084346
AddressSanitizer: global-buffer-overflow in emAfReadOrWriteAttribute …
vivien-apple Dec 15, 2020
f60ffc5
[doc] Add document for chip device controller python cli (#4169)
erjiaqing Dec 15, 2020
de88e5a
Fix the build with chip_wifi_enable=false and chip_detail_logging=fal…
msandstedt Dec 15, 2020
4e78f50
Roll python deps & add pigweed's (#4168)
mspang Dec 15, 2020
0e55cf8
Align Spake2 protocol message type definition with spec (#4167)
yufengwangca Dec 18, 2020
d05149c
Integrated examples/common/chip-app-server to the CHIP src/app/server…
kkasperczyk-no Jan 5, 2021
04a1469
ESP32: NimBLE - Fix issues during secure pairing over BLE (#4255)
dhrishi Jan 5, 2021
f92b73d
Fix gn gen with all standalone targets disabled (#4249)
mspang Jan 5, 2021
ec504be
Fix generating qpg6100 without another thread config (#4250)
mspang Jan 5, 2021
baa90e5
[nrfconnect] Add PWM support to the lighting-app (#4237)
Damian-Nordic Jan 5, 2021
6e30b49
Remove old/stale TLV spec from the code repository. (#4258)
bzbarsky-apple Jan 5, 2021
ca6f8a0
Remove DiscoveryManager usage in SecureManager (#4264)
kghost Jan 6, 2021
01d0edc
[controller] Check service data uuid during scan (#4232)
erjiaqing Jan 6, 2021
3b44b6c
Add a dedicated configuration file to generate 'src/app/encoder.cpp' …
vivien-apple Jan 6, 2021
699f35d
[EFR32]Enable LCD display for BRD4180 and print URL to generated QRCo…
jmartinez-silabs Jan 6, 2021
e430b1d
Add initial IM invoke command integration (#4241)
yunhanw-google Jan 6, 2021
97cfa51
Add Silicon Labs implementation of ZLL clusters (change commit author)
selissia Dec 18, 2020
2142403
Restyled by clang-format
restyled-commits Dec 18, 2020
4f1ae72
Move ZLL cluster to src/app/clusters
selissia Jan 5, 2021
a108646
Fix comment formatting
selissia Jan 5, 2021
9661374
Adding Rotating Device Id to BLE & DNS-SD discovery (#4210)
hnnajh Jan 6, 2021
d75f0e5
[Build] iOS app broken since #4181 with 'No matching function for cal…
vivien-apple Jan 6, 2021
a1fa20c
Fix wrong uint64_t print
yunhanw-google Jan 7, 2021
1476fa2
[controller] First cleanup of CoreBluetoothMgr.py (#4229)
erjiaqing Jan 7, 2021
1ff0b78
[nrfconnect] Implement Pigweed-based backend of Zephyr logger (#4266)
Damian-Nordic Jan 7, 2021
cb84e54
Update the README.md to refect the latest change in repository (#4291)
yufengwangca Jan 7, 2021
cb23e0c
Integrate CRMP to messaging layer and enable it by default (#4048)
yufengwangca Jan 7, 2021
f6676ec
Add custom ZCL extensions inside src/app/zap-templates (#4192)
vivien-apple Jan 8, 2021
23aa924
Add C++ wrappers for ZCL Clusters (#4126)
vivien-apple Jan 8, 2021
f1ee305
Enable Interaction Model test in Cirque (#4283)
yunhanw-google Jan 8, 2021
f9748f3
Add Binding Server Cluster to src/app (#4156)
vivien-apple Jan 8, 2021
f77bebf
Convert mdns Builder classes to use PacketBufferHandle (#4094)
kpschoedel Jan 8, 2021
1ed46cb
Use Platform::Memory* to allocate things for minMDNS advertisement (#…
andy31415 Jan 8, 2021
bc4f841
SystemPacketBuffer.h cleanup (#4197)
kpschoedel Jan 8, 2021
e7f7a76
Disable CRMP if sending over non-UDP transport (#4306)
yufengwangca Jan 11, 2021
74c2696
[src/platform] Separation of nrfconnect and Zephyr platforms (#4198)
kkasperczyk-no Jan 11, 2021
8b42113
Call Platform::MemoryInit in the setup code parser library. (#4279)
andy31415 Jan 11, 2021
832a4e1
Some cleanup in secure session manager code (#4296)
pan-apple Jan 11, 2021
804c9a9
Define global attributes ids only once instead of repeating them for …
vivien-apple Jan 11, 2021
24cb0a5
Update the class memeber varible names in ReliableMessageManager and …
yufengwangca Jan 11, 2021
808dac0
Cleanup Delayed Delivery mechanism from CRMP (#4295)
yufengwangca Jan 11, 2021
5ae3fde
Use standard [[nodiscard]] where available (#4301)
kpschoedel Jan 11, 2021
7efa657
Decouple and cleanup the legacy wml based protocols (#4292)
yufengwangca Jan 11, 2021
e02e8d0
[nrfconnect] Replaced default NFC starting with manual trigger (#4289)
kkasperczyk-no Jan 11, 2021
d8afaba
Cleanup Throttle Flow mechanism from CRMP (#4294)
yufengwangca Jan 11, 2021
235fd1e
Add Common protocol definitions based on the latest Spec (#4314)
yufengwangca Jan 12, 2021
89b6578
Add more unit tests for sending pre-encrypted messages (#4317)
pan-apple Jan 12, 2021
4bb0e53
Revise CHIPTLV to increase PacketBuffer safety (#4304)
kpschoedel Jan 12, 2021
5874688
Support 'commisioning' advertising in CHIP (#4200)
andy31415 Jan 12, 2021
9595e06
[nrfconnect] Fix compatibility issues with newer Zephyr (#4287)
Damian-Nordic Jan 12, 2021
c07d818
API SecureManager::SendMessage, use SecureSessoinHandle instead NodeI…
kghost Jan 12, 2021
5353858
CHIP Operational Certificate Implementation (#4060)
emargolis Jan 12, 2021
2c5ef7b
Add TCP support to chip echo test app (#4307)
yufengwangca Jan 12, 2021
4f0521f
Initial support of the Texas Instruments CC13X2 CC26X2 MCU family (#4…
srickardti Jan 12, 2021
6c94941
Rename inappropriate member functions in ReliableMessageManager (#4322)
yufengwangca Jan 12, 2021
ab9dda6
Remove prefix kSendFlag_ from enum class SendMessageFlag and kExchang…
yufengwangca Jan 12, 2021
872015b
* BLEManager Implementation for QPG6100 updated for full Rendezvous f…
tima-q Jan 13, 2021
a297a56
Fix issue in call to PairDevice() API while pairing in progress (#4336)
pan-apple Jan 14, 2021
178b244
Use CHIPProjectConfig.h in examples/lighting-app/linux/main.cpp inste…
vivien-apple Jan 14, 2021
530f741
Update TestSystemPacketBuffer (#4305)
kpschoedel Jan 14, 2021
f9d435a
Add ZCL API Objc Wrappers (#4311)
vivien-apple Jan 14, 2021
e393b5e
[linux] BLE central implementation (#4347)
Damian-Nordic Jan 14, 2021
8efa9a7
Add custom types to chip ZCL inside src/app/zap-templates/zcl (#4348)
vivien-apple Jan 14, 2021
2c820d0
Add platform implementation for Advertiser (#4345)
gjc13 Jan 14, 2021
be3279a
Add support for commisionable advertisement (#4337)
arunbharadwaj Jan 14, 2021
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
Prev Previous commit
Next Next commit
Add Common protocol definitions based on the latest Spec (project-chi…
…p#4314)

* Add Common protocol definations

* Rename CommonProtocol.h to Constants.h

* Rename secure_channel/SecureChannelProtocol.h to secure_channel/Constants.h
yufengwangca authored Jan 12, 2021
commit 235fd1e149bfe3bea3050cd6d12cd27483984443
2 changes: 1 addition & 1 deletion src/messaging/ExchangeContext.cpp
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@
#include <messaging/ExchangeContext.h>
#include <messaging/ExchangeMgr.h>
#include <protocols/Protocols.h>
#include <protocols/secure_channel/SecureChannelProtocol.h>
#include <protocols/secure_channel/Constants.h>
#include <support/logging/CHIPLogging.h>
#include <system/SystemTimer.h>

2 changes: 1 addition & 1 deletion src/messaging/ReliableMessageContext.cpp
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@
#include <messaging/Flags.h>
#include <messaging/ReliableMessageManager.h>
#include <protocols/Protocols.h>
#include <protocols/secure_channel/SecureChannelProtocol.h>
#include <protocols/secure_channel/Constants.h>
#include <support/CodeUtils.h>

namespace chip {
77 changes: 77 additions & 0 deletions src/protocols/common/Constants.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*
*
* Copyright (c) 2020 Project CHIP Authors
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* @file
* The defines constants for the CHIP Common Protocol, present in
* every CHIP device.
*
*/

#pragma once

/**
* @namespace chip::Protocols::Common
*
* @brief
* This namespace includes all interfaces within CHIP for the
* CHIP Common profile.
*
* The interfaces define message types and status codes.
*/

namespace chip {
namespace Protocols {
namespace Common {

/**
* Common Profile Message Types
*/
enum class MsgType
{
// Status Report contians operation results that a responder sends as a reply for requests sent from an initiator.
StatusReport = 1
};

/**
* Common Protocol Status Codes
*/
enum class StatusCode
{
Success = 0, /**< Operation completed successfully. */
Failure = 1, /**< Generic failure, additional details may be included in the protocol specific status. */
BadPrecondition = 2, /**< Operation was rejected by the system because the system is in an invalid state. */
OutOfRange = 3, /**< A value was out of a required range. */
BadRequest = 4, /**< A request was unrecognized or malformed. */
Unsupported = 5, /**< An unrecognized or unsupported request was received. */
Unexpected = 6, /**< A request was not expected at this time. */
ResourceExhausted = 7, /**< Insufficient resources to process the given request. */
Busy = 8, /**< Device is busy and cannot handle this request at this time. */
Timeout = 9, /**< A timeout occurred. */
Continue = 10, /**< Context-specific signal to proceed. */
Aborted = 11, /**< Failure, often due to a concurrency error. */
InvalidArgument = 12, /**< An invalid/unsupported argument was provided. */
NotFound = 13, /**< Some requested entity was not found. */
AlreadyExists = 14, /**< The caller attempted to create something that already exists. */
PermissionDenied = 15, /**< Caller does not have sufficient permissions to execute the requested operations. */
DataLoss = 16, /**< Unrecoverable data loss or corruption has occurred. */
};

} // namespace Common
} // namespace Protocols
} // namespace chip
File renamed without changes.
2 changes: 1 addition & 1 deletion src/transport/SecurePairingSession.h
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@
#pragma once

#include <crypto/CHIPCryptoPAL.h>
#include <protocols/secure_channel/SecureChannelProtocol.h>
#include <protocols/secure_channel/Constants.h>
#include <support/Base64.h>
#include <system/SystemPacketBuffer.h>
#include <transport/SecureSession.h>