Firefly开源社区

打印 上一主题 下一主题

firefly rk3288 蓝牙开启又自动关闭

29

积分

0

威望

0

贡献

技术小白

积分
29

firefly rk3288 蓝牙开启又自动关闭

发表于 2015-10-20 18:09:29      浏览:22401 | 回复:8        打印      只看该作者   [复制链接] 楼主
本帖最后由 xmzzy 于 2015-10-20 18:11 编辑

firefly rk3288开发板手动开启蓝牙过两秒会自动关闭。开启不成功。求助!
我在log中在怀疑出错的地方前后用#号隔,不知道问题定位对不对,也不知道该怎么解决。
logcat打印:
W/AudioTrack(  587): AUDIO_OUTPUT_FLAG_FAST denied by client
I/ActivityManager(  587): START u0 {act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings (has extras)} from uid 1000 on display 0
V/WindowManager(  587): addAppToken: AppWindowToken{f606923 token=Token{124f4252 ActivityRecord{20e016dd u0 com.android.settings/.SubSettings t5}}} to stack=1 task=5 at 1
E/RKPowerHAL(  587): Error opening /dev/video_state: No such file or directory
W/AppOps  (  587): Bad call: specified package media under uid 1000 but it is really 1013
E/RKPowerHAL(  587): Error opening /dev/video_state: No such file or directory
W/AppOps  (  587): Bad call: specified package media under uid 1000 but it is really 1013
D/AudioHardwareTiny(  169): start_output_stream
D/AudioHardwareTiny(  169): Audio HAL start_output_stream  out->device = 0x400
D/SubSettings( 2145): Launching fragment com.android.settings.bluetooth.BluetoothSettings
D/BluetoothAdapter( 2145): 1014279808: getState() :  mService = null. Returning STATE_OFF
D/BluetoothAdapter( 2145): 1014279808: getState() :  mService = null. Returning STATE_OFF
D/LocalBluetoothManager( 2145): setting foreground activity to non-null context
D/BluetoothAdapter( 2145): 1014279808: getState() :  mService = null. Returning STATE_OFF
D/BluetoothAdapter( 2145): 1014279808: getState() :  mService = null. Returning STATE_OFF
D/BluetoothAdapter( 2145): 1014279808: getState() :  mService = null. Returning STATE_OFF
V/WindowManager(  587): Adding window Window{7b8d549 u0 com.android.settings/com.android.settings.SubSettings} at 6 of 7 (after Window{66f46d8 u0 com.android.settings/com.android.settings.Settings})
W/AppOps  (  587): Bad call: specified package media under uid 1000 but it is really 1013
D/Index   ( 2145): Deleting data for locale 'en_US' took 3 millis
D/BluetoothAdapter( 2145): 1014279808: getState() :  mService = null. Returning STATE_OFF
D/Index   ( 2145): Indexing locale 'en_US' took 2 millis
I/ActivityManager(  587): Displayed com.android.settings/.SubSettings: +344ms
D/BluetoothAdapter( 2145): 1014279808: getState() :  mService = null. Returning STATE_OFF
D/BluetoothAdapter( 2145): 1014279808: getState() :  mService = null. Returning STATE_OFF

D/BluetoothManagerService(  587): enable():  mBluetooth =null mBinding = false
D/BluetoothManagerService(  587): Message: 1
D/BluetoothManagerService(  587): MESSAGE_ENABLE: mBluetooth = null
W/AudioTrack(  587): AUDIO_OUTPUT_FLAG_FAST denied by client
W/AppOps  (  587): Bad call: specified package media under uid 1000 but it is really 1013
I/ActivityManager(  587): Start proc 3001:com.android.bluetooth/1002 for service com.android.bluetooth/.btservice.AdapterService
W/ResourcesManager( 3001): Asset path '/system/framework/javax.obex.jar' does not exist or contains no resources.
D/AdapterServiceConfig( 3001): Adding HeadsetService
D/AdapterServiceConfig( 3001): Adding A2dpService
D/AdapterServiceConfig( 3001): Adding HidService
D/AdapterServiceConfig( 3001): Adding HealthService
D/AdapterServiceConfig( 3001): Adding PanService
D/AdapterServiceConfig( 3001): Adding GattService
D/BluetoothServiceJni( 3001): int android::check_wifi_chip_type_string(char*): AP6210
D/BluetoothServiceJni( 3001): void android::classInitNative(JNIEnv*, jclass), load bluetooth.default.so
D/BluetoothManagerService(  587): Message: 20
D/BluetoothManagerService(  587): Added callback: android.bluetooth.IBluetoothManagerCallback$Stub$Proxy@1c116967:true
D/BluetoothAdapterState( 3001): make
I/bluedroid( 3001): init
I/BluetoothAdapterState( 3001): Entering OffState

E/bt-btif ( 3001): btif_config_get(L190): assert failed: section && *section && key && *key && name && *name && bytes && type

I/bte_conf( 3001): bte_load_conf attempt to load stack conf from /etc/bluetooth/bt_stack.conf
I/bte_conf( 3001): bte_load_ble_conf attempt to load ble stack conf from /etc/bluetooth/ble_stack.conf
E/bt_osi_config( 3001): config_new unable to open file '/etc/bluetooth/ble_stack.conf': No such file or directory
I/bte_conf( 3001): bte_load_ble_conf file >/etc/bluetooth/ble_stack.conf< not found
I/bluedroid( 3001): get_profile_interface socket
I/bluedroid( 3001): get_profile_interface map_client
I/GKI_LINUX( 3001): gki_task_entry task_id=1 [BTIF] starting
D/BluetoothAdapterProperties( 3001): Address is:22:22:D0:8C:41:AC
D/BluetoothAdapterProperties( 3001): Name is: rk3288
D/BluetoothManagerService(  587): Bluetooth Adapter name changed to rk3288
D/BluetoothManagerService(  587): Stored Bluetooth name: rk3288
D/BluetoothManagerService(  587): BluetoothServiceConnection: com.android.bluetooth.btservice.AdapterService
D/BluetoothManagerService(  587): Message: 40
D/BluetoothManagerService(  587): MESSAGE_BLUETOOTH_SERVICE_CONNECTED: 1
I/bluedroid( 3001): config_hci_snoop_log
D/BluetoothManagerService(  587): Calling onBluetoothServiceUp callbacks
D/BluetoothManagerService(  587): Broadcasting onBluetoothServiceUp() to 4 receivers.
D/BluetoothAdapterState( 3001): CURRENT_STATE=OFF, MESSAGE = USER_TURN_ON
D/BluetoothAdapterProperties( 3001): Setting state to 11
I/BluetoothAdapterState( 3001): Bluetooth adapter state changed: 10-> 11
D/BluetoothManagerService(  587): Message: 60
D/BluetoothManagerService(  587): MESSAGE_BLUETOOTH_STATE_CHANGE: prevState = 10, newState=11
D/BluetoothManagerService(  587): Bluetooth State Change Intent: 10 -> 11
D/BluetoothBondStateMachine( 3001): make
I/BluetoothBondStateMachine( 3001): StableState(): Entering Off State
D/BluetoothAdapterService( 3001): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@31b84aa9
D/HeadsetService( 3001): Received start request. Starting profile...
I/BluetoothHeadsetServiceJni( 3001): classInitNative: succeeds
D/HeadsetStateMachine( 3001): make
I/BluetoothAdapterState( 3001): Entering PendingCommandState State: isTurningOn()=true, isTurningOff()=false
D/HeadsetStateMachine( 3001): max_hf_connections = 1
I/bluedroid( 3001): get_profile_interface handsfree
D/HeadsetStateMachine( 3001): Enter Disconnected: -2, size: 0
D/BluetoothAdapterService( 3001): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@31b84aa9
D/A2dpService( 3001): Received start request. Starting profile...
I/BluetoothAvrcpServiceJni( 3001): classInitNative: succeeds
I/bluedroid( 3001): get_profile_interface avrcp
E/RemoteController( 3001): Cannot set synchronization mode on an unregistered RemoteController
I/BluetoothA2dpServiceJni( 3001): classInitNative: succeeds
D/A2dpStateMachine( 3001): make
I/bluedroid( 3001): get_profile_interface a2dp
I/GKI_LINUX( 3001): gki_task_entry task_id=2 [A2DP-MEDIA] starting
D/A2dpStateMachine( 3001): Enter Disconnected: -2
I/BluetoothHidServiceJni( 3001): classInitNative: succeeds
D/BluetoothAdapterService( 3001): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@31b84aa9
D/HidService( 3001): Received start request. Starting profile...
I/bluedroid( 3001): get_profile_interface hidhost
I/BluetoothHealthServiceJni( 3001): classInitNative: succeeds
D/BluetoothAdapterService( 3001): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@31b84aa9
D/HealthService( 3001): Received start request. Starting profile...
I/bluedroid( 3001): get_profile_interface health
I/BluetoothPanServiceJni( 3001): classInitNative(L105): succeeds
D/BluetoothAdapterService( 3001): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@31b84aa9
D/PanService( 3001): Received start request. Starting profile...
D/BluetoothPanServiceJni( 3001): initializeNative(L110): pan
I/bluedroid( 3001): get_profile_interface pan
D/BluetoothInputDevice( 2145): Proxy object connected
D/HidProfile( 2145): Bluetooth service connected
I/BtGatt.JNI( 3001): classInitNative(L873): classInitNative: Success!
D/BluetoothAdapterService( 3001): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@31b84aa9
D/BtGatt.DebugUtils( 3001): handleDebugAction() action=null
D/BtGatt.GattService( 3001): Received start request. Starting profile...
D/BtGatt.GattService( 3001): start()
I/bluedroid( 3001): get_profile_interface gatt
D/BluetoothAdapterService( 3001): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@31b84aa9
D/BtGatt.AdvertiseManager( 3001): advertise manager created
D/BluetoothPan( 2145): BluetoothPAN Proxy object connected
D/PanProfile( 2145): Bluetooth service connected
D/HeadsetStateMachine( 3001): Proxy object connected
D/HeadsetStateMachine( 3001): Disconnected process message: 10, size: 0
D/HeadsetPhoneState( 3001): sendDeviceStateChanged. mService=0 mSignal=0 mRoam=0 mBatteryCharge=5
D/HeadsetStateMachine( 3001): Disconnected process message: 11, size: 0
D/BluetoothAdapterState( 3001): CURRENT_STATE=PENDING, MESSAGE = STARTED, isTurningOn=true, isTurningOff=false
I/bluedroid( 3001): enable
I/GKI_LINUX( 3001): gki_task_entry task_id=0 [BTU] starting
I/bt-btu  ( 3001): btu_task pending for preload complete event
I/bt_hci_bdroid( 3001): init
D/RkWifiCtrl( 3001): check_wifi_chip_type_string: AP6210
D/bt_vendor( 3001): vendor_open load libbt-vendor.so
I/bt_vendor( 3001): init
I/bt_vnd_conf( 3001): Attempt to load conf from /etc/bluetooth/bt_vendor.conf
I/bt_vnd_conf( 3001): vnd_load_conf file >/etc/bluetooth/bt_vendor.conf< not found
D/RkWifiCtrl( 3001): check_wifi_chip_type_string: AP6210
D/bt_hci_bdroid( 3001): init, use hci h4
D/bt_userial( 3001): userial_init
W/AppOps  (  587): Bad call: specified package media under uid 1000 but it is really 1013
D/bt_upio ( 3001): Delay 500ms for bluetooth power up
D/bt_upio ( 3001): Delay 500ms for bluetooth power up
################################
/bt_userial_vendor( 3001): userial vendor open: opening /dev/ttyS0
I/bt_userial_vendor( 3001): device fd = 55 open
D/bt_userial( 3001): Entering userial_read_thread()
D/AudioHardwareTiny(  169): close device
W/AppOps  (  587): Bad call: specified package media under uid 1000 but it is really 1013
E/bt-btif ( 3001): ...preload_wait_timeout (retried:0/max-retry:0)...
D/bt_userial( 3001): RX termination
W/bt_userial( 3001): select_read return size <=0:-1, exiting userial_read_thread
D/bt_userial( 3001): Leaving userial_read_thread()

I/bt_userial_vendor( 3001): device fd = 55 close
#####################################
D/bt_upio ( 3001): Delay 500ms for bluetooth power up
W/bt-btu  ( 3001): btu_task start abort!
I/GKI_LINUX( 3001): gki_task task_id=0 [BTU] terminating
I/GKI_LINUX( 3001): GKI_exit_task 0 done
I/GKI_LINUX( 3001): GKI_shutdown(): task [BTU] terminated
I/GKI_LINUX( 3001): GKI_exit_task 1 done
I/GKI_LINUX( 3001): gki_task task_id=2 [A2DP-MEDIA] terminating
I/GKI_LINUX( 3001): GKI_exit_task 2 done
D/BluetoothAdapterState( 3001): CURRENT_STATE=PENDING, MESSAGE = DISABLED, isTurningOn=true, isTurningOff=false
E/BluetoothAdapterState( 3001): Error enabling Bluetooth - hardware init failed
I/GKI_LINUX( 3001): gki_task task_id=1 [BTIF] terminating
D/HeadsetService( 3001): Received stop request...Stopping profile...
D/HeadsetStateMachine( 3001): Exit Disconnected: -1
D/A2dpService( 3001): Received stop request...Stopping profile...
D/A2dpStateMachine( 3001): Exit Disconnected: -1
D/BluetoothAdapterProperties( 3001): Setting state to 10
I/BluetoothAdapterState( 3001): Bluetooth adapter state changed: 11-> 10
D/BluetoothManagerService(  587): Message: 60
D/BluetoothManagerService(  587): MESSAGE_BLUETOOTH_STATE_CHANGE: prevState = 11, newState=10
D/BluetoothManagerService(  587): Broadcasting onBluetoothStateChange(false) to 9 receivers.
I/BluetoothAdapterState( 3001): Entering OffState
D/HidService( 3001): Received stop request...Stopping profile...
D/HeadsetStateMachine( 3001): Unbinding service...
D/BluetoothInputDevice( 2145): Proxy object disconnected
D/HidProfile( 2145): Bluetooth service disconnected
W/BluetoothHeadsetServiceJni( 3001): Cleaning up Bluetooth Handsfree Interface...
W/BluetoothHeadsetServiceJni( 3001): Cleaning up Bluetooth Handsfree callback object
D/BluetoothHeadset(  587): onBluetoothStateChange: up=false
D/HealthService( 3001): Received stop request...Stopping profile...
D/BluetoothInputDevice( 2145): onBluetoothStateChange: up=false
D/PanService( 3001): Received stop request...Stopping profile...
D/BluetoothHeadset( 2122): onBluetoothStateChange: up=false
D/BtGatt.DebugUtils( 3001): handleDebugAction() action=null
D/BluetoothMap( 2145): onBluetoothStateChange: up=false
D/BtGatt.GattService( 3001): Received stop request...Stopping profile...
D/BtGatt.GattService( 3001): stop()
D/BtGatt.AdvertiseManager( 3001): advertise clients cleared
E/BluetoothMap( 2145):
E/BluetoothMap( 2145): java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothMap$2@1a84a0a6
E/BluetoothMap( 2145):         at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1029)
E/BluetoothMap( 2145):         at android.app.ContextImpl.unbindService(ContextImpl.java:1820)
E/BluetoothMap( 2145):         at android.content.ContextWrapper.unbindService(ContextWrapper.java:551)
E/BluetoothMap( 2145):         at android.bluetooth.BluetoothMap$1.onBluetoothStateChange(BluetoothMap.java:64)
E/BluetoothMap( 2145):         at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:55)
E/BluetoothMap( 2145):         at android.os.Binder.execTransact(Binder.java:446)
D/BluetoothHeadset(  587): onBluetoothStateChange: up=false
D/BluetoothPbap( 2145): onBluetoothStateChange: up=false
W/BluetoothHidServiceJni( 3001): Cleaning up Bluetooth HID Interface...
W/bt-btif ( 3001): cleanup: HH disabling or disabled already, status = 0
W/BluetoothHidServiceJni( 3001): Cleaning up Bluetooth GID callback object
W/BluetoothHealthServiceJni( 3001): Cleaning up Bluetooth Health Interface...
W/BluetoothHealthServiceJni( 3001): Cleaning up Bluetooth Health object
W/BluetoothPanServiceJni( 3001): Cleaning up Bluetooth PAN Interface...
W/BluetoothPanServiceJni( 3001): Cleaning up Bluetooth PAN callback object
D/BtGatt.GattService( 3001): cleanup()
W/bt-btif ( 3001): GATTC Module not enabled/already disabled
W/bt-btif ( 3001): GATTS Module not enabled/already disabled
D/BtGatt.AdvertiseManager( 3001): advertise clients cleared
D/BluetoothHeadset(  587): onBluetoothStateChange: up=false
D/BluetoothA2dp(  587): onBluetoothStateChange: up=false
D/BluetoothManagerService(  587): Bluetooth State Change Intent: 11 -> 10
E/BluetoothManagerService(  587): recoverBluetoothServiceFromError
W/ContextImpl( 2145): Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1704 android.content.ContextWrapper.startService:516 android.content.ContextWrapper.startService:516 com.android.settings.bluetooth.DockEventReceiver.beginStartingService:134 com.android.settings.bluetooth.DockEventReceiver.onReceive:115
D/DockEventReceiver( 2145): finishStartingService: stopping service
D/Index   ( 2145): Deleting data for locale 'en_US' took 7 millis
D/Index   ( 2145): Indexing locale 'en_US' took 6 millis
D/BluetoothManagerService(  587): Sending off request.
D/BluetoothAdapterState( 3001): CURRENT_STATE=OFF, MESSAGE = USER_TURN_OFF
D/BluetoothManagerService(  587): Calling onBluetoothServiceDown callbacks
D/BluetoothManagerService(  587): Broadcasting onBluetoothServiceDown() to 4 receivers.
I/BluetoothServiceJni( 3001): cleanupNative: return from cleanup
I/art     ( 3001): System.exit called, status: 0
I/AndroidRuntime( 3001): VM exiting with result code 0, cleanup skipped.
I/ActivityManager(  587): Process com.android.bluetooth (pid 3001) has died
回复

使用道具 举报

2

积分

0

威望

0

贡献

吃瓜的群众

积分
2
发表于 2015-12-28 17:52:17        只看该作者  沙发
问题解决了没?查一下,是不是WIFI和BT哪个电源没有设置好。先把WIFI打开,然后打开蓝牙,看一下还有没有问题
回复

使用道具 举报

6

积分

0

威望

0

贡献

游客

积分
6
发表于 2016-1-21 08:36:02        只看该作者  板凳
楼主,问题解决了么?我也遇到了同样的问题。
回复

使用道具 举报

126

积分

0

威望

0

贡献

技术小白

积分
126
发表于 2016-7-20 14:03:33        只看该作者  地板
bu power on    然后就shut off    同样求教啊
回复

使用道具 举报

363

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
363
发表于 2016-9-21 09:17:30        只看该作者  5#
abcxyztt 发表于 2016-9-20 16:26
3128 有碰到这个问题,后来解决了

你好    请问怎么解决的
回复

使用道具 举报

60

积分

0

威望

0

贡献

技术小白

积分
60
发表于 2018-1-23 14:46:24        只看该作者  6#
请确认uart是否为1.8V
回复

使用道具 举报

17

积分

0

威望

0

贡献

技术小白

积分
17
发表于 2018-10-11 17:03:36        只看该作者  7#
调整 libbt层down完蓝牙固件的delay时间 默认是200,改成50
device/common/bluetooth/libbt/src/hardware.c

static const fw_settlement_entry_t fw_settlement_table[] = {
    {"BCM43241", 200},
    {"BCM43341", 100},
    {"BCM4335C0", 50},
    {(const char *) NULL, 200}  // Giving the generic fw settlement delay setting.
};
我用的是AP6335所以添加了BCM4335C0,没有的可以自行添加,也可以将最后面改成50.
回复

使用道具 举报

26

积分

0

威望

0

贡献

技术小白

积分
26
发表于 2018-12-17 15:23:56        只看该作者  8#
请问楼主这个问题解决了没有,现在遇到同样的问题,困扰好久了
回复

使用道具 举报

26

积分

0

威望

0

贡献

技术小白

积分
26
发表于 2023-6-25 15:47:03        只看该作者  9#
这个问题解决了没有,现在遇到同样的问题,困扰好久了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表