A customer of mine bought an RFID card reader I have to read from: the card reader will be connected through the USB port to the PC running the Ignition Client.
The card reader manufacturer SDK consists of two DLLs (binaries only, no source code). As I can see in the supplied C# example project, dll A must be imported, whereas dll B is used internally by dll A to access the USB port.
Following next blog http://blog.mwrobel.eu/how-to-call-dll-methods-from-java/
I’m planning to program a Java library of my own which uses the DLL through the sun.jna library.
Before starting I ask you: is that really feasible? My biggest concern regards the fact that the java code in my library will be called in the client context, i.e. also the DLLs will have to be downloaded by the client and I don’t know if that will be done.
Thanks in advance, regards
P.S.: If you have any experience with RFID card reader (desktop models, Europe area) with Java SDK, that will also be appreciated, just in case my customer will accept to change product.
Unfortunately the Ignition module you point to is intended for connections over Ethernet and my customer’s device will be connected to the USB port. Moreover the device manufacturer says nothing about communication protocol specs for his device.
Since you are coding in Java, check out if you can update the RFID data to a database like MySQL via JDBC/ ODBC?. If so, you can easily consume it through query tags. This is the quickest path to setup a demo for the client, IMO.
Needs some patience to dig in. This experience will make you an expert on RFID.
This card comes under ISO 14443 standard. So, irrespective of the manufacturer, any code which works for ISO 14443 standard shall work for this card also. Differences in A & B for ISO 14443
This link is very popular with RFID developers. RFIDIOt is a collection of routines designed to abstract the hardware from the function, so that a single program can provide the same functionality regardless of what reader type is plugged in.