The Role and Difference Between Software Watchdog and Hardware Watchdog

2023-06-06 usr News

Industrial cellular routers, as very important devices in wireless networking, have insight into customer application scenarios. As long as it is related to the reliability of wireless networking, even the most subtle technical applications should be excellent, such as guard dogs. Why do Industrial cellular routers attach so much importance to hardware and software watchdog, today we will take a look at the similarities between these devices.


A watchdog, also called a watchdog timer, is a timer circuit, Generally has an input, called feed the dog, an output to the MCU RST end, MCU normal work, and every once in a while output a signal to feed the dog end, to clear WDT, if exceed the specified time not to feed the dog (generally in the program to run away), WDT timing exceed, will give a reset signal to MCU, make MCU reset. Prevent the MCU from shutting down. The watchdog is there to keep the program from going into a loop or running away.


Working principle:  After the system is running, the watchdog counter is started, and the watchdog begins to count automatically. If the watchdog is not cleared within a certain time, then the watchdog counter will overflow and cause the watchdog to interrupt, causing the system to reset. So the use of a watchdog chip to pay attention to clear the watchdog.


The hardware watchdog uses a timer to monitor the running of the main program, which means that during the running of the main program, we have to reset the timer before the timer expires if there is an endless loop, or the PC pointer doesn't come back. Then when the timing time is up, it will reset the MCU.


The principle of software watchdog technology is similar to this, but it is realized by software. We still use the 51 series. We know that there are two timers in 51 microcontrollers, and we can use these two timers to monitor the operation of the main program. We can set a certain timing time for T0, when the timing interrupt occurs, to assign a value to a variable, and this variable has an initial value at the beginning of the main program running, here we want to set a fixed time value less than the running time of the main program, so that at the end of the main program to judge the value of the variable if the value has changed as expected, It means that the T0 interrupt is normal, and if there is no change, the program will be reset.


For T1 we use to monitor the operation of the main program, we set a certain timing time for T1, and reset it in the main program. If it cannot be reset in a certain time, the timing interrupt of T1 will reset the MCU. Here, the timing time of T1 should be set to be larger than the running time of the main program, leaving a certain margin for the main program. And T1 interrupt normal or not we by T0 timing interrupt subroutine to monitor. This is enough to become a cycle, T0 monitors T1, T1 monitors the main program, and the main program monitors T0, so as to ensure the stable operation of the system.



The main similarities and differences between software and hardware watchdog.

The similarities are as follows:

1) Both are achieved by timer; Reset the timer without feeding the dog.

2) It is necessary to feed the dog within the specified time.

3) Both rely on software to feed dogs.


The main differences are as follows:

1) Additional features: Hardware watchdog chips generally come with delayed reset and power testing capabilities, but the software does not.

2) Shielding method: The software watchdog is easy to mask off, only need to modify the register, and the hardware watchdog once started power can not stop.

3) Startup mode: software watchdog is easy to start, just modify the register in it. The hardware is generally started after receiving the first signal to feed the dog.

4) Initialization: hardware watchdog completes initialization when it receives the first feeding pulse after power-on, while the software watchdog needs to configure relevant registers (or call relevant watchdog subroutines).


Industrial router watchdog design

Industrial cellular routers and Industrial cellular modems have dual watchdogs, including software watchdogs and hardware watchdogs. They will wake up intelligently when the terminals are in trouble or restart automatically. Ensuring smooth wireless networking and wireless data transmission in real-time.


Software watchdog includes a process of kicking the dog or servicing the dog. The dog feeding process performs the dog feeding operation on a certain period, which is less than or equal to the period of the timer. Specifically, when the system is working normally, every once in a while output a signal to the dog feeding end, to reset the timer; If the dog is not fed beyond the specified time and the timer times out, a reset signal will be output to the system to reset the system to prevent the system from crashing.


The hardware watchdog is not restricted by the software. When the device is powered on, it can rely on the high pulse provided by the pull-up resistor to start the watchdog. As long as the software does not feed the dog in time, it will be reset, which is unconditional. The so-called "you get what you pay for" is also applicable to electronic products.


The main difference between software and hardware watchdog lies in the timing of opening the watchdog. Software watchdog must be initialized (configured) before it can be used. If the software watchdog is an API interface in the SDK provided by the manufacturer, the developer has no ability to modify the underlying uboot and kernel, and can not open and feed the dog in the uboot and kernel stage, The time to open the watchdog is very late, the program may not run to the watchdog initialization on the hang, in the middle are not controlled.


授权代理商:世强先进(深圳)科技股份有限公司
技术资料,数据手册,3D模型库,原理图,PCB封装文件,选型指南来源平台:世强硬创平台www.sekorm.com
现货商城,价格查询,交期查询,订货,现货采购,在线购买,样品申请渠道:世强硬创平台电子商城www.sekorm.com/supply/
概念,方案,设计,选型,BOM优化,FAE技术支持,样品,加工定制,测试,量产供应服务提供:世强硬创平台www.sekorm.com
集成电路,电子元件,电子材料,电气自动化,电机,仪器全品类供应:世强硬创平台www.sekorm.com
  • +1 赞 0
  • 收藏
  • 评论 0

本文由Vicky转载自usr News,原文标题为:The role and difference between software watchdog and hardware watchdog,本站所有转载文章系出于传递更多信息之目的,且明确注明来源,不希望被转载的媒体或个人可与我们联系,我们将立即进行删除处理。

评论

   |   

提交评论

全部评论(0

暂无评论

相关推荐

Distinguishing POE Power Supply in Lte 4G Router from Conventional Routers

The PoE power supply in lte 4g router differs significantly from that of conventional routers. lte 4g router are designed to meet the unique demands of industrial environments, offering higher power ratings, advanced power management, enhanced durability and reliability, and additional safety features.

技术探讨    发布时间 : 2024-03-22

The Value of Lte 4g Router in the Field of Wind Power Generation

Lte 4g Router have broad application prospects and tremendous value in the field of wind power generation. Leveraging their powerful network connectivity, data processing, and security capabilities, Lte 4g Router provide robust support for the stable operation, efficient management, and safety of wind power generation, driving the sustained and healthy development of the industry.

技术探讨    发布时间 : 2024-04-20

4G Industrial Router Network Monitoring: Building an Efficient and Stable IoT Monitoring Solution

The 4G industrial router is a network communication device designed specifically for industrial environments, integrating a 4G wireless communication module, industrial-grade protection design, and multiple network interfaces and protocol support. It can provide stable, reliable and secure network connections in complex and ever-changing industrial environments, meeting the high requirements of industrial automation and IoT applications for data transmission.

技术探讨    发布时间 : 2024-09-15

有人物联(usr)工业路由器选型指南

目录- Company Profile    High performance 4G industrial VPN router    Dual module 4G cellular router    Dual Ethernet with serial port 4G router    Dual Ethernet 4G industrial router    Small business 4G industrial router    5G Gigabit industrial cellular router    Solutions and applications    PUSR cloud   

型号- USR-G781-A,USR-G781-43,USR-G806-EAU,USR-G781-E,G810,USR-SDR160,USR-IO424T,USR-G810,USR-G808-33,USR-G808-AA,USR-G808-EE,USR-G809-EAU,USR-G810-E,USR-0781,USR-G805-ECAUX,USR-G806,USR-G806W,USR-G809,USR-G808,USR-G805-ECEUX,USR-G806S,USR-G808-AU,G781,USR-G781,USR-G809-E,USR-G806S-EAU,USR-G806-G,USR-G806-AU,USR-G806-E,G808,USR-G806-43,USR-G806-A,USR-TCP232-410S,G806S,USR-G805,USR-G781-AU,USR-G806S-43

选型指南  -  有人物联  - 2023/3/8 PDF 英文 下载

有人物联(usr)通信网关/通信模组/交换机选型指南(英文)

描述- Positioned as a "trustworthy smart IIoT partner" and an industry-leading IIoT software/hardware solution provider,Jinan USR IOT Technology Limited operates in the upstream and downstream sections of the IIoT industry value chain and focuses on the R&D, production and sales of communication products in order to fulfill the mission of “connection value, and value connection”.

型号- USR-N5X0 SERIES,USR-G817,USR-K7,USR-K6,USR-M100,USR-N510,USR-CANET200,USR-N5X0,USR-ISG SERIES,USR-TCP232-T2,USR-G806 SERIES,USR-N668,USR-DR504-G,U200,USR-ISG008P,USR-ISG008,USR-DR502-E,USR-G816,USR-ISG005,USR-G816H,USR-G806,USR-G806W,USR-TCP232-ED2,USR-G809,USR-G808,USR-TCP232-E2,USR-G806S,USR-N540,USR-DR302,USR-ISG,USR-DR301,USR-N520,USR-W630,USR-G771-E,USR-W610,USR-TCP232-S2,WH-LTE-7S1-E,USR-G781,USR-G786-G,USR-DR404,USR-TCP232-410S,USR-TCP232-304,USR-G805,USR-TCP232-302

选型指南  -  有人物联  - 2023/3/30 PDF 英文 下载

The Difference Between Industrial Router and Industrial Wireless Ap

Industrial Router and industrial wireless AP play an indispensable role in industrial IoT. Industrial Router has become a key device in many fields such as industrial automation, smart grid, and intelligent transportation due to its high stability, powerful data processing capability, high security, and flexible configuration management capabilities. Industrial wireless APs, with their focus on wireless access and network coverage, provide stable network connectivity and high-speed wireless transmission for wireless devices in industrial environments.

应用方案    发布时间 : 2024-09-19

数据手册  -  有人物联  - V1.0.0  - 2020/11/18 PDF 英文 下载 查看更多版本

How to Get 5GHz Band Support on Industrial Routers with 802.11b

Obtaining 5GHz band support on industrial routers with 802.11b is not an easy task. Due to the 802.11b standard‘s lack of support for the 5GHz band, it is necessary to achieve this by replacing devices, using dual-band routers or Access Points (APs), or other methods. In the implementation process, it is necessary to comprehensively evaluate the network architecture and actual requirements, select suitable equipment and configuration solutions, and pay attention to issues such as network security and maintenance work.

设计经验    发布时间 : 2024-09-19

USR-G806w specification Better Wi-Fi industrial router

型号- USR-G806W,G806,USR-G806-43,G806 SERIES,USR-G806W-43,USR-G806S-43

数据手册  -  有人物联  - 2023/9/15 PDF 英文 下载 查看更多版本

Differences between 4G DTU and 4G industrial router

This article tells about the differences between 4G DTU and 4G industrial routers: different network interfaces, different methods of use, different network anti-interference,and different application environments

设计经验    发布时间 : 2023-07-28

Industrial use of 4G LTE router

In the field of Internet of Things, 4G LTE router is one of the important components for building IoT solutions. It can connect various smart devices to the Internet, enabling interconnection and data sharing between devices. Through the 4G LTE router, enterprises can build private networks or virtual private networks (VPN) to achieve isolation and security of internal networks. At the same time, the 4G LTE router also supports multiple IoT protocols and interface standards, enabling seamless docking and integration with various IoT devices and platforms.

应用方案    发布时间 : 2024-09-19

5G Industrial Router Helps Industrial Applications

With the rapid development of intelligent manufacturing and intelligent factory applications, more and more machinery and equipment are transformed into digital, information, and network, and the traditional manufacturing operation mode has not met the needs of modern industrial development.

应用方案    发布时间 : 2023-04-08

Industrial Wireless Router Dynamic Routing Protocol Classification Details

The dynamic routing protocol in Industrial Wireless Router is one of the key technologies for achieving efficient, stable, and scalable industrial IoT. By reasonably selecting and configuring dynamic routing protocols, network performance can be optimized, data transmission efficiency can be improved, and network management costs can be reduced. However, in practical applications, factors such as network bandwidth, convergence time, and configuration complexity need to be fully considered to ensure the stability and reliability of the network.

设计经验    发布时间 : 2024-09-16

Anti Interference Protection Function of Industrial Routers

PUSR 5G Industrial Router has the advantages of stronger anti-interference, more stable signal, wider coverage, and higher data transmission bottleneck. It is widely used in high-end fields and outdoor complex environments to meet the needs of different industries.

设计经验    发布时间 : 2023-07-24

USR-G806 specification 4G industrial cellular VPN router

型号- USR-G806,USR-G806-G,USR-G806-E,USR-G806-AU,USR-G806-43,USR-G806-A,USR-G806-EAU

数据手册  -  有人物联  - 2021/6/28 PDF 英文 下载

展开更多

电子商城

查看更多

只看有货

品牌:有人物联

品类:DTU数传终端

价格:¥130.5000

现货: 0

品牌:有人物联

品类:模块

价格:¥31.2800

现货: 0

品牌:有人物联

品类:模块

价格:¥21.7600

现货: 0

品牌:有人物联

品类:模块

价格:¥25.8400

现货: 0

品牌:有人物联

品类:DTU数传终端

价格:¥243.6000

现货: 0

品牌:有人物联

品类:DTU数传终端

价格:¥217.5000

现货: 0

品牌:有人物联

品类:网络IO设备

价格:¥1,115.2000

现货: 0

品牌:有人物联

品类:模块

价格:¥31.2800

现货: 0

品牌:有人物联

品类:串口服务器

价格:¥111.5200

现货: 0

品牌:有人物联

品类:串口服务器

价格:¥204.0000

现货: 0

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

现货市场

查看更多

暂无此商品

海量正品紧缺物料,超低价格,限量库存搜索料号

世强和原厂的技术专家将在一个工作日内解答,帮助您快速完成研发及采购。
我要提问

954668/400-830-1766(工作日 9:00-18:00)

service@sekorm.com

研发客服
商务客服
服务热线

联系我们

954668/400-830-1766(工作日 9:00-18:00)

service@sekorm.com

投诉与建议

E-mail:claim@sekorm.com

商务合作

E-mail:contact@sekorm.com

收藏
收藏当前页面