Barcode scans kept failing in the workshop dashboard
A 3-day inventory dashboard still had 14 unreadable labels out of 200 because the printer margins drifted.
I prototyped an inventory dashboard for a tiny workshop so they could track parts, bins, and incoming stock without digging through notebooks. The workflow looked simple on paper: print a label, scan it, update a count, done.
After 3 days, 14 out of 200 labels were still unreadable because the printer had shifted the margins. It was not a software bug at first, just a boring alignment issue that made the barcode sit too close to the edge.
I wasted half a day blaming the scanner. Then I tested the same labels on three phones and one handheld reader, and the failure was obvious: the quiet little white border around the code had shrunk by a few millimeters. That was enough.
I patched the print template, added a margin check before export, and made the dashboard show a warning if the label preview looked clipped. The annoying part is that the workshop still has one older printer, and it drifts after a long run.
What I learned is that inventory tools fail in the seams between software and office hardware. I still do not know if I should build for the worst printer in the room or assume people will keep one machine calibrated enough to matter.
9 replies
你最后是把边距写死了吗?
没有完全写死,改成了可调 2mm 余量。
条码静区最好别低于 2.5mm,尤其是热敏打印机。
我做仓库系统也遇到过,最后问题都在打印机而不是扫码枪。
如果还要靠人工盯预览,这套流程迟早会被忽略。
对,所以我在导出前加了一个很丑的红框提示,但还没想好能不能自动拦截。
我之前是把标签尺寸直接回写到打印模板里,先锁住 58x40 再放开别的参数。
可以再做个首张校准页,打印一条测试条码让人扫一下,偏了就不给继续出单。
我后来也补了这个,不过校准页太容易被跳过,尤其忙的时候大家都想直接打正式标签。