Return-Path: Message-ID: In-Reply-To: References: <237bbd312054ce6433af002f5e1213c7.squirrel@iwavesystems.com> Date: Mon, 31 Aug 2015 03:13:37 -0400 Subject: Re: USB BT gives problem If device plugged during boot to platform. From: krishnaks@iwavesystems.com To: "Marcel Holtmann" Cc: krishnaks@iwavesystems.com, linux-bluetooth@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 List-ID: > Hi, > >> I am porting bluez 5.33 to android kitkat 4.4.3.I am using USB based >> Bluetooth device. I referred instruction in >> http://git.kernel.org/cgit/bluetooth/bluez.git/tree/android/README and >> able to build. >> After botting Android image with USB dongle connected and type >> "hciconfig >> hci0 up" on console, It is throwing following error. >> Can't init device hci0: Unknown error 132 (132) >> >> If I Type hciconfig -a . It gives following. >> hci0: Type: BR/EDR Bus: USB >> BD Address: 5C:F3:70:6C:5E:FB ACL MTU: 1021:8 SCO MTU: 64:1 >> DOWN >> RX bytes:547 acl:0 sco:0 events:27 errors:0 >> TX bytes:384 acl:0 sco:0 commands:27 errors:0 >> Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87 >> Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 >> Link policy: RSWITCH SNIFF >> Link mode: SLAVE ACCEPT >> >> >> >> But If I unplug and plug USB dongle, and then try same command >> (hciconfig >> hci0 up), It works. Even "hcitool scan" command also working after that. >> >> Why 1st time not working when USB dongle is connected? >> Also when I check Bluez debug log in logcat. >> I am getting one error log when USB dongle connected during boot. >> E/bluetoothd( 841): Failed to set mode: Blocked through rfkill (0x12). > > I think that blocked through rfkill is pretty obvious. Check with the > rfkill tool on what the current settings are. For some reason it seems > Bluetooth is blocked by default. And I remember there were some kernel > patches for this. Just do not remember the details. > > Regards > > Marcel > > -- > To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" > in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Hi, Thanks for the reply. In my busybox utils rfkill is not enabled. If I enable it and try "rfkill unblock" is that will be enough? or I need to search for Kernel patch that fixes this rfkill block issue? Regards, KP