Skip to contentSkip to conversation

hcidump replacement

DISCUSSION Dave Close 2 participants 4 messages Dec 6, 2021 – Dec 9, 2021 Bluetooth drivers

lore
Share & tools
lore

Dave Close

author
#0 lore raw

I've been recording data from a sensor using a script like this --

while read a; do
grep <pattern> $a
# do my stuff
done < <( hcidump -R )

Reading tons of web pages and mailing list entries, I still haven't found anything equivalent that doesn't use the deprecated hcidump. Suggestions appreciated.

author
#1 lore raw
Quoted 10 lines · I wrote:

I've been recording data from a sensor using a script like this --

while read a; do
grep <pattern> $a

   # do my stuff
 done < <( hcidump -R )

Reading tons of web pages and mailing list entries, I still haven't found anything equivalent that doesn't use the deprecated hcidump. Suggestions appreciated.

Is this the wrong list for my question?

#2 lore raw

Hi Dave,

Quoted 10 lines · Dave Close
Quoted 7 lines · I wrote:

I've been recording data from a sensor using a script like this --

while read a; do
grep <pattern> $a

   # do my stuff
 done < <( hcidump -R )
Quoted 5 lines
Quoted 3 lines

Reading tons of web pages and mailing list entries, I still haven't found anything equivalent that doesn't use the deprecated hcidump. Suggestions appreciated.

Is this the wrong list for my question?

Check out btmon.

Signature · 1 line
Luiz Augusto von Dentz
author
#3 lore raw
Quoted 2 lines

Hi Dave,

Quoted 10 lines · I wrote:

I've been recording data from a sensor using a script like this --

while read a; do
grep <pattern> $a

   # do my stuff
 done < <( hcidump -R )

Reading tons of web pages and mailing list entries, I still haven't found anything equivalent that doesn't use the deprecated hcidump. Suggestions appreciated.

Luiz Augusto von Dentz answered:

Quoted 1 line

Check out btmon.

Yes, I had done that. But at least the default output is much more complex than what I see from hcidump. Are there any options you can suggest that can get me closer to the older output? Is there any way to get something more easily parsable, perhaps XML?