Am I able to use an external RFID reader USB-C - nativescript

does someone have experience with external devices or especially with Rfid readers? I ordered an external one and still couldn't test because I cannot connect it to my tablet (I would need an USB-A to USB-C converter) but it is necessary for me to know if it's possible or not. If it is not I won't waste my time and send the external reader back.
The reader has a Java development kit (It could theoretically be used in Nativescript but I don't know if NS works with external devices) and there are also some example applications but not based on NativeScript.
Thank you guys in advance.

NativeScript is nothing but a JavaScript Runtime, in a nutshell it allows you to write the same Java or Kotlin / Objective C code in JavaScript.
So if your RFID Reader supports a Java Interface, then it's very much possible to read from Android device so NativeScript too.

Related

How can I build programme based on nfc technology?

I'm trying to write a programme, that is going to use nfc technology to transfer data between phones. The problem is, that I don't really know how to start it, what language or libraries should I choose? Or maybe there are any other technologies, that will allow me to transfer data via touching phones?
You can write your app following the Android-Beam guide
It can be written in Kotlin/Java Language.
Note that from Android 10, Beam feature is deprecated.
Instead you will have a new feature called Fast Share that uses Wifi Direct and other methods of pairing rather than touching.

1D barcode scanning to web app using handheld scanner

I am looking for some advice on scanning barcodes into our web app via post/get etc.
We would be looking to use some kind of handheld scanner with a mobile computer built in (windows or linux etc.) and wifi.
I have done some reading and found a few articles on using an iPhone but cant find anything explicitly using a standalone scanner, so would like to get some advice before we buy one and give it a go.
Has anyone done this before?
While not strictly a programming question, yes, we did that. We use a Honeywell Dolphin 75e device with Android, it has a superb scanning engine, to just do this: Scan data and transmit it via HTTPS.

NFC ACR122U (reader/writer mode) and Nexus 5(HCE mode) example

i am developing an application where users can transfer files from phone to desktop using NFC technology. As i found in this post there is an option to use ACR122U in reader/writer mode and Nexus 5 phone in HCE mode. Can anyone please suggest some samples of such application as it is difficult for me to understand how it works. Your help will be so appreciated, thanks in advance.
When you use HCE on your Nexus 5 the Nexus will emulate a NFC tag. The ACR122U can read this tag in reader/writer mode, so that makes the communication possible. Study this example, it will help you farther. For more general information about HCE on Android you can read this.
I have worked in this exact use case. I used P2P mode. I didn't have to treat one partner as a tag, infact data transfer worked both ways.
In my experiment- Smart phone side I tried Samsung S4, HTC One, Nexus 3, Nokia LUMIA etc.. worked like a charm. There is some limitation in the APDU/payload size. For Reader to Phone case. For your case P2P mode with attachments works fine.
I downloaded this NFC library and tweaked it to my needs. I used it in WP7 along with ACCR122U.
I wrote a simple Android app to receive/send data to ACCR122U.
if your ok to try P2P mode with SNEP as opposed to NPP, do let me know.I can help you.

Monitoring Application/Driver Interactions in Windows

I'd like to know if there is a way to monitor the interactions between an application and a driver? The scenario for me is that I am having an occasional problem when reading and writing to a USB printer using libusbdotnet. The normal application reads and writes to the USB printer driver directly. I would like to monitor what it is doing to see if there is something special that it is doing to control the printer. I have looked around and haven't found a good way to do this.
Thanks
As far as I know, there is no out-of-the-box tool that does this (mainly because there is a variety of driver types, each type must comply to a different OS-defined interface). You need a SW component that will sit between your application and your driver and intercept the interactions. This is usually achievable by creating a filter driver (preferably in User space, since it simplifies the development and usage). See here for more details: http://msdn.microsoft.com/en-us/library/windows/hardware/gg463453.aspx

Nexus S and a NFC reader

I am sitting here with an ACS contactless reader ACR122 which is a NFC-reader/terminal. From my android app I want to send data to this reader, by creating two separate applications, one for the laptop and one app for the phone. For the application which should run one the computer I've been using the javax.smartcardio library. So my question is: Can I interact this way? Cuz I read one different forums that android doesn't support the javax.smartcardio library, but I guess this is just for the android SDK, am I right?
Thanks in advance! :)
you can interact in a way you have mentioned. The ACR122 can communicate in a p2p mode with the Nexus S, but it will not be that easy, because you have to implement or port couple of things. Look e.g. here:
http://www.libnfc.org/community/topic/401/p2p-communication-between-android-phone-and-nfc-reader/
BR
Petr

Resources