首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >acr122标签阅读器在OS上的应用

acr122标签阅读器在OS上的应用
EN

Stack Overflow用户
提问于 2012-10-07 00:15:10
回答 2查看 2.2K关注 0票数 3

当用户向ACR122U nfc读取器点击标记时,我需要创建一个应用程序将带有数据的帖子发送到web服务。应用程序需要在启动后继续自己运行,并在每次点击标记时发送POST。对于基于标记数据的条件逻辑,需要对应用程序中的POST url进行控制。这是一个简短的POC安装,不超过500个标签滑动在一个4小时的窗口。当用户点击几个标签时,将会有一个阅读器和一个屏幕显示一个带有累积列表的网页。

由于我有一个MacBook Pro (OSX10.7),我已经尝试了几种方法与该平台。不幸的是,没有成功。我更喜欢OS解决方案,但对建议持开放态度。

考虑到以下情况,我需要做什么?有没有更好/更容易的方法?

  1. tagstand_writer:
代码语言:javascript
复制
- The ACR122U came with software called 'tagstand\_writer\_macosx\_0\_6\_5\_beta'. tagstand\_writer does not seem to encompass the functionality I want. It seems only to enable simple read/write without continuous polling. Can it be used by a wrapper application that does the polling, or can it be used in a way I am not aware of to achieve the desired functionality? Anyway, I tried to write a url to my tag, per the instructions, but was unable to. I forget what the problem was, but it didn't seem worth pursuing. I was, however, able to read the tag per the instructions.

  1. libnfc
代码语言:javascript
复制
- Searching for clues, I stumbled upon libnfc. So, I took a deep breadth and braved the install process. It didn't go very well. The documentation is 'ok'  (not stumble-proof), and the process was challenging. I hit a few pot holes in the configure/make process and it took a while. Eventually, I was able to get one of the examples running. But, I wasn't sure what to do next. It seems pretty low level. There is an example provided called 'nfc-poll' but, it exits after a tag is read and I'm not sure if I can make that do what I want. I think this is the most promising of my 3 attempts, but am not sure what to do next.

  1. 塔格事件
代码语言:javascript
复制
- Looking for a higher-level starting point, I found tageventor. It seemed promising in that tagEventor, once started, is supposed to run and poll and call a script when a tag is read. The script, supposedly can be anything. So, I tried, but was unable to get it working. I found a [more current version](https://github.com/bettse/tagEventor) on github and tried that as well to no avail. I could get tagEventor to run, but when I touched a tag to the reader there was an error: "ERROR: readerCheck:: RPC transport error". I have no idea what that is, and neither does the internet apparently. Also, while trying to debug tageventor, I did notice that my console was outputting an error: "token in reader ACS ACR122U PICC Interface 00 00 cannot be used (error 229)" regardless of whether tageventor was running or not. 

简单/快速的解决方案是什么?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-12-05 21:34:18

遗憾的是,我没有及时找到OS解决方案,而是使用了Windows盒,这很容易。SDK是为Windows制作的:http://www.acs.com.hk/en/products/12/acr122u-nfc-contactless-smart-card-reader-software-developmnt-kit/

票数 0
EN

Stack Overflow用户

发布于 2013-08-02 03:51:21

我建议你在你的应用程序中使用类似的东西: echo 1\ pcsctest >out.txt cat out.txt grep“当前的读取器ATR值”\ tr -d“AC.26 tr ":”\{print $2}‘“,你可以创建一个bash脚本,如果你愿意的话,你可以把它放在守护程序模式中。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12765017

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档