UWP Bridges for Retail Applications

Sign in to queue

The Discussion

  • User profile image
    SB34

    Thanks, for this webcast ! I think that OPOS bridge needs support for more type of devices...

    The link to the sample code doesn't works, and leads to the main POS website :

     https://aka.ms/pointofservice.build2017.samplecode

     

  • User profile image
    MarcusBreda

    @SB34: Thanks for your Feedback SB34, we will check why the fwlink is not working, but you can access the code here: https://github.com/Microsoft/DesktopBridgeToUWP-Samples/tree/master/Samples/DesktopBridgeOPOSscale

    Please be sure to have POS for .net installed to be able to compile the win32 C# classical project.

     

  • User profile image
    MarcusBreda

    Forward link has been updated

    Presentation: https://aka.ms/pointofservice.build2017

    Sample Code: https://aka.ms/pointofservice.build2017.samplecode

    Please submit your feature request for Windows.Devices.PointOfService to https://aka.ms/pointofservice.uservoice.

  • User profile image
    Tim

    Many thanks for this webcast. It has helped me to understand the two different approaches for connecting a USB receipt printer to a UWP app.

    I successfully implemented the Desktop Bridge approach, exactly as per your explanation, and it works perfectly, Unfortunately, as I discovered when the time came to distribute my app, packaging a UWP app with a Win32 background process is a complicated and time-consuming manual process, with no tooling available to automate it.

    So, I decided to try the OPOS Bridge approach (clearly understanding that I would then only be able to target Creators Update). Unfortunately, contrary to your demo, this doesn't work at all; it fails when trying to find and claim the same printer that is working fine using the Desktop Bridge pattern. Specifically, when running your PosPrinter sample app, it throws an exception "A device attached to the system is not functioning" while executing GetFirstDeviceAsync().

    I know the device is functioning correctly, because other apps can access it, so I wonder if there is some additional step required to enable OPOS bridge on Creators Update?

    Thanks, in advance, for your advice.

  • User profile image
    shubham sahu

    Can we use same for usb thumb reader device

  • User profile image
    prisha

    Hi MarcusBreda

    The web cast helped me understand the concept of how to communicate between a UWP and an OPOS device. I used the DesktopBridge solution for one of the POS customer but unfortunately cusomter is not intended to use that solution

    I am trying the OPOS bridge solution as shown in the webcast and using a Windows 10 Creator machine , the UWP app throws the following error
    "A device attached to the system is not functioning"

    Here is the full stach trace:
    System.Exception
    HResult=0x8007001F
    Message=A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)
    Source=System.Private.CoreLib
    StackTrace:
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    at SDKTemplate.Scenario1_OpenDrawer.<CreateDefaultCashDrawerObject>d__8.MoveNext() in C:\Users\M-S Cash Drawer\Desktop\MSCash-POS\Windows-universal-samples-master\Samples\CashDrawer\cs\Scenario1_OpenDrawer.xaml.cs:line 144
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    at SDKTemplate.Scenario1_OpenDrawer.<InitDrawerButton_Click>d__6.MoveNext() in C:\Users\M-S Cash Drawer\Desktop\MSCash-POS\Windows-universal-samples-master\Samples\CashDrawer\cs\Scenario1_OpenDrawer.xaml.cs:line 71


    The error is thrown from GetFirstDeviceAsync() as the app try to create the device watcher for the cashdrawer instance.


    Could you please help and let me know how to resolve this problem.

    Thank you.

Add Your 2 Cents