RFID reader stops scanning after an hour
Posted: Mon Oct 19, 2020 4:41 am
My company is in the final stages of developing a retail product which uses the 1024_0B device. We predict that we will sell hundreds of these devices per year, each on using a single Phidgets RFID device. The software is written in C# as a Win32 app using .NET Core 2.1 and the Phidgets NuGet package and it will only run on Windows 10 (with all hibernation settings disabled), although I have got to the point where I am thinking the problem is at a lower level than the C# code for reasons I will explain.
There is a point in the software where the user can scan an RFID card which we know works with the 1024_0B. The software calls the RFID Open() function, waits for a second, and then sets AntennaEnabled to true. There is an immediate call afterwards to query the AntennaEnabled property to verify is OK. It also turns on the external light on DigitalChannel 1 to give the visible feedback that it is ready to go.
For about an hour or so the software is able to read correctly, via the Tag event, and I cannot get it to fail during this time window. However, the ability to get a tag reading fails after an hour or so and then I can't get it to work at all. I can still successfully turn the light on and off, and the AntennaEnabled and Attached properties still report true. I have tried permutations of opening and closing the connection and setting the AntennaEnabled property more often but none of these combinations make a difference. NB I never actually turn the AntennaEnabled property to false, depeing upon the context I either process the results of the Tag event or ignore it.
The thing that makes me wonder if something is happening at a deeper level is that I can tidily close the Win32 app and restart it and the device still fails to read (Attached property still reports true). However, if I pull out the USB cable and then reconnect the Tag function works correctly again.
Have you seen this problem before, and are you able to offer any suggestions as to why this is happening? I would be very grateful for help, I have spent quite a few days continually coming back to this and it is now delaying the initial launch of our product.
With thanks,
Jon Perkins
There is a point in the software where the user can scan an RFID card which we know works with the 1024_0B. The software calls the RFID Open() function, waits for a second, and then sets AntennaEnabled to true. There is an immediate call afterwards to query the AntennaEnabled property to verify is OK. It also turns on the external light on DigitalChannel 1 to give the visible feedback that it is ready to go.
For about an hour or so the software is able to read correctly, via the Tag event, and I cannot get it to fail during this time window. However, the ability to get a tag reading fails after an hour or so and then I can't get it to work at all. I can still successfully turn the light on and off, and the AntennaEnabled and Attached properties still report true. I have tried permutations of opening and closing the connection and setting the AntennaEnabled property more often but none of these combinations make a difference. NB I never actually turn the AntennaEnabled property to false, depeing upon the context I either process the results of the Tag event or ignore it.
The thing that makes me wonder if something is happening at a deeper level is that I can tidily close the Win32 app and restart it and the device still fails to read (Attached property still reports true). However, if I pull out the USB cable and then reconnect the Tag function works correctly again.
Have you seen this problem before, and are you able to offer any suggestions as to why this is happening? I would be very grateful for help, I have spent quite a few days continually coming back to this and it is now delaying the initial launch of our product.
With thanks,
Jon Perkins