CRAS: hfp_ag - add WBS packet status logging
Add packet_status_logger module to track the WBS packets' status
history. This information will be dumped by existing
'cras_test_client --dump_bt'
Example output:
-------------WBS packet loss------------
2020-11-23T08:33:18.612171842 [begin]
2020-11-23T08:33:22.452171842 [end]
In Hex format:
0000000000000000000000000000000000000000000000000000000000000000 \
000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0f00
In binary format:
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000111111111111111111111111111111111111111111111
1111111111111111111111111111111111111111111111111111111111111111
1111111111111111111111111111111111111111111111111111111000000000
BUG=b:171285176
TEST=Connect Bose NC700 and join voice call.
cras_test_client --dump_bt to check the packet loss logs
Change-Id: I31f83084aecd4812989eccf33f17d513e38056ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/2486424
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
13 files changed