I use a barcode scanner to read medecine GS1 datamatrix codes. I need the entire data sequence, including Group Separators to parse the code in order to seek for Application identifiers (AI) and get the data accordingly. The target is a winforms C# application, it will call the NMVS services to check medecines status. Actually i put a TextBox as the target control but its content does not contain the GS anymore.
Thank you for your help
If I manually fill the textbox with 0x1D (ASCII 29) chars as separators, it works like a charm. The GS1 parser finds the AI and I can extract data. If I open Notepad++ with focus on it and scan a code, the special characters are present. I setup my scanner, NETUM C750 model, to map the function keys, so that the separators are included into the buffer.
As Barcode scanner is considered a keyboard, I found out to catch the keypress event, so that I fill a char list.
After that, I parse the char list as the GS1 content, and I can call the NMVS service :
then process response