The device of the utility model discloses a hardware identification number, can obtain the hardware identification number of the existing technology required for the hardware peripherals expenses is larger and acquiring hardware identification number is too limited or need to increase artificial burning links lead to the high cost of the problem. Implementation of the device hardware identification number includes: AD controller unit and the resistor network unit; among them, the resistor network unit comprises a first resistor and the second resistor unit unit, a first end of the first resistor unit connected to a reference power supply, the first end of the grounding resistance of second units, the first the second terminal resistance unit and the second resistor unit second is connected with the AD controller unit; hardware identification device for implementing the hardware identification number to achieve 2
【技术实现步骤摘要】
硬件标识号的实现装置
本技术涉及计算机
,尤其涉及一种硬件标识号的实现装置。
技术介绍
为了方便平台固件维护,在硬件开发时,经常会预留一些产品自身常规功能以外的外设用来做硬件版本更新。这样一来,一方面,每一种不同的硬件配置可以拥有唯一的标识(ID,Identifier)号;另一方面,软件维护时,可通过对硬件ID号读取进行简单的条件编译,便可实现同一平台多种外设配置的软件兼容。目前,获取硬件ID号的常规方式有以下两种:一种是电阻网络+GPIO(GeneralPurposeInputOutput,通用输入/输出)接口方式,通过电阻网络上下拉,然后通过GPIO外设读入的方式实现。如图1所示,通过n个GPIO接口上下拉,可获取2n个硬件ID号。另一种是存储单元+主机接口方式,通过主机接口读取相应特征字节数据用作硬件ID号。如图2所示,通过IIC(Inter-IntegratedCircuit,集成电路总线)接口,去读取含有EEPROM(ElectricallyErasableProgrammableRead-OnlyMemory,电可擦可编程只读存储器)的模块特征字节。对于第一种方式来说,对于一个新开发的平台,并不知晓后期到底会有多少不同硬件配置。如果n值取太大,会浪费过多的外设资源;如果n值取太小,则后期硬件ID号可能不够用。硬件外设开支较大,且获取的硬件ID数目太有限。对于第二种方式来说,需要在不同硬件配置下,先把相应的ID号烧录到预设地址,才能固化到相应的存储单元中。增加了一个人工烧录环节,所需成本较高。
技术实现思路
有鉴于此,本技术实施例提供一种硬件标识号 ...
【技术保护点】
一种硬件标识号的实现装置,其特征在于,包括:模数控制器单元和分压电阻网络单元;其中,所述分压电阻网络单元包括第一电阻单元和第二电阻单元,所述第一电阻单元的第一端连接参考电源,所述第二电阻单元的第一端接地,所述第一电阻单元的第二端和所述第二电阻单元的第二端连接所述模数控制器单元;所述硬件标识号的实现装置能实现的硬件标识号为2
【技术特征摘要】
1.一种硬件标识号的实现装置,其特征在于,包括:模数控制器单元和分压电阻网络单元;其中,所述分压电阻网络单元包括第一电阻单元和第二电阻单元,所述第一电阻单元的第一端连接参考电源,所述第二电阻单元的第一端接地,所述第一电阻单元的第二端和所述第二电阻单元的第二端连接所述模数控制器单元;所述硬件标识号的实现装置能实现的硬件标识号为2n个,其中,n为所述模数控制器单元的位数。2.根据权利要求1所述的硬件标识号的实现装置,...
【专利技术属性】
技术研发人员:刘重斌,
申请(专利权)人:杭州海康威视数字技术股份有限公司,
类型:新型
国别省市:浙江,33
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。