Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Flashing Tool

This tool uses a JX1000 Multi-tester to test certain test pads on the device.

Requirements:

  • Python 3.11+
  • DFU Driver
  • dfu-util.exe

Commands:

python -m venv venv  
venv/scripts/activate.ps1  
pip install requirements.txt  
python -m gui  

Flashing Workflow Overview

App starts in Normal Flashing mode by default.

Start Application  
    ├─ Idle state  
    │      └─ Operator enters Serial Number  
    ├─ Special Command  
    │      └─ SN == "191"  
    │             └─ Open Mode Selection Popup  
    │                    ├─ Normal Flashing  
    │                    ├─ EE Test Only  
    │                    └─ Override SN  
    └─ Press Start  
           ↓  
  
  
====================================================  
Mode: Normal Flashing  
====================================================  
Start Normal Flashing  
    ├─ Validate SN format  
    │      └─ invalid → stop + log warning  
    ├─ Check Excel duplicate SN (today)  
    │      ├─ not found → continue  
    │      └─ found  
    │             ├─ operator selects NO  
    │             │      └─ stop + log "Process cancelled"  
    │             └─ operator selects YES  
    │                    └─ log "Retesting..." + continue  
    ├─ Connect tester (Modbus)  
    │      └─ fail → stop + log error  
    ├─ Enable VBUS  
    ├─ Enter boot mode  
    ├─ Flash Bootloader  
    │      └─ fail → mark Bootloader = NG  
    ├─ Flash Firmware  
    │      └─ fail → mark Firmware = NG  
    ├─ Open USB session  
    ├─ Read device SN  
    │      ├─ SN exists  
    │      │      └─ skip SN write phase  
    │      └─ SN empty  
    │             └─ Flash input SN  
    │                    └─ fail → mark SN phase = NG  
    ├─ Read device SN (verification)  
    ├─ Read SW version  
    ├─ Read HW version  
    ├─ EE Voltage Test  
    │      └─ any pin NG → mark EE_Test = NG  
    ├─ Disable VBUS   
    ├─ Write Excel log  
    │      ├─ Serial Number = device SN  
    │      ├─ Phase results  
    │      └─ Final Result = PASS / NG    
    └─ Update GUI result + unlock controls  
  
  
====================================================  
Mode: EE Test Only  
====================================================  
Start EE Test Only  
    ├─ Connect tester (Modbus)  
    │      └─ fail → stop + log error  
    ├─ Enable VBUS  
    ├─ Open USB session  
    ├─ Read device SN  
    ├─ Read SW version  
    ├─ Read HW version  
    ├─ EE Voltage Test  
    │      └─ any pin NG → mark EE_Test = NG  
    ├─ Disable VBUS  
    ├─ Write Excel log  
    │      ├─ Serial Number = device SN  
    │      └─ Result = PASS / NG  
    └─ Update GUI result + unlock controls  
  
  
====================================================  
Mode: Override SN  
====================================================   
Start Override SN  
    ├─ Connect tester (Modbus)  
    │      └─ fail → stop + log error  
    ├─ Enable VBUS  
    ├─ Open USB session  
    ├─ Clear SN memory  
    ├─ Toggle VBUS  
    ├─ Re-open USB session  
    ├─ Read device SN  
    ├─ Disable VBUS  
    ├─ Skip Excel logging  
    └─ Return control to GUI  

Author: Neriton Pacarizi

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages