-
-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌅 GS1 "Sunrise 2027" - 2D Barcodes, GS1 Element String, and GS1 Digital Link URI support #8333
Comments
We could either let the clients handle it, and tell them to send only the GTIN part, and continue to use that as the main "code" identifier. Or better, we can let clients send the extra digits, so that we can use the GTIN part to get the product, and the other parts to update on the fly the quantity etc. for that particular product request. For apps, there's an interesting test kit with all barcodes formats: https://www.gs1us.org/content/dam/gs1us/documents/industries-insights/standards/GS1-US-Barcode-Capabilities-Test-Kit-Version-1.pdf |
I think there's some advantage to having clients send the full GS1 Digital Link URI, or the full GS1 element string. It can contain so much more information, which can be used to augment the existing data using the packaging date, expiration date, price. ProductOpener probably won't support all AIs in the beginning, but it could store distinct barcode variations to analyze the additional data later on. search_or_add will need to support the different barcode types server-side at some point in time, too. |
In Norway several grocery stores have in the last half year started using the 2D barcodes. And I suddenly experienced yesterday that I couldn’t scan and add a micowave meal I bought since it doesn’t have a EAN barcode at all on the box. Here is a translated article about it: https://e24-no.translate.goog/naeringsliv/i/8J7VmE/etter-50-aar-skal-strekkoden-byttes-ut-en-gamechanger-for-matsvinn?_x_tr_sl=no&_x_tr_tl=en&_x_tr_hl=no&_x_tr_pto=wapp I hope the app will get the possibility to scan these 2D codes or a lot of meat and other products in Norway won’t be possible to add to OFF in the future 🫣 |
@Gjermstad |
I'd like to try, but I have no idea how @hangy 😅 |
It should be possible to read the barcode with any typical barcode scanner app (ie. Barcode Scanner on F-Droid). You can usually just launch the app and point it at the barcode. However, you don't have to. I did a bit more research, and it appears the the non-printable character in the beginning actually is "FNC1", a control character that marks the barcode as a GS1 DataMatrix code. This means that |
Cool. Sorry I'm a complete noob with Github and OFF so I'm just trying to learn here and I had never seen a barcode like this before 😅 Thank you taking the time to explain. |
No worries, it's very valuable input already! 😄 On topic: I think it could be a good idea to wrap gs1-syntax-engine as a Perl module. That seems to be an official OSS C library from GS1 to help with the syntax. |
Built a PoC for the wrapper: https://github.com/hangy/stunning-goggles Basically, this allows one to pass a GS1 DataMatrix code ( Tests: https://github.com/hangy/stunning-goggles/tree/147fc4ad78df816a5c69cf520d2333431fb833d8/t |
Nothing more to do for this on my short-term roadmap. |
What
ProductOpener and related apps should support 2D barcodes - more specifically "GS1 DataMatrix" and "GS1 QR Code".
This includes support for barcodes that contain the GTIN in more formats than the current barcode.
(01)3274080005003
15
), and weight in kg with three decimals points (3103
):https://www.example.org/01/3274080005003
https://www.example.org/01/3274080005003/15/230501/3103/000123
Support can be done in stage. For example, support for the AI
01
(GTIN) could be implemented first. Supporting additional information from the GS1 URI/GS1 data string has interesting opportunities, ie. when handling Variable Measure Trade Items for later stages, though.Why
GS1 has plans to replace the current EAN/UPC barcodes by DataMatrix and QR Code barcodes to support storing more data in the barcode. Traditional and 2D barcodes will be used in parallel for a while after this, but GS1 apparently intends to stop issuing new non-2D codes starting 2027.
GS1 links
Point-of-Sale (POS) Getting Started Guid
Who for
All users of ProductOpener, and other apps that scan product barcodes for use with ProductOpener.
Tasks
The text was updated successfully, but these errors were encountered: