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

暂无评论

相关推荐

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 -  技术探讨 代理服务 技术支持 现货查询 批量订货

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 -  技术探讨 代理服务 技术支持 现货查询 批量订货

DDNS Function in Industrial Routers: Deep Analysis and Application Practice

An IP address is a numerical label used to uniquely identify each device on a network. The most widely used version of IPv4 addresses consists of 32-bit binary numbers, usually divided into four groups of eight bits each, separated by dots. Each group is represented by a decimal number ranging from 0 to 255. For example, 192.168.1.1 is an IPv4 address.

2024-07-27 -  技术探讨 代理服务 技术支持 现货查询 批量订货

Looking Forward to The Future Development Trend of 5g Industrial Routers

In the rapidly developing field of industrial Internet of Things (IIoT), 5G industrial routers are gradually becoming the core devices for connecting devices and driving digital transformation. With the continuous maturity and wide application of 5G technology, 5G industrial routers will show a broader development prospect and trend in the future.1. Higher data transmission speed and lower latency5G network provides unprecedented data transmission capacity for industrial IoT with its ultra-high speed and low latency characteristics.

2024-10-31 -  设计经验 代理服务 技术支持 现货查询 批量订货

The Role of Subnet Mask

The setting principle of the subnet mask for Industrial Router involves network planning, subnet mask selection, configuration, and verification. By deeply understanding these principles and making reasonable settings based on actual needs, it can ensure the stable, efficient, and secure operation of the Industrial IoT network.

2024-07-28 -  技术探讨 代理服务 技术支持 现货查询 批量订货

How 5g Industrial Routers Can Give Wings to Intelligent Manufacturing

5G industrial routers play an irreplaceable role in intelligent manufacturing with their unique advantages. It can not only achieve real-time collection and transmission of production data, provide strong support for production decisions, but also support remote operation and maintenance and multiple industrial protocol analysis, promoting the deep integration of intelligent manufacturing systems.

2024-10-30 -  技术探讨 代理服务 技术支持 现货查询 批量订货
2020/11/18  - 有人物联  - 数据手册  - V1.0.0 代理服务 技术支持 现货查询 批量订货 查看更多版本

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 -  应用方案 代理服务 技术支持 现货查询 批量订货

Starting from The Needs, Tailor The 4G Industrial Router Purchase Plan for The Enterprise

Starting from the needs, the purchase plan for 4G industrial routers tailored for enterprises needs to consider multiple aspects such as application scenarios, performance requirements, durability and environmental adaptability, network security and manageability, as well as after-sales service and technical support. By selecting routers scientifically and reasonably, enterprises can build a stable, efficient and secure network infrastructure, providing strong support for digital transformation.

2024-10-29 -  设计经验 代理服务 技术支持 现货查询 批量订货

4G Cellular Router: The Key to Unclok Smart Factories

4G Cellular Router play a pivotal role in transforming traditional factories into smart factories. They provide reliable and high-speed wireless connectivity, enable real-time data collection and analysis, and offer scalability and security for future growth. By deploying these routers, factories can unlock the full potential of IIoT technologies and achieve significant improvements in efficiency, productivity, and competitiveness.

2024-03-17 -  原厂动态 代理服务 技术支持 现货查询 批量订货

The Distinction Between Cellular Router and Cellular Gateway In Industrial IoT Applications

In the rapidly evolving world of Industrial Internet of Things (IIoT), Cellular Router and Cellular Gateway play pivotal roles in connecting devices, systems, and networks. Both devices enable wireless communication and data transmission, but they differ significantly in their functionalities, applications, and deployment scenarios. This article aims to delve into the fundamental differences between Cellular Router and Cellular Gateway, highlighting their unique characteristics and use cases in industrial settings.

2024-03-31 -  技术探讨 代理服务 技术支持 现货查询 批量订货

How to Choose Industrial Routers in The Era of Industry 4.0

In the era of Industry 4.0, selecting the right industrial router is the key to ensuring stable and efficient operation of networking applications. By clarifying the application scenarios, evaluating performance parameters, focusing on protection levels and reliability, considering network security, paying attention to management and maintenance, focusing on protocol support and interface richness, and considering redundancy and scalability, we can help you better choose the right industrial router and provide strong support for the intelligent upgrade of enterprises.

2024-10-28 -  设计经验 代理服务 技术支持 现货查询 批量订货

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  - 有人物联  - 数据手册 代理服务 技术支持 现货查询 批量订货 查看更多版本

Standards and Functions of Industrial Cellular Routers

Industrial Cellular Router G806w, as a high-performance, stable and reliable industrial wireless router, can play an important role in industrial production, realize data acquisition, transmission and monitoring, and provide support for intelligent manufacturing and industrial automation.

2023-06-28 -  技术探讨 代理服务 技术支持 现货查询 批量订货

Industrial 4G router, from Connectivity to Intelligence

In the modern industrial environment, the stability and speed of network connection are the key to ensuring production efficiency, data security and intelligent application. As an efficient and reliable connectivity device, industrial 4G routers play a vital role in industrial automation and IoT applications. It not only realizes the physical connection between devices, but also promotes the leap from simple connection to comprehensive intelligence.

2024-10-27 -  技术探讨 代理服务 技术支持 现货查询 批量订货
展开更多

电子商城

查看更多

品牌:有人物联

品类:Wi-Fi 加强版工业路由器

价格:

现货: 0

品牌:有人物联

品类:串口服务器

价格:¥176.4706

现货: 0

品牌:有人物联

品类:串口服务器

价格:¥91.7648

现货: 0

品牌:有人物联

品类:串口服务器

价格:¥96.4706

现货: 0

品牌:有人物联

品类:Lora模块

价格:¥164.7059

现货: 0

品牌:有人物联

品类:网络IO设备

价格:¥964.7059

现货: 0

品牌:有人物联

品类:模块

价格:¥80.0000

现货: 0

品牌:有人物联

品类:DTU数传终端

价格:¥225.8824

现货: 0

品牌:有人物联

品类:LTE路由器

价格:¥203.5295

现货: 0

品牌:有人物联

品类:串口服务器

价格:¥91.7648

现货: 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

收藏
收藏当前页面