Elektrine lite

← Feed

@azonenberg@ioc.exchange

2026-09-19 20:32 UTC

I love industry standard barcode formats. Since it's a standard, all you have to do is implement what the standard says and you're golden. There's no chance anybody might do something weird...

Replies (1)

  • @azonenberg@ioc.exchange 2026-09-19 20:51

    I'm now able to parse every digikey, mouser, or in house datamatrix barcode I've tested it against. There's a few caveats: * Manufacturer name (1V tag) is not present in most or all digikey barcodes. You can probably look it up in their API, or in some but not all cases there's a numeric vendor ID encoded in the digikey part number prefix * Pre 2018 digikey bags use a 1d barcode containing only a numeric ID that i don't know the meaning of * Avnet, newark, and farnell are not tested. I either didn't have parts from them to check, or the barcodes were damaged and unscannable * LCSC uses a completely different format (JSON in QR, not ECIA format 06 in datamatrix). This looks straightforward to parse but will be a different code path.

    Open ##4768964