xiaohongshu
xiaohongshu
lg
LG Innotek MPN encoding patterns, LED suffix decoding, and handler guidance. Use when working with LG LEDs, camera modules, automotive components, or LGHandler.
Full skill instructions
LG Innotek is a subsidiary of LG Corporation and a major manufacturer of electronic components, specializing in:
LG Innotek is particularly known for their high-quality LED products used in automotive lighting, display backlighting, and general illumination applications.
LG Innotek LED MPNs follow this general structure:
LG [SERIES][VARIANT][-SUFFIX]
| | | |
| | | +-- Package/variant suffix (KN, etc.)
| | +-- Variant code (color, specs)
| +-- Series identifier (R971 = LED series)
+-- LG manufacturer prefix (note: space after LG)
LG R#### where # are digits-KN)LG R971-KN
| | |
| | +-- KN = Package/variant suffix
| +-- R971 = LED series number
+-- LG = Manufacturer prefix
LG R971
| |
| +-- R971 = LED series number (base part)
+-- LG = Manufacturer prefix
From LGHandler.getSupportedTypes():
| ComponentType | Description |
|---|---|
LED | All LED products (standard, SMD, high-brightness, automotive) |
Note: The handler currently only supports the LED component type. LG Innotek also manufactures camera modules and other components, but these are not yet implemented in the handler.
The handler extracts package codes from the suffix after a hyphen:
// Format: LG [SERIES]-[PACKAGE]
// Example: LG R971-KN -> Package code: KN
// Rules:
// 1. Find the hyphen in the MPN
// 2. Extract everything after the hyphen
// 3. Return empty string if no hyphen present
| Suffix | Likely Package | Notes |
|---|---|---|
| KN | SMD package | Common LED package variant |
| (none) | Standard | Base part without package specifier |
Note: LG Innotek's full package code documentation is not publicly detailed in the handler. The current implementation extracts whatever follows the hyphen as the package code.
The handler extracts series from the base part before any suffix:
// Format: LG [SERIES][-SUFFIX]
// Example: LG R971-KN -> Series: LG R971
// Example: LG R971 -> Series: LG R971
// Rules:
// 1. Split MPN by whitespace
// 2. Take the second part (after "LG")
// 3. Remove any hyphenated suffix
// 4. Prepend "LG " to form full series name
| Pattern | Example | Series Extracted |
|---|---|---|
LG RXXXX | LG R971 | LG R971 |
LG RXXXX-XX | LG R971-KN | LG R971 |
LG R971
- Manufacturer: LG Innotek
- Type: LED
- Series: LG R971
- Package: (not specified - base part)
LG R971-KN
- Manufacturer: LG Innotek
- Type: LED
- Series: LG R971
- Package: KN variant
Parts with the same series but different or no suffix are considered replacements:
LG R971 and LG R971-KN
- Same series: LG R971
- isOfficialReplacement() returns: TRUE
LG R971-KN and LG R972-KN
- Different series: LG R971 vs LG R972
- isOfficialReplacement() returns: FALSE
The handler uses two patterns for LED detection:
// Basic LED pattern with optional suffix
"^LG\\s+R\\d+.*"
// LED pattern with explicit optional suffix group
"^LG\\s+R\\d+(-[A-Z]+)?$"
Pattern Breakdown:
^LG\\s+ - Must start with "LG" followed by whitespaceR\\d+ - "R" followed by one or more digits.* or (-[A-Z]+)? - Optional suffix (with or without hyphen)public String extractPackageCode(String mpn) {
// Returns everything after the first hyphen
// "LG R971-KN" -> "KN"
// "LG R971" -> ""
int dashIndex = mpn.indexOf('-');
if (dashIndex > 0 && dashIndex < mpn.length() - 1) {
return mpn.substring(dashIndex + 1);
}
return "";
}
public String extractSeries(String mpn) {
// Split by whitespace, take part after "LG"
// Remove any hyphenated suffix
String[] parts = mpn.split("\\s+");
if (parts.length > 1) {
String basePart = parts[1];
int dashIndex = basePart.indexOf('-');
if (dashIndex > 0) {
return "LG " + basePart.substring(0, dashIndex);
}
return "LG " + basePart;
}
return "";
}
public boolean isOfficialReplacement(String mpn1, String mpn2) {
// Same series = official replacement
String series1 = extractSeries(mpn1);
String series2 = extractSeries(mpn2);
return !series1.isEmpty() && series1.equals(series2);
}
manufacturers/LGHandler.javaLEDhandlers/LGHandlerTest.java (to be created)The current LGHandler has several limitations that may need addressing:
| Issue | Severity | Description |
|---|---|---|
| HashSet in getSupportedTypes() | MEDIUM | Uses mutable HashSet instead of Set.of() |
| Limited pattern support | LOW | Only covers LG R#### LED pattern |
| No camera module support | LOW | LG Innotek camera modules not implemented |
| No automotive component support | LOW | Automotive LEDs/sensors not implemented |
| Basic package extraction | LOW | Does not decode package codes to standard names |
HashSet with immutable Set.of(ComponentType.LED)-KN to standard package names\\s+ to handle variable whitespaceLED type"LG R971" not "LGR971""LG R971" and "LG R971-KN" should extract same seriesisOfficialReplacement(a, b) should equal isOfficialReplacement(b, a)xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience