OneWireViewer使用技巧
息的开始说明错误发生的时间(也称为“异常”)。 有两类器件支持CRC:带密码保护(记录器iButtons DS1922系列、DS1923和DS1977)和无密码保护(记录器iButtons DS1921系列、不带电池的其它iButtons和1-Wire芯片)的器件。无论哪种,OneWireViewer均通过读取1-Wire器件在存储器/控制功能命令流期间产生的CRC确定读或写操作是否成功。 对于无密码保护的器件,错误消息以Invalid CRC16 read from device结束。消息的开始通常(并不总是)说明错误或异常发生的时间。对于带密码保护的器件,错误信令则更复杂。错误末尾可能为Invalid CRC16 read from device (访问无保护的中间结果暂存器时)或Invalid CRC16 read from device. Password may be incorrect (访问其它存储器区域时)或Invalid CRC16 read from device. Password may be incorrect or a sample may be in progress (访问记录器iButton DS1922系列或DS1923的数据记录存储器时)。 特定功能Viewer错误行为 OneWireViewer包括几个特定功能Viewer:Thermochron、Mission、Temperature、Humidity、A to D、Switch、Clock、Memory和File。除Switch外,全部适用于记录器iButton器件,非常受非技术型用户的青睐。表2中汇总了各种不同的功能Viewer如何处理错误情况。Thermochron和Mission Viewer仅仅在消息记录中显示错误,经验不足的用户很容易忽略该位置。 用户可能会对使用密码保护感到迷惑。如果已启用密码,但没有设置特定器件的软件密码,Viewer就不能读取器件配置寄存器。这会造成显示Real-Time Humidity和A to D Viewer。DS2422和DS1922或DS1923在电池耗尽时也出现这种情况。 表2. 特定功能Viewer行为 Function Error Signaling Special Notes Thermochron? (DS1921) Message log only All tabs can be opened. No tab has data (the right half of the Status tab is empty) if the battery is drained. Mission (DS1922, DS1923) Message log only Only the Status tab can be opened. The right half of the Status tab is empty if the software password is not set or the battery is drained. See the Distinguishing Between an Incorrect Password and a Drained Battery section to identify the reason. Temperature Main window, message log The Temperature viewer always generates an error message if a mission is in progress. A to D (Humidity) Main window only The A to D (Humidity) viewer always generates an error message if a mission is in progress. Clock Main window only Non-CRC parts: an error is signaled only with Synchronize Clock to PC time and Halt Real-Time Clock. CRC parts: an error is signaled when opening the Clock tab and when executing any of the functions. Memory Main window, message log Non-CRC parts: an error is signaled only with Commit Changes. CRC parts: an error is signaled when reading a memory bank; Commit Changes is not executable. File Main window, message log The file viewer builds on Memory viewer functions. Therefore, error messages explained above apply only to the elementary functions Format Device (all parts) and Create Directory (non-CRC parts).
A date in February 2106 is indicative for a drained battery.
区分密码不正确和电池耗尽
暂不论1-Wire适配器和iButton之间电气接触不良,产生无效CRC16的Viewer并不知道是记录器的密码还是记录器电池耗尽造成的。目前的OneWireViewer(版本3.15.50及更早)不能区分这两种情况。唯一无需密码即可访问的存储器区域为记录器的32字节中间结果暂存器。测试非常简单:选择有问题的记录器,打开Memory 标签页,然后选择存储器组Scratchpad with CRC and Password。如果电池良好,CRC16有效,中间结果暂存器内容显示在Viewer的主窗口中。如需要,可覆盖一个或多个中间结果暂存器数据字节,然后点击Commit Changes按钮。如果电池良好,将能接收到新数据,可通过刷新检验。这是好消息。坏消息是需要找到正确的密码。找到密码后,需要通过Password标签页上的Set Software Password功能输入。该步骤之后,刷新Mission标签页上的任务结果,就又能访问记录器iButton上的全部功能。注意,OneWireViewer不在文件中保存密码,程序关闭时将丢失密码。
与适配器的通信错误
至此讨论的错误情形都与不同功能Viewer
模拟电路 模拟芯片 德州仪器 放大器 ADI 模拟电子 相关文章:
- 12位串行A/D转换器MAX187的应用(10-06)
- AGC中频放大器设计(下)(10-07)
- 低功耗、3V工作电压、精度0.05% 的A/D变换器(10-09)
- PIC16C5X单片机睡眠状态的键唤醒方法(11-16)
- 用简化方法对高可用性系统中的电源进行数字化管理(10-02)
- 利用GM6801实现智能快速充电器设计(11-20)
