I am going to build an client-server service that will control the security of a house(who comes in and who comes out). I want the identification to be made via nfc communication and especialy between a nfc-android phone and a nfc reader connected to a pc. So i am thinking of 2 programms. one for the phone and one for the pc( +1 for the server if any). I want data to be saved to both phone and pc. Is this possible via nfc? can the phone read and write data via nfc?
I am thinking of using java for both programms. Do we know for any nfc api? (i have a nxp chip on my device)
What reader should i buy? any recomendations?
In order to make the application you have to save certain information (e.g. user id) in a secure place. This is the problem, since the phone normally does not allow running in card emulation mode and do not allow to access the secure element - more you can read there: Android and Symbian NFC mobile development questions and answers (FAQ).
Anyway it seems that the Mifare 4K can be used... Might be the p2p mode with the SD card secure element is also a way there...
BR
STeN
Android does let you now to use your phone like it is a nfc-tag.
This is called "Host based Card Emulation".
On your phone, you can either let android do the magic and after the transaction is finished read the status in your app, or you can have your app control the whole process.
See http://developer.android.com/guide/topics/connectivity/nfc/hce.html
Related
I’m not sure if this is the right place to ask this question as this is my first question, but I have the following scenario and I need advice and guidance. Or, if this is the wrong place to ask this question, where should I post it?
I want to create a Java Bluetooth proxy application that will sit in the middle of an Android app and a bluetooth IoT device. I want this Java application to see all the traffic that is being exchanged between the app and the IoT device. I have found similar applications called btproxy and btlejuice, but I want to implement it within Java and I want it to be really simple. I have looked into Bluecove but I'm not having much luck. I’m guessing I will need 2 different machines or VM’s so I can use 2 different bluetooth adapters.
Basically, when you connect the Android app to the computer/VM, the data will be logged and it will be sent to the IoT device. The IoT device will then process it, and send its data back to the Android app via the computer/VM. I’m guessing this relies heavily on the UUID of the app and the device?
Is this possible to achieve, if so, have I got the right topology for this scenario and what would be the best Java API to use and is there any code that will help?
We need to design a simple application which has to reside on the SIM card of a GSM mobile with NFC and should connect to an Android phone app. Is anyone able to provide a link on this?
Until now we already have apps on Android but we need to connect to NFC on the SIM card or on the phone. How should we go about it? Thanks in advance for the help.
The Open Mobile API may be what you are looking for. An Android implementation exists with the SEEK-for-Android project. However, SEEK is currently not integrated into main-line Android (AOSP) and consequently is not available on all devices. Note that both the hardware and vendor-specific software components need to support communication with a phone's UICC, so you can't just add support by packaging SEEK with your own app.
SIM card communication us done using ADPU (Application Protocol Data Units), which is a sequence of hexadecimal numbers. One communicate's with the SIM using HostApduService:
https://developer.android.com/reference/android/nfc/cardemulation/HostApduService.html
Applications on the SIM are generally written in JavaCard (an OS which uses some Java syntax) but they can only be installed by the network operator who owns the SIM - getting the application installed will be harder than writing it.
Bill.
I would like to develop a application that when used between two phone we can send exchange data(like e-visiting card). I intend to develop it for all smart phones even those without NFC. I am just a budding developer and would like to have some references about the possibilities of such an app. i have seen BUMP but i do not intend to maintain any server and would like to create a temporary network between the two phones and terminate it after the transfer. So is there any possibility in developing such an app?
Thanks in advance
Depends on the size of the data, but one possibility that comes to mind is the use of QR codes.
http://en.wikipedia.org/wiki/QR_code
You could try using a library like zxing (https://code.google.com/p/zxing/) to generate the qr codes.
Basically the phone wanting to send the data generates a qr code representation than the phone wanting to read the data reads the qr code with its camera and translates back to the original data.
I think you should try to use bluetoolth or local area network.
I pefer LAN.
In your app , you can set one app as server, another app as client.
make a socket connection and send your data.
I have a local windows app written in java, kind of crm.
Employees register events, like customer future calls, visits, meetings, etc.
I would like to pass these events from windows app to their iphones, so they see the reminder. The information should be registered in windows app, not on the iphone.
Is it possible somehow? I would like to avoid writing and app on iphone.
Is this possible to access address book in similar way? Let's say that Mr A is account manager for 30 customers. I would like to sync their contacts data stored in windows app with his iphone.
Is this possible in the way that it is windows app which synchronizes the data, not the app on iphone?
Thanks in advance
Brgs
Norbert
If I understand correctly, you are wanting to interact with an iPhone from your Windows PC, without having to create an app for the iPhone? If this is the case, I don;t know that this is possible.
To send an alert to an iPhone, there is the ability to send a Push Notification from an external source (such as your Windows PC/app) onto an iPhone. This is what happens in your mail apps on your iPhone - when you get an email on your email server, it sends a Push Notification to your iPhone telling it that there is a new email to read. However, to support Push Notifications, you need to have an app on the iPhone that knows what to do with it. In other words, you will still need an app on the iPhone so that when it receives a Push Notification from your Windows app, it knows that it should display a message to the iPhone user.
As far as I know, there isn't any way to retrieve information from an iPhone from an external source without having an app on the phone. This would be a pretty bad security concern if it were possible.
Accessing or syncing contacts will also need an app on the iPhone that can interact with the contacts and send them back-forth to your windows app.
You may be able to interact with contacts on an iPhone if you have it plugged in via USB. The USB provides a direct connection to the phone, so if you wrote the write Windows socket code then you should be able to talk to the iPhone over the USB and perform some tasks on there. However, I'm not sure whether you can interact with Contacts and other phone information - it is probable that you could only interact with files stored on the phone such as music and videos?
Don't be scared to write an app to do what you want - especially for alerting the user, it is a pretty simple app to write, as it doesn't need to do much processing, doesn't need to have any user interface at all, and all the Push Notification support is already built in to standard iOS libraries.
what you could do if your windows app allows you to is to add those events to outlook calendar and then use the google sync to push those events to a google calendar which is then added in the user iphone. the reminder would then be a iphone calendar reminder. no security leak but little control on the iphone side about reminders.
My new project is to build an application to use the cell phone camera as the main camera from my PC.
How can I do this kind of stuff?
I thought of using bluetooth, but how my PC define the cell phone as the main camera?
Best reguards.
Depending on the camera phone and its features, you can do it. For my Bluetooth efforts, I've been using A7 hardware and a .NET library Blue Tools from Franson.
I've been able to:
pair devices in code
send/push images to the phone (probably the reverse would work, but I didn't try)
discover devices automagically
serial comm
network com
install as a network driver
Well on the Bluetooth side of things you might need a program running on you phone to forward the images. Or you might find that there's a Bluetooth program already running and providing that service, for instance the Bluetooth BASIC IMAGING PROFILE (BIP) (1) profile includes the usage scenario: "Use of a mobile phone to control the shutter of a digital still camera and immediately examine the result on the phone’s screen. In the present scenario, any other portable imaging device could play the role of the mobile phone."
So first you need to find if the phone supports BIP. You could for instance use the SdpBrowser sample application in my 32feet.NET .NET Bluetooth library to see what services the phone is advertising. Otherwise perhaps its documentation will tell you. You'd then have to find out whether the BIP service on your phone supports that scenario.
On the PC side you might need some driver level software to allow any application to use the remote camera. You might start by just allowing your own application alone to use the camera.