마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

Ble Manufacturer 코드 어떻게 뽑을수 있을까요 ?

0 추천
onLeScan 으로 들어온 비컨의 제조사를 알고싶습니다.

비컨에서 Advertising 해주는 정보로 제조사 코드를 알 수 있는 방법이 궁금합니다.

도움 부탁드립니다 ( _ _ )
음무 (17,820 포인트) 님이 2015년 4월 1일 질문

1개의 답변

+1 추천
 
채택된 답변

계속 BLE 관련 질문을 하시는것 같군요

오픈 라이브러리를 사용하심은 어떠신지요 

https://github.com/alt236/Bluetooth-LE-Library---Android

 

본문중에서 발췌하였습니다.

Fun with iBeacons

You can check if a device is an iBeacon by using IBeaconUtils.isThisAnIBeacon(BluetootLeDevice device). Once you have confirmed that it is, you can create a new IBeaconDevice via the IBeaconDevice constructor.

An IBeaconDevice extends BluetoothLeDevice, so you still have access to the same methods as before. In addition you can do the following:

  • getAccuracy(): Gets the estimated Accuracy of the reading in meters based on a simple running average calculation
  • getCalibratedTxPower(): Gets the calibrated TX power of the iBeacon device as reported
  • getCompanyIdentifier(): Gets the iBeacon company identifier (this should always be 0x004C for Apple)
  • getDistanceDescriptor(): Gets the estimated Distance descriptor (an enum)
  • getIBeaconData(): Gets the raw IBeaconManufacturerData object.
  • getUUID(): Gets the device's UUID
  • getMajor(): Gets the device's Major value
  • getMinor(): Gets the device's Minor value
Gradler (109,780 포인트) 님이 2015년 4월 1일 답변
음무님이 2015년 4월 1일 채택됨
정말 감사합니다. 최근 올렸던 질문에 대한 답변이 한방에 해결되었습니다. 감사합니다
...