I'm developing app for device Zebra MC33.
I need parse GS1_EXP barcode according it's to groups.
Example of barcode with two groups:
(01)12345678901234(10)ABCD1234
There are 2 similar questions and I thing they are not answered.
GS1-128 barcode parsing
GS1 barcode parsing
I know about just 2 methods how to get data from the scanner in my code:
data.getData();
or
data.getRawData()
Full example of method where data came from scanner and I'm able to manipulate it:
public void onData(ScanDataCollection scanDataCollection)
{
...
if (scanDataCollection != null && scanDataCollection.getResult() == ScannerResults.SUCCESS)
{
ArrayList<ScanDataCollection.ScanData> scanData = scanDataCollection.getScanData();
for (ScanDataCollection.ScanData data : scanData) {
// Get the scanned data
data.getData();
}
}
...
}
Both methods retun symbols which are the same as visible for humans. And I can't detect special FNC1 character which is delimiter between sections.
Does somebody knows how to parse barcodes correctly?