finds.dev← search

// the find

boundarydevices/libmdi2300

★ 1 · C · NOASSERTION · updated Jan 2017

Library for Opticon MDI-2300 Barcode scanner

A minimal C library wrapping serial communication with the Opticon MDI-2300 barcode scanner. Three-function API: init, close, scan. For embedded Linux systems (the example device path `/dev/ttymxc2` is an i.MX serial port, so this is squarely aimed at embedded boards).

Clean, minimal API surface — three functions is the right scope for this problem. Cross-compilation support is baked in via CC override, which is exactly what embedded projects need. LGPL license means you can link it into commercial firmware without opening your whole codebase.

One star, zero forks, last touched in 2017 — effectively abandoned. No error codes or documentation beyond the README, so when `mdi2300_scan` returns -1 you're reading source. Hardcodes assumptions about the serial config (baud rate, parity, stop bits) without exposing them, which breaks if your scanner is configured differently. No async or timeout handling — a hung scanner blocks your thread indefinitely.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →