* lescan stops after 10-15 minutes (bluez 5.48)
@ 2018-01-28 19:22 Gabriel A. Zorrilla
2018-01-28 19:44 ` Fwd: " Gabriel A. Zorrilla
2018-01-29 9:16 ` Szymon Janc
0 siblings, 2 replies; 7+ messages in thread
From: Gabriel A. Zorrilla @ 2018-01-28 19:22 UTC (permalink / raw)
To: linux-bluetooth
Hello there. I'm really desperate here. I'm trying to work with BLE in
my Pi3. When i do:
sudo hcitools lescan (with or without -duplicates) the Pi scans
normally then stops after about 10-15 minutes.
Here I made some btmon dumps:
without duplicates: http://termbin.com/ox3z
with duplicates: http://termbin.com/6nnn
* Pi3
* Raspbian with 4.9.66-v7+ kernel.
* Embedded bluetooth.
* Compilled bluez 5.48
Don't know what extra info you would need to diagnose this. Perhaps
it's a common bug in the Pi3 Raspbian distro, but cant find
information about this on the web. Been googling for a week.
I really want to make this work, so dont hesitate in asking me some
tests and such.
Thanks and regards,
^ permalink raw reply [flat|nested] 7+ messages in thread
* Fwd: lescan stops after 10-15 minutes (bluez 5.48)
2018-01-28 19:22 lescan stops after 10-15 minutes (bluez 5.48) Gabriel A. Zorrilla
@ 2018-01-28 19:44 ` Gabriel A. Zorrilla
[not found] ` <CAAu3APZCzOMRWR1fLO2LmOPBbYRfCvRUfra5O2XYvtibSwY9Tw@mail.gmail.com>
2018-01-29 9:16 ` Szymon Janc
1 sibling, 1 reply; 7+ messages in thread
From: Gabriel A. Zorrilla @ 2018-01-28 19:44 UTC (permalink / raw)
To: linux-bluetooth
Hello there. I'm really desperate here. I'm trying to work with BLE in
my Pi3. When i do:
sudo hcitools lescan (with or without -duplicates) the Pi scans
normally then stops after about 10-15 minutes.
Here I made some btmon dumps:
without duplicates: http://termbin.com/ox3z
with duplicates: http://termbin.com/6nnn
* Pi3
* Raspbian with 4.9.66-v7+ kernel.
* Embedded bluetooth.
* Compilled bluez 5.48
Don't know what extra info you would need to diagnose this. Perhaps
it's a common bug in the Pi3 Raspbian distro, but cant find
information about this on the web. Been googling for a week.
I really want to make this work, so dont hesitate in asking me some
tests and such.
Thanks and regards,
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lescan stops after 10-15 minutes (bluez 5.48)
[not found] ` <CAAu3APZCzOMRWR1fLO2LmOPBbYRfCvRUfra5O2XYvtibSwY9Tw@mail.gmail.com>
@ 2018-01-28 22:27 ` Gabriel A. Zorrilla
0 siblings, 0 replies; 7+ messages in thread
From: Gabriel A. Zorrilla @ 2018-01-28 22:27 UTC (permalink / raw)
To: linux-bluetooth
Hi Barry,
Dont think so. The size of the dumps are over 4k sometimes and
sometimes less and the btmon output does not mention any buffer size
issue.
But i'm no expert.
Thanks!
On Sun, Jan 28, 2018 at 6:44 PM, Barry Byford <31baz66@gmail.com> wrote:
> Hello
>
> On 28 January 2018 at 19:44, Gabriel A. Zorrilla <gaz082@gmail.com> wrote:
>> Hello there. I'm really desperate here. I'm trying to work with BLE in
>> my Pi3. When i do:
>>
>> sudo hcitools lescan (with or without -duplicates) the Pi scans
>> normally then stops after about 10-15 minutes.
>
> Could it be similar to the following issue on GitHub?
> https://github.com/ttu/ruuvitag-sensor/pull/34
>
>
>>
>> Here I made some btmon dumps:
>> without duplicates: http://termbin.com/ox3z
>> with duplicates: http://termbin.com/6nnn
>>
>> * Pi3
>> * Raspbian with 4.9.66-v7+ kernel.
>> * Embedded bluetooth.
>> * Compilled bluez 5.48
>>
>> Don't know what extra info you would need to diagnose this. Perhaps
>> it's a common bug in the Pi3 Raspbian distro, but cant find
>> information about this on the web. Been googling for a week.
>>
>> I really want to make this work, so dont hesitate in asking me some
>> tests and such.
>>
>> Thanks and regards,
>> --
>> 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
--
Gabriel A. Zorrilla
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lescan stops after 10-15 minutes (bluez 5.48)
2018-01-28 19:22 lescan stops after 10-15 minutes (bluez 5.48) Gabriel A. Zorrilla
2018-01-28 19:44 ` Fwd: " Gabriel A. Zorrilla
@ 2018-01-29 9:16 ` Szymon Janc
2018-01-29 13:16 ` Gabriel A. Zorrilla
1 sibling, 1 reply; 7+ messages in thread
From: Szymon Janc @ 2018-01-29 9:16 UTC (permalink / raw)
To: Gabriel A. Zorrilla; +Cc: linux-bluetooth
Hi Gabriel,
On Sunday, 28 January 2018 20:22:47 CET Gabriel A. Zorrilla wrote:
> Hello there. I'm really desperate here. I'm trying to work with BLE in
> my Pi3. When i do:
>
> sudo hcitools lescan (with or without -duplicates) the Pi scans
> normally then stops after about 10-15 minutes.
>
> Here I made some btmon dumps:
> without duplicates: http://termbin.com/ox3z
> with duplicates: http://termbin.com/6nnn
>
> * Pi3
> * Raspbian with 4.9.66-v7+ kernel.
> * Embedded bluetooth.
> * Compilled bluez 5.48
>
> Don't know what extra info you would need to diagnose this. Perhaps
> it's a common bug in the Pi3 Raspbian distro, but cant find
> information about this on the web. Been googling for a week.
>
> I really want to make this work, so dont hesitate in asking me some
> tests and such.
>
> Thanks and regards,
You don't want to mix using HCI directly and bluetoothd. Bluetoothd will
interfere with you accessing controller and this is most likely what you are
seeing.
Is there a reason for you to use hcitool lescan instead of D-Bus APIs?
--
pozdrawiam
Szymon Janc
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lescan stops after 10-15 minutes (bluez 5.48)
2018-01-29 9:16 ` Szymon Janc
@ 2018-01-29 13:16 ` Gabriel A. Zorrilla
2018-01-30 0:52 ` Gabriel A. Zorrilla
2018-01-30 7:22 ` Szymon Janc
0 siblings, 2 replies; 7+ messages in thread
From: Gabriel A. Zorrilla @ 2018-01-29 13:16 UTC (permalink / raw)
To: linux-bluetooth
Hi Symon,
This started because some Node-Red detect BLE devices but after a few
minutes they stop getting input. Then started to diagnose BLE with
hcitools and the outcome was the same so started to believe a kernel
or controller issue.
If there is an example of how this API works i'll be charmed to test it.
Thanks!
On Mon, Jan 29, 2018 at 6:16 AM, Szymon Janc <szymon.janc@codecoup.pl> wrote:
> Hi Gabriel,
>
> On Sunday, 28 January 2018 20:22:47 CET Gabriel A. Zorrilla wrote:
>> Hello there. I'm really desperate here. I'm trying to work with BLE in
>> my Pi3. When i do:
>>
>> sudo hcitools lescan (with or without -duplicates) the Pi scans
>> normally then stops after about 10-15 minutes.
>>
>> Here I made some btmon dumps:
>> without duplicates: http://termbin.com/ox3z
>> with duplicates: http://termbin.com/6nnn
>>
>> * Pi3
>> * Raspbian with 4.9.66-v7+ kernel.
>> * Embedded bluetooth.
>> * Compilled bluez 5.48
>>
>> Don't know what extra info you would need to diagnose this. Perhaps
>> it's a common bug in the Pi3 Raspbian distro, but cant find
>> information about this on the web. Been googling for a week.
>>
>> I really want to make this work, so dont hesitate in asking me some
>> tests and such.
>>
>> Thanks and regards,
>
> You don't want to mix using HCI directly and bluetoothd. Bluetoothd will
> interfere with you accessing controller and this is most likely what you are
> seeing.
>
> Is there a reason for you to use hcitool lescan instead of D-Bus APIs?
>
> --
> pozdrawiam
> Szymon Janc
>
>
> --
> 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
--
Gabriel A. Zorrilla
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lescan stops after 10-15 minutes (bluez 5.48)
2018-01-29 13:16 ` Gabriel A. Zorrilla
@ 2018-01-30 0:52 ` Gabriel A. Zorrilla
2018-01-30 7:22 ` Szymon Janc
1 sibling, 0 replies; 7+ messages in thread
From: Gabriel A. Zorrilla @ 2018-01-30 0:52 UTC (permalink / raw)
To: linux-bluetooth
Found a python library: https://github.com/frawau/aioblescan, same
thing, stops after 10 minutes.
On Mon, Jan 29, 2018 at 10:16 AM, Gabriel A. Zorrilla <gaz082@gmail.com> wrote:
> Hi Symon,
>
> This started because some Node-Red detect BLE devices but after a few
> minutes they stop getting input. Then started to diagnose BLE with
> hcitools and the outcome was the same so started to believe a kernel
> or controller issue.
>
> If there is an example of how this API works i'll be charmed to test it.
>
> Thanks!
>
>
> On Mon, Jan 29, 2018 at 6:16 AM, Szymon Janc <szymon.janc@codecoup.pl> wrote:
>> Hi Gabriel,
>>
>> On Sunday, 28 January 2018 20:22:47 CET Gabriel A. Zorrilla wrote:
>>> Hello there. I'm really desperate here. I'm trying to work with BLE in
>>> my Pi3. When i do:
>>>
>>> sudo hcitools lescan (with or without -duplicates) the Pi scans
>>> normally then stops after about 10-15 minutes.
>>>
>>> Here I made some btmon dumps:
>>> without duplicates: http://termbin.com/ox3z
>>> with duplicates: http://termbin.com/6nnn
>>>
>>> * Pi3
>>> * Raspbian with 4.9.66-v7+ kernel.
>>> * Embedded bluetooth.
>>> * Compilled bluez 5.48
>>>
>>> Don't know what extra info you would need to diagnose this. Perhaps
>>> it's a common bug in the Pi3 Raspbian distro, but cant find
>>> information about this on the web. Been googling for a week.
>>>
>>> I really want to make this work, so dont hesitate in asking me some
>>> tests and such.
>>>
>>> Thanks and regards,
>>
>> You don't want to mix using HCI directly and bluetoothd. Bluetoothd will
>> interfere with you accessing controller and this is most likely what you are
>> seeing.
>>
>> Is there a reason for you to use hcitool lescan instead of D-Bus APIs?
>>
>> --
>> pozdrawiam
>> Szymon Janc
>>
>>
>> --
>> 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
>
>
>
> --
> Gabriel A. Zorrilla
--
Gabriel A. Zorrilla
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lescan stops after 10-15 minutes (bluez 5.48)
2018-01-29 13:16 ` Gabriel A. Zorrilla
2018-01-30 0:52 ` Gabriel A. Zorrilla
@ 2018-01-30 7:22 ` Szymon Janc
1 sibling, 0 replies; 7+ messages in thread
From: Szymon Janc @ 2018-01-30 7:22 UTC (permalink / raw)
To: Gabriel A. Zorrilla; +Cc: linux-bluetooth
Hi,
On Monday, 29 January 2018 14:16:30 CET Gabriel A. Zorrilla wrote:
> Hi Symon,
>
> This started because some Node-Red detect BLE devices but after a few
> minutes they stop getting input. Then started to diagnose BLE with
> hcitools and the outcome was the same so started to believe a kernel
> or controller issue.
>
> If there is an example of how this API works i'll be charmed to test it.
You can check test-discovery under test/ folder in bluez tree.
(And please don't top-post:)
> On Mon, Jan 29, 2018 at 6:16 AM, Szymon Janc <szymon.janc@codecoup.pl>
wrote:
> > Hi Gabriel,
> >
> > On Sunday, 28 January 2018 20:22:47 CET Gabriel A. Zorrilla wrote:
> >> Hello there. I'm really desperate here. I'm trying to work with BLE in
> >> my Pi3. When i do:
> >>
> >> sudo hcitools lescan (with or without -duplicates) the Pi scans
> >> normally then stops after about 10-15 minutes.
> >>
> >> Here I made some btmon dumps:
> >> without duplicates: http://termbin.com/ox3z
> >> with duplicates: http://termbin.com/6nnn
> >>
> >> * Pi3
> >> * Raspbian with 4.9.66-v7+ kernel.
> >> * Embedded bluetooth.
> >> * Compilled bluez 5.48
> >>
> >> Don't know what extra info you would need to diagnose this. Perhaps
> >> it's a common bug in the Pi3 Raspbian distro, but cant find
> >> information about this on the web. Been googling for a week.
> >>
> >> I really want to make this work, so dont hesitate in asking me some
> >> tests and such.
> >>
> >> Thanks and regards,
> >
> > You don't want to mix using HCI directly and bluetoothd. Bluetoothd will
> > interfere with you accessing controller and this is most likely what you
> > are seeing.
> >
> > Is there a reason for you to use hcitool lescan instead of D-Bus APIs?
> >
> > --
> > pozdrawiam
> > Szymon Janc
> >
> >
> > --
> > 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
--
pozdrawiam
Szymon Janc
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-01-30 7:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-28 19:22 lescan stops after 10-15 minutes (bluez 5.48) Gabriel A. Zorrilla
2018-01-28 19:44 ` Fwd: " Gabriel A. Zorrilla
[not found] ` <CAAu3APZCzOMRWR1fLO2LmOPBbYRfCvRUfra5O2XYvtibSwY9Tw@mail.gmail.com>
2018-01-28 22:27 ` Gabriel A. Zorrilla
2018-01-29 9:16 ` Szymon Janc
2018-01-29 13:16 ` Gabriel A. Zorrilla
2018-01-30 0:52 ` Gabriel A. Zorrilla
2018-01-30 7:22 ` Szymon Janc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).