完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
HII正在努力将ASN 1 MIB翻译成Microchip MIB脚本,MiBiBiBin ASN可以描述一个有几个孩子的节点。在我的例子中,产品是一个有PNEY、PROVIEW等的分支。作为它的叶子,它保存数据项。假设如果你查询产品OID,浏览器将执行一系列的获取来获得每个叶类的S。这样的ASN。1实现(类似的微芯片脚本行在这里被注释)。我取消评论所有的Microchip MIB SCR。对于MIB2BIB实用程序的IPT行,但我得到的错误如图所示:在Microchip MIB脚本中,是否有MIbBiByExcel有类似的结构定义的经验或例子(除了AN870)?
以上来自于百度翻译 以下为原文 Hi I'm struggling with the translation of ASN.1 MIB to Microchip MIB script for mib2bib In ASN one can describe a node with several children. In my case product is a branch that has pName, pRevision etc.. as its leaves which hold data items. Supposedly if you query for the product OID the browser will execute a sequence of gets to obtain each of the leaf OID's. The ASN.1 implementation of this looks like (The corresponding Microchip script lines are commented here) I uncomment all the microchip MIB script lines for the mib2bib utility but I get errors as shown: RFoFcage OBJECT IDENTIFIER ::= {RFoptic 1} --$DeclareVar(RFoFcage, OID, SINGLE, READONLY, 43.6.1.4.1.40570.1) --$StaticVar(RFoFcage, 43.6.1.4.1.40570.1) product OBJECT IDENTIFIER ::= {RFoFcage 1} --$DeclareVar(product, OID, SINGLE, READONLY, 43.6.1.4.1.40570.1.1) <--- Error [1021] This is duplicate OID or Root of this OID is not same as previous OID(s), or this OID is a child of a previously defined OID. --$StaticVar(product, 43.6.1.4.1.40570.1.1) <----- Error [1014] OID name is not defined. pName OBJECT-TYPE SYNTAX DisplayString ACCESS read-only STATUS mandatory DESCRIPTION "Product name" ::= { product 1 } --$DeclareVar(pName, ASCII_STRING, SINGLE, READONLY, 43.6.1.4.1.40570.1.1.1) <--- Error [1021] This is duplicate OID or Root of this OID is not same as previous OID(s), or this OID is a child of a previously defined OID. --$StaticVar(pName, RFoptic RFoF cage running SNMP Agent) <----- Error [1014] OID name is not defined. pRevision OBJECT-TYPE SYNTAX DisplayString ACCESS read-only STATUS mandatory DESCRIPTION "Revision name" ::= { product 2 } --$DeclareVar(pRevision, ASCII_STRING, SINGLE, READONLY, 43.6.1.4.1.40570.1.1.2) <--- Error [1021] This is duplicate OID or Root of this OID is not same as previous OID(s), or this OID is a child of a previously defined OID. --$StaticVar(pRevision, v1.0) <----- Error [1014] OID name is not defined. Does anyone have experience or example (other than AN870) with similar structure definition in Microchip MIB script for mib2bib Thanks in advance |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
5184 浏览 9 评论
2005 浏览 8 评论
1932 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3179 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2229 浏览 5 评论
739浏览 1评论
626浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
511浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
637浏览 0评论
535浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-28 05:59 , Processed in 1.117794 second(s), Total 74, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号