Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




12 posts

Geek


Topic # 147212 12-Jun-2014 14:44
Send private message

I want to make it so my nfc tags can act like a bus card (hop). I want to tap my phone to a tag and add or subtract a value from it.

Would like to use this as a easy way to monitor and track reward points in the classroom.

I don't want to use my tag to actually hop on a bus.

I've looked at the nfc writer apps but I can't seem to make it work

Create new topic
457 posts

Ultimate Geek
+1 received by user: 95

Subscriber

  Reply # 1064172 12-Jun-2014 15:34
One person supports this post
Send private message

I'm going to put this simply. This thread will go exactly the same way as the last thread you started.

You need a centralised server




Geoff E



12 posts

Geek


  Reply # 1064205 12-Jun-2014 16:45
Send private message

Ok, thanks.

It wasn't put that simply for me last time, a lot of yeah nahs.

Can you point me in the right direction for one of these?

Thanks

 
 
 
 


457 posts

Ultimate Geek
+1 received by user: 95

Subscriber

  Reply # 1064248 12-Jun-2014 17:24
2 people support this post
Send private message

Its a big question.

Do you know how to code? If no you will likely be stuck I don't think I have seen to many open source projects for this type of thing.

A centralised server can be any computer. It just needs to be able to run code.

A raspberry pi is a good option it's cheap. Along with that you will want a Arduino. You could just do it with the raspberry pi but for simplicity we won't. Then you will need something to read the NFC cards like this.

You plug the NFC reader(after soldering the headers on) into the Arduino you plug in the Arduino into the Raspberry Pi via usb

This is just the Hardware part. Now for some software.
You need to have the following

A Database that will include Names, ID numbers, Allowance

You need to create a script that will read the card via serial(in linux the serial ports in linux are listed in /dev)
This script will need to keep polling the serial port for data. 
When data is received it then needs to know what to do with that data.

So you could create a user interface to tell it what you want to do with that data or you can create instruction cards that you scan before or after that tell it what action to take however you will need to guard these cards as in the wrong hands anything can be done.

Now if that all sounds to hard. It is. If it was simple then everyone would be doing it.

If this is your first time doing any coding. Then stop now. A system like this that is poorly developed is a really bad bloody nose waiting to happen. Think about the kid who knows something picks up someones card and wipes out all of their credits or takes there own card and gives them selfs tons of credit. Thats the sort of thing we are talking about here.

If you however know how to get software and hardware to gel then go right ahead if not find a student or find someone willing to develop this kind of system.




Geoff E



12 posts

Geek


  Reply # 1064266 12-Jun-2014 17:42
Send private message

Thanks for the great reply. I'll take a look into it. I haven't done any coding really but have many friends who do. I could call in a favor :)

Cheers for the info

2103 posts

Uber Geek
+1 received by user: 187


  Reply # 1100221 1-Aug-2014 17:47
Send private message

Unlocked the thread to post this..

http://www.stuff.co.nz/the-press/news/10335224/School-puts-microchip-bracelets-plan-on-hold

Seems the idea was though of, and quickly quashed.

2057 posts

Uber Geek
+1 received by user: 501


  Reply # 1100242 1-Aug-2014 18:19
Send private message

Oblivian: Unlocked the thread to post this..

http://www.stuff.co.nz/the-press/news/10335224/School-puts-microchip-bracelets-plan-on-hold

Seems the idea was though of, and quickly quashed.


The media using the word microchip makes everyone think its scary, When really its just an 'RFID card but on a wrist band, A good idea because if it was just a card students would be more likely to use it.

Sounds like an awesome idea, Imagine the uses, Library card, Attendance (students tap a reader when they enter the class)

People seem to think it can be used to track their location

483 posts

Ultimate Geek
+1 received by user: 286

Trusted

  Reply # 1117542 28-Aug-2014 21:07
One person supports this post
Send private message

You don't need a centralised server, Arduinos or Raspberry Pis.

Your choices depend on the type of tags you want to use and the phone you want to read/write the tags with.

As I interpret it you have a small quantity of tag media and want to use a single phone to either

1. change the value on the tags themselves; or

2. remember the number of taps against each unique tag id on the phone itself

If you want to do the first you need media that you have the permission to write to, for example DESfire cards can be programmed to be used for reading and writing to. However they are not trivial to use securely and you can only formally get the APDU set by signing an NDA with NXP.

A second approach is to treat the DESfire card as an NDEF type 4 tag, there are phone applications that can format a blank DESfire card and create a tag. You can then use higher level libraries to perform the read/write of the NDEF tag. The API you use depends on the phone. 

If you want to do the read and write securely then the mobile phone will need access to the trusted keys.

The final cheap and cheerful approach is to simply use the phone to read the UID of the tag and remember the counts. 

The amount of security depends on how complex you want to make the system. Tags and simple cards can be cloned, true security requires mutual authentication where you don't trust a tag until the reader has validated the devices knowledge of secret keys. 

That all said, for a project that uses a Raspberry Pi and readily available reader, see nfcrsaps on sourceforge.

Also worth investigating libnfc.


Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

UFB killer app: Speed
Posted 17-Nov-2017 17:01


The case for RSS — MacSparky
Posted 13-Nov-2017 14:35


WordPress and Indieweb: Take control of your online presence — 6:30 GridAKL Nov 30
Posted 11-Nov-2017 13:43


Chorus reveals technology upgrade for schools, students
Posted 10-Nov-2017 10:28


Vodafone says Internet of Things (IoT) crucial for digital transformation
Posted 10-Nov-2017 10:06


Police and Facebook launch AMBER Alerts system in NZ
Posted 9-Nov-2017 10:49


Amazon debuts Fire TV Stick Basic Edition in over 100 new countries
Posted 8-Nov-2017 05:34


Vodafone VoIP transition to start this month
Posted 7-Nov-2017 12:33


Spark enhances IoT network capability
Posted 7-Nov-2017 11:33


Vocus NZ sale and broadband competition
Posted 6-Nov-2017 14:36


Hawaiki reaches key milestone in landmark deep-sea fibre project
Posted 4-Nov-2017 13:53


Countdown launches new proximity online shopping app
Posted 4-Nov-2017 13:50


Nokia 3310 to be available through Spark New Zealand
Posted 4-Nov-2017 13:31


Nest launches in New Zealand
Posted 4-Nov-2017 12:31


Active wholesale as Chorus tackles wireless challenge
Posted 3-Nov-2017 10:55



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.