访问RFID的编程语言

发布于 2024-10-20 23:11:34 字数 149 浏览 7 评论 0原文

我想创建一个使用 RFID 技术的项目。我不知道哪些语言可以用来检索RFID数据。是否有一个语言列表可以为检索 RFID 数据提供良好的支持,如果有,是否有可用的示例代码?我发现了一些资源似乎表明可以使用Python,但是我对Python 的经验不是很丰富。任何帮助或指导将不胜感激。

I would like to create a project that uses RFID technology. I don't know which languages can be used to retrieve RFID data. Is there a list of languages that provide good support for retrieving RFID data, and if so, is there sample code available? I have found some resources which seemed to indicate that Python can be used, however I'm not very experienced with Python. Any help or guidance will be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

夜光 2024-10-27 23:11:34

查看 Arduino 与 Parallax RFID 读取器。您可以用 C 语言对其进行编程。

Check out Arduino together with Parallax RFID reader. You can program it in C.

烟雨扶苏 2024-10-27 23:11:34

确定您的项目的目标是什么,明智地选择您的编程语言。

如果我们知道您正在设计什么样的项目,嵌入式系统与“普通”PC 不同,那么这是有一定优势的。

Determine what is the target (or targets) of your project, choose yours programming language wisely.

It was for some advantage if we know, what kind of project are you designing, a embedded system is different to "normal" PC.

蓝海似她心 2024-10-27 23:11:34

我假设您已经拥有该项目的硬件?如果没有,您需要在开始考虑编程之前对此进行调查。

继续编写代码,如果您打算实际编写硬件驱动程序来操作 RFID 读取器,那么您将需要使用 C++ 等低级语言。您还需要了解硬件接口编程。

但很可能你不需要担心这一点,因为硬件驱动程序已经编写好了;您需要做的就是通过一系列库调用来调用它们的功能。

几乎所有现代语言都可以访问标准库,因此您应该能够使用您喜欢的几乎任何语言来执行此操作。

因此,语言的选择不是为了访问硬件,而是为了找到适合您的语言——选择的语言可以是您已经熟悉的语言,也可以是您想要学习的语言。您应该决定是要使用脚本语言还是编译语言。它还需要是一种具有生成您想要的用户界面的工具的语言。

我在标签中看到 PHP。我想说这不是适合这个项目的语言,因为 PHP 通常用于服务器端基于 Web 的应用程序,如果有一种技术不是服务器端或基于 Web 的,那么它就是无线射频识别。 PHP可以用于通过本地 GUI 编写代码,但它永远不会成为此类程序的最佳语言。

I'm assuming you already have the hardware for this project? If not, you'll need to investigate that before you start thinking about programming.

Moving on to code, if you're planning on actually writing the hardware drivers to operate the RFID reader, then you'll need to use a low-level language like C++. You'll also need to know about programming hardware interfaces.

But most likely you don't need to worry about that, because the hardware drivers are already written; all you need to do is call their functionality, which would be through a series of library calls.

Virtually all modern languages can access standard libraries, so you should be able to do this in pretty much any language you like.

The choice of language is therefore less about accessing the hardware, and more about finding the appropriate language for you -- the choice could be one that you're comfortable with already, or one that you want to learn. You should decide whether you want to use a scripting language or a compiled language. It also needs to be a language which has the tools to produce the user interface you want.

I see PHP in the tags. I would say that this would not be a suitable language for this project, since PHP is typically used for server-side web-based applications, and if there's one technology that isn't going to be server-side or web-based, it's RFID. PHP can be used to write code with a local GUI, but it's never going to be an optimal language for such a program.

落叶缤纷 2024-10-27 23:11:34

您指定了什么样的硬件?
应用程序的基础实际上来自于场景中的“戏剧人物”。一些 RFID 读取器制造商更倾向于以微软为中心,并且经常利用更复杂的产品(例如 websphere)来利用 Java。这并不是说这有什么问题,但再次强调,确定你正在工作的风格很重要。请记住,并不是每个人都会保持灵活性。

What kind of hardware designation have you made?
The fundamentals of an application really come from the "character dramatis" in the scene. Some manufacturers of RFID readers are more prone to being microsoft centric and often times utilize more complex products like websphere to utilize Java. Not that there is anything wrong with that but again it is important to nail down the flavor you are working in. Just remember not everyone is going to be flexible.

不乱于心 2024-10-27 23:11:34

这取决于阅读器规格,而不是语言本身,因为阅读器制造商决定您“可以”连接到阅读器的方式。

从 PHP 开始,您应该寻找支持 TCP/IP 的阅读器(昂贵)。因为 PHP 会让你很好地处理它,而且你不需要浏览器来完成它。 PHP CLI 将允许您根据需要保留在服务器端打开的脚本实例,并监听读者的调用或打开新的调用。此外,如果您的阅读器将数据记录到内存中,您可以定期使用 cron 作业/计划任务检索它。

使用其他语言也可以实现相同的功能(每种语言都会让您打开套接字),但是大多数制造商只会让您使用通常在几种语言上可用的专有 API 连接到他们的阅读器,这使得选择任何语言都非常痛苦你想要的,但制造商希望你做的。

It depends on the reader specs, not the language itself, since the reader manufacturer decides how you 'can' connect to the reader.

As of PHP, you should look for TCP/IP enabled readers (expensive). Since PHP will let you handle it pretty well, and you DON'T need a browser to do it. PHP CLI will let you keep instances of script opened server-side as long as you'd like, and listen to reader's calls or open new ones. Also, if your reader records data into memory, you can retrieve it with cron jobs/scheduled tasks periodically.

Same stuff can be achieved with other languages (every language will let you open sockets), BUT most manufacturers will only let you connect to their readers using proprietary API's that will often be available on a few languages, making it really painful to choose any language you want, but the ones the manufactuers want you to.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文