samples/bluetooth/bluetooth.html · samples/bluetooth/bluetooth.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Bluetooth

Bluetooth sample

Hardware와 가상 환경에서 Host·Controller를 조합해 Bluetooth sample을 실행합니다.

Official pathsamples/bluetooth/bluetooth.html
Source filesamples/bluetooth/bluetooth.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

QEMU/native_sim, HCI sample naming, HCI IPC와 pairing key 재생성 조건을 설명합니다.

Simulation

QEMU · native_sim

Controller

HCI · hci_

nRF5340

Application + Network core

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 9931419B8E5BC93F358BC4BF1F8EB9A845691E81929ECAF6D9586CBC7780DDE6
.. _bluetooth-samples:

Bluetooth samples
#################

To build any of the Bluetooth samples, follow the same steps as building
any other Zephyr application. Refer to :ref:`bluetooth-dev` for more information.

Many Bluetooth samples can be run on QEMU or :ref:`native_sim <native_sim>` with support for
external Bluetooth Controllers. Refer to the :ref:`bluetooth-hw-setup` section
for further details.

Several of the bluetooth samples will build a Zephyr-based Controller that can
then be used with any external Host (including Zephyr running natively or with
QEMU or ``native_sim``), those are named accordingly with an "HCI" prefix in the
documentation and are prefixed with :literal:`hci_` in their folder names.

.. note::
   If you want to run any bluetooth sample on the nRF5340 device (build using
   ``-DBOARD=nrf5340dk/nrf5340/cpuapp`` or
   ``-DBOARD=nrf5340dk/nrf5340/cpuapp/ns``) you must also build
   and program the corresponding sample for the nRF5340 network core
   :ref:`bluetooth-hci-ipc-sample` which implements the Bluetooth
   Low Energy controller.

.. note::
   The mutually-shared encryption key created during host-device paring may get
   old after many test iterations.  If this happens, subsequent host-device
   connections will fail. You can force a re-paring and new key to be created
   by removing the device from the associated devices list on the host.

.. toctree::
   :maxdepth: 1
   :glob:

   **/*

Part 3

한국어 전문 번역

Bluetooth sample build

Bluetooth sample도 다른 Zephyr application과 같은 절차로 build합니다. 자세한 내용은 Bluetooth 개발 문서를 참조하십시오.

가상 환경과 외부 Controller

많은 Bluetooth sample은 외부 Bluetooth Controller 지원을 사용해 QEMU 또는 native_sim에서 실행할 수 있습니다. 자세한 설정은 Bluetooth hardware setup section을 참조하십시오.

일부 Bluetooth sample은 Zephyr 기반 Controller를 build하여 Zephyr native 실행, QEMU 또는 native_sim을 포함한 외부 Host와 함께 사용할 수 있습니다. 이런 sample은 문서 이름에 HCI prefix가 붙고 folder 이름은 hci_로 시작합니다.

nRF5340 주의사항

nRF5340 device에서 Bluetooth sample을 실행하려면 -DBOARD=nrf5340dk/nrf5340/cpuapp 또는 -DBOARD=nrf5340dk/nrf5340/cpuapp/ns로 application core를 build하는 것만으로는 충분하지 않습니다. Bluetooth Low Energy Controller를 구현하는 Bluetooth HCI IPC sample도 nRF5340 network core용으로 build하고 programming해야 합니다.

Pairing key 재생성

Host와 device가 pairing할 때 함께 만드는 encryption key는 test를 많이 반복한 뒤 오래된 상태가 될 수 있습니다. 그러면 이후 host-device 연결이 실패할 수 있습니다. 이때 host의 연결된 device 목록에서 해당 device를 제거하면 강제로 다시 pairing하여 새 key를 만들 수 있습니다.

원문의 toctree는 이 경로 아래의 모든 Bluetooth sample 문서를 한 단계 깊이로 포함합니다.

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.