Search code examples
socketscan

SocketMobile Scan Data in SPP mode


I'm using a SocketScan Mobile scanner in SPP mode. When I read the scanned data I get a Unicode prefix/suffix appended to the barcode text (which does not appear to be encoded in Unicode). I've set the scanner to "data as is" mode, using the No Prefix or Suffix barcode (#FNB 4160C100000#) found in the Command Barcodes manual. I was not expecting to see any prefix or suffix. The Unicode encoding does not decode into anything meaningful.

Can someone tell me what is being prepended/appended when I read the raw data from the COM port?

I suspect it is information on the type of barcode scanned. Here is an example of what I get when I scan the barcode EQ0000013158 (I think it's a UPC-8 code, but not sure):

\u0002\0)\0d\u0001\0\u0017\0\0\0\0\0\f\0\u0001\0\u0006EQ0000013158\r]C0DB3`E5\u0003

Even better can someone point me to a technical manual that describes what these codes mean?


Solution

  • In SPP mode, the Scanner is using a protocol. That's is what you're seing. In your case the protocol starts by 02 and ends by 03.