posted by 심재형 2017. 11. 6. 04:38

라즈베리파이3는 동글 없이 WIFI와 Bluetooth 사용이 가능하다.

블루투스 키보드를 연결하는 과정에서 GDBus.Error.org.bluez.Error 연결문제가 생겨 

해결방법을 찾았다.

Microsoft universal keyboard를 연결하는 과정이다. 



1. 블루투스 키보드 전원을 킨다.


2.연결설정

$sudo blutoothctl

[NEW] Controller C6:CC:73:EF:50:1A raspberrypi3 [default]
[NEW] Device C6:CC:73:EF:50:1A universal keyboard
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# pair C6:CC:73:EF:50:1A
Attempting to pair with C6:CC:73:EF:50:1A
[CHG] Device C6:CC:73:EF:50:1A Connected: yes
[agent] PIN code: 278290


3.핀코드 입력 **여기서 헷갈릴 수 있다.

블루투스 키보드에 화면에 나온 PIN코드를 그대로 누른다.(278290)

**누른 숫자는 화면에 안뜬다.

그런 다음 Enter를 누르면 정말 Paring 할껀지 물어본다. 확인누르면 성공적으로 등록이 되면 연결을 시도한다.

[CHG] Device C6:CC:73:EF:50:1A Paired: yes
Pairing successful
[CHG] Device C6:CC:73:EF:50:1A Connected: no
[bluetooth]# connect C6:CC:73:EF:50:1A
Attempting to connect to C6:CC:73:EF:50:1A
[CHG] Device AA:AA:AA:FF:FF:FF Connected: yes
Connection successful
[bluetooth]# quit
Agent unregistered
[DEL] Controller C6:CC:73:EF:50:1A raspberrypi [default]


bluetoothctl를 종료하면 키보드 연결이 종료되지만, GUI에서 다시 쉽게 등록이 가능하다.

(와이파이 옆에 블루투스 이미지 누르면 연결할 Device가 뜬다.)


+페어링이 안될 경우 'pairable on'명령을 실행하거나 'trust on'명령을 실행한다.

pairable on : 블루투스장치를 페어링 가능하도록 설정

trust [MAC 주소] : 신뢰할 수 있는 장치로 설정