question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Enhancement] Parser for hciconfig

See original GitHub issue

Any chance of a parser for hciconfig command - I want to monitor Up/Down status 😃

Most of it is fairly well formatted in K/V pairs (separated by a colon), except for the bit I really want 😆

$ hciconfig -a
hci0:   Type: Primary  Bus: USB
        BD Address: 00:1A:7D:DA:71:13  ACL MTU: 310:10  SCO MTU: 64:8
        UP RUNNING
        RX bytes:13905869 acl:0 sco:0 events:393300 errors:0
        TX bytes:62629 acl:0 sco:0 commands:3893 errors:0
        Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'CSR8510 A10'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Version: 4.0 (0x6)  Revision: 0x22bb
        LMP Version: 4.0 (0x6)  Subversion: 0x22bb
        Manufacturer: Cambridge Silicon Radio (10)

hci1:   Type: Primary  Bus: USB
        BD Address: 00:1A:7D:DA:71:13  ACL MTU: 310:10  SCO MTU: 64:8
        DOWN
        RX bytes:4388363 acl:0 sco:0 events:122021 errors:0
        TX bytes:52350 acl:0 sco:0 commands:3480 errors:2
        Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kellyjonbrazilcommented, Feb 6, 2021

Hi - thanks for the parser request! This looks like it would be a good addition. I’ll take a closer look at the output and see about getting this in the next release.

0reactions
kellyjonbrazilcommented, Feb 10, 2021

The new hciconfig parser has been merged into v1.14.3, now available on pypi via pip.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bluetooth Smart (LE) with Arduino and Linux
Bluetooth Smart (LE) with Arduino and Linux. Overview. This is a work in progress. I am working toward getting Bluetooth modules working with...
Read more >
How to test/debug bluetooth advertising [with hciconfig]?
Dear All, I'm trying to get "hello world" working from the shell between 2. Bluetooth 4 dongles, in LE advertising mode.
Read more >
jc/CHANGELOG at master · kellyjonbrazil/jc - GitHub
CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries.
Read more >
hciconfig Features hex codes - command line - Ask Ubuntu
I can't seem to find anywhere what the hex codes listed under hciconfig Features stand for. Does anyone know where I can find...
Read more >
Bluetooth — Scapy 2.5.0 documentation
Bluetooth Basic Rate (BR) and Enhanced Data Rate (EDR). These are the “classic” Bluetooth physical layers. BR reaches effective speeds of up to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found