Charles Wooley

Charles Wooley

  • NA
  • 1
  • 5.2k

PosExplorer.getDevices() not finding my USB Scale Help !!!

Feb 21 2014 2:03 PM
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.PointOfService;
using System.Collections;
namespace ScalePOS
{
class ScalePOS
{
static void Main(string[] args)
{
// Create a new instance of PosExplorer and use it to
// collect device information.
PosExplorer explorer = new PosExplorer();
DeviceCollection devices = explorer.GetDevices();
// Search all connected devices for an Scale, print its service object name
foreach (DeviceInfo device in devices)
{
if (device == null)
{
Console.WriteLine("WHY IS THIS NULL!!!!!");
}
Console.WriteLine(device.ServiceObjectName);
Console.WriteLine(device.Type);
Console.WriteLine(device.HardwareId);
Console.WriteLine(device.HardwarePath);
Console.ReadLine();
// It is important that applications close all open
}
}
}
}
 
 
I am trying to interface with a USB Scale and PosExplorer seems to not pick it up. When I run this code I get a bunch of Microsoft MSR,Scanner,Keylock simulators, but my scale is not picked up. Does anyone here know why not? Also does anyone know how to format code here so I can edit my comment to make this post more palleteable 

Answers (1)