CN101667952B - Scanning function design method of one-line bus monitoring module - Google Patents
Scanning function design method of one-line bus monitoring module Download PDFInfo
- Publication number
- CN101667952B CN101667952B CN 200910093146 CN200910093146A CN101667952B CN 101667952 B CN101667952 B CN 101667952B CN 200910093146 CN200910093146 CN 200910093146 CN 200910093146 A CN200910093146 A CN 200910093146A CN 101667952 B CN101667952 B CN 101667952B
- Authority
- CN
- China
- Prior art keywords
- scanning
- monitoring modular
- monitoring
- monitoring module
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Abstract
The invention discloses a scanning function design method of a one-line bus monitoring module, comprising the following steps: an upper computer sends a scanning command to an appointed module; a monitoring module receives a scanning communication command of the appointed module and then carries out operating process of scanning and searching; after the completion of a scanning function, the monitoring module reenters a monitoring operating mode through a hardware resetting method, i.e. the realization is achieved through the cooperation of the upper computer and the monitoring module software without carrying out hardware switch setting and electrifying operation. The invention has the following advantages of easily achieving solely by clicking a search button without switching a switch and switching on or off a power supply, realizing remote scanning of the monitoring module, which makes the work very simple and convenient, avoiding strict protection and reverting site work, being suitable for the application of a one-line bus monitoring module, and improving the reliability of the one-line bus monitoring.
Description
Technical field
The present invention relates to the method for the scan function design of one-wire bus monitoring modular, belong to the one-wire bus monitoring technical field.
Technical background
One-wire bus is meant the bus of only utilizing a holding wire; Utilize this bus can realize access control to overlap joint several line devices on this bus; One line device is the device of observing the one-wire bus agreement and realizing certain monitoring function; Equal etching had unique 64 binary codes of one group of 8 byte when every one line device dispatched from the factory, in order to sign difference each a line device, i.e. a line device ID sign indicating number.
The Core Feature of monitoring modular is to realize the monitoring and the control of the one-wire bus element operating state in the one-wire bus load that connects; For a concrete one-wire bus load; Monitoring modular must have scan function; Through scanning, monitoring modular can be grasped the situation of a line device that is connect in the one-wire bus load, and this is that bus-organized system is peculiar.Particularly, know ID number of the line device that connect, thereby differentiate to be connected to how many only types of line devices and the line device that connects altogether.Then by the ID sign indicating number control and the monitoring information of visiting a corresponding line device of monitoring modular, as gathering the residing ambient temperature of a line device through a line temperature sensor according to every one line device.
In the prior art, monitoring modular mainly contains the dual mode realization at present to the scanning (or being called search) of a line device at present:
1. scan pattern powers on:
This kind pattern is the scanning work state that when module powers on, under software control, at first gets into, and obtains the line device situation in the one-wire bus load, gets into normal monitoring running status behind the end of scan again.If the situation that appearance repeatedly powers in the running of monitoring modular; Because one-wire bus weak output signal, requirement are precisely, receive the influence of factors such as bus length of cable, operational environment, distribution mode or external interference, result's difference of electric scanning may appear going up at every turn; A line device that promptly has has disappeared; If when at this moment removing the parameter information of a corresponding line device according to original order, will occur fastening one person's story upon another person, cause the falsehood of monitoring information as the host computer of monitoring usefulness.
2. separating structure pattern:
This kind pattern is divided into two kinds of operational modes of search and monitoring on the software construction of monitoring modular, a kind of do search operation, another kind of only do monitoring operation.It discerns search switch through monitoring modular when powering on state confirms that monitoring modular gets into the sort of operational mode, and Search Results is made power-failure memory.Make when monitoring modular gets into the monitoring operational mode, according to the parameter monitoring operation of having searched for.This mode has realized the locking to a line device that has searched, can not produce and lose.But it must the local operation pattern, and will do the operation of start-stop electricity once to monitoring modular at every turn.If the monitoring modular installation site is far away or environment is abominable, it is very inconvenient that this kind mode of operation seems.
Summary of the invention
The objective of the invention is in order to overcome the defective of above-mentioned prior art, a kind of method of scan function design of one-wire bus monitoring modular is provided.
The present invention is the method for the distance control mode realized of a kind of design through communication command; Promptly require monitoring modular that scanning search is carried out in the one-wire bus load through the mode of sending communication command; Because monitoring modular is often realized the observation of monitoring information through host computer, so the mode of the information transmission between host computer and monitoring modular through serial communication realizes.Send scan command by host computer to designated module; The operational process that monitoring modular carries out scanning search after through the scanning communication command that receives this module again; After scan function is accomplished; Monitoring modular gets into the monitoring operational mode once more through the mode of hardware reset, promptly is achieved through host computer and cooperating of monitoring modular software, and need not through the switch setting of hardware and the operation that powers on.
Electric scanning and the separating structure pattern of going up at present of the prior art is in software is realized, scanning can obviously be divided into two parts with the monitoring operation, or order link or parallel the selection are moved.And the present invention is a monitoring modular behind the scan command that receives this module that serial ports sends; Interrupt current monitoring operation; Turn to the scanning operation, behind the end of run to be scanned, monitoring modular resets and gets into the monitoring running status again; Therefore the present invention and prior art have essential distinction, and also are different from interrupt mode in the general sense.
The present invention has following beneficial effect with respect to prior art:
1, compare with search switch is set on monitoring modular, all will utilize host computer to observe the scanning situation, but application of the present invention needn't diverter switch, needn't the break-make electricity, only needing to click a search button can easily realize.
2, can realize the remote scanning of monitoring modular, when the monitoring modular that is positioned at the working site need switch different one-wire bus loads, the need of load that is connect rescaned that the remote scanning function will make this work become very easy.
3, in design; The monitoring modular scan function is accomplished the back and is got into once more through hardware reset and monitor running status and guaranteed that single-chip microcomputer starts working from initial condition; Avoid strict protection and recovery work on the spot, also be suitable for the application mode of one-wire bus monitoring modular.
4, in design; Only behind complete scan function; Just the scanning search result is carried out power-failure memory; Make all to keep this scanning result in monitoring modular monitoring operation and the operation that powers on afterwards that the scanning result that can not occur repeatedly powering on is different and cause the confusion of a line device monitor information Recognition, and the reliability of one-wire bus monitoring is improved.
Description of drawings
Fig. 1 is the software design flow chart of method of the scan function design of one-wire bus monitoring modular according to the invention.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment the present invention is done further detailed introduction, the concrete performing step of the present invention is following:
1) design reference of host computer on the man-machine interface for host computer exploitation, at first chooses monitoring modular to be scanned, and click scan button then through the software processes of host computer, sends scan command to the monitoring modular of appointment;
2) code of scan command that host computer is sent out is made up of multibyte binary code, mainly comprises following a few part;
Function code: represent that this is an order that comprises scan function;
Address code: the monitoring modular code or the address of expression appointment;
Other code: the code of detailed beacon scanning function (optional);
End code: represent the end (optional, but in the design that has the byte length of defined order) of this order.
3) carry out hardware reset, accomplish, start the house dog of monitoring modular single-chip microcomputer, let single-chip microcomputer be absorbed in the endless loop operation then, do not refresh house dog, when treating that the house dog time overflows, be about to single-chip microcomputer and reset at scan function.
The scanning of one-wire bus module according to the invention or search are meant that it is carried out after receiving order by monitoring modular to specifying the scanning of the monitoring modular one-wire bus load that connects itself.But not through the search of host computer to monitoring modular, the search executive agent of this moment is a host computer.
The invention is not restricted to the foregoing description, to those skilled in the art, any improvement that the above embodiment of the present invention is made or change can not exceed the embodiments of the invention that only illustrate by way of example and the protection range of accompanying claims.
Claims (1)
1. the method for the scan function of one-wire bus monitoring modular design is characterized in that may further comprise the steps:
(1) sends scan command by host computer to designated module;
(2) the monitoring modular operational process of carrying out scanning search again after through the scanning communication command that receives this module;
(3) after scan function was accomplished, monitoring modular got into the monitoring operational mode once more through the mode of hardware reset, promptly is achieved through host computer and cooperating of monitoring modular software;
Said monitoring modular interrupts current monitoring operation behind the scan command that receives this module that serial ports sends, turn to the scanning operation, and behind the end of run to be scanned, monitoring modular resets and gets into the monitoring running status again;
The scanning of said one-wire bus module or search are meant that it is carried out after receiving order by monitoring modular to specifying the scanning of the monitoring modular one-wire bus load that connects itself, but not through the search of host computer to monitoring modular, the search executive agent of this moment is a host computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910093146 CN101667952B (en) | 2009-09-29 | 2009-09-29 | Scanning function design method of one-line bus monitoring module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910093146 CN101667952B (en) | 2009-09-29 | 2009-09-29 | Scanning function design method of one-line bus monitoring module |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101667952A CN101667952A (en) | 2010-03-10 |
CN101667952B true CN101667952B (en) | 2012-05-30 |
Family
ID=41804399
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910093146 Active CN101667952B (en) | 2009-09-29 | 2009-09-29 | Scanning function design method of one-line bus monitoring module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101667952B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6963992B1 (en) * | 2000-09-28 | 2005-11-08 | Cypress Semiconductor Corp. | Method and apparatus to generate clock and control signals for over-clocking recovery in a PLL |
CN1805398A (en) * | 2005-01-13 | 2006-07-19 | 华为技术有限公司 | Optical transmission network protection method |
CN201234268Y (en) * | 2008-07-29 | 2009-05-06 | 翟延忠 | Searching and monitoring separation construction for bus monitoring module |
-
2009
- 2009-09-29 CN CN 200910093146 patent/CN101667952B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6963992B1 (en) * | 2000-09-28 | 2005-11-08 | Cypress Semiconductor Corp. | Method and apparatus to generate clock and control signals for over-clocking recovery in a PLL |
CN1805398A (en) * | 2005-01-13 | 2006-07-19 | 华为技术有限公司 | Optical transmission network protection method |
CN201234268Y (en) * | 2008-07-29 | 2009-05-06 | 翟延忠 | Searching and monitoring separation construction for bus monitoring module |
Also Published As
Publication number | Publication date |
---|---|
CN101667952A (en) | 2010-03-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102024317B (en) | Remote controller and realization method thereof | |
CN101609440B (en) | Bus system and method for recovering bus from lock state | |
US20110238188A1 (en) | Engineering tool | |
CN102713772A (en) | Method and system for engineering a substation automation system | |
CN103136048A (en) | Computer system | |
CN103576656A (en) | Method, device and system for controlling household appliances | |
CN101192760B (en) | Remote digital switch control system and method | |
CN110165632A (en) | Power-out reset system applied to electronic equipment | |
CN102377445A (en) | Wireless communication module and self-recovery method thereof | |
CN107702274B (en) | Terminal control method, device and computer readable storage medium | |
KR100632405B1 (en) | Transmitting/Receiving method for dynamic reconfiguration of sensor nodes using wireless telecommunication in wireless sensor network | |
CN105516900A (en) | Bluetooth connection method and Bluetooth device | |
CN101667952B (en) | Scanning function design method of one-line bus monitoring module | |
EP3386058A1 (en) | A computer-implemented method for configuring a load shedding controller | |
CN104539493A (en) | Intelligent terminal system and method of management and control over intelligent household electric appliances based on USB interface | |
CN103345454A (en) | Peripheral device connection method of mobile terminal | |
CN103001323A (en) | Relay and data processing method | |
CN103561478A (en) | Method and device for automatically achieving wireless connection between devices | |
KR20060124340A (en) | Communication unit of multi-kinds host and ied and communication method thereof | |
CN102981692A (en) | Input data processing method and terminal device thereof | |
US6522936B1 (en) | Control apparatus, control method, and interface device for information processing device | |
CN110488772B (en) | DCS centralized monitoring method and device and centralized monitoring terminal | |
CN112099428A (en) | Wired control system and method for power supply on-off of power equipment | |
CN111037057A (en) | Welder human-computer interaction system and welder | |
CN112180820A (en) | Application method of Modbus RTU communication protocol in EDPF-NT Plus system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |