본문 바로가기

Smart Home/MATTER13

run_zaptool.sh 분석해보려고 했지만 쓸데 없는 것 같아 접음 function _get_fullpath() { cd "$(dirname "$1")" && echo "$PWD/$(basename "$1")" } set -e [[ "$1" == "--help" ]] && { echo "Usage: $0 [ZAP-file-path]" >&2 exit 0 } SCRIPT_PATH="$(_get_fullpath "$0")" CHIP_ROOT="${SCRIPT_PATH%/scripts/tools/zap/run_zaptool.sh}" [[ -n "$1" ]] && ZAP_ARGS=(-i "$(_get_fullpath "$1")") || ZAP_ARGS=() ( cd "$CHIP_ROOT" && git submodule update --init third_party/zap/rep.. 2022. 12. 6.
run_zaptool.sh 실행 오류 => 해결 언제부터인가 run_zaptool.sh 가 실행되지 않는다.. 뭐가 에러인지도 알 수 없다... npm ERR! code 1 npm ERR! path /home/gamja/connectedhomeip/third_party/zap/repo/node_modules/canvas npm ERR! command failed npm ERR! command sh -c node-pre-gyp install --fallback-to-build npm ERR! Failed to execute '/home/gamja/connectedhomeip/.environment/cipd/packages/pigweed/bin/node /home/gamja/connectedhomeip/.environment/cipd/packages/pi.. 2022. 12. 6.
Matter - dns-sd 기반 commissioning NodeID=0xABCD 실행 커맨드 리스트 out/chip-tool interactive start >>> pairing onnetwork-long 0xABCD 20202021 3840 >>> onoff read on-ff 0xABCD 1 >>> onoff on 0xABCD 1 >>> onoff toggle 0xABCD 2 >>> onoff toggle 0xABCD 1 참고: BLE pairing 2022. 11. 7.
MATTER/Log test7/ app 실행 명령 @ controller connect -ble 3840 20202021 135246 zcl NetworkCommissioning AddWiFiNetwork 135246 0 0 ssid=str:*** credentials=str:*** breadcrumb=0 timeoutMs=1000 zcl NetworkCommissioning EnableNetwork 135246 0 0 networkID=str:*** breadcrumb=0 timeoutMs=1000 close-ble resolve 135246 zcl OnOff On 135246 1 1 zcl OnOff On 135246 1 1 zcl OnOff Off 135246 1 1 /home/gamja/esp/.espressif/python_env/i.. 2022. 10. 10.
MATTER/Log test7/ python (python_env) gamja@gamja-14Z90P-GALGL:~/connectedhomeip$ chip-device-ctrl [1665329023.563884][707651:707651] CHIP:CTL: Generating NOC [1665329023.563959][707651:707651] CHIP:CTL: Generating ICAC [1665329023.563992][707651:707651] CHIP:CTL: Generating RCAC [1665329023.565233][707651:707651] CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== [1665329023.565242][707651:707651] CHIP:DL: .. 2022. 10. 10.
MATTER/chip-device-ctrl(python controller) 분석 ./out/python_env/bin/chip-device-ctrl def main(): try: devMgrCmd = DeviceMgrCmd(rendezvousAddr=options.rendezvousAddr, controllerNodeId=options.controllerNodeId, bluetoothAdapter=adapterId) except Exception as ex: print(ex) print("Failed to bringup CHIPDeviceController CLI") sys.exit(1) print("Chip Device Controller Shell") try: devMgrCmd.cmdloop() except KeyboardInterrupt: print("\nQuitting") s.. 2022. 10. 10.
MATTER/Log chip-device-ctrl - fail 될때 분석 (controller 는 test_event_7 으로 빌드되었고, esp32 는 v1.0.0 으로 빌드된 상태) 패턴#1 - BLE scan 은 됐지만 subscribe(연결?)은 안됐다는 의미인 듯. chip-device-ctrl > connect -ble 3840 20202021 135246 Device is assigned with nodeid = 135246 [1665287009.145994][73052:73059] CHIP:IN: Prepared plaintext message 0x7f9981c9f8e0 to 0x0000000000000000 of type 0x20 and protocolId (0, 0) on exchange 24750i with MessageCounter:4166880492. .. 2022. 10. 9.
MATTER ./src 하위 폴더의 namespace 종류 ./platform/FreeRTOS/GenericThreadStackManagerImpl_FreeRTOS.h 45 namespace Internal chip-DeviceLayer-Internal ./platform/logging/LogV.h 10 namespace Platform chip-Logging-Platform ./platform/cc13x2_26x2/CHIPDevicePlatformEvent.h 32 namespace DeviceLayer chip-DeviceLayer ./platform/cc13x2_26x2/KeyValueStoreManagerImpl.h 28 namespace PersistedStorage chip-DeviceLayer-PersistedStorage ./platform/ESP.. 2022. 8. 30.
MATTER-ESP32 / temperature-measurement-app 분석(2/n) 소스구조 ├── CMakeLists.txt ├── README.md ├── main │ ├── CHIPDeviceManager.cpp CHIPDeviceManager::CommonDeviceEventHandler(){} CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb) {CHIP 스택초기화 Advertising Enable PlatformMgr.EventHandler 등록(cb) PlatformMgr.StartEventLoopTask()... } void MatterPostAttributeChangeCallback(...){} │ ├── CMakeLists.txt │ ├── DeviceCallbacks.cpp void DeviceCallbacks::De.. 2022. 8. 28.
MATTER-ESP32 / temperature-measurement-app 분석(1/n), Zap tool, Data Model Config [참고] nordicsemi: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_matter_creating_accessory.html#edit-clusters-using-the-zap-tool espressif blog: https://blog.espressif.com/announcing-matter-previously-chip-on-esp32-84164316c0e3 [소스환경] https://github.com/project-chip/connectedhomeip/tree/test_event_7 github 으로 소스 받은 후 branch 를 test_event_7로 변경 (espressif 블로그에서 사용한 환경으로 추정됨) tem.. 2022. 8. 28.
MATTER SDK 폴더 구조 https://github.com/project-chip/connectedhomeip/tree/test_event_7 ├── .environment │ ├── cipd │ ├── gn_out │ └── pigweed-venv ./scripts/bootstrap.sh 실행하면 생성되는 빌드 환경(pigweed, python, ...) ├── build │ ├── chip │ │ ├── java │ │ └── linux │ ├── config │ │ ├── android │ │ ├── compiler │ │ ├── linux │ │ └── mac │ └── toolchain │ ├── android │ ├── arm_gcc │ ├── custom │ ├── host │ ├── ios │ ├── linux │.. 2022. 8. 27.
MATTER/Log chip-device-ctrl (python_env) gamja@gamja-14Z90P-GALGL:~/connectedhomeip$ chip-device-ctrl [1660828884.046983][76806:76806] CHIP:CTL: Generating NOC [1660828884.047088][76806:76806] CHIP:CTL: Generating ICAC [1660828884.047124][76806:76806] CHIP:CTL: Generating RCAC [1660828884.048501][76806:76806] CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ==== [1660828884.048511][76806:76806] CHIP:DL: AUDIT: * V.. 2022. 8. 18.
MATTER/Log all-cluster-app esp32 log matter_log.all.success.txt (8/18) 성공한 로그 python controller 에서 수행한 커맨드 내역 chip-device-ctrl > ble-scan chip-device-ctrl > connect -ble 3840 20202021 135246 chip-device-ctrl > zcl NetworkCommissioning AddWiFiNetwork 135246 0 0 ssid=str: credentials=str: breadcrumb=0 timeoutMs=1000 chip-device-ctrl > zcl NetworkCommissioning EnableNetwork 135246 0 0 networkID=str: breadcrumb=0 timeoutMs=1000 chip-de.. 2022. 8. 18.