: Visual Studio Code 의 nRF Connect SDK 2.4.0 을 SDK 2.4.2 로 변경및 libght_bulb 프로젝트 생성하기
▶ 다음처럼 nRF Connect SDK v2.4.0 와 v2.4.2 가 설치가 되어 있는 상태에서 테스트 진행 했습니다.
▶ Visual Studio Code 실행후 nRF Connect 메뉴 선택하면 다음처럼 toolchain 과
SDK 버전이 2.4.0 으로 보여지는데 SDK v2.4.2 로 수정해 보겠습니다.
→ Manage Toolchains 변경
→ Manage SDKs 변경
→ 다음처럼 나오면 OK
▶ 신규 어플리케이션 만들기
→ NRF CONNECT > Create a new application > Copy a sample 선택
→ 검색창에 light_bulb 입력
→ 프로젝트 루트 디렉토리 설정
→ 자동으로 light_bulb 라는 프로젝트 이름이 생성되네요.
▶ Create Build Configuration
→ Board 선택하기 (nrf7002dk_nrf5340_cpuapp 선택)
→ Build Configuration 클릭
→ 자동으로 빌드를 진행합니다. (처음할때는 좀 오래 걸립니다. 10분가량)
▶ Flash 메뉴" Erase and Flash to board" 아이콘 클릭
<기타>
▶ 부팅 로그
uart:~$ *** Booting Zephyr OS build v3.3.99-ncs1-1 ***
I: Init CHIP stack
I: 166 [DL]BLE address: E7:03:16:06:DE:8D
D: 199 [DL]WiFiManager has been initialized
I: 203 [SVR]Subscription persistence not supported
I: 208 [SVR]Server initializing...
I: 211 [TS]Last Known Good Time: 2023-10-19T20:46:33
I: 217 [DMG]AccessControl: initializing
I: 220 [DMG]Examples::AccessControlDelegate::Init
I: 225 [DMG]AccessControl: setting
I: 228 [DMG]DefaultAclStorage: initializing
I: 231 [DMG]DefaultAclStorage: 0 entries loaded
D: 236 [IN]UDP::Init bind&listen port=5540
E: 240 [IN]SO_REUSEPORT failed: 109
D: 243 [IN]UDP::Init bound to port=5540
D: 246 [IN]BLEBase::Init - setting/overriding transport
D: 251 [IN]TransportMgr initialized
I: 257 [ZCL]Using ZAP configuration...
I: 262 [DMG]AccessControlCluster: initializing
D: 266 [DL]Boot reason: 1
I: 269 [ZCL]Initiating Admin Commissioning cluster.
I: 274 [ZCL]Endpoint 1 On/off already set to new value
I: 279 [ZCL]Cluster LevelControl: attribute CurrentLevel set to 254
D: 286 [IN]SecureSession[0x200041d0]: Allocated Type:1 LSID:36093
D: 292 [DL]CHIPoBLE advertising set to on
I: 296 [DIS]Updating services using commissioning mode 1
I: 301 [DIS]CHIP minimal mDNS started advertising.
D: 306 [DL]Using wifi MAC for hostname
I: 309 [DIS]Advertise commission parameter vendorID=65521 productID=32773 discriminator=3840/15 cm=1
D: 318 [DIS]Responding with _matterc._udp.local
D: 323 [DIS]Responding with 78FE7423677AD547._matterc._udp.local
D: 328 [DIS]Responding with F4CE360024C2.local
D: 333 [DIS]Responding with F4CE360024C2.local
D: 337 [DIS]Responding with _V65521._sub._matterc._udp.local
D: 342 [DIS]Responding with _S15._sub._matterc._udp.local
D: 347 [DIS]Responding with _L3840._sub._matterc._udp.local
D: 353 [DIS]Responding with _CM._sub._matterc._udp.local
D: 358 [DIS]Responding with 78FE7423677AD547._matterc._udp.local
I: 364 [DIS]CHIP minimal mDNS configured as 'Commissionable node device'; instance name: 78FE7423677AD547.
I: 373 [DIS]mDNS service published: _matterc._udp
I: 377 [DIS]Updating services using commissioning mode 1
I: 382 [DIS]CHIP minimal mDNS started advertising.
D: 387 [DL]Using wifi MAC for hostname
I: 391 [DIS]Advertise commission parameter vendorID=65521 productID=32773 discriminator=3840/15 cm=1
D: 400 [DIS]Responding with _matterc._udp.local
D: 404 [DIS]Responding with 78FE7423677AD547._matterc._udp.local
D: 410 [DIS]Responding with F4CE360024C2.local
D: 414 [DIS]Responding with F4CE360024C2.local
D: 419 [DIS]Responding with _V65521._sub._matterc._udp.local
D: 424 [DIS]Responding with _S15._sub._matterc._udp.local
D: 429 [DIS]Responding with _L3840._sub._matterc._udp.local
D: 434 [DIS]Responding with _CM._sub._matterc._udp.local
D: 440 [DIS]Responding with 78FE7423677AD547._matterc._udp.local
I: 445 [DIS]CHIP minimal mDNS configured as 'Commissionable node device'; instance name: 78FE7423677AD547.
I: 455 [DIS]mDNS service published: _matterc._udp
I: 459 [IN]CASE Server enabling CASE session setups
D: 464 [IN]SecureSession[0x20004288]: Allocated Type:2 LSID:36094
I: 470 [SVR]Joining Multicast groups
I: 473 [SVR]Server Listening...
I: 476 [DL]Device Configuration:
I: 479 [DL] Serial Number: 11223344556677889900
I: 484 [DL] Vendor Id: 65521 (0xFFF1)
I: 487 [DL] Product Id: 32773 (0x8005)
I: 491 [DL] Product Name: not-specified
I: 494 [DL] Hardware Version: 0
I: 498 [DL] Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
I: 503 [DL] Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
I: 510 [DL] Manufacturing Date: (not set)
I: 514 [DL] Device Type: 65535 (0xFFFF)
I: 518 [SVR]SetupQRCode: [MT:6FCJ142C00KA0648G00]
I: 522 [SVR]Copy/paste the below URL in a browser to see the QR Code:
I: 528 [SVR]https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A6FCJ142C00KA0648G00
I: 537 [SVR]Manual pairing code: [34970112332]
I: 545 [DL]CHIP task running
I: 559 [DL]CHIPoBLE advertising started
I: 563 [ZCL]Cluster OnOff: attribute OnOff set to 0
I: 567 [ZCL]Cluster LevelControl: attribute CurrentLevel set to 254
I: 574 [DL]NFC Tag emulation started
I: 30562 [DL]CHIPoBLE advertising mode changed to slow
I: 30570 [DL]CHIPoBLE advertising started
그럼 수고하세요.
반응형
'미분류 항목' 카테고리의 다른 글
[Windows 10] 작업표시줄 "뉴스 및 관심사" 아이콘 안 나오게 하기 (1) | 2024.09.10 |
---|---|
[NCS] [matter] SmartThings 앱에서 light-bulb 제어하기 (0) | 2023.10.20 |
[Bluetooth] [wireshark] btsnoop_hci.log 해석[2] (0) | 2023.10.13 |
[NCS] nRF52 장치 VS Code 에서 flash 에러 해결하기 (0) | 2023.06.12 |
[NCS-V2.4.0] peripheral_hids_keyboard 분석-1 (0) | 2023.06.07 |