Using NFC to transfer data to/from a pc - NFC Hacking

Hi all,
Is it possible to use NFC to pass data from a pc to a mobile app? I can't see why not, I guess it's just a case of sorting out the correct hardware and software! My need for this....
Transferring photographs from the phone to pc
Transferring strings of data from the pc to a phone application
I do have an ACS ACR122 usb reader already, but can't find any software to use.
Can anyone point me in the right direction?
Thanks
Edit: sorry, wrong forum, this isnt Q&A in here. How do I move it?

A[L]C said:
Hi all,
Is it possible to use NFC to pass data from a pc to a mobile app? I can't see why not, I guess it's just a case of sorting out the correct hardware and software! My need for this....
Transferring photographs from the phone to pc
Transferring strings of data from the pc to a phone application
I do have an ACS ACR122 usb reader already, but can't find any software to use.
Can anyone point me in the right direction?
Thanks
Edit: sorry, wrong forum, this isnt Q&A in here. How do I move it?
Click to expand...
Click to collapse
LibNFC is your friend!
But id rather use Bluetooth. Up to you anyway

nfc
Damastus said:
But id rather use Bluetooth. Up to you anyway
Click to expand...
Click to collapse
Yup LibNFC is the place to start, you could also try using the NFC just to do a handshake between the device and the PC then transfer the files over wifi or bluetooth much less hassle.
I would be interested in seeing the results of your work what ever you end up building.

Related

Internet Pass-through - Is it possible on Android? Like WM

With my old Orange SPV C500 phone I could plug it into my laptop and the phone would use the laptop's Internet connection (once I've installed ActiveSync/WMDC). I've tried all the connection modes on my HTC Desire but they all look to be using the 3G connection instead. I've got HTC Sync 2.0.33 installed.
Is this possible? I'm not always going to be in areas where I can get 3G/HSDPA. Thanks
Best you search for the term "tethering" in this forum - you will find what you would like to know.
Thanks for the quick reply. I don't mean using my Mobile as a Modem though (i.e - tethering). That works a treat.
I mean plugging my mobile into my laptop and "using my laptops broadband" connection on my HTC Desire. Basically the other way around (laptop to mobile, not mobile to laptop). This is possible with Windows Mobile.
I think you misunderstand. OP wants to use the PCs internet connection for the phone if I understand the OP correctly.
This may be possible using some ADB commands, but I am not sure.
Zappza said:
I think you misunderstand. OP wants to use the PCs internet connection for the phone if I understand the OP correctly.
Click to expand...
Click to collapse
Correct .
Zappza said:
This may be possible using some ADB commands, but I am not sure.
Click to expand...
Click to collapse
What are ADB commands? I take it it's not officially supported? Like it is on Windows Mobile then. Thanks.
Sorry, got it now. You are right, WM (or better: ActiveSync from MS) had that functionality. HTC's Sync is far behind that - I'm close to throw it into the bin (if I only had something better). Therefore it is not possible to use your laptop as a modem for your phone. On the other hand: The Desire's WiFi-receiver is really excellent. Where you need access to a LAN try ES File Explorer together with either a WiFi or Bluetooth connection.
glumardok said:
HTC's Sync is far behind that - I'm close to throw it into the bin (if I only had something better).
Click to expand...
Click to collapse
It pretty ropey. Thankfully I use Google to sync my stuff, so rarely need it.
glumardok said:
Therefore it is not possible to use your laptop as a modem for your phone.
Click to expand...
Click to collapse
Thanks. Nevermind. It was worth asking.
As the HTC Desire has it's own Wireless and 3G/HSDPA. I won't use it often but it can be handy, when you have no 3G/HSDPA/Wireless available but a PC with USB Port and working Broadband.
glumardok said:
On the other hand: The Desire's WiFi-receiver is really excellent. Where you need access to a LAN try ES File Explorer together with either a WiFi or Bluetooth connection.
Click to expand...
Click to collapse
Thanks. I'll take a look.
I also missed this feature from my WinMo HTC TD2
I hope one day this will be possible with our HTC Desire. Here in my office we dont have WiFi as we only use LAN with our laptops. And there are no WiFi signals nearby
I have to wait till I get home to be able to have WiFi and update weather and download and install stuffs in my Desire
it is already possible, do a search for "reverse tethering"
AndroHero said:
it is already possible, do a search for "reverse tethering"
Click to expand...
Click to collapse
wow really??? Thank you very much for the info! Im sorry for the Android newbie question
dinoalbert said:
wow really??? Thank you very much for the info! Im sorry for the Android newbie question
Click to expand...
Click to collapse
Here is some info on it, its about the nexus one but applys to the desire too
http://forum.cyanogenmod.com/topic/1042-reverse-tethering/
Thanks for the link. Will do some readiings for this one. I see its not that easy and it doesnt work for everyone. I was hoping its just a one-button-click process only just like "tethering"
The Desire HD has it
Thanks AndroHero and EddyOS.
Is it easy to use on the Desire HD? It's good to see HTC have added this to the latest version of Sense.
I only got GPRS in my last job, so I'd often turn on Wifi but this obviously isn't always going to be possible. If I'm by a PC I'd obviously use that for browsing mostly anyway but some things (like Market and some websites etc...) I'd not want to access from someone else's PC. I'd want to be using my phone.
No idea, doesn't work on the HD port though
Maybe it's a stupid question, but why would you want to use the internet on a phone when you're sitting in front of a computer that's connected to the internet?
Mostly I wouldn't but things like Market Place, checking E-Mails/Facebook etc... (not always possible/you'd want to from the PC you're at) to name some examples.
dickson123 said:
Maybe it's a stupid question, but why would you want to use the internet on a phone when you're sitting in front of a computer that's connected to the internet?
Click to expand...
Click to collapse
personally i like to update everything on my phone via my work internet connection before i leave for the day. updating my daily news app takes over 40mb alone and i'd rather do that via my work internet connection than by using 3g.
What News App do you use? 40Mb is loads.
dickson123 said:
Maybe it's a stupid question, but why would you want to use the internet on a phone when you're sitting in front of a computer that's connected to the internet?
Click to expand...
Click to collapse
update weather, friendstream, and install apps that need internet connection..

USB Mass Storage Mode

Anyone able to get this working yet on our US variants?
Link Here for Details
User justed updated that post with this:
d4fseeker said:
@jiggytom:
Thank you! I've updated the shell-scripts to include the US-variant,
and also added a description to use it with 2 easy buttons in GScript Lite
Click to expand...
Click to collapse
I guess i'm failing to see what the problem is with not being able to mount the sdcard as mass storage. From the very first time I plugged in my phone to my desktop, I have been able to drag and drop files to either the internal or external sdcard just fine.
Gadgetz said:
I guess i'm failing to see what the problem is with not being able to mount the sdcard as mass storage. From the very first time I plugged in my phone to my desktop, I have been able to drag and drop files to either the internal or external sdcard just fine.
Click to expand...
Click to collapse
Certain devices like TV and Car Radio which are supposed to be able to read songs and other media off your device are not compatible with MTP/PTP mode like the one used stock on our devices. Not only that but overall transfer reliability with MTP/PTP mode is greatly reduced. I can think of quite a number of times when I was in the middle of transferring a bunch of files and all of the sudden the transfer would time out and I have to do it all over again. UMS mode never had any of these issues.
The app hasn't worked for me.
I need USB Storage mode for my car, as well as syncing my iTunes library through iTunes Agent. Also its annoying that I can't use my phone when MTP is syncing.
Gadgetz said:
I guess i'm failing to see what the problem is with not being able to mount the sdcard as mass storage. From the very first time I plugged in my phone to my desktop, I have been able to drag and drop files to either the internal or external sdcard just fine.
Click to expand...
Click to collapse
Try that with Linux
Sent from my SPH-D700 using xda premium
epicnoob66 said:
Try that with Linux
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Not to mention I think Mac OS needs a separate application/plugin just to be able to read MTP devices.
Also it seems not all type of files can be transferred to the phone..
Bump, is there anything new in the works for US versions to rectify this? Hate not having this functionality. Actually, if I was still in my trial I would probably be returning my phone largely because of this issue. Sadly, it took me awhile to get around to looking into it though.
In further response to Gadgetz. My personal (most pressing at least) reasoning for needing this functionality has to do with syncing of ratings and playcounts for music. There is, as far as i know, no program that easily provides two way sync between an android phone and pc for these fields without overwriting entire files (not Ideal, not really even practical in my case as I transcode flac to mp3 for mobile use). The only workaround I could ever find was a script add-on in media monkey in conjunction with using the playerpro app. This process can only be completed in mass storage mode. Now I am stuck with no way to rate songs "globally." And that is a huge issue for me...
The fact that the international version has a fix gives me hope...crossing my fingers.
formulaci said:
Bump, is there anything new in the works for US versions to rectify this? Hate not having this functionality. Actually, if I was still in my trial I would probably be returning my phone largely because of this issue. Sadly, it took me awhile to get around to looking into it though.
In further response to Gadgetz. My personal (most pressing at least) reasoning for needing this functionality has to do with syncing of ratings and playcounts for music. There is, as far as i know, no program that easily provides two way sync between an android phone and pc for these fields without overwriting entire files (not Ideal, not really even practical in my case as I transcode flac to mp3 for mobile use). The only workaround I could ever find was a script add-on in media monkey in conjunction with using the playerpro app. This process can only be completed in mass storage mode. Now I am stuck with no way to rate songs "globally." And that is a huge issue for me...
The fact that the international version has a fix gives me hope...crossing my fingers.
Click to expand...
Click to collapse
Answer Here
open1your1eyes0 said:
Answer Here
Click to expand...
Click to collapse
Awesome. Seeing it was a script made me nervous, but not too bad if you follow the instructions. GScript force closing every time is an annoyance, but nothing I cant live with. (and I have to assume now that the functionality is there eventually someone will stick it in a standalone app or widget)
Anywho, thanks for the link! I can stop panicking now.

We can connect (and use) external NFC readers to our phones through USB OTG

You can find pictures and a description of my set up here:
http://www.nfcbrief.com/2012/07/acr122-and-galaxy-nexus-connected-via.html
Basically, ACS released an application called Smart Biz Card that allows you to read and write contact NFC tags with the popular ACR122 connected via USB host. The application is only for tablets, so it will look strange on phone screens, but this can be fixed by entering tablet mode.
I'm sure many of you viewing this sub-forum also have a ACR122, so maybe this application will provide some clues as to unlocking more advanced features through external readers?
NFC Guy said:
You can find pictures and a description of my set up here:
http://www.nfcbrief.com/2012/07/acr122-and-galaxy-nexus-connected-via.html
Basically, ACS released an application called Smart Biz Card that allows you to read and write contact NFC tags with the popular ACR122 connected via USB host. The application is only for tablets, so it will look strange on phone screens, but this can be fixed by entering tablet mode.
I'm sure many of you viewing this sub-forum also have a ACR122, so maybe this application will provide some clues as to unlocking more advanced features through external readers?
Click to expand...
Click to collapse
hi good job but i don't see the point ?? Nexus for example already have NFC so why connect ACR 122 ??
Bardamuz said:
hi good job but i don't see the point ?? Nexus for example already have NFC so why connect ACR 122 ??
Click to expand...
Click to collapse
My thinking was that this sort of thing would be ideal for NFC hacking. The documentation for the ACR122 states that it can do card emulation (but everyone seems to be having trouble with it). If we could somehow get the drivers for the ACR122 working fully with Android, it would provide a good alternative to trying to access our phones' secure elements for card emulation.
This could also have some more practical uses, e.g. for event ticketing on a small scale?
NFC Guy said:
My thinking was that this sort of thing would be ideal for NFC hacking. The documentation for the ACR122 states that it can do card emulation (but everyone seems to be having trouble with it). If we could somehow get the drivers for the ACR122 working fully with Android, it would provide a good alternative to trying to access our phones' secure elements for card emulation.
This could also have some more practical uses, e.g. for event ticketing on a small scale?
Click to expand...
Click to collapse
i some point i agree with you, but i think will be (maybe) simpler to use the ACR122 in pc (mac/winbooze) and transfer it in some Android apps
but at least you are right card emulation it's a problem currently
ACS USB NFC reader
Hi
Have you actually had this working on a tablet? I have tried with a Samsung Galaxy tab 10.1 (2) and the reader is not recognised. Some other readers which have chipsets Samsung support are recognised and show up as an HID. But the ACR122U doesnt appear.
Ted
Basically, ACS released an application called Smart Biz Card that allows you to read and write contact NFC tags with the popular ACR122 connected via USB host. The application is only for tablets, so it will look strange on phone screens, but this can be fixed by entering tablet mode.
I'm sure many of you viewing this sub-forum also have a ACR122, so maybe this application will provide some clues as to unlocking more advanced features through external readers?[/QUOTE]
tedhurlock said:
Have you actually had this working on a tablet? I have tried with a Samsung Galaxy tab 10.1 (2) and the reader is not recognised. Some other readers which have chipsets Samsung support are recognised and show up as an HID. But the ACR122U doesnt appear.
Click to expand...
Click to collapse
I would guess they are missing the mandatory drivers to use them. Btw, are you sure they are recognized as HID? They actually should be recognized as CCID, if I remember correctly. Can you confirm they actually work?
ACR122 on Galaxy
I have no idea where I would get drivers. ACD who produce the device have only given a lava library for access which seems to use direct USB calls. And it seems to have been broken with ICS.
Tjis Android world looks quite muddy from my first experiences
Damastus said:
I would guess they are missing the mandatory drivers to use them. Btw, are you sure they are recognized as HID? They actually should be recognized as CCID, if I remember correctly. Can you confirm they actually work?
Click to expand...
Click to collapse

What I really really hate about this phone? No native USB support

The usb storage. MTS or whatever you call it . Very slow, terrible for navigating/editing multiple directories/windows at once. Frustrating. Can only find size of files by going in the directory and selecting all files. Anyone know of a good quick solution to this? I've played with the common game editor but don't really see it as encompassing the solution to all the problems of not having the classical USB mount
You think thats bad? Try having Mac. I can't even get it to recognize me phone lol. I'm forced to used my windows machine.
And I believe its a JB thing, not necessarily Samsung.
Sent from my SGH-I747M using xda app-developers app
g2tegg said:
You think thats bad? Try having Mac. I can't even get it to recognize me phone lol. I'm forced to used my windows machine.
And I believe its a JB thing, not necessarily Samsung.
Sent from my SGH-I747M using xda app-developers app
Click to expand...
Click to collapse
I had this problem too with my macbook pro then I found a solution tonight. Try this:
1. Install Kies if you haven't already, if you have make sure it's updated.
2. Connect your phone.
3. In Kies, click Tools, then Install Drivers (this will reinstall drivers
4. Download Android File Transfer.
Should work after this. Also make sure you have USB Debugging on and use PTP not MTP.
johnnyutah22 said:
I had this problem too with my macbook pro then I found a solution tonight. Try this:
1. Install Kies if you haven't already, if you have make sure it's updated.
2. Connect your phone.
3. In Kies, click Tools, then Install Drivers (this will reinstall drivers
4. Download Android File Transfer.
Should work after this. Also make sure you have USB Debugging on and use PTP not MTP.
Click to expand...
Click to collapse
I will be sure to give this a shot tomorrow and send along an update. I rarely use Kies, updated it yesterday but never tried the drivers thing. Android file transfer never used to work but maybe the "install drivers" step is all that's needed.
And thats why I love it here on XDA. Thanks for the help brother!
Sent from my SGH-I747M using xda app-developers app
I agree... coming from a s2 skyrocket, I really miss UMS. Why bother having expandable storage when it takes hours to transfer to a class 10 32gb sd card? That is if I can get it to transfer at all.
I'm now resorting to unmounting sd card and putting it in the computer to transfer files...big PITA
SGS3 Easy UMS doesnt work either.
Edit: Actually, I'm using kies now... still miss drag and drop
Agreed. Always had driver problems with this phone. Sometimes it wouldn't connect because drivers failed to install or "bad hardware ID" pops up in the corner. Only way to get it to work was to restart comp. And it would only work until I disconnected it, then gotta restart again. -.-
I'm gonna switch back to linux once I get some free time. I recommend you do the same.
g2tegg said:
And I believe its a JB thing, not necessarily Samsung.
Click to expand...
Click to collapse
It was a problem in ICS as well. I think the reason for that they went with MTP is that users would create a "messy" file structure when they randomly dragged and dropped files anywhere on both the internal and external card. Samsung can keep things organized when they encourage you to use Samsung Kies to add files to the device.
The mandate for MTP is also to reduce piracy of protected media files by ensuring the DRM is properly done. In the past, I could connect my phone directly to my Samsung SMART TV and play 720/1080p movies via UMS. This is now blocked with MTP.
Anonymously_Unknown said:
It was a problem in ICS as well. I think the reason for that they went with MTP is that users would create a "messy" file structure when they randomly dragged and dropped files anywhere on both the internal and external card. Samsung can keep things organized when they encourage you to use Samsung Kies to add files to the device.
The mandate for MTP is also to reduce piracy of protected media files by ensuring the DRM is properly done. In the past, I could connect my phone directly to my Samsung SMART TV and play 720/1080p movies via UMS. This is now blocked with MTP.
Click to expand...
Click to collapse
Thanks I also noticed the slow data transfer speed when I upgraded my SII to S3. Thought it was something I was doing wrong. I've changed the default transfer to PTP and will check it out tonight.
seamus24 said:
I've changed the default transfer to PTP and will check it out tonight.
Click to expand...
Click to collapse
Don't bother with PTP. PTP is just a camera. It's not like UMS so you might as well leave it on MTP
g2tegg said:
You think thats bad? Try having Mac. I can't even get it to recognize me phone lol. I'm forced to used my windows machine.
And I believe its a JB thing, not necessarily Samsung.
Sent from my SGH-I747M using xda app-developers app
Click to expand...
Click to collapse
I was annoyed by this as well. Now when I want to add something to my sd card I just take it out of the phone and put the sd card in my Mac and add files that way. It's a little annoying but its not that big of a deal.
I think the closest you'll get to a true UMS experience is using Samba Filesharing Server (https://play.google.com/store/apps/details?id=com.funkyfresh.samba). You can then treat it like a network shared drive.
Of course you'll be limited by your WiFi speed. I think a possibility would be a USB host adapter and a USB ethernet adapter. I'm not sure if Android has support for a USB ethernet adapter but if that works then you should be able to connect to a gigabit switch/adapter and just be limited by USB2 speed.
It's not just this phone in general. They're all going that way as of ICS (Honeycomb as well) and up. If you use Windows it's not terrible but it is still slower. And yeah trying to use it with my Mac or even my Linux box is just frustrating. The primary reasoning was to merge the data and application volumes to give more space for applications. This is a better explanation of it. I do miss USB storage mode though.
Yep, totally frustrating for me also.
I remove my microSD card when I need to do lots of file management. But it's a clumsy workaround.

Citrix Receiver

One of the things I wanted to be able to use my Pixel C for when I got it is Citrix Receiver. I wouldn't want to use it always for work but it would be nice when traveling to just take my Pixel C and my bluethooth mouse and be able to do some remote work with it if something were to come up. However, everytime I try and connect all I get is a black screen. I can connect with my phone and my Nexus 7 2013 but not my Pixel C. Has anyone else tried using this at all with any luck? This will be a big let down for me if it won't work at all.
Are you running MM or N?
MM
Hmm... It worked on mine absolutely fine on MM. I'm now on N Preview and it's working OK as well? Perhaps it is something on the business side of things rather than your Pixel?
NJ72 said:
Hmm... It worked on mine absolutely fine on MM. I'm now on N Preview and it's working OK as well? Perhaps it is something on the business side of things rather than your Pixel?
Click to expand...
Click to collapse
What kind of connection are you doing? I have to do a Manual Connection to an Access Gateway with Password and Token Authentication.
cccoltsicehockey said:
What kind of connection are you doing? I have to do a Manual Connection to an Access Gateway with Password and Token Authentication.
Click to expand...
Click to collapse
I work for an IT reseller who specialises in Citrix, the connection time and authentication that you use will depend entirely on what is running on your company's back-end Citrix environment. It will also depend on the version of NetScaler that it is connecting in through as well as the version of StoreFront Server. This isn't something I'll be able to help you with I'm afraid
I'd suggest dropping a support call through to your IT support guys who should be able to advise of the parameters for your environment.
NJ72 said:
I work for an IT reseller who specialises in Citrix, the connection time and authentication that you use will depend entirely on what is running on your company's back-end Citrix environment. It will also depend on the version of NetScaler that it is connecting in through as well as the version of StoreFront Server. This isn't something I'll be able to help you with I'm afraid
I'd suggest dropping a support call through to your IT support guys who should be able to advise of the parameters for your environment.
Click to expand...
Click to collapse
I will do that.
I make it into our Citrix Storefront but once there I can get a connection to my Virtual Desktop.
Well turns out I can run serveral test apps now as well just not able to get access to Virtual Desktops.
cccoltsicehockey said:
One of the things I wanted to be able to use my Pixel C for when I got it is Citrix Receiver. I wouldn't want to use it always for work but it would be nice when traveling to just take my Pixel C and my bluethooth mouse and be able to do some remote work with it if something were to come up. However, everytime I try and connect all I get is a black screen. I can connect with my phone and my Nexus 7 2013 but not my Pixel C. Has anyone else tried using this at all with any luck? This will be a big let down for me if it won't work at all.
Click to expand...
Click to collapse
I had this same issue. You can work around this by creating a file in the root of your internal memory called "receiverconfig.txt". The contents of the file should be a single line: "ThinwireMode=h264". Let me know if this doesn't work for you.
uncon said:
I had this same issue. You can work around this by creating a file in the root of your internal memory called "receiverconfig.txt". The contents of the file should be a single line: "ThinwireMode=h264". Let me know if this doesn't work for you.
Click to expand...
Click to collapse
Thank you so much that fixed the problem. Very much appreciated.
If you don't mind me asking how did you figure that out?
cccoltsicehockey said:
Thank you so much that fixed the problem. Very much appreciated.
If you don't mind me asking how did you figure that out?
Click to expand...
Click to collapse
I managed to stumble upon this by my own troubleshooting and information from Citrix Receiver for Android OEM's Reference Guide (publicly available).
uncon said:
I managed to stumble upon this by my own troubleshooting and information from Citrix Receiver for Android OEM's Reference Guide (publicly available).
Click to expand...
Click to collapse
Thank for digging that up then. Saved me a lot of frustration. :good:

Categories

Resources