CN112165521B - Communication control method of computer equipment, success rate determining method and device - Google Patents

Communication control method of computer equipment, success rate determining method and device Download PDF

Info

Publication number
CN112165521B
CN112165521B CN202011025144.4A CN202011025144A CN112165521B CN 112165521 B CN112165521 B CN 112165521B CN 202011025144 A CN202011025144 A CN 202011025144A CN 112165521 B CN112165521 B CN 112165521B
Authority
CN
China
Prior art keywords
information
server
gateway
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.)
Active
Application number
CN202011025144.4A
Other languages
Chinese (zh)
Other versions
CN112165521A (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.)
Beijing Ziroom Information Technology Co Ltd
Original Assignee
Beijing Ziroom Information 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 Beijing Ziroom Information Technology Co Ltd filed Critical Beijing Ziroom Information Technology Co Ltd
Priority to CN202011025144.4A priority Critical patent/CN112165521B/en
Publication of CN112165521A publication Critical patent/CN112165521A/en
Application granted granted Critical
Publication of CN112165521B publication Critical patent/CN112165521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements 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/1607Details of the supervisory signal
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total 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)
  • Telephonic Communication Services (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a communication control method of computer equipment, a determination method and a device of success rate, wherein when a gateway sends a control result to a server, the communication control method can record first information, second information and respective times of reply failure, and then feed back the first information, the second information and respective times to the server, so that calculation of the control success rate can be optimized, the times of the reply failure caused by network problems or other reasons are calculated, data loss caused by the reply failure is avoided, and more accurate control success rate is obtained.

Description

Communication control method of computer equipment, success rate determining method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for controlling communications of a computer device, and a method and apparatus for determining a success rate of device control.
Background
With the continuous development of smart home, IOT devices in the home are increasing. The internet of things (The Internet of Things, IOT for short) refers to collecting any object or process needing to be monitored, connected and interacted in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors and laser scanners, collecting various needed information such as sound, light, heat, electricity, mechanics, chemistry, biology and positions, and realizing ubiquitous connection of the object and people through various possible network access, and realizing intelligent sensing, identification and management of the object and the process. The internet of things is an information carrier based on the internet, a traditional telecommunication network and the like, and enables all common physical objects which can be independently addressed to form an interconnection network.
At present, the control of the IOT device needs to issue a command to the gateway through the server, the gateway forwards the command to the corresponding IOT device for control, and the result is returned 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 of whether the gateway successfully gives the control to the server in the final feedback process, so that the control result has deviation from the control result in the actual control process.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defect that the control result in the prior art and the control result in the actual control process have deviation, thereby providing a communication control method of computer equipment, a success rate determining method and a device.
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 and the corresponding first times of replying failure to the server; the control instruction is sent to a terminal; 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 second information which fails to reply 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 are failed 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 which is replied by the gateway and used for representing that the control instruction is received, and recording third times of successfully receiving the first information; receiving second information which is replied by the gateway and used for representing successful control, and recording fourth times of successful receiving of 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 to reply the first information, and the second time is used for representing the times of failure of the gateway to reply 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 are failed to 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 which is replied by the gateway and used for representing that the control instruction is received, and recording third times of successfully receiving the first information; receiving second information which is replied by the gateway and used for representing successful control, and recording fourth times of successful receiving of 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 to reply the first information, and the second time is used for representing the times of failure of the gateway to reply 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 and X is the success rate of communication control of the computer equipment 1 For the first time of failure of the gateway to reply to the server, X 2 For the second number of times of failure of the gateway to reply to the server, X 3 X is the third number of successful server receptions 4 A fourth number that is successfully received by the server.
The embodiment of the invention provides a communication control device of computer equipment, which comprises: the first receiving module is used for receiving a control instruction sent by the server, replying first information used for representing that the control instruction is received to the server, and recording the first information and the corresponding first times of reply failure to the server; the first sending module is used for sending the control instruction to the 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 is failed to reply to the server and corresponding second times.
The embodiment of the invention provides a communication control device of computer equipment, which comprises: the second sending module is used for sending a control instruction to the gateway, receiving first information which is replied by the gateway and used for representing that the control instruction is received, and recording third times of 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 fourth times of successful receiving of the second information; the fourth receiving module is used for receiving the first times and the second times fed back by the gateway, the first times are used for representing the times of failure of the gateway to reply the first information, and the second times are used for representing the times of failure of the gateway to reply 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 following components: the second sending module is used for sending a control instruction to the gateway, receiving first information which is replied by the gateway and used for representing that the control instruction is received, and recording third times of 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 fourth times of successful receiving of the second information; 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 to reply the first information, and the second time is used for representing the times of failure of the gateway 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.
The embodiment of the invention provides a communication control system of computer equipment, which comprises: 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 which is replied by the gateway and used for representing that the control instruction is received, and recording the third times of successfully receiving the first information;
The gateway is used for receiving a control instruction sent by the server, replying first information used for representing that the control instruction is received to the server, and recording the first information and the corresponding first times of reply failure to the server;
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 second information which is failed to reply to the server and 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 fourth times of successful receiving of 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 fed back by the gateway.
The embodiment of the invention also provides a gateway, which comprises: the communication control method of the computer equipment according to any one of the embodiments is implemented by the processor through executing the computer instructions.
The embodiment of the invention also provides a server, which comprises: the communication control method of the computer equipment according to any one of the embodiments is implemented by the processor through executing the computer instructions.
The embodiment of the invention also provides a terminal, which comprises: the processor executes the computer instructions to execute the method for determining the success rate of communication control of the computer equipment according to any embodiment.
An embodiment of the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the communication control method of the computer device described in any one of the above embodiments; or executing the method for determining the success rate of 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 which is replied by the gateway and used for representing that the control instruction is received, and recording third times of 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 and the corresponding first times of replying failure to the server; the control instruction is sent to a terminal; 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 second information which fails to reply to the server and corresponding second times; receiving second information which is replied by the gateway and used for representing successful control, and recording fourth times of successful receiving of the second information; feeding back the first times and the second times to the server; and receiving the first times and the second times fed back by the gateway.
By the arrangement, when the gateway sends the control result to the server, the first information, the second information and the respective times of the reply failure can be 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 which is replied by the gateway and used for representing that the control instruction is received, and recording third times of successfully receiving the first information; receiving second information which is replied by the gateway and used for representing successful control, and recording fourth times of successful receiving of 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 to reply the first information, and the second time is used for representing the times of failure of the gateway to reply 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, in a certain number of times that a server sends a control command to a gateway, a part of times can cause that the gateway does not receive the control command in the part of times due to network reasons or other reasons; on the other hand, when the gateway reports the information of successful control to the server, there is a possibility that the server does not receive the information of successful control of the partial times due to network problems or other reasons. So that the counted control result has 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 improved.
3. The embodiment of the invention calculates the communication control success rate of the computer equipment through the following formula:
the calculation optimization scheme of the control success rate can be used for calculating the number of times of failure of the reply information caused by network problems or other reasons, so that the data loss caused by failure of the reply information is avoided, and the more accurate control success rate is obtained.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of a communication control system of a computer device in 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 schematic diagram of a communication control method of a computer device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of 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 following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific 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 explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; the two components can be directly connected or indirectly connected through an intermediate medium, or can be communicated inside the two components, or can be connected wirelessly or in a wired way. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
In addition, the technical features of the different embodiments of the present invention described below may be combined with each other as long as they do not collide 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 control of the server to 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 success rate of controlling a terminal is generally counted by a server, and the server performs division according to the total times of sending control commands and the total times of success of the control commands received by the server, so as to count the success rate of controlling the terminal in a period of time.
For example, 1, the server issues control instructions 1000 times;
2. the server receives the gateway and returns the acknowledgement of receipt of the control command 990 times (8 times is that the gateway does not receive and 2 times is that the gateway receives but returns the acknowledgement of the control command fails)
3. The gateway receives the control command issued by the server (990+2 times) and forwards the control command to the equipment
4. The gateway receives the control success information returned by the terminal 985 times; (7 times control failure)
5. The server receives the gateway report control command 980 times successfully (5 times are gateway uploading failure).
The total control success rate=980/1000=98% of the prior art can be calculated according to the above procedure.
However, the control success rate calculated by the above method has a certain error, on the one hand, in step 2, 8 times of sending the control command to the gateway by the server can cause network problems or other reasons, so that the gateway does not receive the control command; on the other hand, in step 5, when the gateway reports the success information of the device control command, a network problem may also occur, so that the server does not receive the message of success of the 5 times of control command. In practice, the gateway receives 992 commands in total, and the number of successful control times is 985, so the counted success rate of device control may deviate.
Example 1
In order to solve the above-mentioned problems, as shown in fig. 1, an embodiment of the present invention provides a communication control system for a computer device, the control system including: server, gateway and terminal.
In this embodiment, the communication control process of the server, gateway and terminal in the communication control system of the computer device mainly includes the following processes:
S101, a server firstly sends a control instruction to a gateway, wherein the control instruction is used for controlling the working process of a terminal.
For example, in a home environment, the terminal may be any device in a room, exemplified by a light in this embodiment. Since a plurality of lamps are arranged in the 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 instructions may be to include: the type of lamp, the number of the lamp and the mode of operation of the lamp.
The server therefore issues control instructions in digitally encoded form to the gateway, which may be, for example: the bedside lamp No. 123 was turned on.
S102, the gateway receives a control instruction sent by a server;
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 the server, the gateway needs to reply first information to the server, wherein the first information is used for representing that the gateway has successfully received the control instruction;
s104, in the actual communication process, the following situations may exist: the part of control instruction is received by the gateway, but the first information representing that the part of control instruction is successfully received cannot be uploaded to the server possibly due to network reasons or other reasons, so that the gateway side needs to record the first information which cannot be uploaded, record the times of the first information which cannot be uploaded, and take the times as a first time number;
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 the number is defined as a third number.
Therefore, it can be understood that the total number of times the gateway actually receives the control command is the sum of the first number of times and the third number of times.
S106, after the gateway receives the control instruction sent by the 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 a digital code, the gateway identifies the digital code and converts it into a corresponding control command. The gateway then needs to send control instructions to the number 123 bedside lamp to control the number 123 bedside lamp to turn on.
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 indicating that the control instruction issued by the gateway has successfully controlled the terminal, i.e. the second information is used for indicating that the control instruction issued by the gateway has turned on the bedside lamp with the number of 123.
S108, after receiving the second information fed back by the terminal, the gateway replies the second information to the server.
S109, part of the second information may not be uploaded to the server due to network reasons or other reasons, so the gateway side needs to record the second information which cannot be uploaded and record the number of times of the second information which cannot be uploaded. And at the same time, the number of times is defined as a second number of times;
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 the actual control is successful is the sum of the second number of times and the fourth number of times.
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 as to facilitate the server to adjust the success rate of the control result;
and S112, correspondingly, the server needs to receive the first times and the second times of gateway feedback. And the first times and the second times are stored.
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 improved.
S113, after the gateway fails to reply the first information and the second information, the gateway needs to temporarily store the failed information record. Then, the gateway needs to report the first information and the second information which are not successfully reported to the server again at regular intervals;
s114, at the same time, the server needs to receive the first information and the second information of the reply failure sent by the gateway.
After the server receives the first information and the second information of the reply failure sent by the gateway, the server obtains complete control link statistical data, and further, 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 and X is the success rate of communication control of the computer equipment 1 For the first time of failure of the gateway to reply to the server, X 2 For the second number of times of failure of the gateway to reply to the server, X 3 X is the third number of successful server receptions 4 A fourth number that is successfully received by the server.
Based on the above process, the computer device communication control system of the embodiment of the present invention may implement the following process: 1. the server issues control instructions 1000 times;
2. the server receives the acknowledgement times 990 times of the control command returned by the gateway, wherein 8 times are times when the gateway does not receive the control command, and 2 times are times when the gateway receives but returns the control command to confirm failure; in this step 990 is the third number of times and 2 is the first number of times;
3. The gateway receives the (990+2) times of control commands issued by the server altogether and forwards the control commands to the equipment;
4. the gateway receives the control success information returned by the terminal 985 times; wherein 7 times of control fail;
5. the server receives the gateway report control command 980 times successfully; wherein 5 times is failure of uploading the gateway; in this step 980 a fourth number of times, 5 a second number of times.
Therefore, the actual effective control success rate= (980+5)/(990+2) =985/992= 99.29% in the embodiment of the present invention.
Compared with the total control success rate of 98 percent in the prior art, the method records the first information, the second information and the respective times of the reply failures, and then feeds back the first information, the second information and the respective times to the server, so that the calculation optimization scheme of the control success rate can be realized, the times of the reply information failures caused by network problems or other reasons are calculated, the data loss caused by the reply information failures 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, which is applied to a gateway, and the communication control method includes:
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 first information and corresponding first times of replying failure to the server; details can be found in the related description of the embodiments of the communication control system of the computer device, which is not repeated here;
S202, sending the control instruction to a terminal; details can be found in the related description of the embodiments of the communication control system of the computer device, which is not repeated here;
s203, receiving second information which is fed back by the terminal and is used for representing successful control; the second information is replied to the server, and the second information and the corresponding second times of failure in replying to the server are recorded; details can be found in the related description of the embodiments of the communication control system of the computer device, which is not repeated here;
s204, feeding back the first times and the second times to the server; details can be found in the related description of the embodiments of the communication control system of the computer device, which is not repeated here;
s205, uploading the first information and the second information which are failed to reply to the server; details of the foregoing embodiments of the communication control system for a computer device will be described in detail herein.
By the arrangement, when the gateway sends the control result to the server, the first information, the second information and the respective times of the reply failure can be 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 of a computer device, including:
s301, a control instruction is sent to a gateway, first information which is replied by the gateway and used for representing that the control instruction is received, and third times of successful reception of the first information are recorded; details can be found in the related description of the embodiments of the communication control system of the computer device, which is not repeated here;
s302, receiving second information which is replied by the gateway and used for representing successful control, and recording fourth times of successful receiving of the second information; details can be found in the related description of the embodiments of the communication control system of the computer device, which is not repeated here;
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 to reply the first information, and the second time is used for representing the times of failure of the gateway to reply the second information; details can be found in the related description of the embodiments of the communication control system of the computer device, which is not repeated here;
s304, receiving first information and second information which are sent by the gateway and are failed to reply; details of the foregoing embodiments of the communication control system for a computer device will be described in detail herein.
The beneficial effects are that: by the arrangement, after the first information, the second information and the respective times of the reply failure sent by the gateway are received, the statistics process of the control result is adjusted by counting the times of the reply failure of the first information and the times of the reply failure of 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 improved.
Example 4
As shown in fig. 4, the embodiment of the invention further provides a method for determining the success rate of communication control of a computer device, where the method includes:
s401, a control instruction is sent to a gateway, first information which is replied by the gateway and used for representing that the control instruction is received, and third times of successful reception of the first information are recorded; details can be found in the related description of the embodiments of the communication control system of the computer device, which is not repeated here;
s402, receiving second information which is replied by the gateway and used for representing successful control, and recording fourth times of successful receiving of the second information; details can be found in the related description of the embodiments of the communication control system of the computer device, which is not repeated here;
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 to reply the first information, and the second time is used for representing the times of failure of the gateway to reply the second information; details can be found in the related description of the embodiments of the communication control system of the computer device, which is not repeated here;
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 of the reply failure sent by the gateway, the server obtains complete control link statistical data, and further, 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 and X is the success rate of communication control of the computer equipment 1 For the first time of failure of the gateway to reply to the server, X 2 For the second number of times of failure of the gateway to reply to the server, X 3 X is the third number of successful server receptions 4 A fourth number that is successfully received by the server.
For example, 1, the server issues control instructions 1000 times;
2. the server receives the acknowledgement times 990 times of the control command returned by the gateway, wherein 8 times are times when the gateway does not receive the control command, and 2 times are times when the gateway receives but returns the control command to confirm failure; in this step 990 is the third number of times and 2 is the first number of times;
3. the gateway receives the control command issued by the server (990+2 times) and forwards the control command to the equipment
4. The gateway receives the control success information returned by the terminal 985 times; wherein 7 times of control fail;
5. the server receives the gateway report control command 980 times successfully; wherein 5 times is failure of uploading the gateway; in this step 980 a fourth number of times, 5 a second number of times.
Therefore, the actual effective control success rate= (980+5)/(990+2) =985/992= 99.29% in the embodiment of the present invention.
Compared with the total control success rate of 98 percent in the prior art, the method records the first information, the second information and the respective times of the reply failures, and then feeds back the first information, the second information and the respective times to the server, so that the calculation optimization scheme of the control success rate can be realized, the times of the reply information failures caused by network problems or other reasons are calculated, the data loss caused by the reply information failures is avoided, and the more accurate control success rate is obtained.
Example 5
The embodiment of the invention also provides a communication control device of the computer equipment, which comprises:
the first receiving module is used for receiving a control instruction sent by the server, replying first information used for representing that the control instruction is received to the server, and recording the first information and the corresponding first times of reply failure to the server; details can be found in the related descriptions of steps S102-S104 of the above method embodiments, which are not repeated here;
the first sending module is used for sending the control instruction to the terminal; details can be found in the related description of step S106 of the above method embodiment, and will not be described herein;
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 is failed to reply to the server and corresponding second times; details can be found in the related description of step S107 in the above method embodiments, and are not repeated here;
the feedback module is used for feeding back the first times and the second times to the server; details can be found in the related description of step S111 in the above method embodiments, and are not repeated here.
The beneficial effects are that: by the arrangement, when the gateway sends the control result to the server, the first information, the second information and the respective times of the reply failure can be 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
The embodiment of the invention also provides a communication control device of the computer equipment, which comprises:
the second sending module is used for sending a control instruction to the gateway, receiving first information which is replied by the gateway and used for representing that the control instruction is received, and recording third times of successfully receiving the first information; details can be found in the related descriptions of step S101 and step S105 in the above method embodiments, and are 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 fourth times of successful receiving of the second information; details can be found in the related description of step S110 of the above method embodiment, and are not repeated here;
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 to reply the first information, and the second time is used for representing the times of failure of the gateway to reply the second information; details can be found in the related description of step S112 in the above method embodiments, which are not repeated here.
The beneficial effects are that: by the arrangement, after the first information, the second information and the respective times of the reply failure sent by the gateway are received, the statistics process of the control result is adjusted by counting the times of the reply failure of the first information and the times of the reply failure of 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 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 following components:
the second sending module is used for sending a control instruction to the gateway, receiving first information which is replied by the gateway and used for representing that the control instruction is received, and recording third times of successfully receiving the first information; details can be found in the related description of step S401 of the above method embodiment, and are not repeated here;
the third receiving module is used for receiving second information which is replied by the gateway and used for representing successful control, and recording fourth times of successful receiving of the second information; details can be found in the related description of step S402 of the above method embodiment, and are not repeated here;
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 to reply the first information, and the second time is used for representing the times of failure of the gateway to reply the second information; details can be found in the related description of step S403 of the above method embodiment, which is not repeated here;
and a processing module, configured to calculate a communication control success rate of the computer device according to the first number of times, the second number of times, the third number of times, and the fourth number of times; details can be found in the related description of step S404 of the above method embodiment, and will not be described herein.
The beneficial effects are that: compared with the total control success rate of 98 percent in the prior art, the first information, the second information and the respective times of the reply failures are recorded and then fed back to the server, so that the calculation optimization scheme of the control success rate can be realized, the times of the reply information failures caused by network problems or other reasons are calculated, the data loss caused by the reply information failures is avoided, and the more accurate control success rate is obtained.
Example 8
The embodiment of the invention also provides a gateway, which comprises: the first memory is in communication connection with the first processor, computer instructions are stored in the first memory, and the first processor executes the communication control method of the computer device according to any one of the embodiments by executing the computer instructions.
The first processor may be a central processing unit (Central Processing Unit, CPU). The first processor may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), graphics processors (Graphics Processing Unit, GPU), embedded Neural network processors (Neural-network Processing Unit, NPU) or other specialized deep learning coprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above.
The first memory, as a non-transitory computer readable storage medium, may be used to store a non-transitory software program, a non-transitory computer executable program, and a module, such as program instructions/modules corresponding to a communication control method of a computer device in an embodiment of the present invention. The first processor executes various functional applications of the processor and data processing by running 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-described method embodiment.
The first memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created by the processor, etc. Further, the first memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one 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 relative to the first processor, the remote memory being connectable 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
The embodiment of the invention also provides a server, which comprises: the second memory is in communication connection with the second processor, computer instructions are stored in the second memory, and the second processor executes the communication control method of the computer device according to any one of the embodiments by executing the computer instructions.
The second processor may be a central processing unit (Central Processing Unit, CPU). The second processor may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), graphics processors (Graphics Processing Unit, GPU), embedded Neural network processors (Neural-network Processing Unit, NPU) or other specialized deep learning coprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above.
The second memory, as a non-transitory computer readable storage medium, may be used to store a non-transitory software program, a non-transitory computer executable program, and a module, such as program instructions/modules corresponding to a communication control method of a computer device in an embodiment of the present invention. The second processor executes various functional applications of the processor and data processing by running 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-described method embodiment.
The second memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created by the processor, etc. Further, the second memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one 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 relative to the second processor, the remote memory being connectable 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
The embodiment of the invention also provides a computer readable storage medium, which is characterized in that the computer readable storage medium stores computer instructions for causing the computer to execute the communication control method of the computer device according to any one of the above embodiments; or executing the method for determining the success rate of communication control of the computer equipment in any embodiment.
Wherein the storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
It is apparent that the above examples are given by way of illustration only and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the invention.

Claims (7)

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 and the corresponding first times of replying failure to the server;
the control instruction is sent to a terminal;
Receiving second information which is fed back by the terminal and is used for representing successful control; the second information is replied to the server, and the second information and the corresponding second times of failure in replying to the server are recorded;
feeding back the first times and the second times to the server;
sending a control instruction to a gateway, receiving first information which is replied by the gateway and used for representing that the control instruction is received, and recording third times of successfully receiving the first information;
receiving second information which is replied by the gateway and used for representing successful control, and recording fourth times of successful receiving of the second information;
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;
the success rate of the communication control of the computer equipment is calculated by the following formula:
wherein C is the success rate of communication control of the computer equipment and X is the success rate of communication control of the computer equipment 1 For the first time of failure of the gateway to reply to the server, X 2 For the second number of times of failure of the gateway to reply to the server, X 3 X is the third number of successful server receptions 4 A fourth number that is successfully received by the server.
2. A method for determining a success rate of communication control of a computer device, comprising:
Sending a control instruction to a gateway, receiving first information which is replied by the gateway and used for representing that the control instruction is received, and recording third times of successfully receiving the first information;
receiving second information which is replied by the gateway and used for representing successful control, and recording fourth times of successful receiving of 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 to reply the first information, and the second time is used for representing the times of failure of the gateway to reply the second information;
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;
the success rate of the communication control of the computer equipment is calculated by the following formula:
wherein C is the success rate of communication control of the computer equipment and X is the success rate of communication control of the computer equipment 1 For the first time of failure of the gateway to reply to the server, X 2 For the second number of times of failure of the gateway to reply to the server, X 3 X is the third number of successful server receptions 4 A fourth number that is successfully received by the server.
3. A communication control apparatus of a computer device, comprising:
The first receiving module is used for receiving a control instruction sent by the server, replying first information used for representing that the control instruction is received to the server, and recording the first information and the corresponding first times of reply failure to the server;
the first sending module is used for sending the control instruction to the 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 is failed to reply to the server and corresponding second times;
the feedback module is used for feeding back the first times and the second times to the server;
the second sending module is used for sending a control instruction to the gateway, receiving first information which is replied by the gateway and used for representing that the control instruction is received, and recording third times of 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 fourth times of successful receiving of the second information;
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;
The success rate of the communication control of the computer equipment is calculated by the following formula:
wherein C is the success rate of communication control of the computer equipment and X is the success rate of communication control of the computer equipment 1 For the first time of failure of the gateway to reply to the server, X 2 For the second number of times of failure of the gateway to reply to the server, X 3 X is the third number of successful server receptions 4 A fourth number that is successfully received by the server.
4. A device for determining 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 which is replied by the gateway and used for representing that the control instruction is received, and recording third times of 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 fourth times of successful receiving of the second information;
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 to reply the first information, and the second time is used for representing the times of failure of the gateway to reply the second information;
and a processing module, configured to calculate a communication control success rate of the computer device according to the first number of times, the second number of times, the third number of times, and the fourth number of times;
The success rate of the communication control of the computer equipment is calculated by the following formula:
wherein C is the success rate of communication control of the computer equipment and X is the success rate of communication control of the computer equipment 1 For the first time of failure of the gateway to reply to the server, X 2 For the second number of times of failure of the gateway to reply to the server, X 3 X is the third number of successful server receptions 4 A fourth number that is successfully received by the server.
5. A communication control system of a computer device, comprising: server, gateway and 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 the server, replying first information used for representing that the control instruction is received to the server, and recording the first information and the corresponding first times of reply failure to the server;
the server is used for receiving the first information which is replied by the gateway and used for representing that the control instruction is received, and recording the third times of successful receiving of 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 second information which is failed to reply to the server and 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 fourth times of successful receiving of 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 fed back by the gateway; 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;
the success rate of the communication control of the computer equipment is calculated by the following formula:
wherein C is the success rate of communication control of the computer equipment and X is the success rate of communication control of the computer equipment 1 For the first time of failure of the gateway to reply to the server, X 2 For the second number of times of failure of the gateway to reply to the server, X 3 X is the third number of successful server receptions 4 A fourth number that is successfully received by the server.
6. An electronic device, comprising: a memory and a processor, the memory and the processor are in communication connection with each other, the memory stores computer instructions, and the processor executes the communication control method of the computer device according to claim 1 or the determination method of the communication control success rate of the computer device according to claim 2 by executing the computer instructions.
7. A computer-readable storage medium storing computer instructions for causing the computer to execute the communication control method of the computer device according to claim 1 or to execute the determination method of the communication control success rate of the computer device according to claim 2.
CN202011025144.4A 2020-09-25 2020-09-25 Communication control method of computer equipment, success rate determining method and device Active CN112165521B (en)

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 CN112165521A (en) 2021-01-01
CN112165521B true 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
CN112165521A (en) 2021-01-01

Similar Documents

Publication Publication Date Title
EP3646728B1 (en) Wireless notification systems and methods for electronic rodent traps
US7388491B2 (en) Mobile RFID reader with integrated location awareness for material tracking and management
US8224282B2 (en) Method and device to manage power of wireless multi-sensor devices
US8264371B2 (en) Method and device for communicating change-of-value information in a building automation system
US11006366B2 (en) Systems and methods for using a mobile gateway in a low power wide area network
US10362443B2 (en) System and method for automatically detecting exit and entry for interest region
US9693174B2 (en) Wireless device, wireless communication system, wireless module, interface module, and communication method
WO2009001353A2 (en) A wireless communication system for tracking assets with affixed electronic smart tags and methods thereof
CN113867382B (en) Topology control method of unmanned aerial vehicle cluster network
CN110677317A (en) Test method, test device, test equipment and storage medium
EP3442196B1 (en) Method, device, and system for transmitting data
CN107801253B (en) Device pairing method, device pairing apparatus and computer-readable storage medium
CN112165521B (en) Communication control method of computer equipment, success rate determining method and device
CN114493553A (en) Intelligent factory system with 5G communication management
US11782123B2 (en) Area determination system, area determination method, and program
CN112887416B (en) Frequency adjustment method and device for sending keep-alive packets
CN105210349B (en) Radio communication quality information processing meanss and communication system
CN107318128B (en) Wireless communication optimization method, device, storage medium and computer equipment thereof
EP3389316A1 (en) Automated asset tracking
US20190110258A1 (en) Method for Adjusting Radio-Frequency Power, Zigbee Router, Sensor and System
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
KR20230112272A (en) Electronic device for providing distance based service and operating method thereof
JP7189698B2 (en) Communication slave unit, communication base unit, wireless communication system, and communication method
CN109982450B (en) Communication link repairing method, device, coordinator and system

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