fix(nimble): Add support to parser script to parse logs with/without ts

Introduced a new "--has-ts" input parameter to script to detect if logs
has timestamp information or not
This commit is contained in:
Rahul Tank
2025-07-21 13:56:14 +05:30
parent 6013186591
commit ff57a02d00
2 changed files with 44 additions and 22 deletions
+14 -1
View File
@@ -45,10 +45,23 @@ Alternatively, manually create a log file containing HCI data in the expected fo
### **Running the Script**
Timestamp information is now included as part of the dump. The log looks like below, where
the first 8 bytes contains timestamp information:
00 C:49 ed 01 00 00 00 00 00 03 0c 00
01 E:8e f0 01 00 00 00 00 00 0e 04 05 03 0c 00
If timestamp information is not present, then same log would look like:
00 C:03 0c 00
01 E:0e 04 05 03 0c 00
The script takes "--has-ts" parameter, if output log has timestamp information
To parse the logs and generate a BTSnoop file, run:
```bash
python bt_hci_to_btsnoop.py -p <input_log_file> -o <output_tag>
python bt_hci_to_btsnoop.py -p <input_log_file> -o <output_tag> [--has-ts]
```
#### **Parameters**