对于Arduino的项目唯一的机器ID [英] Unique machine ID for arduino project

查看:2216
本文介绍了对于Arduino的项目唯一的机器ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立了Arduino的一些偏远的传感器节点,他们会用射频来传输数据回基站。是否有某种被逼到Arduino的,我可以用它来识别远程Arduino的传感器节点到基站的唯一ID?如果不是,怎么别人解决这个问题呢?

I am building some remote sensor nodes for arduino, they will use RF to transmit data back to a base station. Is there some sort of unique id backed into arduino that I can use to identify the remote arduino sensor node to the base station? If not, how do others solve this issue?

我意识到我可能很难code一NODEID当我编译该节点的源代码,就好像这不会扩展太清楚了。我需要的是在HTTP土地MAC地址类似的东西。

I realize that I could hard code a nodeid when I compile the source for that node, just seems like that would not scale too well. What I need is something analogous to a mac address in http land.

推荐答案

我无意中发现了这个问题,而试图找到回答自己,决定去与在注释中提供的链接引用DS2401(的 arduino.cc论坛:Arduino的序列号S / N

I stumbled on this question while trying to find answer myself and decided to go with DS2401 referenced in the link provided in comments (arduino.cc forum: "Arduino serial number S/N ?").

我会对我的项目反正所以有一个额外的(和相当便宜)组件不要紧1-Wire总线,它会提供全球唯一的ID不管使用的主板型号和芯片(也适用于克隆MFGS,比如我有几个DCcduino UNO板有CH340G为通讯科,而不是Arduino的UNO的Atmega8U2 / Atmega16U2和其他的Arduino板'FTDI)。

I will have 1-wire bus on my project anyway so having one extra (and quite cheap) component doesn't matter and it will provide globally unique id regardless of the board model and chips used (applies also to clone mfgs, for example I have couple of DCcduino UNO boards that have CH340G for comms instead of Arduino UNO's Atmega8U2/Atmega16U2 and other Arduino boards' FTDI).

这篇关于对于Arduino的项目唯一的机器ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆