allada / LineaDevice

Linea Pro Device plugin for phonegap (ios / iphone / ipad)
http://webinterface.allada.com/
Apache License 2.0
6 stars 10 forks source link

RFID Support #2

Open notsle opened 9 years ago

notsle commented 9 years ago

Would like to have RFID support for the Infinia Tab M

binki commented 9 years ago

+1, I am interested in RFID support for LINEA Pro 5. I have one with me that I could test support with. I’m actually thinking about maybe trying to provide a patch for this, is there any guidance/suggestions on how to get started with that? Or maybe someone should just hire Allada to do the work? ;-)

allada commented 9 years ago

Sorry, I must have missed this issue. it looks like mikeelston's fork of this repo has added RFID support.

mikeelston, can you confirm and I'll review and merge it into the master if you submit a pull request.

notsle commented 9 years ago

allada unfortunately it does not I began working with it but never completed it.

allada commented 9 years ago

I will see about adding RFID support and upgrading the library to latest version. Please stay tuned for the next few days.

Thanks, -Nathan Bruer

notsle commented 9 years ago

actually Allada mine has RFID support, was thinking of another project (I was looking at a couple plugins)

It is not complete by any means and only support MiFair cards (which is what i needed.) feel free to review what we did, I am by no means a Obj-C expert so it may not be clean for your needs but could be a good starting point.

allada commented 9 years ago

Ok, thanks. I do not have a Linea Pro which supports RFID, so I can not test it; however I should be able to implement it fairly easily on a new branch and have one of you test it.

binki commented 9 years ago

Great! Thanks so much!

As I do not really have a proper Xcode development environment (I was planning on trying that “Mac in the cloud” thing), I would have the easiest time doing a very basic test (I do not know enough about RFID to know what MiFair vs other types are xD) if you could somehow provide me a binary and development enrollment for iOS. I hope you can guess what I mean because I’m not really sure how all that works, just letting you know in advance. I could always still try the whole “Mac in cloud” thing too, but if I can be lazy I will be ;-).

allada commented 9 years ago

When I finish the changes, I'll inform you on how you can install a "development" version on the ios device and you can test it directly. The only thing(s) you'll need is a couple RFID cards/tags, but because most of the functions are simple pass through functions, if one works they'll probably all work.

I'll keep you informed, -Nathan

allada commented 9 years ago

mikeelston, you said you use MIFARE.

binki, can you tell me which card type(s) you use?

notsle commented 9 years ago

Yes. Specifically using Mifare Classic 1K for testing I purchased this assortment http://www.adafruit.com/products/365 I can definitely assist in testing more. The biggest struggle i first ran into was you must explicitly enable the RFID radio before you can scan. which is what enableRFModule() function i added does

binki commented 9 years ago

We are supposed to have some RFID tag samples from a customer, but at our office for now we only have two US passport cards (which can be successfully read by a conveyor-mountable RFID scanner we have here, each card yields a 10 byte code) and a big screen TV still in its box which also gets read (12 bytes) by that same conveyor-mountable RFID scanner. I also have some NFC(?) (or maybe encrypted?) card (claims it’s a “125khz” card), but the conveyor-mount RFID scanner cannot read it (and I did not issue that card, so that might be that).

We are not even sure if we will manage to make use of RFID scanning in our use of mobile technology. But if we do, the only scenario I can see right now is using it without knowing in advance the type of RFID card being scanned. We are doing the same with the barcode scanner technology—the only situation where users scan one barcode on a label filled with barcodes is when all of the barcodes on the label are the same code anyway so we have no benefit to disabling particular barcode types.

Sorry for the high level verbosity, hope this is helpful.

binki commented 9 years ago

Poke, I’m arbitrarily interested in RFID support in this app again ;-).