visual studio - using multiple usb rfid readers on a raspberry pi 3 running Windows 10 IoT and a c# universal app -
i'm hoping smarter me can come solution problem.
i have kiosk application has 2 usb rfid readers plugged raspberry pi 3 running windows 10 iot c# uwp app written in visual studio. rfid readers act keyboards. read id on rfid token "type" in , press enter.
i need able tell rfid reader reading tag @ given time.
using following project : http://www.codeproject.com/articles/17123/using-raw-input-from-c-to-handle-multiple-keyboard on windows 10 machine multiple usb rfid readers plugged in can tell rfid reader being used cannot work on raspberry pi running windows 10 iot core.
i have create uwp app using windows.devices.humaninterfacedevice namespace , can reader show cannot open it.
the code using is:
string selector = hiddevice.getdeviceselector(0x0001, 0x0006, 0x08ff, 0x0009); var hiddevice = await hiddevice.fromidasync(selector, fileaccessmode.read); var inputreporteventhandler = new typedeventhandler<hiddevice, hidinputreportreceivedeventargs>(this.oninputreportevent); hiddevice.inputreportreceived += inputreporteventhandler;
when configure package.appxmanifest with:
<devicecapability name="humaninterfacedevice"> <device id="vidpid:08ff 0009"> <function type="usage:0001 0006"/> </device> </devicecapability>
and compile application error:
error dep0700 : registration of app failed. appx package's manifest invalid.: cannot register package because of problem function element usage:0001 0006: value blocked, , not allowed on bus (0x80073cf6)
so looks microsoft has blocked access rfid reader using windows.devices.humaninterfacedevice namespace (https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.humaninterfacedevice.aspx) because has been classed being in a top level application collection.
so options are:
try , raw input app working (from link codeproject site above) don't think work on pi due underlying calls making.
put different os on pi , rewrite kiosk application (i rather stick windows iot , c# uwp app.
think of different solution hope smart person reading post able suggest.
any suggestions welcomed!
Comments
Post a Comment