Sponsored

Forscan Configuration Viewer - Testers Needed

Firn

Well-known member
Joined
Aug 26, 2024
Threads
34
Messages
1,554
Reaction score
1,788
Location
USA
Vehicles
23 Pro ER
Loving the work done across the community through Livingitup's spreadsheets, Forscan, and the AB files I spend (too much) time digging into different configurations. That said, the bouncing back and forth is very time consuming and viewing it is, well, rough.

To that end I spent last night and today working to build some tools to help visualize and dig into the configurations.

Simply put, this allows you to load one sheet from the Livingitup spreadsheet, visualize it in a browser, but then also load one or more Forscan ABT export, or even the Ford As-Built file (or either or) and visualize what your individual options are.

Ford F-150 Lightning Forscan Configuration Viewer - Testers Needed Config Viewer


Ford F-150 Lightning Forscan Configuration Viewer - Testers Needed Config Viewer 2

This all runs on your own computer using python and the command line.

This is very much a work in progress and it needs validation. I'm offering it here for whomever wants to use it, I just ask you help improve it by testing it.
- The first thing I need help with is making sure it processes the Livingitup sheets properly, they were designed for a person to view, not a computer, so the structure is wonky and varies. The result is I may not have all the different variations of how the data is structured built into the parser.

Below are some instructions for how to get this up and running.
-Of note, its not built (yet) to run the entire Livingitup workbook, just an individual sheet. So make sure to download the workbook and copy the sheet you need into its own excel file and save that individually.


⚡ FORScan As-Built Config Viewer & Diff Engine: Setup Guide
This tool take a sheet from Livnitup’s Excel workbook and turns it into an offline web application. You can load your truck's backup files, overlay them against the spreadsheet to see exactly what features are enabled, and even load multiple files side-by-side to highlight the exact hex differences.

Prerequisites
You will need Python installed on your computer. If you don't have it, download the latest version from python.org. (Note: Make sure to check the box that says "Add Python to PATH" during installation).

Step 1: Install Dependencies
Open your Command Prompt (Windows) or Terminal (Mac) and install the required libraries by pasting this exact command and hitting Enter: pip install pandas openpyxl streamlit

Step 2: Set Up Your Folder
Create a new folder on your Desktop (e.g., FORScan_Viewer). Inside this folder, you will need four things:
  1. Livnitup’s Spreadsheet: Download the .xlsx file for the module you are working on (e.g., IPMA, BCM).
  2. Your Truck's Data: Have your .abt files (from FORScan) or your .ab file (from Motorcraft) handy.
  3. The Parser Script: Use the attached parser.py.txt and remove the ".txt"
  4. The Viewer Script: Use the attached viewer.py.txt and remove the ".txt"
Step 3: Run the Parser (Generate the Database)
Before the viewer can work, we need to convert the Excel spreadsheet into a smart JSON database.
  1. Open parser.py in a text editor (like Notepad or VS Code).
  2. Scroll to the very bottom and locate this line: input_file = r"C:\Your\Path\Here\Livnitups_Sheet.xlsx"
  3. Change that path to point directly to wherever you saved Livnitup's Excel file.
  4. Save the file.
  5. Open your Command Prompt, navigate to your folder (or type "CMD" in the file explorer address bar in that folder), and run: python parser.py
You should see a success message saying it parsed the memory blocks into parsed_forscan.json (saved same location as the parser.py)

Step 4: Launch the Web App
Now for the fun part. In your Command Prompt, type: streamlit run viewer.py

This will automatically open a new tab in your default web browser with the application running!

Step 5: How to Use the App
  1. Load the Database: In the left sidebar under "Data Loading", upload the parsed_forscan.json file you just generated.
  2. Load Your Truck(s): Right below that, drag and drop your .abt or .ab file. You can upload multiple files at once. The app will automatically read the FORScan (.abt) or As-Built (.ab) file apply the variable bitmasks, and highlight your exact configuration in green.
  3. The Diff Engine: If you uploaded two or more files (e.g., a factory backup and a modified file), a new toggle will appear: "⚡ Show Differences Only". Check this box, and the UI will collapse, hiding everything except the memory addresses where the trucks differ.
  4. Smart Search: Use the search box to find specific features. Type "Cruise" or "ACC" and it will instantly filter the matrix down to only those related settings.
Sponsored

 

Attachments

Last edited:

hb.sagen

Well-known member
First Name
Henning
Joined
Jul 17, 2025
Threads
23
Messages
200
Reaction score
145
Location
Norway
Vehicles
F150 Lightning 2023 Lariat
Great work!

Is it possible to highlight only the diff in a line, and not the entire line? Now it takes a little time to find in what column the diff is.
 
OP
OP
Firn

Firn

Well-known member
Joined
Aug 26, 2024
Threads
34
Messages
1,554
Reaction score
1,788
Location
USA
Vehicles
23 Pro ER
Great work!

Is it possible to highlight only the diff in a line, and not the entire line? Now it takes a little time to find in what column the diff is.
Probably, although admittedly I'm not 100% clear on what you are asking. Are you wanting to see just the lines (rows in my images) that have a difference? Right now it shows the entire table for which there is a difference (second image, bottom left corner, "diff only" checkbox).

I have a new version that shows one table and highlights the diff in different colors. Think that would do what you want?
Sponsored

 
 







Top