CN112165521A - Communication control method of computer equipment, and method and device for determining success rate - Google Patents
Communication control method of computer equipment, and method and device for determining success rate Download PDFInfo
- Publication number
- CN112165521A CN112165521A CN202011025144.4A CN202011025144A CN112165521A CN 112165521 A CN112165521 A CN 112165521A CN 202011025144 A CN202011025144 A CN 202011025144A CN 112165521 A CN112165521 A CN 112165521A
- Authority
- CN
- China
- Prior art keywords
- information
- gateway
- server
- receiving
- control
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Communication Control (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a communication control method of computer equipment, a success rate determining method and a device, which can record first information and second information which fail to reply and respective times when a gateway sends a control result to a server, and then feed back the first information and the second information to the server, can optimize the calculation of the control success rate, and can calculate the times of the failure of the reply information caused by network problems or other reasons, thereby avoiding data loss caused by the failure of the reply information and further obtaining more accurate control success rate.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a communication control method of computer equipment, and a method and a device for determining equipment control success rate.
Background
With the continuous development of smart homes, IOT equipment in the home is also increased. The Internet of Things (The Internet of Things, IOT for short) is to collect any object or process needing monitoring, connection and interaction in real time and collect various required information such as sound, light, heat, electricity, mechanics, chemistry, biology and location through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors and laser scanners, and to realize ubiquitous connection of objects and people through various possible network accesses, so as to realize intelligent sensing, identification and management of objects and processes. The internet of things is an information bearer based on the internet, a traditional telecommunication network and the like, and all common physical objects which can be independently addressed form an interconnected network.
At present, the control of the IOT device needs to issue a command to the gateway through the server, and the gateway forwards the command to the corresponding IOT device for control, and returns the result to the server after the control is successful. In the prior art, the control result sent by the gateway to the server is only a response result given by the gateway whether the control of the gateway to the server is successful in the final feedback process, and therefore, the control result is deviated from the control result in the actual control process.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is to overcome the defect that the control result and the control result in the actual control process in the prior art have a deviation, so as to provide a communication control method of a computer device, a method and an apparatus for determining a success rate.
The embodiment of the invention provides a communication control method of computer equipment, which comprises the following steps: receiving a control instruction sent by a server, replying first information used for representing that the control instruction is received to the server, and recording the first information failed to be replied to the server and corresponding first times; sending the control instruction to a terminal; receiving second information fed back by the terminal and used for representing successful control, replying the second information to the server, and recording the second information failed in replying to the server and corresponding second times; and feeding back the first times and the second times to the server.
Optionally, the communication control method further includes: and uploading the first information and the second information which fail to reply to the server.
The embodiment of the invention provides a communication control method of computer equipment, which comprises the following steps: sending a control instruction to a gateway, receiving first information replied by the gateway and used for representing that the control instruction has been received, and recording a third time for successfully receiving the first information; receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth time of successfully receiving the second information; and receiving a first time and a second time fed back by the gateway, wherein the first time is used for representing the times of failure of the gateway in replying the first information, and the second time is used for representing the times of failure of the gateway in replying the second information.
Optionally, the communication control method further includes: and receiving the first information and the second information which are sent by the gateway and have failed in reply.
The embodiment of the invention provides a method for determining the success rate of communication control of computer equipment, which comprises the following steps: sending a control instruction to a gateway, receiving first information replied by the gateway and used for representing that the control instruction has been received, and recording a third time for successfully receiving the first information; receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth time of successfully receiving the second information; receiving a first time and a second time fed back by the gateway, wherein the first time is used for representing the times of failure of the gateway in replying the first information, and the second time is used for representing the times of failure of the gateway in replying the second information; and calculating the communication control success rate of the computer equipment according to the first times, the second times, the third times and the fourth times.
Optionally, the computer device communication control success rate is calculated by the following formula:
wherein C is the success rate of communication control of the computer equipment, X1Replying to the Server for the first number of failures, X, for the gateway2Replying to the server for a second number of failures, X, for the gateway3For the third number of successful receptions of the server, X4The fourth number of successful receptions by the server.
An embodiment of the present invention provides a communication control apparatus for a computer device, including: the first receiving module is used for receiving a control instruction sent by a server, replying first information used for representing the control instruction received to the server, and recording the first information failed in replying to the server and the corresponding first times; the first sending module is used for sending the control instruction to a terminal; and the second receiving module is used for receiving second information which is fed back by the terminal and used for representing successful control, replying the second information to the server and recording the second information which fails to be replied to the server and the corresponding second times.
An embodiment of the present invention provides a communication control apparatus for a computer device, including: the second sending module is used for sending a control instruction to the gateway, receiving first information replied by the gateway and used for representing the control instruction to be received, and recording a third time for successfully receiving the first information; the third receiving module is used for receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth times of successfully receiving the second information; and the fourth receiving module is used for receiving a first time and a second time fed back by the gateway, wherein the first time is used for representing the times of failure of the gateway in replying the first information, and the second time is used for representing the times of failure of the gateway in replying the second information.
The embodiment of the invention provides a device for determining the success rate of communication control of computer equipment, which comprises: the second sending module is used for sending a control instruction to the gateway, receiving first information replied by the gateway and used for representing the control instruction to be received, and recording a third time for successfully receiving the first information; the third receiving module is used for receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth times of successfully receiving the second information; a fourth receiving module, configured to receive a first number and a second number of times that are fed back by the gateway, where the first number is used to represent a number of times that the gateway fails to reply the first information, and the second number is used to represent a number of times that the gateway fails to reply the second information; and the processing module is used for calculating the communication control success rate of the computer equipment according to the first times, the second times, the third times and the fourth times.
An embodiment of the present invention provides a communication control system for a computer device, including: the system comprises a server, a gateway and a terminal, wherein the server is used for sending a control instruction to the gateway, receiving first information replied by the gateway and used for representing the control instruction to be received, and recording third times of successfully receiving the first information;
the gateway is used for receiving a control instruction sent by a server, replying first information used for representing that the control instruction is received to the server, and recording the first information failed in replying to the server and the corresponding first times;
the gateway is used for sending the control instruction to a terminal;
the gateway is used for receiving second information which is fed back by the terminal and used for representing successful control, replying the second information to the server and recording the second information which fails to be replied to the server and the corresponding second times;
the server is used for receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth time for successfully receiving the second information;
the gateway is used for feeding back the first times and the second times to the server;
the server is used for receiving the first times and the second times of the gateway feedback.
An embodiment of the present invention further provides a gateway, where the gateway includes: the communication control method of the computer device comprises a memory and a processor, wherein the memory and the processor are mutually connected in a communication mode, computer instructions are stored in the memory, and the processor executes the computer instructions to execute the communication control method of the computer device according to any one of the above embodiments.
An embodiment of the present invention further provides a server, where the server includes: the communication control method of the computer device comprises a memory and a processor, wherein the memory and the processor are mutually connected in a communication mode, computer instructions are stored in the memory, and the processor executes the computer instructions to execute the communication control method of the computer device according to any one of the above embodiments.
An embodiment of the present invention further provides a terminal, where the terminal includes: the processor executes the computer instructions to execute the method for determining the success rate of the communication control of the computer device according to any one of the embodiments.
A computer-readable storage medium according to an embodiment of the present invention stores a computer instruction, where the computer instruction is configured to cause a computer to execute a communication control method of a computer device according to any one of the above-described embodiments; or executing the method for determining the success rate of the communication control of the computer equipment in any embodiment.
Compared with the prior art, the technical scheme of the invention has the following advantages:
1. the embodiment of the invention provides a communication control method of computer equipment, which comprises the following steps: sending a control instruction to a gateway, receiving first information replied by the gateway and used for representing that the control instruction has been received, and recording a third time for successfully receiving the first information; receiving a control instruction sent by a server, replying first information used for representing that the control instruction is received to the server, and recording the first information failed to be replied to the server and corresponding first times; sending the control instruction to a terminal; receiving second information fed back by the terminal and used for representing successful control, replying the second information to the server, and recording the second information failed in replying to the server and corresponding second times; receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth time of successfully receiving the second information; feeding back the first times and the second times to the server; and receiving the first times and the second times of the gateway feedback.
By the arrangement, when the gateway sends the control result to the server, the first information and the second information which fail to reply and the respective times are recorded and then fed back to the server, so that the success rate of the control result can be adjusted, the control result is consistent with the control result of the actual control process, and the accuracy of the control result is improved.
2. The embodiment of the invention provides a method for determining the success rate of communication control of computer equipment, which comprises the following steps: sending a control instruction to a gateway, receiving first information replied by the gateway and used for representing that the control instruction has been received, and recording a third time for successfully receiving the first information; receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth time of successfully receiving the second information; receiving a first time and a second time fed back by the gateway, wherein the first time is used for representing the times of failure of the gateway in replying the first information, and the second time is used for representing the times of failure of the gateway in replying the second information; and calculating the communication control success rate of the computer equipment according to the first times, the second times, the third times and the fourth times.
In the prior art, on one hand, in a certain number of times that a server sends a control command to a gateway, a part of times causes the gateway not to receive the control command in the part of times because of network reasons or other reasons; on the other hand, when the gateway reports the information of successful control to the server, there are some times that the server may not receive the information of successful control of the some times due to network problems or other reasons. So that the counted control result has a deviation from the control result of the actual control process. According to the embodiment of the invention, the statistical process of the control result is adjusted by counting the failure times of replying the first information and the failure times of replying the second information, so that the control result is consistent with the control result of the actual control process, and the accuracy of the control result is further improved.
3. The embodiment of the invention calculates the success rate of the communication control of the computer equipment by the following formula:
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of an application scenario of a communication control system of a computer device according to an embodiment of the present invention;
fig. 2 is a first schematic diagram of a communication control method of a computer device according to an embodiment of the present invention;
FIG. 3 is a second diagram illustrating a communication control method of a computer device according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a method for determining a success rate of communication control of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. 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.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
In the related art, the control of the terminal needs to send a command to the gateway through the server, the gateway forwards the command to the corresponding terminal for control, and the result is returned to the server after the control is successful. The success rate of the server for controlling various terminals is an important index for measuring the stability of the terminals in the system. At present, in the field of smart home, the control success rate of a terminal is usually counted by a server, and the server divides the total number of times of sending control commands and the total number of times of success of the control commands received by the server to count the control success rate of the terminal within a period of time.
For example, 1, the server issues the control instruction for 1000 times;
2. the server receives the control command acknowledgement returned by the gateway 990 times (8 times, the gateway does not receive the control command acknowledgement, 2 times, the gateway receives the control command acknowledgement but fails to return the control command acknowledgement)
3. The gateway receives (990+2) secondary control commands sent by the server together and forwards the control commands to the equipment
4. The gateway receives 985 times of control success information returned by the terminal; (7 control failures)
5. The server receives 980 successful control command reported by the gateway (5 times are gateway uploading failure).
The total control success rate of the prior art 980/1000-98% can be calculated according to the above procedure.
However, the control success rate calculated by the above method has a certain error, on one hand, in step 2, the gateway does not receive the control command due to network problems or other reasons when 8 times of sending the control command to the gateway by the server exist; on the other hand, in step 5, when the gateway reports the information that the device control command is successful, a network problem may also occur, so that the server does not receive the information that the control command is successful for 5 times. In fact, the gateway receives 992 commands in total, and the number of successful control times is 985, so the counted success rate of the device control has deviation.
Example 1
In order to solve the above problem, as shown in fig. 1, an embodiment of the present invention provides a computer device communication control system, including: server, gateway and terminal.
In this embodiment, the communication control process of the server, the gateway, and the terminal in the communication control system of the computer device mainly includes the following processes:
s101, the server sends a control instruction to the gateway, and the control instruction is used for controlling the working process of the terminal.
For example, in a home environment, the terminal may be any device in a room, exemplified by a lamp in this embodiment. Since a plurality of lamps are arranged in a room, the type and the number of each lamp are different. Therefore, when the server wants to control the bedside lamp of the bedroom to be turned on, the control command may be a command including: the type of lamp, the number of lamps and the way in which the lamps operate.
Therefore, the server issues to the gateway a control instruction in digitally encoded form, which may be for example: the bedside lamp numbered 123 was turned on.
S102, a gateway receives a control instruction sent by a server;
and after receiving the control instruction of the digital code, the gateway identifies the digital code and converts the digital code into a corresponding control instruction.
S103, after receiving a control instruction sent by a server, the gateway needs to reply a first message to the server, wherein the first message is used for representing that the gateway has successfully received the control instruction;
s104, in the actual communication process, the following situations may exist: part of control instructions are already received by the gateway, but first information representing that the part of control instructions are successfully received cannot be uploaded to the server possibly due to network reasons or other reasons, so that the first information which cannot be uploaded needs to be recorded on the gateway side, the number of times that the first information cannot be uploaded is recorded, and the number of times is taken as a first time;
and S105, after the server receives the first information replied by the gateway, the server records the received first information and records the times of successfully receiving the first information. While specifying the number as a third number.
Therefore, it can be understood that the total number of times that the gateway actually receives the control command is the sum of the first number of times and the third number of times.
S106, after receiving a control instruction sent by a server, the gateway needs to send the received control instruction to the terminal so as to control the terminal to work through the control instruction;
for example, after receiving the control command in the form of digital code, the gateway identifies the digital code and converts the digital code into a corresponding control command. Then, the gateway needs to send a control command to the bedside lamp numbered 123 to control the bedside lamp numbered 123 to turn on.
And S107, after receiving the control instruction sent by the gateway, the terminal needs to feed back second information to the gateway. The second information is used for representing that the control command issued by the gateway has successfully controlled the terminal, that is, the second information is used for representing that the control command issued by the gateway has turned on the bedside lamp with the number of 123.
And S108, after receiving the second information fed back by the terminal, the gateway replies the second information to the server.
And S109, due to network reasons or other reasons, part of second information may not be uploaded to the server, so that the gateway side needs to record the second information which cannot be uploaded and record the times of the second information which cannot be uploaded. While specifying the number as a second number;
s110, after the server receives the second information replied by the gateway, the server records the received second information and records the times of successfully receiving the second information. And the number is defined as a fourth number.
Therefore, it can be understood that the total number of times of the actual control success is the sum of the second number and the fourth number.
S111, after the gateway records the first times and the second times, the first times and the second times need to be fed back to the server, so that the server can conveniently adjust the success rate of the control result;
s112, correspondingly, the server needs to receive the first time and the second time of the gateway feedback. And storing the first number and the second number.
According to the embodiment of the invention, the statistical process of the control result is adjusted by counting the failure times of replying the first information and the failure times of replying the second information, so that the control result is consistent with the control result of the actual control process, and the accuracy of the control result is further improved.
And S113, after the gateway fails to reply the first information and reply the second information, the failed information records need to be temporarily stored. Then, the gateway needs to report the first information and the second information which are not reported successfully to the server again at regular intervals;
s114. at the same time, the server needs to receive the first information and the second information which are sent by the gateway and have failed in reply.
After the server receives the first information and the second information which are sent by the gateway and failed to reply, the server obtains complete control link statistical data, and then the control success rate of the terminal can be calculated.
Specifically, the success rate of the communication control of the computer device can be calculated by the following formula:
wherein C is the success rate of communication control of the computer equipment, X1Replying to the Server for the first number of failures, X, for the gateway2Replying to the server for a second number of failures, X, for the gateway3For the third number of successful receptions of the server, X4The fourth number of successful receptions by the server.
Based on the above process, the computer device communication control system according to the embodiment of the present invention may implement the following process: 1. the number of times of issuing control instructions by the server is 1000;
2. the server receives the 990 times of the control command receiving confirmation returned by the gateway, wherein 8 times are that the gateway does not receive the control command, and 2 times are that the gateway receives the control command but fails to return the control command confirmation; in the step, 990 times are the third times, and 2 times are the first times;
3. the gateway receives (990+2) secondary control commands sent by the server together and forwards the control commands to the equipment;
4. the gateway receives 985 times of control success information returned by the terminal; wherein, the control fails for 7 times;
5. the server receives 980 successful control command reports from the gateway; wherein 5 times is gateway upload failure; in this step, 980 times are the fourth times, and 5 times are the second times.
Therefore, the actual success rate of effective control in the embodiment of the present invention is (980+5)/(990+2) and 985/992 is 99.29%.
Therefore, compared with the total control success rate of 98% in the prior art, the first information and the second information which fail to reply and respective times are recorded and then fed back to the server, so that the calculation optimization scheme of the control success rate can be calculated, the times of the failure of the reply information caused by network problems or other reasons are included, the data loss caused by the failure of the reply information is avoided, and the more accurate control success rate is obtained.
Example 2
As shown in fig. 2, the present invention provides a communication control method of a computer device, applied to a gateway, the communication control method including:
s201, receiving a control instruction sent by a server, replying first information used for representing that the control instruction is received to the server, and recording the first information failed in replying to the server and corresponding first times; for details, reference may be made to the related description of the above embodiment of the communication control system of the computer device, and details are not described herein again;
s202, sending the control instruction to a terminal; for details, reference may be made to the related description of the above embodiment of the communication control system of the computer device, and details are not described herein again;
s203, receiving second information fed back by the terminal and used for representing successful control; replying the second information to the server and recording the second information which fails to be replied to the server and the corresponding second times; for details, reference may be made to the related description of the above embodiment of the communication control system of the computer device, and details are not described herein again;
s204, feeding back the first times and the second times to the server; for details, reference may be made to the related description of the above embodiment of the communication control system of the computer device, and details are not described herein again;
s205, uploading the first information and the second information which are failed to reply to the server; for details, reference may be made to the related description of the above embodiment of the communication control system of the computer device, and details are not described herein again.
By the arrangement, when the gateway sends the control result to the server, the first information and the second information which fail to reply and respective times are recorded, so that the success rate of the control result is adjusted by the server, the control result is consistent with the control result of the actual control process, and the accuracy of the control result is improved.
Example 3
As shown in fig. 3, an embodiment of the present invention provides a communication control method for a computer device, where the communication control method includes:
s301, sending a control instruction to a gateway, receiving first information replied by the gateway and used for representing that the control instruction has been received, and recording a third time for successfully receiving the first information; for details, reference may be made to the related description of the above embodiment of the communication control system of the computer device, and details are not described herein again;
s302, receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth time of successfully receiving the second information; for details, reference may be made to the related description of the above embodiment of the communication control system of the computer device, and details are not described herein again;
s303, receiving a first time and a second time fed back by the gateway, wherein the first time is used for representing the times of failure of the gateway in replying the first information, and the second time is used for representing the times of failure of the gateway in replying the second information; for details, reference may be made to the related description of the above embodiment of the communication control system of the computer device, and details are not described herein again;
s304, receiving first information and second information which are sent by the gateway and have failed in replying; for details, reference may be made to the related description of the above embodiment of the communication control system of the computer device, and details are not described herein again.
Has the advantages that: by the arrangement, after the first information and the second information which are sent by the gateway and failed to reply are received and the times of the first information failure and the times of the second information failure are counted, the counting process of the control result is adjusted, so that the control result is consistent with the control result of the actual control process, and the accuracy of the control result is improved.
Example 4
As shown in fig. 4, an embodiment of the present invention further provides a method for determining a success rate of communication control of a computer device, where the method for determining a success rate of communication control of a computer device includes:
s401, sending a control instruction to a gateway, receiving first information replied by the gateway and used for representing that the control instruction has been received, and recording a third time for successfully receiving the first information; for details, reference may be made to the related description of the above embodiment of the communication control system of the computer device, and details are not described herein again;
s402, receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth time of successfully receiving the second information; for details, reference may be made to the related description of the above embodiment of the communication control system of the computer device, and details are not described herein again;
s403, receiving a first time and a second time fed back by the gateway, wherein the first time is used for representing the times of failure of the gateway in replying the first information, and the second time is used for representing the times of failure of the gateway in replying the second information; for details, reference may be made to the related description of the above embodiment of the communication control system of the computer device, and details are not described herein again;
s404, calculating the communication control success rate of the computer equipment according to the first times, the second times, the third times and the fourth times.
After the server receives the first information and the second information which are sent by the gateway and failed to reply, the server obtains complete control link statistical data, and then the control success rate of the terminal can be calculated.
Specifically, the computer device communication control success rate may be calculated by the following formula:
wherein C is the success rate of communication control of the computer equipment, X1Replying to the Server for the first number of failures, X, for the gateway2Replying to the server for a second number of failures, X, for the gateway3For the third number of successful receptions of the server, X4As a serverThe fourth number of successful receptions.
For example, 1, the server issues the control instruction for 1000 times;
2. the server receives the 990 times of the control command receiving confirmation returned by the gateway, wherein 8 times are that the gateway does not receive the control command, and 2 times are that the gateway receives the control command but fails to return the control command confirmation; in the step, 990 times are the third times, and 2 times are the first times;
3. the gateway receives (990+2) secondary control commands sent by the server together and forwards the control commands to the equipment
4. The gateway receives 985 times of control success information returned by the terminal; wherein, the control fails for 7 times;
5. the server receives 980 successful control command reports from the gateway; wherein 5 times is gateway upload failure; in this step, 980 times are the fourth times, and 5 times are the second times.
Therefore, the actual success rate of effective control in the embodiment of the present invention is (980+5)/(990+2) and 985/992 is 99.29%.
Therefore, compared with the total control success rate of 98% in the prior art, the first information and the second information which fail to reply and respective times are recorded and then fed back to the server, so that the calculation optimization scheme of the control success rate can be calculated, the times of the failure of the reply information caused by network problems or other reasons are included, the data loss caused by the failure of the reply information is avoided, and the more accurate control success rate is obtained.
Example 5
An embodiment of the present invention further provides a communication control apparatus for a computer device, where the communication control apparatus includes:
the first receiving module is used for receiving a control instruction sent by a server, replying first information used for representing the control instruction received to the server, and recording the first information failed in replying to the server and the corresponding first times; for details, reference may be made to the related description of steps S102-S104 of the above method embodiment, which is not repeated herein;
the first sending module is used for sending the control instruction to a terminal; for details, reference may be made to the related description of step S106 in the above method embodiment, which is not described herein again;
the second receiving module is used for receiving second information which is fed back by the terminal and used for representing successful control, replying the second information to the server and recording the second information which fails to be replied to the server and corresponding second times; for details, reference may be made to the related description of step S107 in the above method embodiment, which is not described herein again;
the feedback module feeds the first times and the second times back to the server; for details, reference may be made to the related description of step S111 in the above method embodiment, and details are not repeated herein.
Has the advantages that: by the arrangement, when the gateway sends the control result to the server, the first information and the second information which fail to reply and respective times are recorded, so that the success rate of the control result is adjusted by the server, the control result is consistent with the control result of the actual control process, and the accuracy of the control result is improved.
Example 6
An embodiment of the present invention further provides a communication control apparatus for a computer device, where the communication control apparatus includes:
the second sending module is used for sending a control instruction to the gateway, receiving first information replied by the gateway and used for representing the control instruction to be received, and recording a third time for successfully receiving the first information; for details, reference may be made to the related description of step S101 and step S105 in the above method embodiment, and details are not repeated herein;
the third receiving module is used for receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth times of successfully receiving the second information; for details, reference may be made to the related description of step S110 in the above method embodiment, which is not described herein again;
a fourth receiving module, configured to receive a first number and a second number of times that are fed back by the gateway, where the first number is used to represent a number of times that the gateway fails to reply the first information, and the second number is used to represent a number of times that the gateway fails to reply the second information; for details, reference may be made to the related description of step S112 in the above method embodiment, and details are not repeated herein.
Has the advantages that: by the arrangement, after the first information and the second information which are sent by the gateway and failed to reply are received and the times of the first information failure and the times of the second information failure are counted, the counting process of the control result is adjusted, so that the control result is consistent with the control result of the actual control process, and the accuracy of the control result is improved.
Example 7
The embodiment of the invention provides a device for determining the success rate of communication control of computer equipment, which comprises:
the second sending module is used for sending a control instruction to the gateway, receiving first information replied by the gateway and used for representing the control instruction to be received, and recording a third time for successfully receiving the first information; for details, reference may be made to the related description of step S401 in the above method embodiment, which is not described herein again;
the third receiving module is used for receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth times of successfully receiving the second information; for details, reference may be made to the related description of step S402 in the above method embodiment, which is not described herein again;
a fourth receiving module, configured to receive a first number and a second number of times that are fed back by the gateway, where the first number is used to represent a number of times that the gateway fails to reply the first information, and the second number is used to represent a number of times that the gateway fails to reply the second information; for details, reference may be made to the related description of step S403 in the above method embodiment, which is not described herein again;
the processing module is used for calculating the communication control success rate of the computer equipment according to the first times, the second times, the third times and the fourth times; for details, reference may be made to the related description of step S404 in the above method embodiment, and details are not repeated herein.
Has the advantages that: compared with the total control success rate of 98% in the prior art, the first information and the second information which fail to reply and respective times are recorded and then fed back to the server, so that the calculation optimization scheme of the control success rate can be calculated, the times of information reply failure caused by network problems or other reasons are included, data loss caused by information reply failure is avoided, and the more accurate control success rate is obtained.
Example 8
An embodiment of the present invention further provides a gateway, where the gateway includes: a first memory and a first processor, wherein the first memory and the first processor are communicatively connected with each other, the first memory stores computer instructions, and the first processor executes the computer instructions to execute the communication control method of the computer device according to any one of the above embodiments.
The first processor may be a Central Processing Unit (CPU). The first Processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Graphics Processing Units (GPUs), embedded Neural Network Processors (NPUs), or other dedicated deep learning coprocessors, Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or any combination thereof.
The first memory, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the communication control method of the computer device in the embodiments of the present invention. The first processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, implements the communication control method of the computer device in the above method embodiments.
The first memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor, and the like. Further, the first memory may include high speed random access memory and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the first memory optionally includes memory remotely located from the first processor, and these remote memories may be connected to the first processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the first memory, and when executed by the first processor, perform the communication control method of the computer device as in the above embodiments.
Example 9
An embodiment of the present invention further provides a server, where the server includes: a second memory and a second processor, the second memory and the second processor being communicatively connected to each other, the second memory having stored therein computer instructions, and the second processor executing the computer instructions to perform the communication control method of the computer device according to any of the above embodiments.
The second processor may be a Central Processing Unit (CPU). The second Processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Graphics Processing Units (GPUs), embedded Neural Network Processors (NPUs) or other dedicated deep learning coprocessors, Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or any combination thereof.
The second memory, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the communication control method of the computer device in the embodiments of the present invention. The second processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, implements the communication control method of the computer device in the above method embodiments.
The second memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor, and the like. Further, the second memory may include high speed random access memory and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the second memory optionally includes memory remotely located from the second processor, and these remote memories may be connected to the second processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the second memory, and when executed by the second processor, perform the communication control method of the computer device as in the above embodiments.
Example 10
An embodiment of the present invention further provides a computer-readable storage medium, where a computer instruction is stored in the computer-readable storage medium, where the computer instruction is used to enable the computer to execute the communication control method of the computer device according to any of the above embodiments; or executing the method for determining the success rate of the communication control of the computer equipment in any embodiment.
The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.
Claims (10)
1. A communication control method of a computer device, comprising:
receiving a control instruction sent by a server, replying first information used for representing that the control instruction is received to the server, and recording the first information failed to be replied to the server and corresponding first times;
sending the control instruction to a terminal;
receiving second information fed back by the terminal and used for representing successful control; replying the second information to the server and recording the second information which fails to be replied to the server and the corresponding second times;
and feeding back the first times and the second times to the server.
2. A communication control method of a computer device, comprising:
sending a control instruction to a gateway, receiving first information replied by the gateway and used for representing that the control instruction has been received, and recording a third time for successfully receiving the first information;
receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth time of successfully receiving the second information;
and receiving a first time and a second time fed back by the gateway, wherein the first time is used for representing the times of failure of the gateway in replying the first information, and the second time is used for representing the times of failure of the gateway in replying the second information.
3. A method for determining success rate of communication control of computer equipment is characterized by comprising the following steps:
sending a control instruction to a gateway, receiving first information replied by the gateway and used for representing that the control instruction has been received, and recording a third time for successfully receiving the first information;
receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth time of successfully receiving the second information;
receiving a first time and a second time fed back by the gateway, wherein the first time is used for representing the times of failure of the gateway in replying the first information, and the second time is used for representing the times of failure of the gateway in replying the second information;
and calculating the communication control success rate of the computer equipment according to the first times, the second times, the third times and the fourth times.
4. The determination method according to claim 3, wherein the computer device communication control success rate is calculated by the following formula:
wherein C is the success rate of communication control of the computer equipment, X1Replying to the Server for the first number of failures, X, for the gateway2Replying to the server for a second number of failures, X, for the gateway3For the third number of successful receptions of the server, X4The fourth number of successful receptions by the server.
5. A communication control apparatus of a computer device, comprising:
the first receiving module is used for receiving a control instruction sent by a server, replying first information used for representing the control instruction received to the server, and recording the first information failed in replying to the server and the corresponding first times;
the first sending module is used for sending the control instruction to a terminal;
the second receiving module is used for receiving second information which is fed back by the terminal and used for representing successful control, replying the second information to the server and recording the second information which fails to be replied to the server and corresponding second times;
and the feedback module is used for feeding back the first times and the second times to the server.
6. A communication control apparatus of a computer device, comprising:
the second sending module is used for sending a control instruction to the gateway, receiving first information replied by the gateway and used for representing the control instruction to be received, and recording a third time for successfully receiving the first information;
the third receiving module is used for receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth times of successfully receiving the second information;
and the fourth receiving module is used for receiving a first time and a second time fed back by the gateway, wherein the first time is used for representing the times of failure of the gateway in replying the first information, and the second time is used for representing the times of failure of the gateway in replying the second information.
7. An apparatus for determining a success rate of communication control of a computer device, comprising:
the second sending module is used for sending a control instruction to the gateway, receiving first information replied by the gateway and used for representing the control instruction to be received, and recording a third time for successfully receiving the first information;
the third receiving module is used for receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth times of successfully receiving the second information;
a fourth receiving module, configured to receive a first number and a second number of times that are fed back by the gateway, where the first number is used to represent a number of times that the gateway fails to reply the first information, and the second number is used to represent a number of times that the gateway fails to reply the second information;
and the processing module is used for calculating the communication control success rate of the computer equipment according to the first times, the second times, the third times and the fourth times.
8. A communication control system of a computer device, comprising: a server, a gateway and a terminal, wherein,
the server is used for sending a control instruction to the gateway;
the gateway is used for receiving a control instruction sent by a server, replying first information used for representing that the control instruction is received to the server, and recording the first information failed in replying to the server and the corresponding first times;
the server is used for receiving first information replied by the gateway and used for representing that the control instruction has been received, and recording a third time for successfully receiving the first information;
the gateway is used for sending the control instruction to a terminal;
the gateway is used for receiving second information which is fed back by the terminal and used for representing successful control, replying the second information to the server and recording the second information which fails to be replied to the server and the corresponding second times;
the server is used for receiving second information which is replied by the gateway and used for representing successful control, and recording the fourth time for successfully receiving the second information;
the gateway is used for feeding back the first times and the second times to the server;
the server is used for receiving the first times and the second times of the gateway feedback.
9. An electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing therein computer instructions, the processor executing the computer instructions to perform a communication control method of a computer device according to claim 1, or to perform a communication control method of a computer device according to claim 2, or to perform a determination method of a success rate of communication control of a computer device according to claim 3 or 4.
10. A computer-readable storage medium storing computer instructions for causing a computer to execute a communication control method of a computer device according to claim 1, or execute a communication control method of a computer device according to claim 2, or execute a determination method of a communication control success rate of a computer device according to claim 3 or 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011025144.4A CN112165521B (en) | 2020-09-25 | 2020-09-25 | Communication control method of computer equipment, success rate determining method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011025144.4A CN112165521B (en) | 2020-09-25 | 2020-09-25 | Communication control method of computer equipment, success rate determining method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112165521A true CN112165521A (en) | 2021-01-01 |
CN112165521B CN112165521B (en) | 2023-07-28 |
Family
ID=73864073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011025144.4A Active CN112165521B (en) | 2020-09-25 | 2020-09-25 | Communication control method of computer equipment, success rate determining method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112165521B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007329798A (en) * | 2006-06-09 | 2007-12-20 | Yokogawa Electric Corp | Gateway system |
CN106060058A (en) * | 2016-06-16 | 2016-10-26 | 华南理工大学 | Internet-based industrial robot remote control method |
CN110312356A (en) * | 2019-07-22 | 2019-10-08 | 中国建筑设计研究院有限公司 | A kind of intelligent lighting system and its control method |
-
2020
- 2020-09-25 CN CN202011025144.4A patent/CN112165521B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007329798A (en) * | 2006-06-09 | 2007-12-20 | Yokogawa Electric Corp | Gateway system |
CN106060058A (en) * | 2016-06-16 | 2016-10-26 | 华南理工大学 | Internet-based industrial robot remote control method |
CN110312356A (en) * | 2019-07-22 | 2019-10-08 | 中国建筑设计研究院有限公司 | A kind of intelligent lighting system and its control method |
Also Published As
Publication number | Publication date |
---|---|
CN112165521B (en) | 2023-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3646728B1 (en) | Wireless notification systems and methods for electronic rodent traps | |
CN110677317B (en) | Test method, test device, test equipment and storage medium | |
CN202306262U (en) | Site equipment with self description | |
US10362443B2 (en) | System and method for automatically detecting exit and entry for interest region | |
US11006366B2 (en) | Systems and methods for using a mobile gateway in a low power wide area network | |
EP1752908A2 (en) | Portable RFID reader having a location determination system | |
CN109214040B (en) | BIM-based real-time monitoring system and method for assembly construction | |
KR102248452B1 (en) | Data transmission methods, devices, and systems | |
CN103369671A (en) | Close-range positioning system and method based on WIFI | |
JP2015082303A (en) | Radio device, radio module, interface module and communication method | |
JP6624780B2 (en) | Positioning method, server and program | |
US11611851B2 (en) | Location tracking of assets | |
CN114493553A (en) | Intelligent factory system with 5G communication management | |
KR100863126B1 (en) | Method for providing the location and cause of error in sensor network | |
CN112165521A (en) | Communication control method of computer equipment, and method and device for determining success rate | |
CN111679050A (en) | Water quality monitoring and early warning system based on Internet of things | |
CN114630349B (en) | Control method, device, system, electronic equipment and storage medium | |
KR101025832B1 (en) | ???? and method for correcting location of tags the same | |
EP3499928B1 (en) | Determining signal quality in a low-power wide-area network | |
US11595226B1 (en) | Method and system for collecting sensor data in buildings | |
CN113114386B (en) | Radio frequency parameter monitoring and early warning method and device for road side unit | |
US9398445B2 (en) | Cellular network communication between assets and a central server | |
CN116170743A (en) | Inter-equipment distance measurement method, device, equipment and medium based on time synchronization | |
US10779124B2 (en) | Arrangement for tracking the spatial position of devices | |
US12114386B2 (en) | Building environmental sensor method and system for collecting data from same |
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 |