Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] +BIEV dissection improvements

From: Damian Stevenson <stevensondam@xxxxxxxxx>
Date: Thu, 4 Jun 2020 20:19:54 +0200
Would to request improvements on HFP dissection: recognize value as battery percentage.

On my Samsung Galaxy Buds, +BIEV is used to receive battery level of the earbuds over bluetooth.
The format is as follows: "AT+BIEV=2,95"
Where the 2 is the value to design that next comes common battery level. After the comma there can be any integer value (preferably 0~100), which represents the minimum battery level shared by both earbuds, not including the charging case. One of them can be disconnected.
Example: left=100, right=95, charging case=40 => reported battery level is 95. After the decimal values closes with 0x0d9c.

Hexdump of wireshark line pcap:
00000000: 62 74 73 6E 6F 6F 70 00  btsnoop.
00000008: 00 00 00 01 00 00 03 EA  ........
00000010: 00 00 00 1B 00 00 00 1B  ........
00000018: 00 00 00 01 00 00 00 00  ........
00000020: 00 E2 84 2E F4 BD D4 3C  .......<
00000028: 02 0C 20 16 00 12 00 43  .. ....C
00000030: 00 21 FF 1B 01 41 54 2B  .!...AT+
00000038: 42 49 45 56 3D 32 2C 39  BIEV=2,9
00000040: 35 0d 9C                              5..