SlideShare ist ein Scribd-Unternehmen logo
1 von 15
只要三分鐘
讓你輕鬆開發 iBeacon
Allen Tsai
2015.04.01 (三)
什
麼
只
要
三
分
鐘
‧‧‧
是
不
是
騙
人
的
啊
‧‧‧
聽
說
今
天
是
愚
人
節
‧‧‧
iBeacon 正在改變我們的生活?
共同參與
創新科技革命
通過此 Workshop 你將 …
安裝‧使用 Android Studio
巡覽 Estimote 範例專案
認識 Estimote SDK
體驗實際應用
iBeacon 本身屬性值
Estimote 提供資訊
Estimote iBeacon 裝置資訊
Estimote App 應用
靠近時商品時,通知…
附近商品資訊,購買…
查詢商品距離,偵測…
初探 Estimote API
Type Function Name Function Description
String getMacAddress() Return MAC address of the beacon.
int getMajor() Return Major version of the beacon.
int getMeasuredPower() Return Measured power of the beacon (in dBm).
int getMinor() Return Minor version of the beacon.
String getName()
Return Device friendly name (this name is
advertised by the beacon).
String getProximityUUID()
Return Proximity UUID of the beacon in
format XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
(all lowercases).
int getRssi()
Return Received Signal Strength Indication
at the moment of scanning.
com.estimote.sdk
Class Beacon
com.estimote.sdk.connection
Class BeaconConnection.BeaconCharacteristics
Type Function Name Function Description
Integer getAdvertisingIntervalMillis()
Returns Advertising interval in
milliseconds.
Integer getBatteryPercent()
Returns Battery level in
percent.
Byte getBroadcastingPower() Returns Broadcasting power.
String getHardwareVersion() Returns Revision of hardware.
String getSoftwareVersion()
Returns Version of operating
system.
com.estimote.sdk
Class Utils
Type Function Name
static double
computeAccuracy(Beacon beacon)
Returns distance in meters based on beacon's RSSI and measured power.
static boolean
isBeaconInRegion(Beacon beacon, Region region)
Returns true if beacon matches the region.
static void
restartBluetooth(Context context, Utils.RestartCompletedListener listener)
Restarts Bluetooth stack on the device.
com.estimote.sdk.connection
Class BeaconConnection
Function Name
void:writeAdvertisingInterval(int intervalMillis, BeaconConnection.WriteCallback writeCallback)
Changes advertising interval of the beacon.
void:writeBroadcastingPower(int powerDBM, BeaconConnection.WriteCallback writeCallback)
Changes broadcasting power of the beacon.
void:writeMajor(int major, BeaconConnection.WriteCallback writeCallback)
Changes major value of the beacon.
void:writeMinor(int minor, BeaconConnection.WriteCallback writeCallback)
Changes minor value of the beacon.
void:writeProximityUuid(String proximityUuid, BeaconConnection.WriteCallback writeCallback)
Changes proximity UUID of the beacon.
iBeacon Demo Project on Android Studio
Estimote Demo App Hands-on
private static final String ESTIMOTE_PROXIMITY_UUID = "B9407F30-F5F8-466E-AFF9-25556B57FE6D";
private static final Region ALL_ESTIMOTE_BEACONS =
new Region("regionId", ESTIMOTE_PROXIMITY_UUID, null, null);
private BeaconManager beaconManager = new BeaconManager(context);
// Should be invoked in #onCreate.
beaconManager.setRangingListener(new BeaconManager.RangingListener() {
@Override public void onBeaconsDiscovered(Region region, List<Beacon> beacons) {
Log.d(TAG, "Ranged beacons: " + beacons);
}
});
// Should be invoked in #onStart.
beaconManager.connect(new BeaconManager.ServiceReadyCallback() {
@Override public void onServiceReady() {
try {
beaconManager.startRanging(ALL_ESTIMOTE_BEACONS);
}
catch (RemoteException e) {
Log.e(TAG, "Cannot start ranging", e);
}
}
});
// Should be invoked in #onStop.
try {
beaconManager.stopRanging(ALL_ESTIMOTE_BEACONS);
}
catch (RemoteException e) {
Log.e(TAG, "Cannot stop but it does not matter now", e);
}
// When no longer needed. Should be invoked in #onDestroy.
beaconManager.disconnect();
快速上手操作iBeacon
觀察‧體會‧生活
創新就在你我身邊
參考資訊
 BLE(Bluetooth Low Energy) 簡介
 Link
 Estimote App for iOS
 Link
 Estimote App for Android
 Link
 Estimote Android SDK Document
 Link

Weitere ähnliche Inhalte

Was ist angesagt?

Estimote q3-demo-betaworks ja00044-dosada
Estimote q3-demo-betaworks ja00044-dosadaEstimote q3-demo-betaworks ja00044-dosada
Estimote q3-demo-betaworks ja00044-dosadaDaisuke Osada
 
Bluemonitor Android Consulting Services
Bluemonitor Android Consulting ServicesBluemonitor Android Consulting Services
Bluemonitor Android Consulting Servicesbluemonitor
 
Introduction to MonoTouch
Introduction to MonoTouchIntroduction to MonoTouch
Introduction to MonoTouchmobiweave
 
Chris Mairs's Presentation at eComm 2009
Chris Mairs's Presentation at eComm 2009Chris Mairs's Presentation at eComm 2009
Chris Mairs's Presentation at eComm 2009eCommConf
 
The iBeacon Guide To Success - A comprehensive overview on the technology wit...
The iBeacon Guide To Success - A comprehensive overview on the technology wit...The iBeacon Guide To Success - A comprehensive overview on the technology wit...
The iBeacon Guide To Success - A comprehensive overview on the technology wit...candylabs
 
Ericsson Labs OTA09 090925
Ericsson Labs OTA09 090925Ericsson Labs OTA09 090925
Ericsson Labs OTA09 090925Tor Björn Minde
 
Ingredients for a Successful Service Innovation Ecosystem
Ingredients for a Successful Service Innovation EcosystemIngredients for a Successful Service Innovation Ecosystem
Ingredients for a Successful Service Innovation EcosystemAndrew Randall
 
What is the Cost Estimated for Architecting a Video Conferencing App?
What is the Cost Estimated for Architecting a Video Conferencing App?What is the Cost Estimated for Architecting a Video Conferencing App?
What is the Cost Estimated for Architecting a Video Conferencing App?Shelly Megan
 
Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...
Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...
Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...Localz
 
Nmi Mobile Flyer
Nmi Mobile FlyerNmi Mobile Flyer
Nmi Mobile Flyergoldsbs
 
Banking and Finance solutions - IBM Mobile First - React Native
Banking and Finance solutions - IBM Mobile First - React NativeBanking and Finance solutions - IBM Mobile First - React Native
Banking and Finance solutions - IBM Mobile First - React NativePaul Dao
 
Mobicents Summit 2012 - Jonas Borjesson - Introduction to Twilio
Mobicents Summit 2012 - Jonas Borjesson - Introduction to TwilioMobicents Summit 2012 - Jonas Borjesson - Introduction to Twilio
Mobicents Summit 2012 - Jonas Borjesson - Introduction to Twiliotelestax
 
What’s Next for Mobile Video
What’s Next for Mobile VideoWhat’s Next for Mobile Video
What’s Next for Mobile VideoIMTC
 

Was ist angesagt? (15)

Estimote q3-demo-betaworks ja00044-dosada
Estimote q3-demo-betaworks ja00044-dosadaEstimote q3-demo-betaworks ja00044-dosada
Estimote q3-demo-betaworks ja00044-dosada
 
Bluemonitor Android Consulting Services
Bluemonitor Android Consulting ServicesBluemonitor Android Consulting Services
Bluemonitor Android Consulting Services
 
Apple beacon
Apple beaconApple beacon
Apple beacon
 
Introduction to MonoTouch
Introduction to MonoTouchIntroduction to MonoTouch
Introduction to MonoTouch
 
Chris Mairs's Presentation at eComm 2009
Chris Mairs's Presentation at eComm 2009Chris Mairs's Presentation at eComm 2009
Chris Mairs's Presentation at eComm 2009
 
The iBeacon Guide To Success - A comprehensive overview on the technology wit...
The iBeacon Guide To Success - A comprehensive overview on the technology wit...The iBeacon Guide To Success - A comprehensive overview on the technology wit...
The iBeacon Guide To Success - A comprehensive overview on the technology wit...
 
Ericsson Labs OTA09 090925
Ericsson Labs OTA09 090925Ericsson Labs OTA09 090925
Ericsson Labs OTA09 090925
 
Ingredients for a Successful Service Innovation Ecosystem
Ingredients for a Successful Service Innovation EcosystemIngredients for a Successful Service Innovation Ecosystem
Ingredients for a Successful Service Innovation Ecosystem
 
Ericsson Labs 100322
Ericsson Labs 100322Ericsson Labs 100322
Ericsson Labs 100322
 
What is the Cost Estimated for Architecting a Video Conferencing App?
What is the Cost Estimated for Architecting a Video Conferencing App?What is the Cost Estimated for Architecting a Video Conferencing App?
What is the Cost Estimated for Architecting a Video Conferencing App?
 
Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...
Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...
Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...
 
Nmi Mobile Flyer
Nmi Mobile FlyerNmi Mobile Flyer
Nmi Mobile Flyer
 
Banking and Finance solutions - IBM Mobile First - React Native
Banking and Finance solutions - IBM Mobile First - React NativeBanking and Finance solutions - IBM Mobile First - React Native
Banking and Finance solutions - IBM Mobile First - React Native
 
Mobicents Summit 2012 - Jonas Borjesson - Introduction to Twilio
Mobicents Summit 2012 - Jonas Borjesson - Introduction to TwilioMobicents Summit 2012 - Jonas Borjesson - Introduction to Twilio
Mobicents Summit 2012 - Jonas Borjesson - Introduction to Twilio
 
What’s Next for Mobile Video
What’s Next for Mobile VideoWhat’s Next for Mobile Video
What’s Next for Mobile Video
 

Ähnlich wie 三分鐘讓你輕鬆開發 iBeacon

AltBeacon in the IoT
AltBeacon in the IoTAltBeacon in the IoT
AltBeacon in the IoTAntonioIonta
 
Integrating Ansible Tower with security orchestration and cloud management
Integrating Ansible Tower with security orchestration and cloud managementIntegrating Ansible Tower with security orchestration and cloud management
Integrating Ansible Tower with security orchestration and cloud managementJoel W. King
 
Building a Mobile Location Aware System with Beacons
Building a Mobile Location Aware System with BeaconsBuilding a Mobile Location Aware System with Beacons
Building a Mobile Location Aware System with BeaconsTim Messerschmidt
 
Walking Through Spring Cloud Data Flow
Walking Through Spring Cloud Data FlowWalking Through Spring Cloud Data Flow
Walking Through Spring Cloud Data FlowVMware Tanzu
 
Mini project final presentation
Mini project final presentationMini project final presentation
Mini project final presentationGianlucaCapozzi1
 
Easy2park - A smarter way to find a parking lot
Easy2park - A smarter way to find a parking lotEasy2park - A smarter way to find a parking lot
Easy2park - A smarter way to find a parking lotDaniele Davoli
 
Experimenting Monitoring and Proximity techniques using Android potential and...
Experimenting Monitoring and Proximity techniques using Android potential and...Experimenting Monitoring and Proximity techniques using Android potential and...
Experimenting Monitoring and Proximity techniques using Android potential and...DuckMa
 
SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES
 SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES
SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUESVMware Tanzu
 
Android architecture
Android architecture Android architecture
Android architecture Trong-An Bui
 
IBM iSeries Terminal Based Performance Testing with Rational Performance Tester
IBM iSeries Terminal Based Performance Testing with Rational Performance TesterIBM iSeries Terminal Based Performance Testing with Rational Performance Tester
IBM iSeries Terminal Based Performance Testing with Rational Performance TesterWinton Winton
 
Use Eclipse technologies to build a modern embedded IDE
Use Eclipse technologies to build a modern embedded IDEUse Eclipse technologies to build a modern embedded IDE
Use Eclipse technologies to build a modern embedded IDEBenjamin Cabé
 
X-platform iBeacon apps with Xamarin
X-platform iBeacon apps with XamarinX-platform iBeacon apps with Xamarin
X-platform iBeacon apps with XamarinMark Radacz
 
Om Pawar MP AJP.docx
Om Pawar MP AJP.docxOm Pawar MP AJP.docx
Om Pawar MP AJP.docxOmpawar61
 
Android RenderScript on LLVM
Android RenderScript on LLVMAndroid RenderScript on LLVM
Android RenderScript on LLVMJohn Lee
 
Kubernetes and Istio
Kubernetes and IstioKubernetes and Istio
Kubernetes and IstioKetan Gote
 
Kseniia Shumelchyk - Android iBeacon development
Kseniia Shumelchyk - Android iBeacon developmentKseniia Shumelchyk - Android iBeacon development
Kseniia Shumelchyk - Android iBeacon developmentCodemotion
 
Unit testing on Android (Droidcon Dubai 2015)
Unit testing on Android (Droidcon Dubai 2015)Unit testing on Android (Droidcon Dubai 2015)
Unit testing on Android (Droidcon Dubai 2015)Danny Preussler
 
Spring Performance Gains
Spring Performance GainsSpring Performance Gains
Spring Performance GainsVMware Tanzu
 

Ähnlich wie 三分鐘讓你輕鬆開發 iBeacon (20)

AltBeacon in the IoT
AltBeacon in the IoTAltBeacon in the IoT
AltBeacon in the IoT
 
Integrating Ansible Tower with security orchestration and cloud management
Integrating Ansible Tower with security orchestration and cloud managementIntegrating Ansible Tower with security orchestration and cloud management
Integrating Ansible Tower with security orchestration and cloud management
 
Building a Mobile Location Aware System with Beacons
Building a Mobile Location Aware System with BeaconsBuilding a Mobile Location Aware System with Beacons
Building a Mobile Location Aware System with Beacons
 
Walking Through Spring Cloud Data Flow
Walking Through Spring Cloud Data FlowWalking Through Spring Cloud Data Flow
Walking Through Spring Cloud Data Flow
 
Mini project final presentation
Mini project final presentationMini project final presentation
Mini project final presentation
 
Easy2park - A smarter way to find a parking lot
Easy2park - A smarter way to find a parking lotEasy2park - A smarter way to find a parking lot
Easy2park - A smarter way to find a parking lot
 
Experimenting Monitoring and Proximity techniques using Android potential and...
Experimenting Monitoring and Proximity techniques using Android potential and...Experimenting Monitoring and Proximity techniques using Android potential and...
Experimenting Monitoring and Proximity techniques using Android potential and...
 
SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES
 SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES
SPRING BOOT DANS UN CONTAINER OUTILS ET PRATIQUES
 
Android architecture
Android architecture Android architecture
Android architecture
 
IBM iSeries Terminal Based Performance Testing with Rational Performance Tester
IBM iSeries Terminal Based Performance Testing with Rational Performance TesterIBM iSeries Terminal Based Performance Testing with Rational Performance Tester
IBM iSeries Terminal Based Performance Testing with Rational Performance Tester
 
Use Eclipse technologies to build a modern embedded IDE
Use Eclipse technologies to build a modern embedded IDEUse Eclipse technologies to build a modern embedded IDE
Use Eclipse technologies to build a modern embedded IDE
 
X-platform iBeacon apps with Xamarin
X-platform iBeacon apps with XamarinX-platform iBeacon apps with Xamarin
X-platform iBeacon apps with Xamarin
 
Eddystone beacons demo
Eddystone beacons demoEddystone beacons demo
Eddystone beacons demo
 
Om Pawar MP AJP.docx
Om Pawar MP AJP.docxOm Pawar MP AJP.docx
Om Pawar MP AJP.docx
 
Android RenderScript on LLVM
Android RenderScript on LLVMAndroid RenderScript on LLVM
Android RenderScript on LLVM
 
Kubernetes and Istio
Kubernetes and IstioKubernetes and Istio
Kubernetes and Istio
 
Tdd,Ioc
Tdd,IocTdd,Ioc
Tdd,Ioc
 
Kseniia Shumelchyk - Android iBeacon development
Kseniia Shumelchyk - Android iBeacon developmentKseniia Shumelchyk - Android iBeacon development
Kseniia Shumelchyk - Android iBeacon development
 
Unit testing on Android (Droidcon Dubai 2015)
Unit testing on Android (Droidcon Dubai 2015)Unit testing on Android (Droidcon Dubai 2015)
Unit testing on Android (Droidcon Dubai 2015)
 
Spring Performance Gains
Spring Performance GainsSpring Performance Gains
Spring Performance Gains
 

Kürzlich hochgeladen

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 

Kürzlich hochgeladen (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 

三分鐘讓你輕鬆開發 iBeacon

  • 1. 只要三分鐘 讓你輕鬆開發 iBeacon Allen Tsai 2015.04.01 (三) 什 麼 只 要 三 分 鐘 ‧‧‧ 是 不 是 騙 人 的 啊 ‧‧‧ 聽 說 今 天 是 愚 人 節 ‧‧‧
  • 3. 通過此 Workshop 你將 … 安裝‧使用 Android Studio 巡覽 Estimote 範例專案 認識 Estimote SDK 體驗實際應用
  • 7. Type Function Name Function Description String getMacAddress() Return MAC address of the beacon. int getMajor() Return Major version of the beacon. int getMeasuredPower() Return Measured power of the beacon (in dBm). int getMinor() Return Minor version of the beacon. String getName() Return Device friendly name (this name is advertised by the beacon). String getProximityUUID() Return Proximity UUID of the beacon in format XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX (all lowercases). int getRssi() Return Received Signal Strength Indication at the moment of scanning. com.estimote.sdk Class Beacon
  • 8. com.estimote.sdk.connection Class BeaconConnection.BeaconCharacteristics Type Function Name Function Description Integer getAdvertisingIntervalMillis() Returns Advertising interval in milliseconds. Integer getBatteryPercent() Returns Battery level in percent. Byte getBroadcastingPower() Returns Broadcasting power. String getHardwareVersion() Returns Revision of hardware. String getSoftwareVersion() Returns Version of operating system.
  • 9. com.estimote.sdk Class Utils Type Function Name static double computeAccuracy(Beacon beacon) Returns distance in meters based on beacon's RSSI and measured power. static boolean isBeaconInRegion(Beacon beacon, Region region) Returns true if beacon matches the region. static void restartBluetooth(Context context, Utils.RestartCompletedListener listener) Restarts Bluetooth stack on the device.
  • 10. com.estimote.sdk.connection Class BeaconConnection Function Name void:writeAdvertisingInterval(int intervalMillis, BeaconConnection.WriteCallback writeCallback) Changes advertising interval of the beacon. void:writeBroadcastingPower(int powerDBM, BeaconConnection.WriteCallback writeCallback) Changes broadcasting power of the beacon. void:writeMajor(int major, BeaconConnection.WriteCallback writeCallback) Changes major value of the beacon. void:writeMinor(int minor, BeaconConnection.WriteCallback writeCallback) Changes minor value of the beacon. void:writeProximityUuid(String proximityUuid, BeaconConnection.WriteCallback writeCallback) Changes proximity UUID of the beacon.
  • 11. iBeacon Demo Project on Android Studio
  • 12. Estimote Demo App Hands-on
  • 13. private static final String ESTIMOTE_PROXIMITY_UUID = "B9407F30-F5F8-466E-AFF9-25556B57FE6D"; private static final Region ALL_ESTIMOTE_BEACONS = new Region("regionId", ESTIMOTE_PROXIMITY_UUID, null, null); private BeaconManager beaconManager = new BeaconManager(context); // Should be invoked in #onCreate. beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Override public void onBeaconsDiscovered(Region region, List<Beacon> beacons) { Log.d(TAG, "Ranged beacons: " + beacons); } }); // Should be invoked in #onStart. beaconManager.connect(new BeaconManager.ServiceReadyCallback() { @Override public void onServiceReady() { try { beaconManager.startRanging(ALL_ESTIMOTE_BEACONS); } catch (RemoteException e) { Log.e(TAG, "Cannot start ranging", e); } } }); // Should be invoked in #onStop. try { beaconManager.stopRanging(ALL_ESTIMOTE_BEACONS); } catch (RemoteException e) { Log.e(TAG, "Cannot stop but it does not matter now", e); } // When no longer needed. Should be invoked in #onDestroy. beaconManager.disconnect(); 快速上手操作iBeacon
  • 15. 參考資訊  BLE(Bluetooth Low Energy) 簡介  Link  Estimote App for iOS  Link  Estimote App for Android  Link  Estimote Android SDK Document  Link