Disclosure of Invention
The invention aims to provide a statistical analysis-based control method and system for an intelligent Internet of things machine tool, which can overcome the defects of the prior art.
In order to achieve the purpose, the invention provides a control method of an intelligent internet of things machine tool based on statistical analysis, which comprises the following steps: counting, by a first intelligent internet of things machine tool control station, a number a of data path establishment request messages received per second, wherein the data path establishment request messages are sent by a mobile subscriber station, and wherein the data path establishment request messages include a random signature, and wherein the random signature is randomly selected by the mobile subscriber station from a signature library, and wherein the number of random signatures included in the signature library is N; the method comprises the steps that a first intelligent Internet of things machine tool control station establishes the number A of request messages and the number N of random signatures in a signature library on the basis of a data path received every second to obtain a first criterion and a second criterion; the method comprises the steps that a first intelligent Internet of things machine tool control station judges whether a second intelligent Internet of things machine tool control station communicates with a mobile user station or not based on first criteria and second criteria; if the second intelligent Internet of things machine tool control station is judged to be in communication with the mobile subscriber station, the first intelligent Internet of things machine tool control station sends a transmission request message to the second intelligent Internet of things machine tool control station; receiving, by the first intelligent internet of things machine tool control station, a transfer request acknowledgement message, wherein the transfer request acknowledgement message is sent by the second intelligent internet of things machine tool control station based on receiving the transfer request message; after receiving the transmission request confirmation message, the first intelligent Internet of things machine tool control station sends a transmission command to the mobile user station; after receiving the delivery command, the following are performed by the mobile subscriber station: sending a data path establishment request message to a second intelligent Internet of things machine tool control station; receiving a data path establishment response message, wherein the data path establishment response message is sent by the second intelligent internet of things machine tool control station in response to receiving the data path establishment request message; and after receiving the data path establishment response message, sending a command for controlling the intelligent Internet of things machine tool to a second intelligent Internet of things machine tool control station.
In a preferred embodiment, the first criterion is generated by the following formula:
p1(B,N)=1-e-B/N(1+B/N)
where B is a × T, where T is a specified time length.
In a preferred embodiment, the second criterion is generated by the following formula:
where B is a × T, where T is a specified time length.
In a preferred embodiment, the step of determining, by the first intelligent internet of things machine control station, whether the second intelligent internet of things machine control station communicates with the mobile subscriber station based on the first criterion and the second criterion comprises: if the first criterion is greater than the first threshold and the second criterion is greater than the second threshold, the second intelligent Internet of things machine tool control station is judged to be communicated with the mobile user station; and if the first criterion is smaller than the first threshold or the second criterion is smaller than the second threshold, judging that the second intelligent Internet of things machine tool control station does not communicate with the mobile user station.
In a preferred embodiment, the control method of the intelligent internet of things machine tool based on statistical analysis comprises the following steps: after the second intelligent Internet of things machine tool control station receives the command for controlling the intelligent Internet of things machine tool, the second intelligent Internet of things machine tool control station forwards the command to the intelligent Internet of things machine tool.
The invention also provides a control system of the intelligent Internet of things machine tool based on statistical analysis, which comprises the following components: the first intelligent Internet of things machine tool control station; the first intelligent Internet of things machine tool control station is in communication connection with the second intelligent Internet of things machine tool control station; the mobile user station is in communication connection with the first intelligent Internet of things machine tool control station, and the mobile user station is in communication connection with the second intelligent Internet of things machine tool control station; wherein the first intelligent internet of things machine control station is configured to: counting a number a of data path establishment request messages received per second, wherein the data path establishment request messages are sent by mobile subscriber stations, and wherein the data path establishment request messages comprise random signatures, and wherein the random signatures are randomly selected by the mobile subscriber stations from a signature library, and wherein the number of random signatures comprised in the signature library is N; based on the number A of the data path establishment request messages received every second and the number N of the random signatures in the signature library, a first criterion and a second criterion are obtained; judging whether a second intelligent Internet of things machine tool control station communicates with a mobile user station or not based on a first criterion and a second criterion; if the second intelligent Internet of things machine tool control station is judged to be in communication with the mobile user station, sending a transfer request message to the second intelligent Internet of things machine tool control station; receiving a transfer request confirmation message, wherein the transfer request confirmation message is sent by the second intelligent internet of things machine tool control station based on the received transfer request message; after receiving the delivery request confirm message, sending a delivery command to the mobile subscriber station; the mobile subscriber station is configured to perform the following operations after receiving the delivery command: sending a data path establishment request message to a second intelligent Internet of things machine tool control station; receiving a data path establishment response message, wherein the data path establishment response message is sent by the second intelligent internet of things machine tool control station in response to receiving the data path establishment request message; and after receiving the data path establishment response message, sending a command for controlling the intelligent Internet of things machine tool to a second intelligent Internet of things machine tool control station.
In a preferred embodiment, the first criterion is generated by the following formula:
p1(B,N)=1-e-B/N(1+B/N)
where B is a × T, where T is a specified time length.
In a preferred embodiment, the second criterion is generated by the following formula:
where B is a × T, where T is a specified time length.
In a preferred embodiment, the step of determining, by the first intelligent internet of things machine control station, whether the second intelligent internet of things machine control station communicates with the mobile subscriber station based on the first criterion and the second criterion comprises:
if the first criterion is greater than the first threshold and the second criterion is greater than the second threshold, the second intelligent Internet of things machine tool control station is judged to be communicated with the mobile user station;
and if the first criterion is smaller than the first threshold or the second criterion is smaller than the second threshold, judging that the second intelligent Internet of things machine tool control station does not communicate with the mobile user station.
In a preferred embodiment, the control method of the intelligent internet of things machine tool based on statistical analysis comprises the following steps: after the second intelligent Internet of things machine tool control station receives the command for controlling the intelligent Internet of things machine tool, the second intelligent Internet of things machine tool control station forwards the command to the intelligent Internet of things machine tool.
Compared with the prior art, the intelligent machine tool control method of the Internet of things has the following advantages: in recent years, with rapid industrial development and popularization of the internet of things, machine tool control by using the internet of things and a mobile terminal is indispensable. In order to realize machine tool control by using the internet of things and the mobile terminal, a data transmission method with high reliability must be developed, and if the success rate of data transmission is low, the data transmission speed must be influenced, so that the machine tool must be stopped to wait for the next instruction, and the production efficiency of a factory is reduced. In order to meet the requirement of an intelligent factory on high-reliability data transmission, the invention provides a data exchange method with strong stability and high data transmission success rate. Simulation shows that the data success rate criterion designed by the invention is reasonably designed, so that frequent conversion caused by excessively low calculated values is prevented, and conversion failure caused by excessively high calculated values is prevented.
Detailed Description
The following detailed description of the present invention is provided in conjunction with the accompanying drawings, but it should be understood that the scope of the present invention is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
Fig. 1 is a flowchart of a control method of an intelligent internet of things machine tool according to an embodiment of the invention. As shown in the figure, the control method of the intelligent Internet of things machine tool comprises the following steps:
step 101: counting, by a first intelligent internet of things machine tool control station, a number a of data path establishment request messages received per second, wherein the data path establishment request messages are sent by a mobile subscriber station, and wherein the data path establishment request messages include a random signature, and wherein the random signature is randomly selected by the mobile subscriber station from a signature library, and wherein the number of random signatures included in the signature library is N;
step 102: the method comprises the steps that a first intelligent Internet of things machine tool control station establishes the number A of request messages and the number N of random signatures in a signature library on the basis of a data path received every second to obtain a first criterion and a second criterion;
step 103: the method comprises the steps that a first intelligent Internet of things machine tool control station judges whether a second intelligent Internet of things machine tool control station communicates with a mobile user station or not based on first criteria and second criteria;
step 104: if the second intelligent Internet of things machine tool control station is judged to be in communication with the mobile subscriber station, the first intelligent Internet of things machine tool control station sends a transmission request message to the second intelligent Internet of things machine tool control station;
step 105: receiving, by the first intelligent internet of things machine tool control station, a transfer request acknowledgement message, wherein the transfer request acknowledgement message is sent by the second intelligent internet of things machine tool control station based on receiving the transfer request message;
step 106: after receiving the transmission request confirmation message, the first intelligent Internet of things machine tool control station sends a transmission command to the mobile user station; and
step 107: after receiving the delivery command, the following are performed by the mobile subscriber station:
sending a data path establishment request message to a second intelligent Internet of things machine tool control station;
receiving a data path establishment response message, wherein the data path establishment response message is sent by the second intelligent internet of things machine tool control station in response to receiving the data path establishment request message;
and after receiving the data path establishment response message, sending a command for controlling the intelligent Internet of things machine tool to a second intelligent Internet of things machine tool control station.
In a preferred embodiment, the first criterion is generated by the following formula:
p1(B,N)=1-e-B/N(1+B/N)
where B is a × T, where T is a specified time length.
In a preferred embodiment, the second criterion is generated by the following formula:
where B is a × T, where T is a specified time length.
In a preferred embodiment, the step of determining, by the first intelligent internet of things machine control station, whether the second intelligent internet of things machine control station communicates with the mobile subscriber station based on the first criterion and the second criterion comprises: if the first criterion is greater than the first threshold and the second criterion is greater than the second threshold, the second intelligent Internet of things machine tool control station is judged to be communicated with the mobile user station; and if the first criterion is smaller than the first threshold or the second criterion is smaller than the second threshold, judging that the second intelligent Internet of things machine tool control station does not communicate with the mobile user station.
In a preferred embodiment, the control method of the intelligent internet of things machine tool based on statistical analysis comprises the following steps: after the second intelligent Internet of things machine tool control station receives the command for controlling the intelligent Internet of things machine tool, the second intelligent Internet of things machine tool control station forwards the command to the intelligent Internet of things machine tool.
The invention also provides a control system of the intelligent Internet of things machine tool based on statistical analysis, which comprises the following components: the system comprises a first intelligent Internet of things machine tool control station, a second intelligent Internet of things machine tool control station and a mobile user station. The first intelligent Internet of things machine tool control station is in communication connection with the second intelligent Internet of things machine tool control station; the mobile user station is in communication connection with the first intelligent Internet of things machine tool control station, and the mobile user station is in communication connection with the second intelligent Internet of things machine tool control station. Wherein the first intelligent internet of things machine control station is configured to: counting a number a of data path establishment request messages received per second, wherein the data path establishment request messages are sent by mobile subscriber stations, and wherein the data path establishment request messages comprise random signatures, and wherein the random signatures are randomly selected by the mobile subscriber stations from a signature library, and wherein the number of random signatures comprised in the signature library is N; based on the number A of the data path establishment request messages received every second and the number N of the random signatures in the signature library, a first criterion and a second criterion are obtained; judging whether a second intelligent Internet of things machine tool control station communicates with a mobile user station or not based on a first criterion and a second criterion; if the second intelligent Internet of things machine tool control station is judged to be in communication with the mobile user station, sending a transfer request message to the second intelligent Internet of things machine tool control station; receiving a transfer request confirmation message, wherein the transfer request confirmation message is sent by the second intelligent internet of things machine tool control station based on the received transfer request message; after receiving the delivery request confirm message, sending a delivery command to the mobile subscriber station; the mobile subscriber station is configured to perform the following operations after receiving the delivery command: sending a data path establishment request message to a second intelligent Internet of things machine tool control station; receiving a data path establishment response message, wherein the data path establishment response message is sent by the second intelligent internet of things machine tool control station in response to receiving the data path establishment request message; and after receiving the data path establishment response message, sending a command for controlling the intelligent Internet of things machine tool to a second intelligent Internet of things machine tool control station.
In a preferred embodiment, the first criterion is generated by the following formula:
p1(B,N)=1-e-B/N(1+B/N)
where B is a × T, where T is a specified time length.
In a preferred embodiment, the second criterion is generated by the following formula:
where B is a × T, where T is a specified time length.
In a preferred embodiment, the step of determining, by the first intelligent internet of things machine control station, whether the second intelligent internet of things machine control station communicates with the mobile subscriber station based on the first criterion and the second criterion comprises:
if the first criterion is greater than the first threshold and the second criterion is greater than the second threshold, the second intelligent Internet of things machine tool control station is judged to be communicated with the mobile user station;
and if the first criterion is smaller than the first threshold or the second criterion is smaller than the second threshold, judging that the second intelligent Internet of things machine tool control station does not communicate with the mobile user station.
In a preferred embodiment, the control method of the intelligent internet of things machine tool based on statistical analysis comprises the following steps: after the second intelligent Internet of things machine tool control station receives the command for controlling the intelligent Internet of things machine tool, the second intelligent Internet of things machine tool control station forwards the command to the intelligent Internet of things machine tool.
It should be noted that the method in the embodiment of the present invention can be implemented by a device with a processor, and the device also includes instructions (software) stored with the program according to the method of the present invention, and when the software is executed by the processor, the device can implement the method of the present invention. Methods of programming are well known in the art and how to program is not material to the invention, and in the interest of brevity, the invention does not introduce programming details. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The instructions may be implemented and controlled by a processor to perform the methods disclosed by the embodiments of the invention. The processor may also be a general purpose processor, a Digital Signal Processor (DSP), an application specific integrated circuit (application specific integrated circuit), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic, or discrete hardware components.
The general purpose processor may be a microprocessor or the processor may be any conventional processor, decoder, etc. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art.
As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by software plus a general hardware platform. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the method according to the embodiments or some parts of the embodiments.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the method embodiments and apparatus embodiments are substantially similar to the system embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the system embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, wherein modules described as separate parts may or may not be physically separate, and parts shown as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and such improvements and modifications should be considered as the protection scope of the present invention.
The foregoing descriptions of specific exemplary embodiments of the present invention have been presented for purposes of illustration and description. It is not intended to limit the invention to the precise form disclosed, and obviously many modifications and variations are possible in light of the above teaching. The exemplary embodiments were chosen and described in order to explain certain principles of the invention and its practical application to enable one skilled in the art to make and use various exemplary embodiments of the invention and various alternatives and modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.