기타정보 / / 2014. 2. 19. 11:13

k810 우분투에 블루투스 연결하기

반응형

터미널 창에서

"hcitool scan" 입력

mac address 주소가 검색이 됨.(XX:XX:XX:XX:XX:XX 이런형태 맥주소)

"sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX"  입력!

"DisplayPasskey (/org/bluez/537/hci0/..., 123456)"  이런식의 화면에보임. 끝에 숫자가 PIN 번호.
키보드에서 PIN번호를 입력!
그럼 Release 라고 문구가 뜬다!

"sudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes" 입력!

"sudo bluez-test-input connect XX:XX:XX:XX:XX:XX" 입력!

그러면 연결 완료!

원본 글 : http://devasive.blogspot.kr/2012/11/ubuntu-1204-persistent-bluetooth-pairing.html


Solution for a persistent connection

  • set keyboard discoverable
  • "hcitool scan" and copy mac address XX:XX:XX:XX:XX:XX
  • "sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX"
    which will hopefully return somthing like:
    "DisplayPasskey (/org/bluez/537/hci0/..., 123456)"
  • the number at the end of the string represents the PIN you need to enter for pairing. enter those numbers on your bluetooth device and confirm with return
  • on success you should get "Release" and "New device (/org/bluez/..."
  • now set device as trusted "sudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes"
  • you might have a connection now, but i still needed to:
    "sudo bluez-test-input connect XX:XX:XX:XX:XX:XX"
  • now reboot and hope for the best!

Creating device failed: org.bluez.Error.AlreadyExists

  • sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX repair
    (you should be able to enter anything instead of "repair", this is just to reset pairing)
  • now start over


반응형
  • 네이버 블로그 공유
  • 네이버 밴드 공유
  • 페이스북 공유
  • 카카오스토리 공유