Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, the invention aims to provide a method for remotely controlling the service life of an unconnected machine, which can remotely control the service life of the unconnected machine, for example, when a buyer purchases the machine by stages, a seller can remotely control the service life of the machine under the condition that the machine is not connected with the network, thereby guaranteeing the rights and interests of the buyer and the seller, relieving the equipment cost pressure of the buyer, stimulating the buyer to expand the production scale, promoting the production development, and simultaneously reducing the production and operation costs of the machine because the machine does not need to be connected with the network.
In order to achieve the above object, an embodiment of the present invention provides a method for remotely controlling the lifetime of an unconnected machine, including the following steps: acquiring a random array generated by a machine; synthesizing an activation code according to the service life and the random array; inputting the activation code into the machine; the machine obtains the service life and the verification array according to the activation code; judging whether the verification array is consistent with the random array or not; if the verification array is consistent with the random array, the machine is in an activated state within the service life.
According to the method for remotely controlling the service life of the non-networked machine, the random array generated by the machine is obtained, the activation code is synthesized and input into the machine in combination with the service life, the machine obtains the service life and the verification array according to the activation code, and is in an activated state within the service life when the verification array is consistent with the random array, so that the service life of the non-networked machine can be remotely controlled, for example, the service life of the machine can be remotely controlled by a seller under the condition that the machine is not networked when a buyer purchases the machine in stages, the rights of the buyer and the seller can be guaranteed, the equipment cost pressure of the buyer is relieved, the production scale of the buyer is stimulated to be enlarged, the production development is promoted, and the production and operation cost of the machine can be reduced because the machine does not need to be networked.
In addition, the method for remotely controlling the service life of the non-networked machine according to the embodiment of the invention can also have the following additional technical characteristics:
according to one embodiment of the invention, the machine generates the random array by a random number function after the last expiration of the lifetime.
According to one embodiment of the invention, synthesizing an activate code according to a lifetime and the random number comprises: converting the service life into a first array by a first operation mode; converting the random array into a second array through a second operation mode; and compiling the activation code according to the first array and the second array.
Further, after the service life is converted into a first array, the service life is divided and inserted into a second array after the random array is converted in an inverted order.
Furthermore, the first operation mode and the second operation mode are preset at a computer end for synthesizing the activation code.
According to an embodiment of the present invention, the machine obtaining the lifetime and validation array from the activation code includes: extracting the first array and the second array from the activation code through the array extraction program; inversely compiling the first array into the service life through the first inverse operation mode; and inversely compiling the second array into a verification array through the second inverse operation mode.
Further, the array extraction program, the first inverse operation manner and the second inverse operation manner are all preset in the machine, the first inverse operation manner is an inverse operation of the first operation manner, and the second inverse operation manner is an inverse operation of the second operation manner.
According to one embodiment of the invention, the machine comprises a clock chip which controls the machine to stop running after the expiration of the lifetime.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 illustrates a method for remotely controlling the lifetime of an unconnected machine in accordance with an embodiment of the present invention.
As shown in FIG. 1, the method for remotely controlling the service life of an unconnected machine in the embodiment of the invention comprises the following steps:
s1, obtaining the random array generated by the machine.
Specifically, after the machine has stopped running after the last expiration of the lifetime, the random array may be generated by a C language random function, for example, a four digit decimal number may be generated by the C language random function: 2073, and inputting to a computer.
And S2, synthesizing the activation code according to the service life and the random array.
Specifically, as shown in fig. 2, step S2 includes:
s201, converting the service life into a first array through a first operation mode.
S202, converting the random array into a second array through a second operation mode.
S203, compiling the activation code according to the first array and the second array.
The first operation mode and the second operation mode can be preset at the computer end and respectively used as fixed operation programs corresponding to the conversion service life and the random array.
For example, the second operation method may be a fixed operation procedure of performing a multiplication operation and then a subtraction operation, and the random array 2073 may be converted into 4141 by the second operation method; the first operation method may be a fixed operation program that performs multiplication by 3 and then subtraction by 60, and if the lifetime of the machine is set to be 8/2020, that is, 20.08.08, the lifetime can be input into 200808 on the computer side, and the lifetime can be converted into 602364 by the first operation method, 200808.
Further, after converting the lifetime into the first array, the activation code 4146320641 may be obtained by dividing and reversing the order of the insertion in the second array after random array transformation, for example, the activation code 4146320641 may be obtained by dividing and reversing the order of the insertion in the second array 4141 after random array 2073 is converted after the lifetime 200808 is converted into the first array 602364.
S3, inputting the activation code into the machine.
S4, the machine obtains the life time and the verification array according to the activation code.
Specifically, as shown in fig. 3, step S4 includes:
s401, extracting a first array and a second array from the activation code through an array extraction program.
S402, the first array is inversely compiled into the application service life through a first inverse operation mode.
S403, the second array is inversely compiled into the verification array through a second inverse operation mode.
The array extraction program, the first inverse operation mode and the second inverse operation mode can be preset in the machine, wherein the first inverse operation mode is the inverse operation of the first operation mode, and the second inverse operation mode is the inverse operation of the second operation mode.
For example, when the first operation method is a fixed operation program that performs the multiply-by-3 operation and then performs the subtract-by-60 operation, the first inverse operation method is a fixed operation program that performs the add-by-60 operation and then performs the divide-by-3 operation, and therefore, when the data extraction program extracts the first array 602364 from the activate code 4146320641, the lifetime of the data extraction program can be further obtained by the first inverse operation method, i.e., 8/2020.
For example, when the second operation is a fixed operation procedure of performing a multiplication operation first and a subtraction operation second, the second inverse operation is a fixed operation procedure of performing an addition operation first and a subtraction operation second, and then performing a division operation by 2, so that when the data extraction procedure extracts the second set 4141 from the activate code 4146320641, the verification set 2073 can be further obtained by the first inverse operation procedure.
S5, whether the verification array is consistent with the random array is judged.
S6, if the verification array is consistent with the random array, the machine is in an active state in the service life.
For example, when the verification array is 2073 and the random array is also 2073, it can be determined that the verification array and the random array are consistent, and the machine can be activated for the lifetime, i.e., 8/2020.
Further, the machine can be controlled to stop running after the expiration of the service life by a clock chip which is pre-arranged in the machine, for example, when the machine runs to 8/8 days of 2020, namely, the clock chip can control the machine to stop running after the expiration of the service life.
In one embodiment of the invention, a permanent password can be preset in the machine, and if the machine can be permanently used, namely in a permanent activation state, a permanent activation code corresponding to the permanent password can be input into the machine. For example, if the persistent code is 465729 and 2073, the compiler can generate 4146572941 code from 2073 and input the code into the machine to keep the machine in a persistent state.
Based on the method for remotely controlling the service life of the unconnected machine, the benefits of the buyer and the seller can be protected when the machine is purchased in stages.
For example, when buying a machine, the buyer may pay a fee to the seller, and then the seller may ship the machine with the set lifetime to the buyer factory, where the machine may operate normally. Further, as shown in fig. 4, when the machine runs to the use period set by the seller, the clock chip in the machine can control the machine to stop running, at the same time, the machine can utilize the C language random array function to generate a random array and display it on the machine screen, at this time, the buyer needs to pay the seller for the medium term and send a machine-generated random number to the seller, which the seller can input into a computer, the computer can compile an activation code with a service life according to the random array by the compiler, the seller can send the activation code to the buyer, the buyer can input the activation code into the machine, the machine decompiles the activation code to obtain a verification array and a service life, and if the obtained verification array is consistent with the random array generated by the machine, the machine is in an activation state in the service life, and can work and run at any time. When the machine runs to the service life set by the seller again, the clock chip in the machine can control the machine to stop running again, and the machine can generate a random array again by using the C language random array function and display the random array on the screen of the machine, at this time, the buyer needs to pay money again and repeat the process of activating the machine. When the buyer sends the machine with the payment of the machine, the seller sends an activation code with the permanent service life to the buyer, and the buyer can enable the machine to be in a permanent activation state through the activation code with the permanent service life.
According to the method for remotely controlling the service life of the non-networked machine, which is provided by the embodiment of the invention, the random array generated by the machine is obtained, the activation code is synthesized by combining the service life and is input into the machine, the machine obtains the service life and the verification array according to the activation code, and the machine is in an activated state in the service life when the verification array is consistent with the random array, so that the service life of the non-networked machine can be remotely controlled, for example, when a buyer purchases the machine in stages, the service life of the machine is remotely controlled by a seller under the condition that the machine is not networked, the rights of the buyer and the seller can be guaranteed, the equipment cost pressure of the buyer is relieved, the production scale of the buyer is stimulated to be enlarged, the production development is promoted, and the production cost and the operation cost of the machine can be reduced.
In the present invention, unless otherwise expressly specified or limited, the term "coupled" is to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral part; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.