ãã¹ã¯ãããPCã®ãã¼ãã¼ãã»ãã¦ã¹ãBluetoothã®ã«ãããè¾ããã¨ãå¤ãããã®ã§ã©ãºãã¤ã§BTâUSBã³ã³ãã¼ã¿ãä½ã£ã
ããã¾ã§ã®ãããã
å¼ã£è¶ããæ©ã«PCãã¹ã¯ããæ´è½ã«ãããï¼
ãæ´è½ is ã±ã¼ãã«ã¬ã¹ï¼ããæ£ç¾©ï¼ï¼ï¼
ãããªè¨³ã§ãã¼ãã¼ãã¨ãã¦ã¹ãBluetoothæ¥ç¶ã«ãã俺ãããã®ã
ãã®ç´å¾ããæ°ã
ã®ä¸å¹¸ã俺ã«éãããã£ã¦ãããã ï¼
ãããï¼BTã¹ãã¼ã«ã¼ã®èª¿åãæªããªããä¸åBluetoothãªãã«ãã¦ã¿ããã
ãã¦ã¹ã»ãã¼ãã¼ãã使ç¨ä¸å¯ã«ãUSBãã©ãã¯ãã¤ã³ããã¼ãã¼ããã¸ã£ã³ã¯ç®±ããæ¢ãã¦ãã¦ãªãã¨ã復æ§ã
ããUEFI触ããããªã
æä½ä¸å¯ããã£ãä»èã£ãUSBãã©ãã¯ãã¤ã³ããã¼ãã¼ããã¾ãå¼ã£å¼µãåºãã¦ãã¦ãªãã¨ãè¨å®å¤æ´ã
ãã¼ãï¼ããææ°ã®Linuxã§éãããããã¼ï¼
ã¤ã³ã¹ãã¼ã©ãæä½ä¸å¯ãã¾ãUSBãã©ãã¯ãã¤ã³ããã¼ãã¼ããå¼ã£å¼µãåºãã¦ãã¦äºãªãã
çµè«
ãã¹ã¯ãããPCã«Bluetoothãã¼ãã¼ãã»ãã¦ã¹ã¯ä¸é©
ãã¼ãPCãªãå
èµã®ãã¼ãã¼ãï¼ãã¤ã³ãã£ã³ã°ããã¤ã¹ãããã®ã§ã©ãã¨ã§ããªããã§ããã代æ¿æ段ã®ãªããã¹ã¯ãããPCã§ã¯å³GAME OVERãªãã¿ã¼ã³ããKANOSO*1ããªã¿ã«åå¨ãã¾ãã
é·ç·ã ãã©ãããããããå³ä¸ããã
ããããªããBluetoothãã¼ãã¼ãã¯ãã³ã°ã«å¼ã«æ¯ã¹ã¦ç¨®é¡ãè±å¯
HHKBã¨ããã¸ã§ã¹ã¿ããã¨ããé«ç´ãã¼ãã¼ãã®æåã©ããã¯ç¡ç·ã«Bluetoothãæ¡ç¨ãã¦ããã¨ãå¤ãæ°ããã¾ãã
ãªããªãæ¨ã¦ãããã§ãã
USBãã©ãã¯ãã¤ã³ããã¼ãã¼ãã¯ã¨ãã¼ã¸ã§ã³ã·ã¼ç¨éã«ãã¸åªç§ãªã®ã§ã¿ããªæã£ã¦ãæ¹ããã
ãã¼ãã¼ãã¨ãã¤ã³ãã£ã³ã°ããã¤ã¹ãUSBã±ã¼ãã«1æ¬ã§ã¤ãªãã¦ä¾¿å©ãªã®ã¨ãèãã軽ãããä½ãã¨åãåããããã®ã§ããå¿ æºã
è¾ãããã®ã§Raspberry PI Zero Wã§Bluetooth â USBã³ã³ãã¼ã¿ãä½ã£ã
è¦ã¯WindowsãBluetoothã管çãã¦ãããæ²ããäºä»¶ãèµ·ããã®ã§ããããã©ãºãã¤ã«ãããã¦PCããã¯ãã ã®USBãã¼ãã¼ãã»ãã¦ã¹ã«è¦ããããã«ããã°ããã£ã¦çºæ³ã§ãã
ã©ãºãã¤Zero Wã¯Linuxã®USB Gadgetæ©è½ã§USBããã¤ã¹ã¨ãã¦æ¯èããã¨ãã§ãã¾ããã¾ããZero Wã¯Bluetoothãå èµãã¦ã¾ããã¨è¨ãããã§ãã®ç¨éã«ã¸ã£ã¹ããã¼ããªãã§ããã
使ãæ¹
ãªãã¸ããªã/opt/event2usbhidã«å±éããã
å梱ãã¦ãå種ã¹ã¯ãªããã¯/opt/event2usbhid決ãæã¡ã«ãã¦ãã®ã§ããã«å±éãã¦ãã ããã
systemdã®serviceãã¡ã¤ã«ãã¤ã³ã¹ãã¼ã«ããã
cp -p /opt/event2usbhid/misc/*.service /etc/systemd/system/ systemctl enable mkusbhid systemctl enable event2usbhid_keyboard systemctl enable event2usbhid_mouse
Bluetoothãã¼ãã¼ãã»ãã¦ã¹ããã¢ãªã³ã°ããã
trustã§èªåæ¥ç¶ã§ããããã«ããã®ããã¤ã³ãã§ãã
bluetoothctl [bluetooth]# devices Device 7C:1E:52:B0:87:49 Microsoft Wedge Mobile Keyboard ã»ã»ã» [bluetooth]# pair 7C:1E:52:B0:87:49 [bluetooth]# connect 7C:1E:52:B0:87:49 [bluetooth]# trust 7C:1E:52:B0:87:49
udevã«ã¼ã«ã®è¨å®
/opt/event2usbhid/misc/99-bluetooth.rulesã®ATTRS{name}ã«å ã»ã©ãã¢ãªã³ã°ãããã¼ãã¼ãã»ãã¦ã¹ã®ååãç»é²ããä¸ã§ã¤ã³ã¹ãã¼ã«ãã¾ãã
cat /opt/event2usbhid/misc/99-bluetooth.rules KERNEL=="event*", ATTRS{name}=="Microsoft Wedge Mobile Keyboard", TAG+="systemd", SYMLINK+="input/keyboard", ENV{SYSTEMD_ALIAS}="/sys/class/input/keyboard" KERNEL=="event*", ATTRS{name}=="Microsoft Sculpt Comfort Mouse", TAG+="systemd", SYMLINK+="input/mouse", ENV{SYSTEMD_ALIAS}="/sys/class/input/mouse" cp -p /opt/event2usbhid/misc/99-bluetooth.rules /etc/udev/rules.d/
ãªãã¼ããã
ããã§ããæ³£ããªãã¦ããããªãã¾ãããã£ã¨ã