locked
POS4Net Honeywell Voyager 1202g Problem RRS feed

  • Question

  • Hi,
    I am using Honeywell Voyager 1202g (Wireless Barcode Scanner), which modul is connected throught USB. I am trying to read data from it throught Visual Studio 2010 Professional C#(on Windows 7) using POS4Net downloaded from Honeywell official site. I've got to a point where I can recognize explorer.DeviceAddedEvent which is fired succesfully when I connect the scanner to USB. after I'm creating instance of scanner and trying to open it(scanner = (Scanner)explorer.CreateInstance(e.Device); scanner.Open();). This is where the problem is. The "scanner.Open();" is failing: "PosControlException was unhandled by user code: PosControlException: Unable to Open Device :". When I look at details of error i see Error Code : "Microsoft.PointOfService.ErrorCode.NoService". Hope somebody can help me.
    Here's my code: 

        public partial class Form1 : Form
        {
            PosExplorer explorer;
            Scanner scanner;
            public Form1()
            {
                InitializeComponent();
    
                explorer = new PosExplorer(this);
                explorer.DeviceAddedEvent += new DeviceChangedEventHandler(explorer_DeviceAddedEvent);
            }
    
            void explorer_DeviceAddedEvent(object sender, DeviceChangedEventArgs e)
            {
                if (e.Device.Type == "Scanner")
                {
                    scanner = (Scanner)explorer.CreateInstance(e.Device);
                    scanner.Open();
                    scanner.Claim(1000);
                    scanner.DeviceEnabled = true;
                    scanner.DataEvent += new DataEventHandler(scanner_DataEvent);
                    scanner.DataEventEnabled = true;
                    scanner.DecodeData = true;
                }
    
            }
    
            void scanner_DataEvent(object sender, DataEventArgs e)
            {
                ASCIIEncoding encoding = new ASCIIEncoding();
                scanner.DataEventEnabled = true;
                lblOutput.Text+="encoding.GetString(scanner.ScanDataLabel)";
            }
        }

    Additional info: I was trying to use POS4NET Configuration and Validation Utility downloaded from Honeywell official website. I am not sure if I am using it correctly but I also recieve an error Open : NoService. By the way in Notepad after scanning barcode the text appears. And in Device Manager I see the scanner in Keyboard tab and in HID tab.

    Thank you in advance.
    Best Regards
    Juraj.


    • Edited by Durisvk Sunday, February 22, 2015 5:20 PM mistake
    Sunday, February 22, 2015 12:07 PM

All replies