Skip to content

Commit 8929cc3

Browse files
author
Martin
committed
Minor update to README and process_tp_data
1 parent 2f3dc4c commit 8929cc3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

examples/data-processing/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ The basic concept works as follows:
4242
To use the Transport Protocol functionality in other scripts, you need to make minor modifications:
4343

4444
1. Ensure that you import the `MultiFrameDecoder` class from `utils.py`
45-
2. Specify the type via the `tp_type` variable and ensure you include this in the `extract_phys` function
45+
2. Specify the type via the `tp_type` variable e.g. to `j1939`
46+
3. After you've extract the normal raw dataframe, parse it to the `tp.combine_tp_frames` function as below
47+
4. Ensure you include `tp_type` in the `extract_phys` function
4648

4749
See below example:
4850

examples/data-processing/process_tp_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def process_tp_example(devices, dbc_path, tp_type):
4343
process_tp_example(devices, dbc_paths, "j1939")
4444

4545
# NMEA 2000 fast packet data (with GNSS position)
46-
devices = ["LOG_TP/94C49784"]
47-
dbc_paths = [r"dbc_files/tp_nmea_2.dbc"]
48-
process_tp_example(devices, dbc_paths, "nmea")
46+
# devices = ["LOG_TP/94C49784"]
47+
# dbc_paths = [r"dbc_files/tp_nmea_2.dbc"]
48+
# process_tp_example(devices, dbc_paths, "nmea")
4949

5050
# UDS data across two CAN channels
5151
devices = ["LOG_TP/FE34E37D"]

0 commit comments

Comments
 (0)