在Android emulator上测试NFC

here's a summary of what to do to set up the OpenNFC stack with the NFC controller (NFCC) simulator.

--The stack (with NFCC simulator) is supported on Windows host only, since both the Connection Center and the NFCC simulator are Windows apps.

--Need to download all 3 packages:

OpenNFC Android SDK addon http://sourceforge.net/projects/open-nfc/files/Open%20NFC%204.3%20beta%20%2810381%29/Open%20NFC%20for%20Android%20SDK%20Addon%20v4.3.0%20%2810381%29.zip/download
OpenNFC core Edition http://sourceforge.net/projects/open-nfc/files/Open%20NFC%204.3.0%20%2810877%29/Open%20NFC%20-%20Core%20Edition%20v4.3.0%20%2810877%29.zip/download, which has the Connection Center and the NFCC simulator apps.
The echo server: EchoTool http://bansky.net/echotool/
--Install the SDK addon, and create an AVD using the SDK Addon.

--start Connection Center (run "Connection Center.exe") and config it to accept client connections from other machines.

--start NFCC simulator (run "NfcSimulator.exe").

--start echo server (on port 7), using the cmd: echotool /p tcp /s 7

--start Android emulator using the AVD just created.

--from the emulator, select Settings->Wireless & networks->NFC settings

--enter 10.0.2.2 in IP Connection Center

--select Simulator for NFC HAL implementation

--now click the NFC toggle (check box) to start the NFC stack!

reference http://stackoverflow.com/questions/6770774/getting-started-with-open-nfc-emulator

猜你喜欢

转载自jacky-zhang.iteye.com/blog/1671031