ѡ ֻ | ʵ԰

йз

 һ
 ע

QQ¼

ֻһٿʼ

ɨһɨ΢

йз ҳ

Android O5ĸ

2017-5-25 14:57| : ˷| 鿴: 554| : 0

ժҪ: Google517յĿߴʽBetaAndroid OͨûšһGoogleѾ3·򿪷ṩһAndroidԤ棬Android O Developer PreviewAndroidߵReferenc ...

Google517յĿߴʽBetaAndroid OͨûšһGoogleѾ3·򿪷ṩһAndroidԤ棬Android O[1] Developer PreviewAndroidߵReference Guide[2]Լ俪߲ϷIJAndroid O5֧īĶ࣬߾ýбҪΪԲһAndroid OеЩ¡

ҪҽһAndroid汾ġGoogleǰӢĸ˳ΪAndroidϵͳģĸİ汾ʽ֮չΪƷ֣Android 4.3AndroidҲǴ汾ʼֵ֧͹[Bluetooth low energy]ʼΪ

Android 4.3Jelly Bean

Android 4.4KitKatɿ

Android 5.0Lollipop

Android 6.0Marshmallow޻

Android 7.0Nougatţ

Android 8.0OдſǰOreoJ

Androidİ汾ȻȤҲϵƷҲDZߵǽдƪ¿ɲΪôҿոƷģǵĽĿģΪ˴˽Google I/OߴϷAndroid OЩȷϵԡ

ӿԤĿǰҪԽ뵽Android OУ

1.5ĸ

5ȥ12·ݶʽҪ4ͨžչ2ͨԼ8Ĺ㲥չµAndroid߲οĵAPI: OУԶд

a. setPreferredPhy

ͨsetPreferredPhyԶAndroid豸PHYá5ѡ1M PHY2M PHYԼCoded PHY

ӦģsetPreferredPhyIJtxPhyrxPhyֱ¶壺

PHY_LE_1M_MASK֧5 1M PHY

PHY_LE_2M_MASK֧5 2M PHY

PHY_LE_CODED_MASK.֧5Coded PHY

phyOptions¶壺

PHY_OPTION_NO_PREFERRED

PHY_OPTION_S2

PHY_OPTION_S8

ˣͨIJͬϣͿʵֳǸʵԣ

Ҫǿһ㣺͸ʵǷ֧֣ȡAndroid豸ӲǷ֧5.

b.8㲥֡չ

Android O ߶ ScanRecord.getBytes() [3]ݳһЩ仯ڽ仯֮ǰԲһʲôScanRecord

Androidĵ͹ɨУAndroid豸Է͹ɨAndroidġϵУstartScan(ScanCallback)еScanCallbackһصڵַɨĽͨScanCallbackصӦò㡣ScanRecord.getBytes()Էɨԭʼݡ

ôAndroid OУgetBytes() յֽκμٶˣӦòӦصκСֽӰ졣෴ӦӦijȡһܹ 5 豸صݳȡBeaconӦõĿ˵һ

ͬʱ5ڹ㲥չ滹һЩĸ£磺

startAdvertisingSetIJѾ֧5еperiodical advertisingextended adversiting¼

2.Audio

Android OԤͬr׷ֻ֧ Sony ޶ LDAC[4]뼼LDACSonyһܹͨ·Hi-ResƵı뼼ּԽƵźŵĴһߣ߿Դﵽ990kbpsı仯Android O֧LDAC֧֮LDACAndroid OʵֻӣȡʵƵ顣

LDACĿǰڴ3λɹѡ

990kbpsģʽ

660kbpsͨģʽ

330kbpsģʽ

ʱAndroid O֮󣬴ҲһLDACһ¡

3. ɲ豸

ĿǰAndroid OBeta[5]汾״̬ͨ Android Beta ƻ Android Ԥ棬ĿǰNexusϵкPixelϵеIJ豸б֧Android O Beta汾

Nexus 5XNexus 6PNexus Player

Pixel CPixelPixel XL

ǣжɣ

[1] O-MG, the Developer Preview of Android O is here! https://android-developers.googleblog.com/2017/03/first-preview-of-android-o.html

[2] Android Reference Guide C BluetoothGATT, https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html

[3] Android OΪ C https://developer.android.com/preview/behavior-changes.html#bt

[4] LDAC飬https://www.sony.net/Products/LDAC/#products

[5] Android Beta, https://www.google.com/android/beta?u=0


ʻ



·

ղ

ط

Archiver|С| ( ICP14052215-1

GMT+8, 2018-1-17 03:26 , Processed in 0.046876 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

ض