NFC For On/Off of Battery Powered Circuit - NFC Hacking

I have a push button switch that simply turns a battery powered circuit on or off, I'd like to have some security so only certain people can turn it on. Is it possible to replace this push button with some kind of NFC or RFID switch, activated by a phone?
Thanks.

I don't know of an out-of-the-box solution for this.
Maybe an NFC door lock (beware: most are RFID door locks which are not compatible with NFC used in phones) could be used
If you have experience with µC or don't fear the Arduino world, you could start with a cheap Arduino clone (Arduino Nano V3 compatible ~2.8EUR from Aliexpress), and a PN532 NFC/reader writer module (~12.6EUR from Aliexpress).

Related

How to add NFC support to battery?

Hey, I have a fake battery bought from eBay that looks exactly like the original one but it is fake.
The problem is that it doesn't have NFC support. NFC works fine if the original battery is inside.
Since the battery just acts as NFC antenna, maybe it is possible to out something conductive to touch the correct contacts and NFC will work.
Did anyone ever try that? Does anyone know how to do that?
My Gnexi said:
Hey, I have a fake battery bought from eBay that looks exactly like the original one but it is fake.
The problem is that it doesn't have NFC support. NFC works fine if the original battery is inside.
Since the battery just acts as NFC antenna, maybe it is possible to out something conductive to touch the correct contacts and NFC will work.
Did anyone ever try that? Does anyone know how to do that?
Click to expand...
Click to collapse
I searched around, doesn't seem like nothing what you are suggesting has been done; Also, no hits on Google;
I would advise you to simply buy a NFC-capable battery. Messing with li-on batteries is not a great idea, IMO.
But that's not FUN
I'm not going to mess with the internals of the battery, just create an antenna that happens to be glued to the sticker of the antenna but could really be anywhere else.
Update: I did it!!!!!!!!!!!
Pins 1&3 are power, pins 2&4 are NFC (1 is leftmost pin)
I connected a bit of copper wire to each of the NFC pins, and connected them using coil (wrapped 4 or 5 times).
It reads NFC tags very well, the only problem now is I can't close the back cover because of the giant coil. I'll try to find a solution to that and upload pictures (or video), because as we all know "pictures or it didn't happen".
Update: The project FAILED.
I tried to connect the two NFC pins using a coil. When the coil was away from the phone, it worked very well. When the coil was on the phone, it didn't work. Since I wanted to stick it on the battery and be able to close the cover, I must say it didn't and can't work.
The fake battery is blocking NFC signal. If you put the good battery in and then put a tag -> NFC success sound.
If you put good battery in and a tag+fake battery over it -> No sound. Take the battery-> Success sound.
That concludes our experiment.
Real Samsung batteries with NFC are available on Amazon for $8.
+expensive international shipping. I'll stay with one battery that does NFC and one that doesn't, until my next phone.
I'm considering attempting to remove the antenna sticker from my old battery, stick it onto my new third-party battery, and connect the leads to it's pads. Will update if it goes well. Or if it doesn't.
---------- Post added at 12:37 PM ---------- Previous post was at 12:01 PM ----------
Welp, that didn't work.
The nfc sticker on the stock battery seems to fall apart if you try to peel it off.

[Q] Qi Wireless Charger + Car cradle with Pioneer Reciever

Hey everyone,
First time post but I have a question I think others might be interested in as well. I'd like to create a simple method of charging my phone wirelessly in my vehicle but I have a few questions before I make a couple purchases.
1.)Will the LG WCP-300 charge through a galaxy s4 otterbox defender case?
2.) Will the Samsung Wireless Charging Back Cover be able to work with my galaxy s4 otterbox defender case (perhaps with a little pressure applied)? I've seen a post online where a user was able to get it to work. Anybody on XDA try it out?
3.)If I stuck a NFC tag on the LG WCP-300, will wireless charging still work fine? Will NFC work fine?
4.) Will the LG WCP-300 charge my phone if I have it plugged into the Pioneer DEH-X6500BT USB port? I know it may not charge quickly, but what I'm leaning towards is having GPS, bluetooth, NFC and music streaming from spotify while having the battery charge at least not decrease, or have it decrease slower.
5.) Will the NFC tag work through my galaxy s4 otterbox defender case and Samsung Wirless Charging Back Cover?
I've heard of the OwlPad, but the reason I don't want to use that particular setup is because I'm trying to cut down on the amount of cables running in my car (the reason I'm going wireless, and I've got a radar detector already hooked up and don't want to use a cigarette lighter socket adapter to run two gadgets). I know a cigarette lighter socket adapter might be able to charge it quicker, but if the USB port can provide enough power to at least keep the battery from draining while running GPS, bluetooth, NFC and music streaming from spotify, then I prefer that route. I'd also like to stick to the products mentioned since I'm kinda trying to avoid third party products.
Thank's in advance, and looking forward to hear back.
Thought I would add my findings encase anybody else has similar ideas they want to undertake!
1.) I can confirm the LG WCP-300 charges through the Otterbox defender case for my Galaxy S4.
2.)The samsung wireless charging back cover (by samsung for the galaxy s4, no third party) does indeed fit with the otterbox defender case for the galaxy s4. It fit it 100% okay, but you will feel a bit more weight and notice a difference. It feels like more girth, although it locks into place and has not came apart. I will warn that it is a snug fit, so if it doesn't work for you the first time, keep at it. It doesn't bulge, but you just gotta see it to know what im talking about, I'd say give it a shot. I found a half off accessory code online and bought it directly from samsung.
3.) have not tried a NFC chip on the wireless charger yet.
4.)The LG WCP-300 does work with the pioneer USB port. But be warned!! I thought the USB port wasn't going to work (10 foot cable is recommended if you want to run the cable and try hiding it, that's what I did), because the wireless pad didn't work on my first attempt. Gave up, brought it inside to use. The USB cable inside didn't work. I had tested it before, and it did work. Odd.... Turns out, a good amount of the USB cables have to much plastic near the micro USB head which prevent the cable from going into the wireless charger all the way. Shaved some of the plastic on the cable in my car and.....got it to work. Wireless charging working in the vehicle via USB port.
5.)NFC does work through the case. Tried it with a Nexus 7 tablet and communications worked as long as it sat at the sweet spot (which I'm sure is fairly standard).
The next step for me is fallowing the guide to root the phone (thanks XDA community!!) and then fallow a different users guide on xda (Sorry, I'd post links and directly link but I haven't reached the post limit to do so quite yet) to allow unlock the phone via NFC while the phone is locked and the screen is off.
NFC running 24/7-->Place on Wireless charger with NFC chip-->Unlocks phone, sets it to not turn the screen off, turns off wifi, turns on bluetooth and connects to receiver, and starts spotify. Remove phone from NFC and all settings revert back.
Will post back (or create new post?) when it's all accomplished, maybe a video if people are interested??
I'm interested in pictures, sounds like a neat idea.
Knievel_Spirit said:
Thought I would add my findings encase anybody else has similar ideas they want to undertake!
1.) I can confirm the LG WCP-300 charges through the Otterbox defender case for my Galaxy S4.
2.)The samsung wireless charging back cover (by samsung for the galaxy s4, no third party) does indeed fit with the otterbox defender case for the galaxy s4. It fit it 100% okay, but you will feel a bit more weight and notice a difference. It feels like more girth, although it locks into place and has not came apart. I will warn that it is a snug fit, so if it doesn't work for you the first time, keep at it. It doesn't bulge, but you just gotta see it to know what im talking about, I'd say give it a shot. I found a half off accessory code online and bought it directly from samsung.
3.) have not tried a NFC chip on the wireless charger yet.
4.)The LG WCP-300 does work with the pioneer USB port. But be warned!! I thought the USB port wasn't going to work (10 foot cable is recommended if you want to run the cable and try hiding it, that's what I did), because the wireless pad didn't work on my first attempt. Gave up, brought it inside to use. The USB cable inside didn't work. I had tested it before, and it did work. Odd.... Turns out, a good amount of the USB cables have to much plastic near the micro USB head which prevent the cable from going into the wireless charger all the way. Shaved some of the plastic on the cable in my car and.....got it to work. Wireless charging working in the vehicle via USB port.
5.)NFC does work through the case. Tried it with a Nexus 7 tablet and communications worked as long as it sat at the sweet spot (which I'm sure is fairly standard).
The next step for me is fallowing the guide to root the phone (thanks XDA community!!) and then fallow a different users guide on xda (Sorry, I'd post links and directly link but I haven't reached the post limit to do so quite yet) to allow unlock the phone via NFC while the phone is locked and the screen is off.
NFC running 24/7-->Place on Wireless charger with NFC chip-->Unlocks phone, sets it to not turn the screen off, turns off wifi, turns on bluetooth and connects to receiver, and starts spotify. Remove phone from NFC and all settings revert back.
Will post back (or create new post?) when it's all accomplished, maybe a video if people are interested??
Click to expand...
Click to collapse
The NFC will only read the chip so long as to enable the mode. It does not act as a proximity sensor and will not "revert" back to it's normal operation. Keeping an NFC chip in range the phone will ignore it after it first reads it. You will either need NFC Tasker or some other app to make it a "switching" tag where you can lift your phone off, tap it again to return to normal mode and then go on your way, or another tag stuck somewhere else to trigger going back to normal, maybe perhaps on the car keys?
Yes the post that talks about unlocking the phone has tasker involved with reverting the settings back. On another post it mentions unlocking the phone by keeping NFC on 24/7. The app I'm looking at is NFC Unlocking by MohammadAG, and work also done by Madfish73.
http://www.xda-developers.com/android/unlock-your-phone-using-nfc/
http://forum.xda-developers.com/showthread.php?t=2122019
I should also mention that I'm trying to follow the directions here (http://forum.xda-developers.com/showthread.php?t=2306247) to add home-screen rotation, but as they mention cyanogenmod, I'm not sure if this will work with the stock touchwiz on the galaxy s4....any thoughts?
Ultimate rotation control worked great for my galaxy s1, but the s4 is a little buggy. Nova launcher works great for the homescreen rotation, but the lockscreen rotation is absent in nova launcher. Looking to have both rotate.
Knievel_Spirit said:
Yes the post that talks about unlocking the phone has tasker involved with reverting the settings back. On another post it mentions unlocking the phone by keeping NFC on 24/7. The app I'm looking at is NFC Unlocking by MohammadAG, and work also done by Madfish73.
http://www.xda-developers.com/android/unlock-your-phone-using-nfc/
http://forum.xda-developers.com/showthread.php?t=2122019
I should also mention that I'm trying to follow the directions here (http://forum.xda-developers.com/showthread.php?t=2306247) to add home-screen rotation, but as they mention cyanogenmod, I'm not sure if this will work with the stock touchwiz on the galaxy s4....any thoughts?
Ultimate rotation control worked great for my galaxy s1, but the s4 is a little buggy. Nova launcher works great for the homescreen rotation, but the lockscreen rotation is absent in nova launcher. Looking to have both rotate.
Click to expand...
Click to collapse
NFC unlock works perfectly fine. I don't think you understood what I was saying, the NFC system triggers once per touch to the tag, and that's it. You can leave NFC on 24/7, all it will do is waste just a tiny bit of battery each hour throughout the day. When you touch the tag (on your wireless charger in this case), it will trigger once to unlock and do all the things you want it to do, but when you remove the phone, it will do NOTHING. NFC does not care when the tag has been removed from it's field, just the initial connection to exchange data, that's it. NFC is a fire-and-forget-it system, it does not track anything other than the initial touch. It will not work to pull the phone away and "viola, locked and normal again," it just doesn't work that way, you'll either need NFC Tasker or some other app to create a switching tag (so you tap it again to 'switch' back to normal), OR configure another tag say on your keys to lock the phone and return it to normal.
Cynagen said:
NFC unlock works perfectly fine. I don't think you understood what I was saying, the NFC system triggers once per touch to the tag, and that's it. You can leave NFC on 24/7, all it will do is waste just a tiny bit of battery each hour throughout the day. When you touch the tag (on your wireless charger in this case), it will trigger once to unlock and do all the things you want it to do, but when you remove the phone, it will do NOTHING. NFC does not care when the tag has been removed from it's field, just the initial connection to exchange data, that's it. NFC is a fire-and-forget-it system, it does not track anything other than the initial touch. It will not work to pull the phone away and "viola, locked and normal again," it just doesn't work that way, you'll either need NFC Tasker or some other app to create a switching tag (so you tap it again to 'switch' back to normal), OR configure another tag say on your keys to lock the phone and return it to normal.
Click to expand...
Click to collapse
Did the second link I provided above not run special actions when NFC is removed (I think you're thinking of a different method...)? I fallowed the link from a site, Google "Lifehacker Run an Action When You Remove Your Phone from an NFC Tag" and it should show what I'm talking about. Yes, I am FULLY aware when you remove your phone from a NFC tag, it doesn't run a task because the tag is braindead, and only does what it's programmed too. Hence, you need your phone to say "Hey, I was removed from my NFC tag, let me run another special command!" via special applications that would signal the phone to do so. The reason I want NFC running 24/7 (even while the phone is locked, normally it has to be unlocked to accept a NFC command) is because its convenient not to unlock my phone to run said task (I belive the Moto X has a similar feature with the Motorola Skip). I know i could double tap the NFC tag to revert settings back (via, again, a app), but its not as seamless as just removing it and going on my merry way.
I'm just trying to ace this in one go around, but seeing as phase 1 of my ongoing saga is accomplished in this post, I think I'll create a new post so the title can attract some more help. Thanks guys! And Exel i will do one better and post a video. I'll try to remember to send it over to demonstrate my methods, but only once I'm satisfied with the results :good: .
Knievel_Spirit said:
Did the second link I provided above not run special actions when NFC is removed (I think you're thinking of a different method...)? I fallowed the link from a site, Google "Lifehacker Run an Action When You Remove Your Phone from an NFC Tag" and it should show what I'm talking about. Yes, I am FULLY aware when you remove your phone from a NFC tag, it doesn't run a task because the tag is braindead, and only does what it's programmed too. Hence, you need your phone to say "Hey, I was removed from my NFC tag, let me run another special command!" via special applications that would signal the phone to do so. The reason I want NFC running 24/7 (even while the phone is locked, normally it has to be unlocked to accept a NFC command) is because its convenient not to unlock my phone to run said task (I belive the Moto X has a similar feature with the Motorola Skip). I know i could double tap the NFC tag to revert settings back (via, again, a app), but its not as seamless as just removing it and going on my merry way.
I'm just trying to ace this in one go around, but seeing as phase 1 of my ongoing saga is accomplished in this post, I think I'll create a new post so the title can attract some more help. Thanks guys! And Exel i will do one better and post a video. I'll try to remember to send it over to demonstrate my methods, but only once I'm satisfied with the results :good: .
Click to expand...
Click to collapse
Second link on review appears to have some solid tools and tweaks to accomplish this goal successfully. I look forward to seeing the results, I know one friend that would probably go for this in a heartbeat.
Try Llama. Not the easiest UI to get on with, but very powerful and free.
You could use a llama variable and 'removed from wireless charger' condition to know that it was removed from the NFC: 1) when NFC tag comes on, set a llama variable. 2) when removed from charger and llama variable is set, do whatever you need (including reverting the variable). If that's the only wireless charger you use, then you don't even need to use any llama variable.
Among other things, I use Llama to deactivate pattern lock when connected to home wifi, and activating it when disconnected from home wifi after a certain delay. This could be done with many apps of course (Tasker, AutomateIt, etc).
lost_ said:
Try Llama. Not the easiest UI to get on with, but very powerful and free.
You could use a llama variable and 'removed from wireless charger' condition to know that it was removed from the NFC: 1) when NFC tag comes on, set a llama variable. 2) when removed from charger and llama variable is set, do whatever you need (including reverting the variable). If that's the only wireless charger you use, then you don't even need to use any llama variable.
Among other things, I use Llama to deactivate pattern lock when connected to home wifi, and activating it when disconnected from home wifi after a certain delay. This could be done with many apps of course (Tasker, AutomateIt, etc).
Click to expand...
Click to collapse
Llama looks great! If my methods don't work out I'll look at it as a alternative. I'm start to root right now. Hoping to have it running by the end of the day.
Root finished! 2 hours later. Not bad for a first time root :highfive:
Exel said:
I'm interested in pictures, sounds like a neat idea.
Click to expand...
Click to collapse
Took some time but I just finished. I'll try to make time this week to create something to show you. It'd be great for truck drivers I was thinking who have longer drives than the typical commuter.

Nfc issues?

Anyone else find absolutely no response to nfc? Its on, i have previuos trigger actions setup and even used taginfo to try and test but nothing seems to be detected by the nfc antenna. My note 2 had a "sweet spot" bbut nothing seems to trigger on this phone which sucks as id reallt gotten uswd to it with the n2. Im running smootkat 1.1 fwiw (stock rooted) and added a pleson wireless charging "sticker" to the battery which id have to destroy to remove.
tapa_talk 4 sucks
The wireless charging receiver is most likely covering the NFC antenna that is on the battery itself.

DIY Wireless charging without blocking NFC

Id like to implement wireless charging to my z3 but i use NFC heavily so the solution zhekazheka came up with wont work for me.
http://forum.xda-developers.com/z3-compact/accessories/hassle-diy-wireless-charging-t3300011
I've found these chips on aliexpress but i cant figure out how they would be installed. I assume you must remove the rear panel.
Would removing the rear panel destroy any waterproofing upon thorough reassembly?
http://www.ebay.com/itm/For-Sony-Xp...C-Wireless-Charging-Sticker-New-/191655739546
http://www.aliexpress.com/store/pro...Charging-Sticker-NEW/1555539_32301299244.html
http://www.aliexpress.com/item/5pcs...48&btsid=5036d756-27a8-4e73-869f-c4dc44d3e1e2​
Some of these appear to connect to where the NFC antenna connects, which doesn't make sense for charging.
Here is a link to the teardown
https://www.ifixit.com/Teardown/Sony+Xperia+Z3+Compact+Teardown/35454
https://d3nevzfk7ii3be.cloudfront.net/igi/1w3UdqRLGko3Bl2H.huge
https://d3nevzfk7ii3be.cloudfront.net/igi/K2ibMbqGrXoJBlmH.medium​
Any ideas?
Why not try to find a wireless charger receiver with a usb tail long enough so that it could sit below the nfc receiver? The nfc seems to activate anywhere in the top 8 cm of the back of the phone. I don't there's a wireless receiver that could completely cover that much area.
I tried looking for one but i couldn't find it. it would have to be pretty specific to find an extended right angle sticker with the plug in the correct orientation

Nfc wireless charging pad???

Alright so last night I wake up from this dream. I've got the nexus 5x, and go to best buy. Boom, first thing I see is an nfc enabled wireless charging pad. I buy it, plug it in, my phone actually charges with it. So when I woke up, I was like, "What's stopping that from actually existing?" Nothing. The more you think about it the more it totally makes sense. Okay, so think about it. Your phone's nfc obviously is hooked up somehow in your motherboard and is connected to your battery. Usually the nfc stickers you find on places don't have power hooked up to them, so what's from stopping us on making a second nfc chip that, when it communicates with your phone, sends power instead of data? The power just goes right back into your phone's battery again, from your phone's internal nfc chip. Wireless charging on nfc only phone's. This could help people with more budget based phones to finally have wireless charging, and nfc isn't even expensive anyways. mind blown? or nahhh
Sorry to disappoint you, but it will not work! For several reason
1. NFC is circuitry in the phone is made for small currents.
2. NFC antenna resonates at a different frequency than the WiCh antenna.
3. It would mean a total redesign of the thing (if possible due to physics limitations) and will certainly not be possible to back-port to current devices!
PS: Dreams are easy; engineering is a tad bit more complex.

Categories

Resources