Service Object Installation (Newbie Question)

Locked Service Object Installation (Newbie Question)

  • Wednesday, February 08, 2012 5:50 PM
     
     

    I am completely new to POS for .Net, so apologies for the newbie question. Working through the Microsoft examples, I believe that I have built my first (dummy) service object DLL.

    I now need to install it, I believe, but do not know how.

    I found a web link that suggested copying the DLL to "C\:Program Files\...\Control Assemblies\". I found the "Control Assembllies" folder, but under "C:\Program Files (x86)\..." and have copied the DLL to there.

    However, using "posdm LISTSOS" from the command line, I see all the service objects in the two example DLLs, butno reference to my own.

    Would anybody have a good idea regarding what I have failed to do or done incorrectly?

    Thanks in advance, Andy

All Replies

  • Wednesday, February 08, 2012 6:06 PM
    Answerer
     
     

    Place the DLL in the C:\Program Files (x86)\Common Files\microsoft shared\Point Of Service\Control Assemblies. If the SO doesn't have the PnP ID for the device built in, you will have to create an XML file referencing your SO by name, and place it in C:\Program Files (x86)\Common Files\microsoft shared\Point Of Service\Control Configurations.

    FYI - there is a book on POS for .NET that covers some of this: http://www.annabooks.com/Book_PGPOS.html. there is also a GUI utility to work with service objects: http://www.seanliming.com/POSforNET.html

    -Sean


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NET

  • Wednesday, February 08, 2012 6:10 PM
     
     

    Thanks for the quick response, Sean

    I think that I have the PnP ID in:

            [HardwareId(@"HID\\Vid_0403&Pid_de52",
                        @"HID\\Vid_0403&Pid_de52")]

            [ServiceObject(
                DeviceType.Msr,                         // Magnetic Stripe Reader (for now)
                "ServiceObjectTemplate",
                "Advanced Sample MSR Object",
                1, 0)]

    These match the device that I plugged in.

    Thanks for the links to the books. Slight problem is that as I am in the UK, I can'y buy the ebook.  Amazon et al will not sell them outside the US. :(

    /Andy


    • Edited by AndyJGraham Wednesday, February 08, 2012 6:20 PM
    •  
  • Thursday, February 09, 2012 1:36 AM
    Answerer
     
     

    The @ sign in the hardware ID doesn't look correct. Remove them and see what happens.

    I have had several orders from the UK for the ebook. There should not be block as I see the settings for the book to sell to the UK. If you have Kindle for PC, you can purchase books online, and they can be viewed on any kindle reader.

    -Sean


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NET

  • Monday, February 13, 2012 10:46 AM
     
     

    Thanks, Sean. I managed to buy the book and am now working through it.

    /Andy

  • Friday, February 17, 2012 5:41 PM
     
     

    Having worked through the "Avery scale" service object exercise in Sean's book, I find that I cannot get the project to clean compile. (I am writing in C# and using Visual Studio 2008 if that make a difference.)

    I get four error messages, each very similar, saying that the DataEvent, ErrorEvent, DirectIOEvent and StatusUpdateEvent are never used.

    Sorry if this should be obvious, but any ideas what I have done wrong?

    Thanks in advance,

    /Andy


    • Edited by AndyJGraham Friday, February 17, 2012 5:43 PM
    •  
  • Friday, February 17, 2012 11:32 PM
    Answerer
     
     

    2008 might make a difference, and I don't have it installed anywhere. you could put a dummy call that rerturn nothing in the functions.

    -Sean


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NET