A Overview
Some important program must keep it running, and always care about its state------------can't let it deadlock. Of course, if a main program has a deadlock, it must be a design or programming error. The first thing we do is to get this bug out. But if the time is tight, this bug and "erratic", then, we still write a software "watchdog", temporarily should be urgent.
Description of "Watchdog" req
/** Watchdog usage. * Author: serval li * Date: Jun 27th, 2012 **/# include
CodeSave it first and use the watchdog implemented by softdog. C. Its kernel module is named softdog. Ko and is located under/lib/modules/$ kernelver/kernel/Drivers/watchdog.
Bug in STM32F4 Series MCU, window watchdog WWDG.
1. If it is possible to pre-feed the dog interrupt, then the following two points must be met
(1) Before turning on the WWDG interrupt, the EWI flag bit in the SR register must be zeroed out, otherwise the watchdog will constantly reset
(2) Add a small delay to the WWDG_IRQ, otherwise the watchdog will be const
Label: style ar use SP file data on log BS Because it is a software watchdog, his role can only be considered as a helper tool. However, its function should be meaningless. The implementation plan of this software is as follows: 1. Software form A module soft_wdt.ko runs in the kernel. 2. software startup Method Insmod soft_wdt.ko Dev =/dev/soft_wdt timeout = 5 log =/path/to/log.txt These parameters are: device files to be exposed to users,
The watchdog of recent projects has undergone three version numbers.First version number:With PS-EF, if the program hangs, it starts.Second version number:The program will not listen to the 7901port when it executes, so it is not easy to infer whether the machine is dead, but to infer if the port is listeningThird version number:When the 7901port is no longer listening, the original killall will be restarted first. Every time you output to a file, add
void Wwdg_init(void){LPC_SC, PCLKSEL0 |= (30); Crossover number is eightLPC_WDT-Wdclksel = ~ (30);LPC_WDT, Wdclksel |= (10); Set WDT clock to APBLPC_WDT, Wdclksel |= (1); Lock Clock SourceLPC_WDT-WDTC = 0xFFFF; Setting overloaded valuesLPC_WDT, wdmod |= (10) | ( 11); Watchdog enable and set trigger resetAt this point the initialization is complete.}Shutdown Total System Interrupt__asm void Nvic_setprimask(void){Cpsid IBX R14}Turn on total system outag
error, Ack error, format error), error detection, response method (ACK, NACK ), communication Mode (Half Duplex) and other settings;
The MAC Sub-layer is the core of the CAN protocol. The function of the data link layer is to form meaningful messages from the physical layer and provide transmission control procedures such as error control. The function of the data link layer is usually executed in the hardware of the CAN controller;Frame concept:
Data frame: the frame used by the sending unit t
The watchdog of the recent project has undergone three versions.First version:With PS-EF, if the program hangs, it starts.A second version:program because the runtime will not listen to the 7901 port, so it is not easy to determine whether the machine is hanging, but to determine if this port is listeningA third version:When the 7901 port is no longer listening, the original killall in the start, each output to the content of the file to add the date,
To display the hidden file's Pass method:
Normally, you can do this in the following order: Open My Computer's Tools menu-Folder Options, in the View tab, select Show All files and folders, and find "Hide protected operating system files (recommended)" To remove the previous check. As shown in the following illustration:
Resolution of hidden files cannot be displayed after a virus has been modified by the registry:
If it is caused by the virus, ther
1. Generate a. Reg file in batches to operate the Registry
You can easily generate the. reg file with the redirection symbol in the batch. Run the. reg file!
Here, I want to know how to operate the registry using the. reg file.
The first line of the. reg file must be Windows Registry Editor Version 5.00. Then the content of the
Automatic Refresh settings for Registry Editor:
Opens the Hkey_current_user\software\microsoft\regedt32\settings subkey, creates a new string value "AutoRefresh" in the right-hand window, and sets its value to 1.
Registry modified read-only feature:
Windows nt/2000 's 32-bit Registry Editor provides read-only settings when
One, batch generation. REG file Operations Registry
You can easily generate. reg files by using the redirection symbols in batch processing. Then use the command to execute the. reg file!
Here, focus on how the. reg file operates the registry.
First the. reg file must be the first line: Windows Registry Editor Version 5.00. The contents of the
Once you've learned about the basics of the registry, we can officially enter the topic we want to discuss: Edit and modify the registry! Generally speaking, there are three ways to add, delete and change the registry:
The first way: direct modification (least secure, but most direct and effective)
is through Registry
Windows 2000 stores its configuration information in a database called the registry, which contains profiles for each computer user, as well as information about system hardware, installed programs, and property settings, which Windows 2000 continues to refer to during its run. The registry is stored in binary form on your hard disk, and incorrectly editing the registry
Win98 Registry Application 300 cases-the registration form uses the full strategy ten
1. Automatic refresh
Every time you add a folder to the window or delete an object, you need to press the key to refresh the window, it is troublesome. The purpose of automatic refresh can be achieved by modifying the registry.
Click Hkey_local_machine\system\currentcontro lset\control\update, modify the "UpdateMode" va
29, teach you to back up and restore the Windows 2000 registry
Windows 2000 stores its configuration information in the registry's database, which contains profiles for each computer user, as well as information about system hardware, installed programs, and property settings, which Windows 2000 continues to refer to during its run. The registry is stored in binary form on your hard disk, and incorrectly ed
Remote access to the machine's registry is usually a frown; after all, do you want someone else to see your registry without your knowledge? However, if handled correctly, this process can be a powerful tool for extracting machine information and identifying potential vulnerabilities in your network. Here, Brian uses his work experience in the WebSphere Business Integrator team to describe how remote
First, renaming the Recycle Bin
We can easily change the names of most icons on the desktop, but we can't rename the Recycle Bin directly. If you want to change the name of the Recycle Bin, only the default value of the right window key for hkey-classes-root\clsid\ {645ff040-5081-101b-9f08-00aa002f954e} In Registry Editor is from the Recycle Bin to other names (such as "garbage cans"), close the Registry e
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.