All of lore.kernel.org
 help / color / mirror / Atom feed
* Bluez5.43 stack for bcm4334x chipset
@ 2017-02-12 16:14 Sinthu Raja M
  2017-02-12 19:56 ` Barry Byford
  0 siblings, 1 reply; 4+ messages in thread
From: Sinthu Raja M @ 2017-02-12 16:14 UTC (permalink / raw)
  To: linux-bluetooth

Hi,
I am working on Bluez5.43 stack, cross compiled for ARM v7 and
successfully compiled. also ported into the target device. I am using
Broadcom bluetooth chip (BCM4334x)The problem is when i do a hciconfig
i am getting the following result

# hciconfig
hci0: Type: Primary  Bus: UART
BD Address: 72:8E:6C:AB:DD:A4  ACL MTU: 1021:8  SCO MTU: 64:1
DOWN
RX bytes:647 acl:0 sco:0 events:32 errors:0
TX bytes:407 acl:0 sco:0 commands:32 errors:0

1)  I am not able to scan any devices.  what could be the possible
causes ? In my other bluetooth device it is detected as Bluetooth USB
Host Controller

2) But I am expecting the following result
# hciconfig
hci0:   Type: BR/EDR  Bus: UART
        BD Address: C4:00:49:00:06:D9  ACL MTU: 1021:8  SCO MTU: 64:1
        UP RUNNING PSCAN ISCAN
        RX bytes:3640 acl:0 sco:0 events:317 errors:0
        TX bytes:43776 acl:0 sco:0 commands:311 errors:

What modifications I need to be done in hciattach_bcm4334x.c code
inorder to get the above output or I need to modify in some other
files of Bluez?

3) Is there any thing to do with this HCI type for scanning?

With Regards
Raja

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bluez5.43 stack for bcm4334x chipset
  2017-02-12 16:14 Bluez5.43 stack for bcm4334x chipset Sinthu Raja M
@ 2017-02-12 19:56 ` Barry Byford
  2017-02-13 10:28   ` Loic Poulain
  0 siblings, 1 reply; 4+ messages in thread
From: Barry Byford @ 2017-02-12 19:56 UTC (permalink / raw)
  To: Sinthu Raja M; +Cc: Bluez mailing list

Hello Raja,

On 12 February 2017 at 16:14, Sinthu Raja M
<sinthu.raja@mistralsolutions.com> wrote:
> Hi,
> I am working on Bluez5.43 stack, cross compiled for ARM v7 and
> successfully compiled. also ported into the target device. I am using
> Broadcom bluetooth chip (BCM4334x)The problem is when i do a hciconfig
> i am getting the following result
>
> # hciconfig
> hci0: Type: Primary  Bus: UART
> BD Address: 72:8E:6C:AB:DD:A4  ACL MTU: 1021:8  SCO MTU: 64:1
> DOWN
> RX bytes:647 acl:0 sco:0 events:32 errors:0
> TX bytes:407 acl:0 sco:0 commands:32 errors:0
>
> 1)  I am not able to scan any devices.  what could be the possible
> causes ? In my other bluetooth device it is detected as Bluetooth USB
> Host Controller
>
> 2) But I am expecting the following result
> # hciconfig
> hci0:   Type: BR/EDR  Bus: UART
>         BD Address: C4:00:49:00:06:D9  ACL MTU: 1021:8  SCO MTU: 64:1
>         UP RUNNING PSCAN ISCAN
>         RX bytes:3640 acl:0 sco:0 events:317 errors:0
>         TX bytes:43776 acl:0 sco:0 commands:311 errors:
>
> What modifications I need to be done in hciattach_bcm4334x.c code
> inorder to get the above output or I need to modify in some other
> files of Bluez?

I'm not sure if it is relevant to your situation but on the Raspbery Pi 3
I need to apply the following patches to BlueZ 5.43 for the BCM43xx
https://gist.github.com/pelwell/c8230c48ea24698527cd

The issue I see without the patch is that the controller has an
address of all A's in bluetoothctl.

E.g:

$ bluetoothctl
[NEW] Controller AA:AA:AA:AA:AA:AA RPi3 [default]
[bluetooth]# show
Controller AA:AA:AA:AA:AA:AA
    Name: RPi3
    Alias: RPi3
    Class: 0x000000
    Powered: yes
    Discoverable: no
    Pairable: yes
    UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
    UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
    UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
    Modalias: usb:v1D6Bp0246d052A
    Discovering: no
[bluetooth]# exit
[DEL] Controller AA:AA:AA:AA:AA:AA RPi3 [default]


>
> 3) Is there any thing to do with this HCI type for scanning?
>
> With Regards
> Raja
> --
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bluez5.43 stack for bcm4334x chipset
  2017-02-12 19:56 ` Barry Byford
@ 2017-02-13 10:28   ` Loic Poulain
       [not found]     ` <CAEd-yTRFfdE=rMAOPDXW2dpGY8gtfhtPAhKCKDHhNCg=W9uimQ@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Loic Poulain @ 2017-02-13 10:28 UTC (permalink / raw)
  To: Sinthu Raja M; +Cc: Barry Byford, Bluez mailing list

Hi Raja,


On 12/02/2017 20:56, Barry Byford wrote:
> Hello Raja,
>
> On 12 February 2017 at 16:14, Sinthu Raja M
> <sinthu.raja@mistralsolutions.com> wrote:
>> Hi,
>> I am working on Bluez5.43 stack, cross compiled for ARM v7 and
>> successfully compiled. also ported into the target device. I am using
>> Broadcom bluetooth chip (BCM4334x)The problem is when i do a hciconfig
>> i am getting the following result
>>
>> # hciconfig
>> hci0: Type: Primary  Bus: UART
>> BD Address: 72:8E:6C:AB:DD:A4  ACL MTU: 1021:8  SCO MTU: 64:1
>> DOWN
>> RX bytes:647 acl:0 sco:0 events:32 errors:0
>> TX bytes:407 acl:0 sco:0 commands:32 errors:0
>>
>> 1)  I am not able to scan any devices.  what could be the possible
>> causes ? In my other bluetooth device it is detected as Bluetooth USB
>> Host Controller

Typically meet this issue when running non-patched/embedded bcm firmware.
HCI link is OK but controller functionalities limited. I suppose the 
radio is off.

>>
>> 2) But I am expecting the following result
>> # hciconfig
>> hci0:   Type: BR/EDR  Bus: UART
>>          BD Address: C4:00:49:00:06:D9  ACL MTU: 1021:8  SCO MTU: 64:1
>>          UP RUNNING PSCAN ISCAN
>>          RX bytes:3640 acl:0 sco:0 events:317 errors:0
>>          TX bytes:43776 acl:0 sco:0 commands:311 errors:
>>
>> What modifications I need to be done in hciattach_bcm4334x.c code
>> inorder to get the above output or I need to modify in some other
>> files of Bluez?
> I'm not sure if it is relevant to your situation but on the Raspbery Pi 3
> I need to apply the following patches to BlueZ 5.43 for the BCM43xx
> https://gist.github.com/pelwell/c8230c48ea24698527cd
>
> The issue I see without the patch is that the controller has an
> address of all A's in bluetoothctl.
>
>

Yes, seems to be the point here, check you have the correct 
firmware/patch-file and maybe
update the firmware dir accordingly.


What is your kernel version ?
Broadcom support is integrated in the kernel since Linux 4.1 and It is 
recommended
to use it (via btattach) instead of using hciattach (the old way).


Regards,
Loic

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bluez5.43 stack for bcm4334x chipset
       [not found]     ` <CAEd-yTRFfdE=rMAOPDXW2dpGY8gtfhtPAhKCKDHhNCg=W9uimQ@mail.gmail.com>
@ 2017-02-16  7:57       ` Sinthu Raja M
  0 siblings, 0 replies; 4+ messages in thread
From: Sinthu Raja M @ 2017-02-16  7:57 UTC (permalink / raw)
  To: Loic Poulain; +Cc: Barry Byford, Bluez mailing list

Hi All,
Thanks for the reply. I fixed the Issue it is because of the wrong
firmware. Now it is working fine.

With Regards

Sinthu Raja


On Thu, Feb 16, 2017 at 1:26 PM, Sinthu Raja M
<sinthu.raja@mistralsolutions.com> wrote:
> Hi All,
> Thanks for the reply. I fixed the Issue it is because of the wrong firmware.
> Now it is working fine.
>
>
>
> With Regards
>
> Sinthu Raja
>
> On Mon, Feb 13, 2017 at 3:58 PM, Loic Poulain <loic.poulain@intel.com>
> wrote:
>>
>> Hi Raja,
>>
>>
>> On 12/02/2017 20:56, Barry Byford wrote:
>>>
>>> Hello Raja,
>>>
>>> On 12 February 2017 at 16:14, Sinthu Raja M
>>> <sinthu.raja@mistralsolutions.com> wrote:
>>>>
>>>> Hi,
>>>> I am working on Bluez5.43 stack, cross compiled for ARM v7 and
>>>> successfully compiled. also ported into the target device. I am using
>>>> Broadcom bluetooth chip (BCM4334x)The problem is when i do a hciconfig
>>>> i am getting the following result
>>>>
>>>> # hciconfig
>>>> hci0: Type: Primary  Bus: UART
>>>> BD Address: 72:8E:6C:AB:DD:A4  ACL MTU: 1021:8  SCO MTU: 64:1
>>>> DOWN
>>>> RX bytes:647 acl:0 sco:0 events:32 errors:0
>>>> TX bytes:407 acl:0 sco:0 commands:32 errors:0
>>>>
>>>> 1)  I am not able to scan any devices.  what could be the possible
>>>> causes ? In my other bluetooth device it is detected as Bluetooth USB
>>>> Host Controller
>>
>>
>> Typically meet this issue when running non-patched/embedded bcm firmware.
>> HCI link is OK but controller functionalities limited. I suppose the radio
>> is off.
>>
>>>>
>>>> 2) But I am expecting the following result
>>>> # hciconfig
>>>> hci0:   Type: BR/EDR  Bus: UART
>>>>          BD Address: C4:00:49:00:06:D9  ACL MTU: 1021:8  SCO MTU: 64:1
>>>>          UP RUNNING PSCAN ISCAN
>>>>          RX bytes:3640 acl:0 sco:0 events:317 errors:0
>>>>          TX bytes:43776 acl:0 sco:0 commands:311 errors:
>>>>
>>>> What modifications I need to be done in hciattach_bcm4334x.c code
>>>> inorder to get the above output or I need to modify in some other
>>>> files of Bluez?
>>>
>>> I'm not sure if it is relevant to your situation but on the Raspbery Pi 3
>>> I need to apply the following patches to BlueZ 5.43 for the BCM43xx
>>> https://gist.github.com/pelwell/c8230c48ea24698527cd
>>>
>>> The issue I see without the patch is that the controller has an
>>> address of all A's in bluetoothctl.
>>>
>>>
>>
>> Yes, seems to be the point here, check you have the correct
>> firmware/patch-file and maybe
>> update the firmware dir accordingly.
>>
>>
>> What is your kernel version ?
>> Broadcom support is integrated in the kernel since Linux 4.1 and It is
>> recommended
>> to use it (via btattach) instead of using hciattach (the old way).
>>
>>
>> Regards,
>> Loic
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-16  7:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-12 16:14 Bluez5.43 stack for bcm4334x chipset Sinthu Raja M
2017-02-12 19:56 ` Barry Byford
2017-02-13 10:28   ` Loic Poulain
     [not found]     ` <CAEd-yTRFfdE=rMAOPDXW2dpGY8gtfhtPAhKCKDHhNCg=W9uimQ@mail.gmail.com>
2017-02-16  7:57       ` Sinthu Raja M

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.