CN112073472A - Soft zero clearing processing method for counter - Google Patents

Soft zero clearing processing method for counter Download PDF

Info

Publication number
CN112073472A
CN112073472A CN202010829577.9A CN202010829577A CN112073472A CN 112073472 A CN112073472 A CN 112073472A CN 202010829577 A CN202010829577 A CN 202010829577A CN 112073472 A CN112073472 A CN 112073472A
Authority
CN
China
Prior art keywords
zero clearing
intelligent terminal
terminal device
soft
count
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.)
Granted
Application number
CN202010829577.9A
Other languages
Chinese (zh)
Other versions
CN112073472B (en
Inventor
吴宗鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Hongcheng Technology Co ltd
Original Assignee
Zhejiang Hongcheng Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang Hongcheng Technology Co ltd filed Critical Zhejiang Hongcheng Technology Co ltd
Priority to CN202010829577.9A priority Critical patent/CN112073472B/en
Publication of CN112073472A publication Critical patent/CN112073472A/en
Application granted granted Critical
Publication of CN112073472B publication Critical patent/CN112073472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a soft zero clearing processing method of a counter, which provides a remote counting management system, wherein the remote counting management system comprises a cloud platform, intelligent terminal equipment and mobile equipment, the cloud platform is used for receiving data sent by the intelligent equipment terminal, analyzing and storing the data, receiving an operation instruction of the mobile equipment and sending a corresponding command to the intelligent terminal equipment, the intelligent terminal equipment is used for collecting metering data of target equipment and transmitting the metering data to the cloud platform, the mobile equipment is used for sending the operation instruction to the cloud platform, the soft zero clearing processing method is used for carrying out zero clearing operation on a count value count of the intelligent equipment terminal, and the soft zero clearing processing method comprises a soft zero clearing strategy. The soft zero clearing processing method can ensure that the zero clearing operation is not influenced by the off-line of the equipment end, and simultaneously can ensure that the task being executed by the equipment end is not terminated accidentally due to the zero clearing operation.

Description

Soft zero clearing processing method for counter
Technical Field
The invention relates to the technical field of data communication, in particular to a soft zero clearing processing method for a counter.
Background
In daily production operation, a manager needs to copy the metering data of each device, firstly performs 'meter reading' to record the metering data of the device to which the manager belongs, and then performs 'zero clearing'. The current method for realizing zero clearing comprises the steps that the intelligent terminal equipment sends collected data to a cloud platform at regular intervals, meanwhile, a server instruction (such as a zero clearing counting instruction) is monitored, zero clearing counting is carried out after the instruction is received, meanwhile, an instruction execution result is fed back to the cloud platform, the cloud platform receives a user operation instruction (such as zero clearing operation), after the instruction is received, the cloud platform sends the instruction to the intelligent terminal equipment one by one, and a Session is started to monitor the instruction execution state (such as whether the execution is finished, network delay execution, data packet loss and the like); however, when power failure occurs during the zero clearing process, abnormal zero clearing may be caused, and the zero clearing operation may cause the operation of the smart device to be terminated accidentally.
Disclosure of Invention
The invention aims to provide a soft zero clearing processing method for a counter, which can ensure that zero clearing operation is not influenced by offline of an equipment end, and simultaneously can ensure that a task being executed by the equipment end is not accidentally terminated due to the zero clearing operation.
In order to achieve the purpose, the invention provides the following technical scheme: a counter soft zero clearing processing method is provided, the remote count management system comprises a cloud platform, an intelligent terminal device and a mobile device, the cloud platform is used for receiving data sent by the intelligent terminal device, analyzing and storing the data, receiving an operation instruction of the mobile device and sending a corresponding command to the intelligent terminal device, the intelligent terminal device is used for collecting metering data of a target device and transmitting the metering data to the cloud platform, the mobile device is used for sending the operation instruction to the cloud platform, the soft zero clearing processing method is used for carrying out zero clearing operation on a count value count of the intelligent terminal device, the soft zero clearing processing method comprises a soft zero clearing strategy, the soft zero clearing strategy is configured with a zero clearing algorithm, the zero clearing strategy is set to be a calibration basic value base which is continuously increased, setting a transmission value cur which is synchronous with the calibration basic value base and continuously increases in an increasing way on the cloud platform, realizing zero clearing operation on the count value count by the zero clearing algorithm through a formula 1 and a formula 2,
base ═ cur formula 1
The count ═ cur-base equation 2;
the soft zero clearing processing method comprises the following steps:
step S1, the cloud platform receives a clear operation instruction from the mobile equipment;
step S2, the cloud platform sends a zero clearing operation command to the intelligent terminal equipment, and sends the transmission value cur at the moment to the intelligent terminal equipment;
step S3, the intelligent terminal device generates a zero clearing operation event according to the received zero clearing operation command;
and step S4, judging whether the intelligent terminal device is executing tasks by utilizing the count value count, if so, jumping to step S4-1 to execute a zero clearing backup subprogram for backing up the count value count at the moment so that the intelligent terminal device completes the tasks being executed, and if not, jumping to step S4-2 to execute the zero clearing task.
Preferably, the step S4-1 includes recording a count value count corresponding to the transmission value cur received by the intelligent terminal device in a clear data backup packet, and performing a clear operation on the local count value count through a clear algorithm; and configuring a first duration T for the zero clearing operation event, wherein the first duration T is determined according to the duration of the task executed by the intelligent terminal equipment.
Preferably, the first duration T ═ aT1+ bT2+ c, where a, b, c are preset constants, 1 ≧ a ≧ 0,1 ≧ b ≧ 0, and a, b are not both zero; t1 represents the average time for the intelligent terminal device to execute the task locally, and T2 represents the average sending time for the intelligent terminal device to send the task to be executed to the cloud platform for processing.
Preferably, the constant a is 1, the constant b is 1, and the first duration T is T1+ T2+ c.
Preferably, the clear operation event starts to run from the intelligent terminal device according to the received clear operation command, the first duration starts to be counted from the intelligent terminal device according to the received clear operation command, and the clear operation event ends to run when the first duration is counted.
Preferably, the step S4-2 includes the intelligent terminal device recording the received transmission value cur, the calibration base value base corresponding to the transmission value cur, and the count value count in the zero clearing operation event, and performing zero clearing operation on the count value count through a zero clearing algorithm.
Compared with the prior art, the invention has the beneficial effects that:
the invention carries out zero clearing operation on the count value count by setting a zero clearing algorithm and utilizing a mode of making a difference value between the calibration basic value base and the transmission value cur which are synchronously and continuously increased, because the calibration basic value base and the transmission value cur are synchronously and continuously increased and are not influenced by data transmission, the counting of the calibration basic value base and the transmission value cur is independent, even if the equipment end is off-line, the counting is not influenced, and the condition that the zero clearing operation is interrupted can not occur,
according to the method and the device, the task setting zero clearing backup subprogram is set according to the fact that whether the intelligent terminal device executes the task by utilizing the count value count, and the task which is executed by the device end can not be terminated accidentally due to zero clearing operation.
Drawings
FIG. 1 is a circuit connection block diagram of a soft zero clearing processing method of a counter according to the present invention;
FIG. 2 is a software flow diagram illustrating a soft clearing method of a counter according to the present invention.
In the figure: 1. a cloud platform; 2. an intelligent terminal device; 3. a mobile device.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, in a first embodiment provided by the present invention, a counter soft-clearing processing method provides a remote count management system, where the remote count management system includes a cloud platform 1, an intelligent terminal device 2, and a mobile device 3, the cloud platform 1 is configured to receive data sent by the intelligent device terminal, analyze and store the data, receive an operation instruction of the mobile device 3, and send a corresponding command to the intelligent terminal device 2, the intelligent terminal device 2 is configured to collect metering data of a target device and transmit the metering data to the cloud platform 1, the mobile device 3 is configured to send the operation instruction to the cloud platform 1, the soft-clearing processing method is configured to perform a clear operation on a count value count of the intelligent device terminal, the soft-clearing processing method includes a soft-clearing policy, and the soft-clearing policy is configured with a clear algorithm, the soft zero clearing strategy is set to be that a calibration basic value base which is continuously increased in increment is set in the intelligent terminal equipment 2, a transmission value cur which is synchronous with the calibration basic value base and continuously increased in increment is set in the cloud platform 1, the zero clearing algorithm realizes zero clearing operation on a count value count through a formula 1 and a formula 2,
base ═ cur formula 1
The count ═ cur-base equation 2;
because the calibration base value base and the transmission value cur are synchronously and continuously increased in an increasing mode, the phenomenon that counting is restarted in the middle of 1,2,3,0,1,2 and 3 is avoided, the calibration base value base and the transmission value cur are stored by adopting a 64-bit NT64 type, the condition that data are increased in 1000 years and cannot wrap around is ensured, and the requirement that industrial environment production is not influenced by data transmission is met.
As shown in fig. 2, a software flow diagram of a soft zero clearing processing method of a counter according to the present invention is shown, where the soft zero clearing processing method includes:
step S1, the cloud platform 1 receives a clear operation instruction from the mobile device 3;
step S2, the cloud platform 1 sends a clear operation command to the intelligent terminal device 2, and sends the transmission value cur at this time to the intelligent terminal device 2;
step S3, the intelligent terminal device 2 generates a clear operation event according to the received clear operation command;
and step S4, judging whether the intelligent terminal device 2 is executing tasks by using the count value count, if so, jumping to step S4-1 to execute a zero clearing backup subprogram for backing up the count value count at the moment so that the intelligent terminal device 2 completes the tasks being executed, and if not, jumping to step S4-2 to execute the zero clearing task.
Preferably, the step S4-1 includes recording a count value count corresponding to the transmission value cur received by the intelligent terminal device 2 in a clear data backup packet, and performing a clear operation on the local count value count through a clear algorithm; the clear operation event is configured with a first duration T, and the first duration T is determined according to the duration of the task executed by the intelligent terminal device 2.
Preferably, the first duration T ═ aT1+ bT2+ c, where a, b, c are preset constants, 1 ≧ a ≧ 0,1 ≧ b ≧ 0, and a, b are not both zero; t1 represents the average time for the intelligent terminal device 2 to execute the task locally, and T2 represents the average sending time for the intelligent terminal device 2 to send the task to be executed to the cloud platform 1 for processing.
Preferably, the constant a is 1, the constant b is 1, and the first duration T is T1+ T2+ c. In most cases, the intelligent terminal device 2 executes the local task and uploads the task that can be uploaded to the cloud platform 1 for processing at the same time, so the maximum value of the first duration is T1+ T2+ c.
Preferably, the clear operation event starts to run from the time when the intelligent terminal device 2 receives the clear operation command, the first duration starts to be timed from the time when the intelligent terminal device 2 receives the clear operation command, and the clear operation event ends to run when the first duration is counted. The intelligent terminal device 2 generates the zero clearing operation event according to the received zero clearing operation command, so the establishment of the zero clearing operation event is to enable the intelligent terminal device 2 not to be accidentally terminated due to the zero clearing operation when the task is executed by using the count value count, and a first duration is reserved for the intelligent terminal device to execute the task so as to complete the task.
Preferably, the step S4-2 includes the intelligent terminal device 2 recording the received transmission value cur, the calibration base value base corresponding to the transmission value cur, and the count value count in the zero clearing operation event, and performing zero clearing operation on the count value count through a zero clearing algorithm.
The working principle is as follows: the invention sets a zero clearing algorithm, and performs zero clearing operation on the count value count by using a mode of making a difference value between the calibration basic value base and the transmission value cur which are synchronously and continuously increased, because the calibration basic value base and the transmission value cur are synchronously and continuously increased and are not influenced by data transmission, the counting of the calibration basic value base and the transmission value cur is independent, and the zero clearing operation cannot be influenced even if the equipment end is off-line, and in addition, the situation that the zero clearing operation is interrupted does not occur according to the fact that whether the intelligent terminal equipment 2 executes the task setting backup zero clearing subprogram by using the count value count can ensure that the task which is executed by the intelligent equipment terminal is not accidentally terminated due to the zero clearing operation.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (6)

1. A counter soft zero clearing processing method is provided, and comprises a cloud platform, an intelligent terminal device and a mobile device, wherein the cloud platform is used for receiving data sent by the intelligent terminal device, analyzing and storing the data, receiving an operation instruction of the mobile device and sending a corresponding command to the intelligent terminal device, the intelligent terminal device is used for collecting metering data of a target device and transmitting the metering data to the cloud platform, and the mobile device is used for sending the operation instruction to the cloud platform, and is characterized in that the soft zero clearing processing method is used for carrying out zero clearing operation on a count value count of the intelligent terminal device, the soft zero clearing processing method comprises a soft zero clearing strategy, the soft zero clearing strategy is configured with a zero clearing algorithm, and the soft zero clearing strategy is set to be a calibration basic value base which is continuously increased, setting a transmission value cur which is synchronous with the calibration basic value base and continuously increases in an increasing way on the cloud platform, realizing zero clearing operation on the count value count by the zero clearing algorithm through a formula 1 and a formula 2,
base ═ cur formula 1
The count ═ cur-base equation 2;
the soft zero clearing processing method comprises the following steps:
step S1, the cloud platform receives a clear operation instruction from the mobile equipment;
step S2, the cloud platform sends a zero clearing operation command to the intelligent terminal equipment, and sends the transmission value cur at the moment to the intelligent terminal equipment;
step S3, the intelligent terminal device generates a zero clearing operation event according to the received zero clearing operation command;
and step S4, judging whether the intelligent terminal device is executing tasks by utilizing the count value count, if so, jumping to step S4-1 to execute a zero clearing backup subprogram for backing up the count value count at the moment so that the intelligent terminal device completes the tasks being executed, and if not, jumping to step S4-2 to execute the zero clearing task.
2. The soft-clear processing method of the counter according to claim 1, wherein: the step S4-1 includes recording a count value count corresponding to the transmission value cur received by the intelligent terminal device in a clear data backup packet, and performing clear operation on the local count value count through a clear algorithm; and configuring a first duration T for the zero clearing operation event, wherein the first duration T is determined according to the duration of the task executed by the intelligent terminal equipment.
3. The soft-clear processing method of the counter according to claim 2, wherein: the first duration time T is aT1+ bT2+ c, wherein a, b and c are preset constants, a is more than or equal to 1 and more than or equal to 0, b is more than or equal to 1 and more than or equal to 0, and a and b are not zero aT the same time; t1 represents the average time for the intelligent terminal device to execute the task locally, and T2 represents the average sending time for the intelligent terminal device to send the task to be executed to the cloud platform for processing.
4. The soft-clear processing method of the counter according to claim 3, wherein: the constant a is 1, the constant b is 1, and the first duration T is T1+ T2+ c.
5. The soft-clear processing method of the counter according to claim 3, wherein: the zero clearing operation event starts to run from the intelligent terminal device according to the received zero clearing operation command, the first duration time starts to be timed from the intelligent terminal device according to the received zero clearing operation command, and the zero clearing operation event finishes running when the first duration time is over.
6. The soft-clear processing method of the counter according to claim 1, wherein: the step S4-2 includes the intelligent terminal device recording the received transmission value cur, the calibration base value base corresponding to the transmission value cur, and the count value count in the clear operation event, and performing clear operation on the count value count through a clear algorithm.
CN202010829577.9A 2020-08-18 2020-08-18 Soft zero clearing processing method for counter Active CN112073472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010829577.9A CN112073472B (en) 2020-08-18 2020-08-18 Soft zero clearing processing method for counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010829577.9A CN112073472B (en) 2020-08-18 2020-08-18 Soft zero clearing processing method for counter

Publications (2)

Publication Number Publication Date
CN112073472A true CN112073472A (en) 2020-12-11
CN112073472B CN112073472B (en) 2023-04-07

Family

ID=73661841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010829577.9A Active CN112073472B (en) 2020-08-18 2020-08-18 Soft zero clearing processing method for counter

Country Status (1)

Country Link
CN (1) CN112073472B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817028A (en) * 2020-12-29 2021-05-18 上海工物高技术产业发展有限公司 Multichannel analyzer zero clearing method, device and system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115444A (en) * 1999-02-11 2000-09-05 Amphus, Inc. Energy conserving counter using terminal count value and method therefor
CN105718402A (en) * 2016-01-13 2016-06-29 福州瑞芯微电子股份有限公司 Programmable time sequence generator
US20180081931A1 (en) * 2016-09-19 2018-03-22 Sap Se Mode switching in high availability disaster recovery (hadr) systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115444A (en) * 1999-02-11 2000-09-05 Amphus, Inc. Energy conserving counter using terminal count value and method therefor
CN105718402A (en) * 2016-01-13 2016-06-29 福州瑞芯微电子股份有限公司 Programmable time sequence generator
US20180081931A1 (en) * 2016-09-19 2018-03-22 Sap Se Mode switching in high availability disaster recovery (hadr) systems

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张明金: "基于直接清零法构成N进制计数器的研究", 《职教通讯》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817028A (en) * 2020-12-29 2021-05-18 上海工物高技术产业发展有限公司 Multichannel analyzer zero clearing method, device and system and storage medium
CN112817028B (en) * 2020-12-29 2024-02-13 上海工物高技术产业发展有限公司 Multichannel analyzer resetting method, multichannel analyzer resetting device, multichannel analyzer resetting system and storage medium

Also Published As

Publication number Publication date
CN112073472B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN102396255B (en) Dynamic mobile network traffic controls
CN110417650A (en) Multilink data distribution method, device and electronic equipment
CN104202334B (en) A kind of method and device for establishing network connection
CN110474975B (en) Heartbeat processing method and device of application program, electronic equipment and storage medium
CN110445682B (en) Method, server, equipment and system for monitoring survival state of networking node
CN109769029B (en) Communication connection method based on electricity consumption information acquisition system and terminal equipment
CN108989463B (en) Data processing method and device
CN112073472B (en) Soft zero clearing processing method for counter
CN104601376B (en) Heartbeat message sending method and device
CN112422684A (en) Target message processing method and device, storage medium and electronic device
CN111698736A (en) Intelligent household electrical appliance network switching method and device, computer equipment and server
CN103595552B (en) Analysis method and analysis system for cluster storage network parallel load
CN110224872B (en) Communication method, device and storage medium
CN100413248C (en) Improved method and system for carrying out charging based on flow
CN210075259U (en) SDN network-based data monitoring controller
US9887857B2 (en) Method for scheduling management operation on devices in a home network
CN101917699B (en) Random reported signaling tracking method and device based on users
CN115494405A (en) Battery monitoring system, abnormality processing method thereof, electronic device, and storage medium
CN105357060A (en) Method, device and system for obtaining network equipment performance data
CN106850153B (en) Data retransmission method and system
CN106385384B (en) Message sending method and network equipment
CN110601914B (en) Method and system for monitoring survival state of server
CN104994528B (en) A kind of method and device of Response Policy request
CN104022515A (en) A reactive compensation cabinet and a control method for reactive compensation units of the reactive compensation cabinet
US20170127356A1 (en) Method and apparatus for prolonging lasting time of inactive mode

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant