Skip to content

Commit b5cda1e

Browse files
committed
Added explanation of pairing method.
1 parent 4def8e2 commit b5cda1e

2 files changed

Lines changed: 61 additions & 0 deletions

File tree

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,37 @@ This is a plugin loader for joycontrol that can emulate Nintendo Switch controll
3535
$ sudo joycontrol-pluginloader.py plugins/tests/PairingController.py
3636
```
3737

38+
Run results:
39+
40+
```sh
41+
$ sudo joycontrol-pluginloader.py plugins/tests/PairingController.py
42+
[17:03:13] joycontrol.server create_hid_server::58 WARNING - [Errno 98] Address already in use
43+
[17:03:13] joycontrol.server create_hid_server::60 WARNING - Fallback: Restarting bluetooth due to incompatibilities with the bluez "input" plugin. Disable the plugin to avoid issues. See https://github.com/mart1nro/joycontrol/issues/8.
44+
[17:03:13] joycontrol.server create_hid_server::65 INFO - Restarting bluetooth service...
45+
[17:03:14] joycontrol.device set_name::69 INFO - setting device name to Pro Controller...
46+
[17:03:14] joycontrol.device set_class::61 INFO - setting device class to 0x002508...
47+
[17:03:14] joycontrol.server create_hid_server::84 INFO - Advertising the Bluetooth SDP record...
48+
[17:03:14] joycontrol.server create_hid_server::94 INFO - Waiting for Switch to connect... Please open the "Change Grip/Order" menu.
49+
[17:03:16] joycontrol.server create_hid_server::98 INFO - Accepted connection at psm 17 from ('01:23:45:67:89:AB', 17)
50+
[17:03:16] joycontrol.server create_hid_server::100 INFO - Accepted connection at psm 19 from ('01:23:45:67:89:AB', 19)
51+
[17:03:18] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.REQUEST_DEVICE_INFO
52+
[17:03:18] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.SET_SHIPMENT_STATE
53+
[17:03:18] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.SPI_FLASH_READ
54+
[17:03:18] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.SPI_FLASH_READ
55+
[17:03:18] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.SET_INPUT_REPORT_MODE
56+
57+
<snip>
58+
59+
[17:04:04] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.SET_NFC_IR_MCU_CONFIG
60+
[17:04:04] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.SET_PLAYER_LIGHTS
61+
[17:04:04] JoycontrolPlugin.loader load_plugin::9 INFO - Loading: plugins/tests/PairingController.py
62+
[17:04:05] plugins/tests/PairingController.py run::11 INFO - Pairing completed.
63+
```
64+
65+
> note:
66+
> '01:23:45:67:89:AB' is your Nintendo Switch Bluetooth Mac address.
67+
> You will use this Mac address later.
68+
3869
## Usage
3970

4071
- Basic Usage

README_ja.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,36 @@ Bluetooth 経由で Nintendo Switch コントローラのエミュレートが
3535
$ sudo joycontrol-pluginloader.py plugins/tests/PairingController.py
3636
```
3737

38+
実行結果:
39+
40+
```sh
41+
$ sudo joycontrol-pluginloader.py plugins/tests/PairingController.py
42+
[17:03:13] joycontrol.server create_hid_server::58 WARNING - [Errno 98] Address already in use
43+
[17:03:13] joycontrol.server create_hid_server::60 WARNING - Fallback: Restarting bluetooth due to incompatibilities with the bluez "input" plugin. Disable the plugin to avoid issues. See https://github.com/mart1nro/joycontrol/issues/8.
44+
[17:03:13] joycontrol.server create_hid_server::65 INFO - Restarting bluetooth service...
45+
[17:03:14] joycontrol.device set_name::69 INFO - setting device name to Pro Controller...
46+
[17:03:14] joycontrol.device set_class::61 INFO - setting device class to 0x002508...
47+
[17:03:14] joycontrol.server create_hid_server::84 INFO - Advertising the Bluetooth SDP record...
48+
[17:03:14] joycontrol.server create_hid_server::94 INFO - Waiting for Switch to connect... Please open the "Change Grip/Order" menu.
49+
[17:03:16] joycontrol.server create_hid_server::98 INFO - Accepted connection at psm 17 from ('01:23:45:67:89:AB', 17)
50+
[17:03:16] joycontrol.server create_hid_server::100 INFO - Accepted connection at psm 19 from ('01:23:45:67:89:AB', 19)
51+
[17:03:18] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.REQUEST_DEVICE_INFO
52+
[17:03:18] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.SET_SHIPMENT_STATE
53+
[17:03:18] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.SPI_FLASH_READ
54+
[17:03:18] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.SPI_FLASH_READ
55+
[17:03:18] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.SET_INPUT_REPORT_MODE
56+
57+
<snip>
58+
59+
[17:04:04] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.SET_NFC_IR_MCU_CONFIG
60+
[17:04:04] root _reply_to_sub_command::295 INFO - received output report - Sub command SubCommand.SET_PLAYER_LIGHTS
61+
[17:04:04] JoycontrolPlugin.loader load_plugin::9 INFO - Loading: plugins/tests/PairingController.py
62+
[17:04:05] plugins/tests/PairingController.py run::11 INFO - Pairing completed.
63+
```
64+
65+
> 注意:
66+
> 「01:23:45:67:89:AB」 は、Nintendo Switch Bluetooth Mac address です。この Mac address は、後で使用します。
67+
3868
## 使い方
3969

4070
- 基本的な使い方

0 commit comments

Comments
 (0)