Re: USB BT gives problem If device plugged during boot to platform.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux