SlideShare une entreprise Scribd logo
1  sur  18
아이폰 근거리 통신 리서치(Bluetooth, GameKit, Bonjour) A팀 클라이언트 김정현
리서치 시작 동기 및 목표 나도 모르는 사이에 시공(時空)을 공유 하고 있는 누군가와 교류를 하면 재미있을 것 같다. 근거리 내의 유저끼리 스쳐지나갈 정도의 짧은 시간동안 상호 캐릭터 정보를 교환할 수 있게 하고 싶다.
결 론 Only Bluetooth : GameKit API Bluetooth + Internet Connect(Include Wi-Fi Direct) : Bonjour
왜? GameKit⊃ Bluetooth GameKit⊅ Internet Connection  Bonjour ⊃ GameKit Bonjour ⊃ Internet Connection  GameKit은 결국 Bonjour를 쓰기 편하게 만들어 놓은 Wrapper 인 것이다.
그렇다면? GameKit은 뭔가요?Bonjour는 뭔가요?  먹는건가요? 아이스크림 이름인가….
Game Kit 이란? The Game Kit framework provides Objective C classes that help you to create great social games.
GameKit의 기능 Authentication (인증) Leaderboards (온라인 하이스코어 게시판) Achievements (게임 미션) Multiplayer (로비시스템) Peer-to-peer networking (데이터, 음성 정보 교환) http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameKitConcepts/GameKitConcepts.html#//apple_ref/doc/uid/TP40008304-CH100-SW1
GameKit을 이용한 Bluetooth통신 http://blog.naver.com/PostView.nhn?blogId=vfturtle&logNo=70104971899 (한국) http://ip7.biz/wordpress/?p=260 (일본) http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameCenterOverview/GameCenterOverview.html#//apple_ref/doc/uid/TP40008304-CH5-SW7 (애플)
The Peer Picker
Bluetooth 장치 탐색
BlueTooth상호 인증 과정 connectionTypesMask = GKPeerPickerConnectionTypeNearby|GKPeerPickerConnectionTypeOnline;
The Peer Picker 우린 더 복잡한 건 안해줘요코드 - (void)peerPickerController:(GKPeerPickerController *)picker didSelectConnectionType:(GKPeerPickerConnectionType)type { if (type == GKPeerPickerConnectionTypeOnline) { picker.delegate = nil; [picker dismiss]; [picker autorelease]; // Implement your own internet user interface here. } 	}  
BlueTooth상호 인증 과정
GameKit없이 블루투스 쓰고 싶어요! If Bluetooth is enabled, on a new-enough device (3G and above, or iPod equivalent, or iPad) and a new-enough OS (3.1 apparently), Bonjour will automatically work over Bluetooth using link-local addresses (168.254.*). Then you just use TCP/UDP normally. (Under the hood, I'm pretty sure GameKit uses Bonjour-over-IP-over-Bluetooth.) Supposedly the publishing/browsing is done at the Bluetooth layer, but if one publishes a Bonjour service and the other browses for it, an automatic IP-over-Bluetooth connection is established. Any Bonjour examples should automatically work. 한마디로 봉주르 쓰면 아이피잡힌거처럼 동작하면서 블루투스될꺼라는 말. http://stackoverflow.com/questions/3844189/bonjour-over-bluetooth-without-gamekit
GameKit없이 블루투스 쓰고 싶어요<2> http://stackoverflow.com/questions/1049393/gamekit-in-iphone-sdk-3-0 질문 요약 : Peer Picker안쓰고블루투스 쓸 수 없을까요?  답변 요약 : GameKit API 를 쓰든가  아예 Bonjour를 써라
GameKit없이 블루투스 쓰고 싶어요 <3> The second way to do it is to use standard Bonjour service selection mechanisms. GameKit is implemented on top of Bonjour (but over Bluetooth instead of WiFi) so once the two sides have gone through network reachability with each other and connected they are registered under Bonjour and act like any Bonjour service would. The GameKit way is probably a little easier, but if you already have code for WiFi it can be reused for Bluetooth as well. http://stackoverflow.com/questions/1049393/gamekit-in-iphone-sdk-3-0
대체 Bonjour가 머길래? zero-configuration networking architecture addressing (allocating IP addresses to hosts) naming (using names to refer to hosts instead of IP addresses) service discovery (finding services on the network automatically) 즉, 아무것도 설정 안하고 기기를 사용 가능하게 함 네트워크 프린터 IP 설정 따위 개나 줘버려 일종의 Network Plug and Play 기본적으로 TCP/IP 기반 이거 쓰면 Bluetooth, Through Internet 다 된데요.
졸려서 여기까지만 했어요! 그냥 책을 한권 다운로드 받았어요. 봉쥬르는9장보면 다 있어요!

Contenu connexe

En vedette

BLOQUES DE REALIDAD NACIONAL
BLOQUES DE REALIDAD NACIONALBLOQUES DE REALIDAD NACIONAL
BLOQUES DE REALIDAD NACIONALJuan Wong
 
Blubag brochure
Blubag brochureBlubag brochure
Blubag brochurefooserv
 
Presentatie Bart Vos & Margreet Kloppenburg Humanagement Relatiedag 11-10-2012
Presentatie Bart Vos & Margreet Kloppenburg Humanagement Relatiedag 11-10-2012Presentatie Bart Vos & Margreet Kloppenburg Humanagement Relatiedag 11-10-2012
Presentatie Bart Vos & Margreet Kloppenburg Humanagement Relatiedag 11-10-2012Stan Ottevanger
 
Listening exercise ted 2
Listening exercise ted 2Listening exercise ted 2
Listening exercise ted 2Nini Paz
 
Presente continúo2
Presente continúo2Presente continúo2
Presente continúo2Nini Paz
 
Interactive tv fri123 7
Interactive tv fri123 7Interactive tv fri123 7
Interactive tv fri123 7설란 문
 
Docentes I. E. D. El Tequendama
Docentes I. E. D. El TequendamaDocentes I. E. D. El Tequendama
Docentes I. E. D. El TequendamaIED_EL_TEQUENDAMA
 
Listening 3 activity
Listening 3 activityListening 3 activity
Listening 3 activityNini Paz
 
Defesa Dr Kleber Amancio
Defesa Dr Kleber AmancioDefesa Dr Kleber Amancio
Defesa Dr Kleber AmancioDaniela Bercot
 
fooserv home page slides
fooserv home page slidesfooserv home page slides
fooserv home page slidesfooserv
 

En vedette (20)

Soria antigua
Soria antiguaSoria antigua
Soria antigua
 
Flessas c.a 2011
Flessas c.a 2011Flessas c.a 2011
Flessas c.a 2011
 
BLOQUES DE REALIDAD NACIONAL
BLOQUES DE REALIDAD NACIONALBLOQUES DE REALIDAD NACIONAL
BLOQUES DE REALIDAD NACIONAL
 
P.E.I.
P.E.I.P.E.I.
P.E.I.
 
Blubag brochure
Blubag brochureBlubag brochure
Blubag brochure
 
Presentatie Bart Vos & Margreet Kloppenburg Humanagement Relatiedag 11-10-2012
Presentatie Bart Vos & Margreet Kloppenburg Humanagement Relatiedag 11-10-2012Presentatie Bart Vos & Margreet Kloppenburg Humanagement Relatiedag 11-10-2012
Presentatie Bart Vos & Margreet Kloppenburg Humanagement Relatiedag 11-10-2012
 
Listening exercise ted 2
Listening exercise ted 2Listening exercise ted 2
Listening exercise ted 2
 
Presente continúo2
Presente continúo2Presente continúo2
Presente continúo2
 
Evaluation PP Question 2
Evaluation PP Question 2Evaluation PP Question 2
Evaluation PP Question 2
 
Interactive tv fri123 7
Interactive tv fri123 7Interactive tv fri123 7
Interactive tv fri123 7
 
Was were
Was wereWas were
Was were
 
Diversity in Army Recruiting
Diversity in Army RecruitingDiversity in Army Recruiting
Diversity in Army Recruiting
 
El colegio (mesitas)
El colegio (mesitas)El colegio (mesitas)
El colegio (mesitas)
 
Docentes I. E. D. El Tequendama
Docentes I. E. D. El TequendamaDocentes I. E. D. El Tequendama
Docentes I. E. D. El Tequendama
 
Hansen
HansenHansen
Hansen
 
Mars
MarsMars
Mars
 
Listening 3 activity
Listening 3 activityListening 3 activity
Listening 3 activity
 
Defesa Dr Kleber Amancio
Defesa Dr Kleber AmancioDefesa Dr Kleber Amancio
Defesa Dr Kleber Amancio
 
fooserv home page slides
fooserv home page slidesfooserv home page slides
fooserv home page slides
 
Mars
MarsMars
Mars
 

Dernier

Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)Wonjun Hwang
 
캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차캐드앤그래픽스
 
A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)Tae Young Lee
 
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution DetectionMOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution DetectionKim Daeun
 
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...Kim Daeun
 
Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)Wonjun Hwang
 

Dernier (6)

Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)
 
캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차
 
A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)
 
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution DetectionMOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
 
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
 
Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)
 

아이폰 근거리 통신 리서치

  • 1. 아이폰 근거리 통신 리서치(Bluetooth, GameKit, Bonjour) A팀 클라이언트 김정현
  • 2. 리서치 시작 동기 및 목표 나도 모르는 사이에 시공(時空)을 공유 하고 있는 누군가와 교류를 하면 재미있을 것 같다. 근거리 내의 유저끼리 스쳐지나갈 정도의 짧은 시간동안 상호 캐릭터 정보를 교환할 수 있게 하고 싶다.
  • 3. 결 론 Only Bluetooth : GameKit API Bluetooth + Internet Connect(Include Wi-Fi Direct) : Bonjour
  • 4. 왜? GameKit⊃ Bluetooth GameKit⊅ Internet Connection Bonjour ⊃ GameKit Bonjour ⊃ Internet Connection GameKit은 결국 Bonjour를 쓰기 편하게 만들어 놓은 Wrapper 인 것이다.
  • 5. 그렇다면? GameKit은 뭔가요?Bonjour는 뭔가요? 먹는건가요? 아이스크림 이름인가….
  • 6. Game Kit 이란? The Game Kit framework provides Objective C classes that help you to create great social games.
  • 7. GameKit의 기능 Authentication (인증) Leaderboards (온라인 하이스코어 게시판) Achievements (게임 미션) Multiplayer (로비시스템) Peer-to-peer networking (데이터, 음성 정보 교환) http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameKitConcepts/GameKitConcepts.html#//apple_ref/doc/uid/TP40008304-CH100-SW1
  • 8. GameKit을 이용한 Bluetooth통신 http://blog.naver.com/PostView.nhn?blogId=vfturtle&logNo=70104971899 (한국) http://ip7.biz/wordpress/?p=260 (일본) http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameCenterOverview/GameCenterOverview.html#//apple_ref/doc/uid/TP40008304-CH5-SW7 (애플)
  • 11. BlueTooth상호 인증 과정 connectionTypesMask = GKPeerPickerConnectionTypeNearby|GKPeerPickerConnectionTypeOnline;
  • 12. The Peer Picker 우린 더 복잡한 건 안해줘요코드 - (void)peerPickerController:(GKPeerPickerController *)picker didSelectConnectionType:(GKPeerPickerConnectionType)type { if (type == GKPeerPickerConnectionTypeOnline) { picker.delegate = nil; [picker dismiss]; [picker autorelease]; // Implement your own internet user interface here. } }  
  • 14. GameKit없이 블루투스 쓰고 싶어요! If Bluetooth is enabled, on a new-enough device (3G and above, or iPod equivalent, or iPad) and a new-enough OS (3.1 apparently), Bonjour will automatically work over Bluetooth using link-local addresses (168.254.*). Then you just use TCP/UDP normally. (Under the hood, I'm pretty sure GameKit uses Bonjour-over-IP-over-Bluetooth.) Supposedly the publishing/browsing is done at the Bluetooth layer, but if one publishes a Bonjour service and the other browses for it, an automatic IP-over-Bluetooth connection is established. Any Bonjour examples should automatically work. 한마디로 봉주르 쓰면 아이피잡힌거처럼 동작하면서 블루투스될꺼라는 말. http://stackoverflow.com/questions/3844189/bonjour-over-bluetooth-without-gamekit
  • 15. GameKit없이 블루투스 쓰고 싶어요<2> http://stackoverflow.com/questions/1049393/gamekit-in-iphone-sdk-3-0 질문 요약 : Peer Picker안쓰고블루투스 쓸 수 없을까요? 답변 요약 : GameKit API 를 쓰든가 아예 Bonjour를 써라
  • 16. GameKit없이 블루투스 쓰고 싶어요 <3> The second way to do it is to use standard Bonjour service selection mechanisms. GameKit is implemented on top of Bonjour (but over Bluetooth instead of WiFi) so once the two sides have gone through network reachability with each other and connected they are registered under Bonjour and act like any Bonjour service would. The GameKit way is probably a little easier, but if you already have code for WiFi it can be reused for Bluetooth as well. http://stackoverflow.com/questions/1049393/gamekit-in-iphone-sdk-3-0
  • 17. 대체 Bonjour가 머길래? zero-configuration networking architecture addressing (allocating IP addresses to hosts) naming (using names to refer to hosts instead of IP addresses) service discovery (finding services on the network automatically) 즉, 아무것도 설정 안하고 기기를 사용 가능하게 함 네트워크 프린터 IP 설정 따위 개나 줘버려 일종의 Network Plug and Play 기본적으로 TCP/IP 기반 이거 쓰면 Bluetooth, Through Internet 다 된데요.
  • 18. 졸려서 여기까지만 했어요! 그냥 책을 한권 다운로드 받았어요. 봉쥬르는9장보면 다 있어요!