Zebra newbie here. I got the Linux SDK going with an MS4717 scanner, and working to adapt the console-app sample code to 1) enable the scanner, 2) capture a barcode (various flavors, e.g. UPC-A, GS1 Databar…) and then 3) disable the scanner until it's needed again.
Using OnBarcodeEvent, scanner output arrives as rawdata including a datalabel, and datatype. According to the SDK developer's guide , the latter (datatype) indicates the barcode type and that it correlates to a SNAPI or IBM Hand-held communication protocol.
I can’t figure out or find a reference on where, and/or how, to apply the communication protocol in order to process the raw data and produce the human legible value contained in the barcode.
Looks like OnBinaryEvent might have that transformation within, and could be another option, but I've not come across an example on how to use it in the sample code.
Bottom line, how do I convert raw data into a human legible string and/or is there a better way I ought to consider?
Thanks for the help. Hard to believe how much time I've spent on this already...
Luis
2 Replies
Hi Luis ,
Data type is basically barcode type .
Check full table starting from page 40 in following manual
https://www.zebra.com/content/dam/zebra_new_ia/en-us/manuals/software/s…
Data label is your decoded barcode content in hex format which you can convert into ascii .
Best regards
Riad
Got it. Somehow had not come across anything that explains the data label is the decoded barcode in hex. Good to know. Thanks, Riad.