비콘(beacon) 장비 접근인증
버전
0.1
작업모듈
java
환경
Android
본문
패키지 정보
JAALEE iB004-N 안드로이드 스튜디오 장비 접근 체크
- 블루투스(Bluetooth) 통신 이용됨
- 별도로 디바이스(테더링) 등록절차가 필요없음.
- 전파 야외 70미터 까지 출력 가능
- 배터리 : 수명 30개월
비콘코드 : 0x4c00
V/Utils: Manufacturer specific data does not start with 0x4C00 0215, 02011a1bff4c000c0e08d92dd839d1ed9575c70166d67910062b1afd28bb2100000000000000000000000000000000000000000000000000000000000000
Byte 3: Length: 0x1a
Byte 4: Type: 0xff (Custom Manufacturer Packet)
Byte 5-6: Manufacturer ID : 0x4c00 (Apple)
Byte 7: SubType: 0x02 (iBeacon)
Byte 8: SubType Length: 0x15
Byte 9-24: Proximity UUID
Byte 25-26: Major
Byte 27-28: Minor
Byte 29: Signal Power
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
holder.macTextView.setText(String.format("MAC: %s (%.2fm)", beacon.getMacAddress(), Utils.computeAccuracy(beacon)));
holder.majorTextView.setText("Major: " + beacon.getMajor());
holder.minorTextView.setText("Minor: " + beacon.getMinor());
holder.measuredPowerTextView.setText("MPower: " + beacon.getMeasuredPower());
holder.rssiTextView.setText("RSSI: " + beacon.getRssi());
holder.BattTextView.setText("Batt: " + beacon.getBattLevel());
JAALEE:59
getMajor:0000
getMacAddress:D4:08:13:83:85:93
getMinor:0000
getProximityUUID:ebefd083-70a2-47c8-9837-e7b5634df524
getRssi:-77
toString:Beacon{macAddress=D4:08:13:83:85:93, proximityUUID=ebefd083-70a2-47c8-9837-e7b5634df524, major=****, minor=****, measuredPower=-53, rssi=-77, battLevel=59}
describeContents:0
getMeasuredPower:-53
-------------------------------
Control Beacon
Beacon State
UUID :
Major
Minor
Measured Power :
Broadcast Interval : (100ms)
[java]
Log.i("JAALEE-------", "JAALEE:"+beacon.getBattLevel());
Log.i("JAALEE-------", "getMajor:"+beacon.getMajor());
Log.i("JAALEE-------", "getMacAddress:"+beacon.getMacAddress());
Log.i("JAALEE-------", "getMinor:"+beacon.getMinor());
Log.i("JAALEE-------", "getProximityUUID:"+beacon.getProximityUUID());
Log.i("JAALEE-------", "getRssi:"+beacon.getRssi());
Log.i("JAALEE-------", "toString:"+beacon.toString());
Log.i("JAALEE-------", "describeContents:"+beacon.describeContents());
Log.i("JAALEE-------", "getMeasuredPower:"+beacon.getMeasuredPower());
Log.i("JAALEE-------", "getName:"+beacon.getName());
Log.i("JAALEE-------", "getBattLevel:"+beacon.getBattLevel());
Log.i("JAALEE-------", "getConnectable:"+beacon.getConnectable());
Log.i("JAALEE-------", "hashCode:"+beacon.hashCode());
#beacon #비콘장비
- 블루투스(Bluetooth) 통신 이용됨
- 별도로 디바이스(테더링) 등록절차가 필요없음.
- 전파 야외 70미터 까지 출력 가능
- 배터리 : 수명 30개월
비콘코드 : 0x4c00
V/Utils: Manufacturer specific data does not start with 0x4C00 0215, 02011a1bff4c000c0e08d92dd839d1ed9575c70166d67910062b1afd28bb2100000000000000000000000000000000000000000000000000000000000000
Byte 3: Length: 0x1a
Byte 4: Type: 0xff (Custom Manufacturer Packet)
Byte 5-6: Manufacturer ID : 0x4c00 (Apple)
Byte 7: SubType: 0x02 (iBeacon)
Byte 8: SubType Length: 0x15
Byte 9-24: Proximity UUID
Byte 25-26: Major
Byte 27-28: Minor
Byte 29: Signal Power
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
holder.macTextView.setText(String.format("MAC: %s (%.2fm)", beacon.getMacAddress(), Utils.computeAccuracy(beacon)));
holder.majorTextView.setText("Major: " + beacon.getMajor());
holder.minorTextView.setText("Minor: " + beacon.getMinor());
holder.measuredPowerTextView.setText("MPower: " + beacon.getMeasuredPower());
holder.rssiTextView.setText("RSSI: " + beacon.getRssi());
holder.BattTextView.setText("Batt: " + beacon.getBattLevel());
JAALEE:59
getMajor:0000
getMacAddress:D4:08:13:83:85:93
getMinor:0000
getProximityUUID:ebefd083-70a2-47c8-9837-e7b5634df524
getRssi:-77
toString:Beacon{macAddress=D4:08:13:83:85:93, proximityUUID=ebefd083-70a2-47c8-9837-e7b5634df524, major=****, minor=****, measuredPower=-53, rssi=-77, battLevel=59}
describeContents:0
getMeasuredPower:-53
-------------------------------
Control Beacon
Beacon State
UUID :
Major
Minor
Measured Power :
Broadcast Interval : (100ms)
[java]
Log.i("JAALEE-------", "JAALEE:"+beacon.getBattLevel());
Log.i("JAALEE-------", "getMajor:"+beacon.getMajor());
Log.i("JAALEE-------", "getMacAddress:"+beacon.getMacAddress());
Log.i("JAALEE-------", "getMinor:"+beacon.getMinor());
Log.i("JAALEE-------", "getProximityUUID:"+beacon.getProximityUUID());
Log.i("JAALEE-------", "getRssi:"+beacon.getRssi());
Log.i("JAALEE-------", "toString:"+beacon.toString());
Log.i("JAALEE-------", "describeContents:"+beacon.describeContents());
Log.i("JAALEE-------", "getMeasuredPower:"+beacon.getMeasuredPower());
Log.i("JAALEE-------", "getName:"+beacon.getName());
Log.i("JAALEE-------", "getBattLevel:"+beacon.getBattLevel());
Log.i("JAALEE-------", "getConnectable:"+beacon.getConnectable());
Log.i("JAALEE-------", "hashCode:"+beacon.hashCode());
#beacon #비콘장비
[주소복사] https://www.goodsweb.kr/?u=D41SF0uS
SNS 알리기
핀터레스트
텔레그램로
블로그로
페이스북
트위터
카카오스토리
카톡 공유
관련 블로그
로딩중