2014-03-03 3 views
3

iBeacon 기술을 개발 중이며 주소 유형과 관련된 특정 사항에 대한 답변을 찾을 수 없습니다. 주소 유형이 무엇인지 설명하는 documenation (블루투스 사양)을 발견했지만 두 가지 유형 (공용 및 임의) 중 선택하는 방법을 찾지 못하는 것 같습니다. 여기 블루투스 LE : 주소 유형

내가 그것을 발견 한 예이다 (그것은 라즈베리 PI상의 아이 비콘에 의해 전송되는 스니핑 패킷) :

http://i.stack.imgur.com/QF5gf.pnghttp://i.stack.imgur.com/NHY6x.png (미안 해요 때문에 내 명성 아직 이미지를 게시 할 수 없습니다) 그것은 가 있음을 수 있습니다, 공공 주소가 유효해야하기 때문에

  • :

    의 질문을하고보다 구체적인 만들기 위해 노력하자 해당 장치에 할당하기 위해 무작위로 하나의을 생성하라는 명령 (아직 주소를 올바르게 입력하고 있습니까?)?

  • 위의 내용이 참인 경우 : 명령은 무엇입니까? 어떻게 (기본 공개 주소로) 롤백합니까?

  • (유효한) 공개 주소 사이에서 선택하거나 임의의 주소를 생성하도록 허용하는 "스위치"가 있습니까?

감사합니다.

답변

1

다음은 원하는대로 표시되는 명령입니다. 그것은 BlueZ의 개인 정보 보호 기능처럼 나에게 보이는 See here for details.

Set Static Address Command 
========================== 

Command Code:  0x002B 
Controller Index: <controller id> 
Command Parameters: Address (6 Octets) 
Return Parameters: 

This command allows for setting the static random address. It is 
only supported on controllers with LE support. The static random 
address is suppose to be valid for the lifetime of the 
controller or at least until the next power cycle. To ensure 
such behavior, setting of the address is limited to when the 
controller is powered off. 

The special BDADDR_ANY address (00:00:00:00:00:00) can be used 
to disable the static address. 

When a controller has a public address (which is required for 
all dual-mode controllers), this address is not used. Only when 
the controller information reports BDADDR_ANY (00:00:00:00:00:00), 
it is required to configure a static address first. 

If privacy mode is enabled and the controller is single mode 
LE only without a public address, the static random address is 
used as identity address. 

This command generates a Command Complete event on success or a 
Command Status event on failure. 

Possible errors: Rejected 
      Not Supported 
      Invalid Parameters 
      Invalid Index 

는 현재 활성화 된 개발 중에 있으며 아직 완료되지 않을 수 있습니다. See this commit from 2014/02/18. 최신 업데이트로이 작업을 시도하려면 BlueZ를 소스에서 컴파일해야합니다.

+0

이 점을 지적 해 주셔서 감사합니다. 정확하게 제가 찾고있는 것이라고 생각합니다! – ySiggen

관련 문제