datamatrix-2d-decode

1.0.1 • Public • Published

Datamatrix 2D code decode

Module for parsing data read from 2D scanner, especially made for EMVS (European medical verification system). Input is some variant of these codes:

Pure FNC1 Syntax

01050004560134821000001[GS]17201200210000000001[CR]

Mixed GS1 05 syntax and german IFA / MH10.8.2 (05[GS] = 05 syntax, 06[GS] = MH10.8.2 / IFA syntax)

[)>[RS]05[GS]0105000456013482[RS]06[GS]S0000000001[GS]1T00001[GS]D201200[RS][EOT][CR]

Currently are decoded these tags, according to EMVS needs:

  • product number (GTIN)
  • expiration
  • lot
  • serial number

If you need another tags according to GS1 specifications to be decoded, don't hesitate to contact me, I'll do my best.

Scanner setup

This module to work on client side in browser, you have to setup your scanner to send also unreadable characters.

Voyager 1450g setup

User manual Page 2-17, switch on Control Character Output - this will send also unreadable characters

Page 2-3, switch to PAP124, USB Keyboard PC

Zebra DS4308 setup

Install 123Scan configuration sw and load configuration from config folder.

Output is Object with

  • productcode
  • serial_no
  • expiration
  • lot

keys decoded from scanned code.

Package Sidebar

Install

npm i datamatrix-2d-decode

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

98.1 kB

Total Files

4

Last publish

Collaborators

  • fdebef