GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - benlec/fnirsi-lcr-p1-toolkit: Stream FNIRSI LCR-P1 measurements over USB and use MCP to flag transistor, JFET and germanium diode readings that fall outside datasheet expectations. Built for guitar-pedal makers.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.kiro
.kiro
 
 
datasheet-explorer
datasheet-explorer
 
 
datasheets
datasheets
 
 
firmware-patcher
firmware-patcher
 
 
lcr-p1-mcp
lcr-p1-mcp
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

FNIRSI LCR-P1 Toolkit

Make the cheap (~€25) FNIRSI LCR-P1 component tester stream its readings over USB, then let an AI agent (MCP) flag fake or out-of-spec transistors, JFETs and germanium diodes against their datasheets — under the tester's own bias conditions. Built for guitar-pedal and amp builders who buy parts that are sometimes relabelled or out of spec.

What it is not. The LCR-P1 tests at a single low-current bias point. This project can catch a gross mismatch (wrong type, gain far out of range, a silicon diode sold as germanium); it can never prove a part is genuine — that needs multi-point curve tracing or decapping. Every verdict carries this limitation.

Example

You:   I just tested this 1N34A — is it real germanium or a fake?
Agent: Reading: Vf 277 mV, reverse leakage 809 nA shown (~8 µA real), Cap 5 pF.
       Verdict: consistent with real germanium.
       - Vf 277 mV is below 300 mV — germanium, not silicon (silicon reads ~600-700 mV).
       - Leakage ~8 µA is the decisive tell: real germanium leaks in µA; a fake barely
         leaks (tens of nA). Two fakes you tested earlier read Vf ~410 mV and leakage
         ~5-7 nA — clearly not germanium.
       Limitation: a single low-bias reading flags a mismatch; it can't prove authenticity.

(Photos below: a component-card SVG, and a measured point overlaid on the datasheet's hFE-vs-Ic curve — add a screenshot here before publishing.)

The three blocks

Block Role Details
firmware-patcher/ Patches an official LCR-P1 firmware so the meter streams every value it draws on its LCD over USB-C serial. Stock firmware sends nothing. firmware-patcher/README.md
lcr-p1-mcp/ Reads that serial stream and exposes it as an MCP server: live measurements, interpretation, plausibility flags, persisted history, component-card SVGs. lcr-p1-mcp/README.md + lcr-p1-mcp/docs/test-bench-*.md
datasheet-explorer/ Turns a datasheet PDF curve back into calibrated (x, y) data, so a measurement can be placed on the manufacturer's curve ("carnet de santé"). Vector PDFs only. datasheet-explorer/README.md + datasheet-explorer/docs/

Plus datasheets/ — a drop zone for datasheet PDFs you supply (git-ignored, not shipped: vendor copyright), and .kiro/ — the Kiro agent, steering and skills (below).

How a conformance check flows

  1. Connect the LCR-P1 to the computer over USB-C (it appears as the CH340 serial port, typically COM3 on Windows). Place a part in the tester and press TEST. The patched firmware then streams the reading over that serial port.
  2. The lcr-p1 MCP server parses it into a measurement (with quirks handled: Idss ÷10, the hard-coded JFET pinch-off zero, the diode Ir ÷10, the "Cap" artefact).
  3. The agent picks the matching skill and judges the reading:
    • Number check (Zener, diode, R/L/C, MOSFET Vth) → datasheet value via the datasheets.md MCP (get_unified_datasheet), or a PDF you dropped in datasheets/.
    • Curve check (BJT hFE-vs-Ic, JFET transfer) → the datasheet-explorer MCP extracts the curve and the skill overlays the measured point on it.
  4. The verdict is consistent / borderline-consistent / inconsistent, always with the single-bias limitation. See datasheet-explorer/docs/extraction-logic.md for which families use a curve vs a number check.

Example prompts

You talk to the agent in plain language (French or English). It reads measurements live from the lcr-p1 MCP; you test at your own pace and tell it when a reading is ready.

  • Show a reading — "affiche-moi la dernière mesure" / "montre-moi la mesure 11". It shows the component card and stops; it does not auto-run a conformance check.
  • List recent readings — "affiche-moi les dernières mesures". A table, not a card each.
  • Declare a part, then check it — "je viens de tester un 2N5089, c'est un vrai ?" / "vérifie la conformité". It records the declared part number, reads the datasheet, and judges; for a BJT/JFET it overlays your point on the datasheet curve.
  • Germanium fake screening — "ce 1N34A est-il un vrai germanium ou un fake ?". It uses Vf and the reverse leakage (the decisive tell: real germanium leaks in µA, a fake barely leaks).
  • A reading the tester mis-detected — if the LCR-P1 reports something implausible (e.g. an IC read as a JFET), the agent flags that the detection is out of the tester's domain rather than judging it.

The agent never waits on hardware: ask, test, then say "c'est prêt" / "j'ai testé".

The Kiro agent, steering and skills (.kiro/)

  • Agent agents/component-iq.md — the conversational assistant; routes to the right tools/skills.
  • Steering (always-on knowledge):
    • steering/component-conformance.md — the conformance method: procedure not profiles, verdict vocabulary, what the tester can and cannot prove, where datasheet values come from.
    • steering/fnirsi-lcr-p1-serial-patch.md — the single source of truth for the firmware reverse-engineering: flash layout, hook/stub design, serial protocol, and the playbook for when a new official image breaks the patcher.
  • Skills (one per component family, loaded on demand):
    • check-bjt-consistency — bipolar transistor (hFE-vs-Ic curve).
    • check-jfet-consistency — JFET (Idss ÷10, |VGS(off)|, transfer / Idss-relation curve).
    • check-diode-consistency — diode, with emphasis on spotting fake germanium (low Vf + clear µA leakage = real; near-zero leakage = not germanium). Ir ÷10 handled; Zener out of scope.
    • match-transistors — pair/sort a batch of transistors (on hold).

MCP clients

The two MCP servers (lcr-p1-mcp, datasheet-explorer) are standard stdio uv run scripts, so any MCP client can use them — Kiro, Claude Desktop, Claude Code, etc. The agent, steering and skills in .kiro/ are Kiro-specific; with another client you drive the same MCP tools yourself (or port the skills' procedure).

Why not just …?

Each piece has neighbours on GitHub; the combination (cheap tester → serial → AI agent → datasheet verdict, aimed at pedal builders) is what's new.

  • … a flasher like threebytesfull/flash-lcr-p1 or bigtimer-dev/lcr-p1-linux? Those flash/mod the LCR-P1. This patcher instead makes stock firmware stream its readings, finds every hook by content, and emulates the patched image (Unicorn) before writing it — refusing an image that fails a check. (The reverse-engineering was cross-checked against bigtimer-dev/lcr-p1-linux; credited in the steering doc.)
  • … Sightings for the Peak Atlas DCA75? The closest analogue (curve sweeps, pedal matching) — but it needs a ~€150 Peak tester. This targets the ~€25 FNIRSI and compares to datasheets.
  • … an SCPI MCP server (SCPI_MCP, pyvisa-mcp)? Those drive bench scopes/PSUs/DMMs over SCPI. This is the first MCP for a handheld component tester, and it explains how the tester biased the part so a reading can be judged against a datasheet condition.
  • … a datasheet curve digitizer (pdf2plot, unplotter)? That field is crowded; here it is a supporting piece (datasheet-explorer), not the point. The point is the fake/out-of-spec verdict.
  • … an "AI detects counterfeits" repo? Those target ICs via images/ML. This does discrete parts (BJT/JFET/diode), and is honest that one bias point cannot prove authenticity.

Tooling conventions

  • Python is run with uv, never pip: uv run --no-project --with <pkg> python .... The MCP servers are uv run scripts with PEP 723 headers.
  • Datasheets are never auto-downloaded (vendor anti-bot blocks it) and web_fetch cannot read a PDF. Get numbers from the datasheets.md MCP, or drop the PDF into datasheets/.
  • Datasheet values are never invented: every range traces to datasheet text actually read, or is labelled "general knowledge, unverified".

Status

Validated end-to-end on real hardware for BJT, JFET and diode (incl. germanium fakes). The MCP servers run in Kiro; the patcher reproduces its reference hashes. Remaining number-check families (Zener, MOSFET, R/L/C) can be added as short skills on the diode/JFET model.

About

Stream FNIRSI LCR-P1 measurements over USB and use MCP to flag transistor, JFET and germanium diode readings that fall outside datasheet expectations. Built for guitar-pedal makers.

Topics

component-testercortex-m0counterfeit-detectiondatasheetdiy-electronicsfake-componentsfirmware-patchfnirsigermaniumguitar-effectsguitar-pedalshfelcr-p1mcpmcp-servermodel-context-protocolreverse-engineeringtransistor-matchingtransistor-testerunicorn-engine

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.