Android Question Does anyone have used ACR122U USB NFC reader ?

mauro vicamini

Active Member
Licensed User
Longtime User
Does anyone have used ACR122U USB NFC reader ?
I need to use it's own Android library ad I don't know how to reference it in B4A.
Any kind of help is useful also some code snippet.
Thanks a lot

Mauro
 

DonManfred

Expert
Licensed User
Longtime User
If you got further on this please update here... I´m planing to buy this NFC-Reader/Writer in future... But first a Tablet is on the list of "Things to buy" :D
 
Upvote 0

mauro vicamini

Active Member
Licensed User
Longtime User
You will need to wrap the library with a B4A library.
Thanks Erel,
but how I can achive wrapping the library with a B4A library?
I'm quite new to B4A: there is somthing that create it?

Thanks a lot.

P.S.: the library is attached
 

Attachments

  • acssmc-1.1.1.jar
    49 KB · Views: 382
Upvote 0

Dey

Active Member
Licensed User
Longtime User
Does anyone have used ACR122U USB NFC reader ?
I need to use it's own Android library ad I don't know how to reference it in B4A.
Any kind of help is useful also some code snippet.
Thanks a lot

Mauro
Ciao Maurizio,
Sei riuscito ad utilizzare ACR122U USB NFC reader?
Saluti
Grazie
 
Upvote 0

antonio.murtino

Member
Licensed User
Longtime User
Salve ragazzi, avete avuto l'occasione di utilizzare il nuovo ACR 1255U-J1?
utilizza sia la modalità bluetoot che USB, sono riuscito a connetterlo via bluetoot
ma non riesco ad utilizzare e convertire le API su A4B, nella documentazione
disponibile dal sito ACS, sono tutte in java; per attivare l'nfc o leggere i dati dai tag.
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Salve ragazzi, avete avuto l'occasione di utilizzare il nuovo ACR 1255U-J1?
utilizza sia la modalità bluetoot che USB, sono riuscito a connetterlo via bluetoot
ma non riesco ad utilizzare e convertire le API su A4B, nella documentazione
disponibile dal sito ACS, sono tutte in java; per attivare l'nfc o leggere i dati dai tag.
Hi Antonio. Can you write msg in english pls. So the entire community can participate
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Do you have documentation and library ( jar or aar ) ?
Seem that you can download this from site. If you download SDK you see in documentation.
1. Step: Connect with BT ( already you have this )
2. Step: You need to create an BluetoothReaderGattCallback instance for connecting with an ACS reader....i read:
  • Create a new instance of BluetoothReaderGattCallback.
Now if you open acsbt-1.0-0preview8.jar ( you have in SDK ) you see this:

upload_2017-2-5_20-8-15.png


or on documentation you see :
upload_2017-2-5_20-9-24.png


You can use Javaobject.
To create newinstance you can write:

B4X:
Dim jo as JavaObject
Jo.InitializeNewInstance("com.acs.bluetooth.BluetoothReaderGattCallback",Null)
Jo.RunMethod("BluetoothReaderGattCallback", Null)
'Null if you havent argument or Array as object( firstpar, secondpar, ....)

3. Step:
Connecting the reader
After finding the reader, you can create a GATT connection by using device's hardware address and BluetoothReaderGattCallback instance. The result will deliver by onConnectionStateChange() method.
..... etc.

Try the javaobject library is very power.
Look THIS tutorial @Erel
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
P.S.: the library is attached
This is NOT a jar for the Acr1255 like you started in the Thread openening-post...

It is a jar for the Acr83.


But again talking about the Acr1255. I have buyed one recently (but the mobile version (Bluetooth) instead of the USB-Powered (though is is able to be connected via USB too ;.))).
And i did a wrapper-library to
- connect to the reader,
- Authenticate using the right pinword...
- I also can send APDU- and/or Escape-Sqquences and am able to get the responses.
For ex. getting Properties like "Serialnumber, Hardware id, Name and so on
- I´m able to know if a NFC-Chip is present or not (if the reader is in "pollingmode")

But here - sadly - it ends. The provided SDK does not provide Methods to create a NFC Tag or to read one.
This "Protocol" must be done by ourself :-(

I´m unable to understand such protocols

but i would be pleased to Share my wrapper if there is someone out there who´ll extend it with the NFC-Protocols...
 

Attachments

  • Acr1255UjEx.zip
    9 KB · Views: 442
  • ACSBTV0.3.zip
    49.8 KB · Views: 419
Last edited:
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
This is NOT a jar for the Acr1255 like you started in the Thread openening-post...

It is a jar for the Acr83.


But again talking about the Acr1255. I have buyed one recently (but the mobile version (Bluetooth) instead of the USB-Powered (though is is able to be connected via USB too ;.))).
And i did a wrapper-library to
- connect to the reader,
- Authenticate using the right pinword...
- I also can send APDU- and/or Escape-Sqquences and am able to get the responses.
For ex. getting Properties like "Serialnumber, Hardware id, Name and so on
- I´m able to know if a NFC-Chip is present or not (if the reader is in "pollingmode")

But here - sadly - it ends. The provided SDK does not provide Methods to create a NFC Tag or to read one.
This "Protocol" must be done by ourself :-(

I´m unable to understand such protocols

but i would be pleased to Share my wrapper if there is someone out there who´ll extend it with the NFC-Protocols...
Another Great work Don ;)
Cheers
 
Upvote 0

coslad

Well-Known Member
Licensed User
Longtime User
Hi

Don , have you some update ?

Have you something not for Bt ,but for ACR usb card reader ? even only the card serial number .

Thanks
 
Upvote 0

bgsoft

Well-Known Member
Licensed User
Longtime User
Hi

Don , have you some update ?

Have you something not for Bt ,but for ACR usb card reader ? even only the card serial number .

Thanks

Hi:

To read the UID of the card, the ESC and APDU command is: FF CA 00 00 00
Answer:
UID | SW1 | SW2
04 CC 2f DA C4 29 80 | 90 | 00


Results | SW1 | SW2 | Meaning

Successful | 90h | 00h | The operation is completed successfully

Warning | 62h | 82h | End of UID/ATS reached before Le bytes (Le is greater than UID Length)

Error | 6Ch | XXh | Wrong length (wrong number Le: ‘XX’ encodes the exact number) if Le is less than the available UID length

Error | 63h | 00h | The operation is failed

Error | 6Ah | 81h | Function not supported


Regards
 
Last edited:
Upvote 0

Martin Domian

Member
Licensed User
Longtime User
I just saw that
I'm also struggling with an ACS reader on USB
All I want is an event when a card is read.
Do you have a tip? I've seen your source and can't get it to work yet. But I also see the INIT for Mac address ... Is there really nothing easier?
 
Upvote 0

Martin Domian

Member
Licensed User
Longtime User
Thanks all togeather!

I will try out everything the next days and hope something will fit. I need a little bit time for this.
I will not be bounded on one device only, so installing an external Lib or driver from one Company only is not so best solution.
 
Upvote 0
Top