You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
4.0 KiB

  1. # Bluetooth
  2. <!---
  3. original document: 0.10.33:docs/feature_bluetooth.md
  4. git diff 0.10.33 HEAD -- docs/feature_bluetooth.md | cat
  5. -->
  6. ## Bluetooth の既知のサポートハードウェア
  7. 現在のところ Bluetooth のサポートは AVR ベースのチップに限られます。Bluetooth 2.1 については、QMK は RN-42 モジュールをサポートします。より最近の BLE プロトコルについては、現在のところ Adafruit Bluefruit SPI Friend のみが直接サポートされています。iOS デバイスに接続するには、BLE が必要です。iOS はマウス入力をサポートしないことに注意してください。
  8. | ボード | Bluetooth プロトコル | 接続タイプ | rules.mk | Bluetooth チップ |
  9. | ---------------------------------------------------------------- | -------------------- | ---------- | ------------------------- | ---------------- |
  10. | Roving Networks RN-42 (Sparkfun Bluesmirf) | Bluetooth Classic | UART | `BLUETOOTH = RN42` | RN-42 |
  11. | [Bluefruit LE SPI Friend](https://www.adafruit.com/product/2633) | Bluetooth Low Energy | SPI | `BLUETOOTH = AdafruitBLE` | nRF51822 |
  12. まだサポートされていませんが、可能性のあるもの:
  13. * [Bluefruit LE UART Friend](https://www.adafruit.com/product/2479)。[tmk 実装がおそらく見つかります](https://github.com/tmk/tmk_keyboard/issues/514)
  14. * RN-42 ファームウェアが書き込まれた HC-05 ボード。どちらも明らかに CSR BC417 チップを使っています。RN-42 ファームウェアを使って書き込むと、HID 機能が提供されます。
  15. * Sparkfun Bluetooth Mate
  16. * HM-13 ベースのボード
  17. ### Adafruit BLE SPI Friend
  18. 現在のところ QMK によってサポートされている唯一の bluetooth チップセットは、Adafruit Bluefruit SPI Friend です。Adafruit のカスタムファームウェアを実行する Nordic nRF5182 ベースのチップです。データは Hardware SPI を介した Adafruit の SDEP を使って転送されます。[Feather 32u4 Bluefruit LE](https://www.adafruit.com/product/2829) は Adafruit ファームウェアを搭載した Nordic BLE チップに SPI 経由で接続された AVR mcu であるため、サポートされます。SPI friend を使ってカスタムボードを構築する場合、32u4 feather が使用するピン選択を使うのが最も簡単ですが、以下の定義で config.h オプションでピンを変更することができます:
  19. * #define AdafruitBleResetPin D4
  20. * #define AdafruitBleCSPin B4
  21. * #define AdafruitBleIRQPin E6
  22. Bluefruit UART friend は SPI friend に変換することができますが、これにはMDBT40 チップへの直接の再書き込みとはんだ付けが[必要です](https://github.com/qmk/qmk_firmware/issues/2274)。
  23. <!-- FIXME: Document bluetooth support more completely. -->
  24. ## Bluetooth の Rules.mk オプション
  25. 現在サポートされている Bluetooth チップセットは [N-キーロールオーバー (NKRO)](ja/reference_glossary.md#n-key-rollover-nkro) をサポートしていません。そのため、`rules.mk` に `NKRO_ENABLE = no` を含めなければなりません。
  26. Bluetooth を有効にするには、以下のうちの1つだけを使ってください:
  27. * BLUETOOTH_ENABLE = yes (レガシーオプション)
  28. * BLUETOOTH = RN42
  29. * BLUETOOTH = AdafruitBLE
  30. ## Bluetooth キーコード
  31. これは複数のキーボードの出力が選択できる場合に使われます。現在のところ、これは USB と Bluetooth の両方をサポートするキーボードで、それらの間の切り替えのみが可能です。
  32. | 名前 | 説明 |
  33. | ---------- | ------------------------------------- |
  34. | `OUT_AUTO` | USB と Bluetooth を自動的に切り替える |
  35. | `OUT_USB` | USB のみ |
  36. | `OUT_BT` | Bluetooth のみ |