I have this LS 2208 barcode scanner that used to work until recently when my
test environment crashed and the IT department had to reformat the HD and
reinstall Windows XP. After the computer came back, i started to re-install
all the POS devices and the barcode scanner is the only one I don't know how
to make it woek again. It simply drives me crazy, knowing that it worked a
few weeks ago and now it's not working anymore.
My environment is windows XP with VS2005 (so .NET Framework 2.0). I have POS
for .NET 1.1 and since that required it, I also had to install .NET Framework
1.1). Symbol told me to download the latest OPOS driver, which is version
3.24.
Can anyone give me some ideas what else to try? I spoke with technical
support from Symbol, and they tell me they haven't tested it under a .NET
environment, but I know for sure it worked.
Thanks in advance for any suggestion,
Eddie
Thanks to Mr, Liming's book (p. 88), I was able to prepare a working
config file for my Symbol LS2208:
<PointOfServiceConfig Version="1.0">
<ServiceObject Type="Scanner" Name="Example Scanner" Override="yes">
<HardwareId From="HID\VID_05E0&PID_1300"
To="HID\VID_05E0&PID_1300" />
</ServiceObject>
</PointOfServiceConfig>
Now the object is created successfully, I can open it, claim it and enable
it. The Data Event is fired, but when I try to decode the scanned data, it's
not coming well formated. Here is that code:
protected void OnDataEvent(object source, DataEventArgs e)
{
Byte[] abyScanData = m_Scanner.ScanData;
//Decode ASCII
string strData = Encoding.ASCII.GetString(abyScanData);
MessageBox.Show(strData);
// re-enable the device
m_Scanner.DataEventEnabled = true;
}
Tracing inside this call I can see some ASCII characters, including the
barcode scanned, but there are other illegal characters that make the string
un-displayable.
Any thoughts?
Regards,
Eddie
Regards,
Sean Liming
www.sjjmicro.com / www.seanliming.com
Author: Windows Embedded for Point of Service / POS for .NET Step-by-Step
http://www.sjjmicro.com/WEPOS.html
"Eddie Lascu" <Eddie...@discussions.microsoft.com> wrote in message
news:861E190D-DCC2-450F...@microsoft.com...
Sorry, the XML config file came from a different post I found on this forum.
My XML config file looks like this:
<PointOfServiceConfig Version="1.0">
<ServiceObject Type="Scanner" Name="Example Scanner">
<HardwareId From="HID\VID_05E0&PID_1300"
To="HID\VID_05E0&PID_1300" />
<HardwareId From="HID\VID_05E0&PID_1300&Rev_0201"
To="HID\VID_05E0&PID_1300&Rev_0201" />
</ServiceObject>
</PointOfServiceConfig>
I do have a Quick Start Guide with lots of bar codes in it. One says
<Data><Suffix>, but it didn't make a difference. I will call Symbol and will
ask them about ways to solve this issue.
Thanks for your suggestions,
Eddie
"Sean Liming (eMVP)" wrote:
>
> 1. One catch in your XML below '&' should be '&'
I spoke with Tech Support from Symbol and they think that those extra
characters I get are not because of some settings I have in the scanner. We
switched the device to Keyboard Emulation and I get the barcodes coming up
clean in Notepad.
Just to give you an idea, I was playing with the label from a bottle of
water, scanning the UPC code. The code is "0 121590 8" but when the app
decodes it it returns: "\0\r%%\001215908\n" where the two '%' are in fact
holders for some squares that are undisplayable characters.
Got any idea?
Regards,
Eddie
"Sean Liming (eMVP)" wrote:
>
> 1. One catch in your XML below '&' should be '&'
Maybe someone else has an idea.
Regards,
Sean Liming
www.sjjmicro.com / www.seanliming.com
Author: Windows Embedded for Point of Service / POS for .NET Step-by-Step
http://www.sjjmicro.com/WEPOS.html
"Eddie Lascu" <Eddie...@discussions.microsoft.com> wrote in message
news:D031F762-22B7-4C4F...@microsoft.com...