-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reader for OMNI RING #9
Comments
There is a app called "Smart Card Reader" on F-Droid that supposedly let's you use your phone a reader over IP to your computer. I could never get it to work but it is worth exploring. Also, there is a code sample that builds a cordova app with smartcard access that might be a starting point: https://github.com/dcdc-io/node-gp-phonegap - it doesn't do app installs but that's only because it doesn't have the commands to do it written in there yet. On other reader hardware, I'll check when I'm back in the office what models I have used. |
Thank you. I tried the Smart card reader, but I did 't find yet an available vpcd software for host. I' ll keep searching. But thank you! |
So my reader on my desk is a HID OMNIKEY 5422 and it hasn't had any issues with any rings. I've abused them quite a lot and not bricked one yet, so I'd recommend it. I'm still planning to make a working example using node-gp to write a ring via a smartphone but unfortuanately I have a lot of other projects to clear first. Tha said, I wrote node-gp so if you do want to start working on something smartphone enabled with node-gp I'll happily answer technical questions about it in the meantime. |
Okay, update. Here is a barely tested version of code that will write an applet from a phone: https://github.com/dcdc-io/node-gp-phonegap/tree/dev-auto-install-ndef-tag To build this on a new Windows 10 machine last night, I had to:
And finally to run it:
As ever with Cordova, you can debug in Chrome at In this example, when a device is presented it will automatically install the famed NDEF tag applet, turning your ring into an writable NDEF tag. note: If you already have an NDEF tag installed, you will get a 6985 response. edit: linked is the section of code that installs the applet |
Worth noting I think Cordova is dead so you might wanna migrate |
I thought bad things happened to PhoneGap but Cordova lives on? Source? https://chrisgriffith.wordpress.com/2020/08/14/phonegap-is-dead-long-live-cordova/ |
Yes, Cordova was updated in August 2020, according to https://cordova.apache.org/announcements/2020/08/04/cordova-cli-release-10.0.0.html |
I will follow the recommendations you offered. I'll let you know how it goes. Thank you very much for your effort! |
I tried the Smart card reader, but I had troubles concerning vpcd.exe, such as missing .dll files from sys. So I didn't get too far, but it remains an open "gate". |
It lives on but it seems like it's days are numbered. Sadly ;(. Please convince me otherwise!! |
Hello, I m coming with an error on 'Using Android SDK: C:\adt-bundle-windows-x86_64-20131030\sdk FAILURE: Build failed with an exception.
BUILD FAILED in 1s Can you give an advice to solve this problem. Thank you very much! |
I'm not at the computer but a guess is going to that my Android SDK was API version 30 when I pushed that. Did you the the SDK Manager feature of Android Studio to install SDKs? |
Hello, I succeed in installing HelloCordova.apk on my smartphone (Android 10). I uninstalled and installed again the packages from the SDK manager (not from ANDROID STUDIO) and confirmed the licenses. It worked from the first run. The question is what should I do next, to delete the applet from the Omni ring? Maybe I should do something extra. Sorry for bothering you so much. Thanks! |
Update: Maybe I'm doing something wrong, i ran GP and I get the error |
Where are you seeing that error? I don't remember if I tested deleting with node-gp before now, but it's reasonable to expect it to work as it's just another command. I know it can install applets and list them. |
I ran gp.exe on cmd.
|
That gp.exe is Martin Paljak's original work and it won't communicate with a your ring unless you have a "traditional" reader attached. For gp.exe to work in a scenario where you can use you phone as a reader will require more work. Specifically creating a OS SC driver that connects over IP/HTTP. What you should do instead is use node-gp to list/delete/install directly from your cordova app. Using the demo code I linked previously, the API's you'll use are:
Look at this link so see how all but edit: a practical pattern to use would be to:
|
I am at my first app concerning smart rings and NFC. I am trying to understand how it works, but now I've clarified a lot of things and it doesn't seem that hard. I understood why GP isn't working for me. Makes sense. I have a question: I downloaded the .cap file (to see what is happening/ curiosity) and run it and it gives me the error on the app: So, what's the .cap file exactly in this situation? Thank you! |
cap files are compiled applets that are produced when compiling java applets for smartcard targets. To create applets you need something like JCIDE and a JavaCard SDK. There are some quirks with the version of the SDK your ring supports that I plan to write about in the future. I'm currently snowed under with other client work so I can't tell you all the details right now. Of the top of my head you want to get JCIDE and use the JavaCard SDK 3.05 or 3.04 |
Ok. I'll try to create a "hello world" applet, hope I will face no problems. Thank you for the guidelines. I appreciate. |
Hello again. Thank you very much for giving me the information. I finally succeeded to delete the applet and to convert the ring into writable. Is there any possibility to increase the memory over |
Yes but you'd have to experiment with the applet source code to find out what the largest practical/reliable payload size is for OMNI ring. I believe the NDEF limit is 4GB~ which is well beyond what you'll do with OMNI ring. |
Hello,
I have the OMNI ring I want to ask if it is possible to delete the applet and loading applets using the reader from an android smartphone? For example, my smartphone recognizes the ring (Type B). Exist an .apk that works with OMNI?
If it's not possible, I want to ask why ACR122U can brick the ring, and what reader you recommend?
Is ACR1251U ok?
Thank you!
The text was updated successfully, but these errors were encountered: