WO2020063328A1 - Activation method, apparatus and system for programmable logic controller - Google Patents
Activation method, apparatus and system for programmable logic controller Download PDFInfo
- Publication number
- WO2020063328A1 WO2020063328A1 PCT/CN2019/105144 CN2019105144W WO2020063328A1 WO 2020063328 A1 WO2020063328 A1 WO 2020063328A1 CN 2019105144 W CN2019105144 W CN 2019105144W WO 2020063328 A1 WO2020063328 A1 WO 2020063328A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- activation
- code
- activation code
- identification code
- programmable logic
- Prior art date
Links
- 230000004913 activation Effects 0.000 title claims abstract description 352
- 238000000034 method Methods 0.000 title claims abstract description 91
- 238000012795 verification Methods 0.000 claims abstract description 101
- 238000012508 change request Methods 0.000 claims description 36
- 230000003213 activating effect Effects 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 11
- 230000008859 change Effects 0.000 claims description 10
- 230000006735 deficit Effects 0.000 abstract 1
- 238000001994 activation Methods 0.000 description 260
- 238000010586 diagram Methods 0.000 description 28
- 230000008569 process Effects 0.000 description 10
- 230000002401 inhibitory effect Effects 0.000 description 6
- 238000004519 manufacturing process Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000010367 cloning Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/105—Arrangements for software license management or administration, e.g. for managing licenses at corporate level
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
- G06F21/121—Restricting unauthorised execution of programs
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Definitions
- the present invention relates to the technical field of programmable logic controllers (PLCs), and in particular, to a method, device, and system for activating a programmable logic controller.
- PLCs programmable logic controllers
- Programmable logic controller is a digital arithmetic operation electronic system specially designed for applications in industrial environments. It uses a programmable memory that stores instructions for performing logical operations, sequence control, timing, counting, and arithmetic operations, and controls various types of mechanical equipment or production through digital or analog input and output. process.
- the genuine manufacturer of the PLC product selects the micro control unit (MCU) that supports the internal read-only memory (ROM) read protection function as the controller of the PLC.
- MCU micro control unit
- ROM read-only memory
- the inventors have found that the existing methods cannot completely prevent the occurrence of cloning.
- embodiments of the present invention provide a method, device, and system for activating a programmable logic controller, so as to reduce the occurrence of cloned PLC products on the market and suppress the damage of cloned PLC products to the interests of genuine manufacturers.
- a method for activating a programmable logic controller is provided, which is applied to a management device, wherein the method includes:
- a method for activating a programmable logic controller is provided, which is applied to a server device, wherein the method includes:
- the identification code When the identification code is in an inactive state, generating an activation code corresponding to the identification code and sending it to the management device, and marking the identification code as an activated state;
- an activation code corresponding to the identification code is sent to the management device.
- a method for operating a programmable logic controller is provided, which is applied to a PLC, wherein the method includes:
- a programmable logic controller (PLC) activation device which is configured in a management device, wherein the device includes:
- a first reading unit that reads the identification code of the PLC from the PLC
- a first sending unit which sends the identification code of the PLC to a server device, and the server device generates an activation code corresponding to the identification code when the identification code is in an inactive state, returns the activation code, and sends all The identification code is marked as activated;
- a first receiving unit receives the activation code returned by the server device; the first sending unit sends the activation code to the PLC for storage.
- a programmable logic controller (PLC) activation device configured on a server device, wherein the device includes:
- a receiving unit that receives an identification code of a PLC from a management device
- a checking unit that checks the activation status of the identification code according to the factory data of the PLC
- a processing unit when the identification code is in an inactive state, generating an activation code corresponding to the identification code and sending it to the management device, and marking the identification code as an activated state; when the identification code is When activated, the activation code corresponding to the identification code is sent to the management device.
- a receiving unit that receives an identification code read request from a management device
- a sending unit that sends an identification code of the PLC to the management device
- the receiving unit further receives an activation code corresponding to the identification code from the management device;
- a saving unit that saves the activation code.
- a PLC system wherein the PLC system includes a management device, a PLC, and a server device, the management device includes the device according to the fourth aspect, and the PLC The apparatus according to the sixth aspect is included, and the server device includes the apparatus according to the fifth aspect.
- a computer-readable program wherein when the program is executed in a management device, the program causes a computer to execute the method described in the first aspect in the management device .
- a storage medium storing a computer-readable program, wherein the computer-readable program causes a computer to execute the method described in the foregoing first aspect in a management device.
- a computer-readable program wherein when the program is executed in a PLC, the program causes a computer to execute the method described in the foregoing third aspect in the PLC.
- a storage medium storing a computer-readable program, wherein the computer-readable program causes a computer to execute a method described in the foregoing third aspect in a PLC.
- a computer-readable program wherein when the program is executed in a server device, the program causes a computer to execute the method in the second aspect in the server device .
- a storage medium storing a computer-readable program, wherein the computer-readable program causes a computer to execute a method described in the foregoing second aspect in a server device.
- the beneficial effect of the present invention is that by activating the PLC first, the PLC obtains a unique activation code. Further, the PLC is verified before the PLC is operated, and the PLC is operated if the verification is passed. The PLC that fails to activate and verify cannot work normally.
- the activation code can be managed on the server device. After the activation code is changed on the server device, only one PLC can be updated with the activation code by the method of the embodiment of the present invention. A PLC without an updated activation code will be regarded as a clone PLC, which can no longer pass the verification and work normally, thereby suppressing the use of the clone PLC and reducing the damage of clone PLC products to the interests of genuine manufacturers.
- FIG. 1 is a schematic diagram of a PLC system of Embodiment 1;
- FIG. 2 is a schematic diagram of a PLC activation method according to Embodiment 2;
- FIG. 3 is another schematic diagram of a PLC activation method according to Embodiment 2;
- FIG. 4 is a schematic diagram of a PLC activation method according to Embodiment 3.
- FIG. 5 is another schematic diagram of a PLC activation method according to Embodiment 3.
- FIG. 6 is a schematic diagram of a PLC activation method according to Embodiment 4.
- FIG. 7 is a schematic diagram of a PLC activation process
- Figure 8 is a schematic diagram of the online operation of a genuine PLC
- Figure 9 is a schematic diagram of the online operation of the clone PLC.
- FIG. 10 is a schematic diagram of an activation code update of a genuine PLC.
- FIG. 11 is a schematic diagram of a PLC activation device of Embodiment 5.
- FIG. 12 is a schematic diagram of a PLC activation device of Embodiment 6;
- FIG. 13 is a schematic diagram of a PLC activation device of Embodiment 7.
- FIG. 13 is a schematic diagram of a PLC activation device of Embodiment 7.
- first and second are used to distinguish different elements from each other by title, but they do not indicate the spatial arrangement or chronological order of these elements, and these elements should not be used by these terms. Restricted.
- the term “and / or” includes any and all combinations of one or more of the associated listed terms.
- the terms “comprising”, “including”, “having” and the like refer to the presence of stated features, elements, elements or components, but do not exclude the presence or addition of one or more other features, elements, elements or components.
- This embodiment provides a PLC system.
- FIG. 1 is a schematic diagram of a PLC system of this embodiment.
- the PLC system includes a management device 100, a PLC 200, and a server device 300.
- the management device 100 and the PLC 200 are connected through a control interface on the PLC 200, the management device 100 and the server device 300 are connected through a network, and the PLC 200 and the server device 300 do not directly establish a connection relationship.
- the management device 100 may be a computer device, which stores a program for activating or verifying the PLC 200.
- the program may be implemented by software or firmware.
- the management device 100 may also be another entity capable of activating or verifying the PLC 200, such as an industrial computer.
- the management device 100 also stores software programs required by the PLC 200. When the PLC 200 is activated and verified, the management device 100 downloads the software program to the PLC 200 to implement Management of PLC 200.
- the above-mentioned activation or verification process will be described in the following embodiments.
- the server device 300 may be a cloud server, which is installed at the manufacturer of the PLC 200 and maintained and managed by the manufacturer of the PLC 200. However, this embodiment is not limited to this, and the server device 300 may also be Not a cloud server, but other server devices.
- the server device 300 can manage the related information of the PLC 200 produced by the manufacturer, such as storing the identification code of each PLC 200 and its activation status, etc., when receiving the identification code activation request from the management device 100
- the server device 300 can filter the identification code that submitted the activation request. The invalid identification code cannot be activated, and the activated identification code cannot be activated again.
- the server device 300 may determine the activation status of the identification code by retrieving relevant information of the PLC 200, and generate the identification code with the identification code when the identification code is in an inactive state.
- the corresponding activation code is sent to the management device 100, and the identification code is marked as activated; if the identification code is in the activated state, that is, the corresponding activation code has been generated for the identification code, the The server device 300 may send an activation code corresponding to the identification code to the management device 100, and the management device 100 verifies the PLC.
- the activation code may be a message containing a random key generated according to the identification code, but this embodiment does not limit this.
- the server device 300 can update the random key according to a certain event, such as a period of time or an event such as downloading a project, and then regenerate the activation code.
- the random key is updated only once, that is, the activation code is updated only once, thereby avoiding the problem of inconvenient management caused by too many updates, but this embodiment is not limited to this.
- the random key may be updated multiple times, and thus the activation code may be updated multiple times.
- the server device 300 may simultaneously send information about whether there is a change request to the management device 100.
- the no change request refers to the There is no change to the activation code corresponding to the identification code. If there is a change request, it means that the activation code corresponding to the identification code has changed.
- the update of the activation code will be described in the following embodiments.
- the PLC 200 is a programmable logic controller used in industry, which includes a CPU or an MPU, can store an application program, and has a unique identification code.
- the identification code may be a message generated by including manufacturing-related data such as device type, version, serial number, unique ID, and manufacturing date.
- manufacturing-related data such as device type, version, serial number, unique ID, and manufacturing date.
- the identification code may also be a message generated by including any one or any combination of the above-mentioned manufacturing-related data, or the identification code may also include data other than the above-mentioned manufacturing-related data. The message generated by other data is used to uniquely identify the PLC 200.
- the following describes the management device 100, the server device 300, and the PLC 200 according to the embodiments of the present invention through Embodiments 2-7.
- This embodiment provides a PLC activation method, which is applied to the management device 100.
- FIG. 2 is a schematic diagram of a PLC activation method according to this embodiment. As shown in FIG. 2, the PLC activation method includes:
- Step 201 Read the identification code of the PLC from the PLC;
- Step 202 Send the identification code of the PLC to a server device, and the server device generates an activation code corresponding to the identification code when the identification code is in an inactive state, returns the activation code, and sends the identification code Marked as activated;
- Step 203 Receive the activation code returned by the server device; send the activation code to the PLC for storage.
- the management device 100 may send the identification code read from the PLC to the server device 300 to activate or verify the PLC 200.
- the server device 300 can determine whether the identification code is activated or inactivated by retrieving relevant information of each PLC 300 stored by itself. If it is in an inactive state, a corresponding code is generated according to the identification code.
- the activation code is returned to the management device 100, completes the activation of the PLC 200, and marks the identification code as activated.
- the server device 300 performs only one activation operation for each identification code, and the activated identification code has been marked as activated by the server device and cannot be activated again. Therefore, for the clone PLC, since the clone PLC has the same identification code as the genuine PLC, and the identification code has been activated, it will not be activated again, thereby inhibiting the use of the clone PLC.
- the server device 300 stores the identification code and activation status of the delivered PLC 200. Therefore, the server device 300 can also determine whether the identification code is valid according to the stored information, and only identifies the validity. The code performs the activation status determination and subsequent processing. Therefore, the clone PLC that may use an invalid identification code is not activated, and the use of the clone PLC is also suppressed.
- the activation operation may be performed by the user through the management device 100 after the PLC leaves the factory, or may be performed by the manufacturer through the management device 100 itself before the PLC leaves the factory.
- the server device 300 may also send an activation code corresponding to the identification code to the management device 100, and the management device 100 performs the activation code on the activation code. Verification, only the activation code that passed the verification can be used, thereby inhibiting the use of cloned PLCs.
- the above verification operation may be completed by the management device 100.
- the management device 100 reads the activation code saved by the PLC 200 from the PLC 200, and reads the activation code received from the server device 300 with the PLC 200 The obtained activation codes are compared. If they are consistent, the verification is passed, otherwise the verification fails.
- the above-mentioned verification operation may be performed by the PLC 200.
- the management device 100 sends the activation code obtained from the server device 300 to the PLC 200, and the PLC 200 saves the activation code saved by the PLC to the management device 100
- the received activation codes are compared. If the two are consistent, the verification is passed, and a verification success message is generated and returned to the management device 100; otherwise, the verification fails, and the verification failure information is generated and returned to the management device 100. Thereby, the management device 100 can determine whether the verification is successful or not according to the received information.
- the activation code may also be updated at least once. Then, in one embodiment, if the server device 300 does not update the activation code corresponding to the identification code, it may send the activation code and the information of “no change request” to the management device 100 at the same time for the above verification.
- the server device 300 may send the new activation code and the information “with a change request” to the management device 100 at the same time.
- the management device 100 may send a new activation code to the PLC 200 to update, and send the information that the activation code has been changed to the server device 300, and the server device may change the information whether the activation code is changed, for example ,
- the request for changing the activation code corresponding to the identification code is modified to “no change request”, and thus the server device 300 will not perform such an activation code update operation again.
- the management device 100 can also obtain the activation code (original activation code) saved from the PLC 200, and If the new activation code received from the server device 300 does not match the original activation code stored in the PLC 200, the new activation code is sent to the PLC 200 for updating. As a result, repeated updates to the activation code are avoided, and the use of cloned PLCs is further suppressed.
- FIG. 3 is another schematic diagram of the PLC activation method of this embodiment, and illustrates the operation of the management device 100. As shown in FIG. 3, the method includes:
- Step 301 Obtain the PLC identification code from the PLC.
- Step 302 Send the identification code of the PLC to the server device 300;
- Step 303 Receive an activation code corresponding to the identification code from the server device 300;
- Step 304 Send the activation code to the PLC for saving, or verify the activation code.
- the management device 100 can download a software program to the PLC, and thus the PLC can be used normally. If the verification fails, the PLC cannot be used normally.
- the embodiment of FIG. 3 uses the identification code as a valid identification code as an example. In the case where the identification code is an invalid identification code, the server device 300 can return related information of “invalid identification code”, thereby also suppressing the use of the cloned PLC. .
- the server device 300 saves the relevant information of the delivered PLC.
- the management device 100 activates the PLC and obtains the activation code. The activation is performed only once.
- the inactive PLC cannot be used normally.
- the PLC must be verified, and the PLC that fails the verification cannot be used normally, thereby inhibiting the use of the cloned PLC.
- This embodiment provides a PLC activation method, which is applied to the server device 300.
- FIG. 4 is a schematic diagram of a PLC activation method according to this embodiment. As shown in FIG. 4, the PLC activation method includes:
- Step 401 Receive a PLC identification code from the management device 100;
- Step 402 Check the activation status of the identification code according to the factory data of the PLC;
- Step 403 When the identification code is in an inactive state, generate an activation code corresponding to the identification code and send it to the management device 100, and mark the identification code as an activated state; when the identification code is When activated, the activation code corresponding to the identification code is sent to the management device 100.
- the server device 300 stores the relevant information of the factory PLC (the factory data as described above), and checks the activation status of the identification code according to the received identification code activation request.
- the identification code is in an inactive state, an activation code corresponding to the identification code is generated and returned to the management device 100.
- the management device 100 can send the activation code to the PLC for storage, thereby completing the activation of the PLC;
- the server device 300 sends the activation code to the management device 100, and the management device 100 can verify the activation code. Only the verification This PLC can be used normally only when it passes. Thereby, the use of the clone PLC is suppressed.
- the activation state of the identification code is changed to the activated state, that is, the activation operation is performed only once for the same identification code, so that the inactive PLC cannot be used normally. , Inhibited the use of clone PLC.
- the management device 100 must first verify the PLC. Only the PLC that passes the verification can be used normally, which also inhibits the use of the cloned PLC. The verification method is as described in the second embodiment, and the description is omitted here.
- the server device 300 may also update the activation code once, and if the identification code is in an activated state, if the activation code is not updated, the server device 300 may send the above activation code and the information without a change request to the above management device 100, and the management device 100 verifies the PLC; if the activation code is updated, the server device 300 may send the new activation code and The information with the change request is sent to the management device 100, and the management device 100 sends a new activation code to the PLC, thereby completing the update of the activation code.
- the management device 100 after updating the activation code, the management device 100 sends information that the activation code has been changed to the server device 300, and the server device may modify the change request for the activation code corresponding to the identification code to no change. Request, thus, the server device 100 also updates the activation code of the same identification code only once, and the activation code saved by the unupdated PLC is inconsistent with the new activation code, thereby failing the verification and further suppressing the clone of the PLC use.
- the server device 300 may check whether the identification code is valid, and perform subsequent operations only on the valid identification code. The use of cloned PLCs with invalid identification codes is thereby suppressed.
- FIG. 5 is a schematic diagram of another embodiment of a method for activating a PLC in this embodiment, and illustrates the operation of the server device 300. As shown in FIG. 5, the method includes:
- Step 501 Receive an identification code of the PLC from the management device 100;
- Step 502 Determine whether the identification code is a valid identification code. If the identification code is yes, go to step 503; otherwise, go to step 509;
- Step 503 Determine whether the identification code is in an inactive state, and if it is determined as yes, go to step 504, otherwise go to step 505;
- Step 504 Generate an activation code corresponding to the identification code and send it to the management device 100 to modify the activation status of the identification code;
- Step 505 Determine whether the activation code has changed. If the answer is yes, go to step 506; otherwise, go to step 509;
- Step 506 Send the new activation code and the information with the change request to the management device 100;
- Step 507 Receive the information that the activation code has been changed and sent by the management device 100, and modify the change request of the activation code corresponding to the identification code to no change request;
- Step 508 Send the activation code and the information of no change request to the management device 100;
- Step 509 Generate the related information of the invalid identification code and return it to the management device 100.
- the server device 300 saves the relevant information of the delivered PLC.
- the management device 100 activates the PLC and obtains the activation code. The activation is performed only once.
- the inactive PLC cannot be used normally.
- the PLC must be verified, and the PLC that fails the verification cannot be used normally, thereby inhibiting the use of the cloned PLC.
- This embodiment provides a PLC activation method, and the method is applied to a PLC.
- FIG. 6 is a schematic diagram of a PLC activation method according to this embodiment. As shown in FIG. 6, the PLC activation method includes:
- Step 601 Receive an identification code reading request from the management device 100;
- Step 602 Send the identification code of the PLC to the management device 100;
- Step 603 Receive an activation code corresponding to the identification code from the management device 100;
- Step 604 Save the activation code.
- the PLC 200 sends its own identification code to the management device 100 according to the request of the management device 100, the management device 100 sends the identification code to the server device 300, and the server device 300 generates an activation code corresponding to the identification code Returning to the management device 100, the management device 100 then sends the activation code to the PLC 200, thereby completing the activation of the PLC.
- the server device After the server device generates an activation code corresponding to the identification code, the status of the identification code is changed to the activated state, and subsequent activation operations on the same identification code will not be performed, thereby suppressing cloning.
- Use of PLC
- the management device 100 before the PLC 200 is officially used, the management device 100 also needs to verify it.
- the verification operation is completed on the management device 100
- the PLC 200 may also receive an activation code read request from the management device 100, and send the saved activation code to the management device 100, and the management device 100 will The activation code is compared with the activation code received from the server device. If they are the same, the verification is considered successful, otherwise the verification is considered failed.
- the verification operation is completed on the PLC 200
- the PLC 200 may also receive the activation code received by the management device 100 from the server device 300 from the management device 100, and the activation code and the activation saved by itself The codes are compared. If they are the same, the verification is considered successful and the verification success information is generated and sent to the management device 100; otherwise, the verification is deemed to be failed and the verification failure information is generated and sent to the management device 100. Regardless of the verification method, the PLC that failed the verification cannot be used normally, thereby inhibiting the use of clone PCL.
- the server device 300 saves the relevant information of the delivered PLC.
- the management device 100 activates the PLC and obtains the activation code. The activation is performed only once.
- the inactive PLC cannot be used normally.
- the PLC must be verified, and the PLC that fails the verification cannot be used normally, thereby inhibiting the use of the cloned PLC.
- the method for activating the PLC in this embodiment has been described from the perspective of the management device 100, the server device 300, and the PLC 200 through the embodiments 2-4.
- the method for activating the PLC in this embodiment is described below through several specific examples.
- a computer device installed with computer tool software is used as the management device 100 in this embodiment, and an official cloud server of a genuine PLC manufacturer is used as the server device in this embodiment for example, but as described above, This embodiment is not limited to this.
- FIG. 7 is a schematic diagram of the activation process of a genuine PLC. Each PLC needs to perform this activation operation for the first time. As shown in Figure 7, the process includes:
- Step 701 The user operator uses a computer tool software to activate the PLC;
- Step 702 the computer tool software sends a request to the PLC to read the activation identification code
- Step 703 the PLC returns an activation identification code to the computer tool software, where the identification code is unique;
- Step 704 the computer tool software sends a request to the cloud server, submits an identification code of the PLC, and applies for activation of the PLC;
- Step 705 The cloud server checks the factory data of the PLC according to the identification code of the PLC, and determines the activation status of the identification code.
- the identification code is in an inactive state, that is, when the PLC is used for the first time, the cloud server generates a corresponding response.
- the activation code of the identification code is returned to the computer tool software, and the identification code is marked as activated;
- Step 706 the computer tool software sends a request to the PLC to download the activation code
- Step 707 the PLC saves the activation code obtained from the computer tool software and returns the completed information to the computer tool software;
- Step 708 The computer tool software returns the completed information to the user operator.
- the activation of the PLC is completed. Since the activation operation for the same identification code is performed only once, for a clone PLC, if the same identification code is used to apply to the cloud server for activation, the cloud server determines that the identification code is activated by checking the source database of the identification code, and it will not Activate the identification code again, thereby avoiding the use of clone PLC. In addition, for the invalid identification code, the cloud server can return information about the invalid identification code, thereby avoiding the use of the clone PLC using the invalid identification code.
- FIG 8 is a schematic diagram of the online operation process of a genuine PLC. As shown in Figure 8, the process includes:
- Step 801 The user operator uses a computer tool software to perform operations such as downloading programs online;
- Step 802 the computer tool software sends a request to the PLC to read the activation identification code
- Step 803 the PLC returns an activation identification code to the computer tool software, where the identification code is unique;
- Step 804 The computer tool software sends a request to the cloud server, submits an identification code of the PLC, and applies for querying the PLC;
- Step 805 The cloud server checks the factory data of the PLC according to the identification code of the PLC, and determines the activation status of the identification code. In the case where the identification code is activated, that is, the activation code of the identification code has been generated, the cloud server The server returns the activation code of the identification code to the computer tool software. Optionally, if the activation code is not changed, it can also return the information without a change request to the computer tool software;
- Step 806 the computer tool software sends a request to the PLC to query the activation code stored by the PLC;
- Step 807 the PLC returns the saved activation code to the computer tool software
- Step 808 the computer tool software verifies the activation code; if the verification is passed, download the user program to the PLC, etc .;
- Step 809 the PLC returns the completed information to the computer tool software
- Step 810 The computer tool software displays the download completion message to the user operator.
- step 808 the verification may also be completed on the PLC. As described above, the description is omitted here.
- FIG. 9 is a schematic diagram of the online operation process of the cloned PLC. As shown in FIG. 9, steps 901-907 are the same as steps 801-807, which will not be repeated here. In addition, in step 908, the activation code ( &&&&) is inconsistent with the activation code (****) obtained from the cloud server, which causes verification to fail, downloading is cancelled, and the computer tool software displays a message to the user operator that the download has failed. This inhibits the use of cloned PLCs.
- Fig. 10 is a schematic diagram of an activation code update operation process of a genuine PLC. As shown in Fig. 10, the process includes:
- Step 1001 The user operator uses the computer tool software to perform operations such as downloading programs online;
- Step 1002 the computer tool software sends a request to the PLC to read the activation identification code
- Step 1003 The PLC returns an activation identification code to the computer tool software, where the identification code is unique;
- Step 1004 the computer tool software sends a request to the cloud server, submits the identification code of the PLC, and applies for querying the PLC;
- Step 1005 The cloud server checks the factory data of the PLC according to the identification code of the PLC, and determines the activation status of the identification code. When the identification code is activated, but the activation code of the identification code is changed, the cloud server The server returns the new activation code (&&&&) of the identification code and the information about the change request to the computer tool software;
- Step 1006 the computer tool software sends a request to the PLC to query the activation code stored by the PLC;
- Step 1007 the PLC returns the saved activation code (****) to the computer tool software
- Step 1008 Since the information obtained from the cloud server shows that the activation code has changed, the computer tool software downloads the new activation code (&&&&) and the user program to the PLC;
- Step 1009 the PLC saves the new activation code (&&&&) and the user program and returns the completed information to the computer tool software;
- Step 1010 The computer tool software sends a notification to the cloud server, informing that the cloud server activation code has changed;
- Step 1011 The cloud server changes the activation code change request from yes to no and returns corresponding information to the computer tool software;
- Step 1012 The computer tool software displays the download completion message to the user operator.
- the cloud server can update the activation code, thereby further suppressing the use of the cloned PLC.
- This embodiment provides a PLC activation device, which corresponds to the computer tool software of FIG. 7 to FIG. 10 and is configured on the management device 100. Since the principle of the device to solve the problem is similar to the method of Embodiment 2, the specific implementation is Reference may be made to Embodiment 1 and Embodiment 2. The same content is not described repeatedly.
- FIG. 11 is a schematic diagram of a PLC activation device of this embodiment.
- the PLC activation device 1100 of this embodiment includes a first reading unit 1101, a first sending unit 1102, and a first receiving unit 1103. .
- the first reading unit 1101 reads the identification code of the PLC from the PLC; the first sending unit 1102 sends the identification code of the PLC to a server device, and the server device generates a corresponding response when the identification code is in an inactive state.
- the activation code of the identification code returning the activation code, and marking the identification code as activated;
- the first receiving unit 1103 receives the activation code returned by the server device; the first sending unit 1102 sends the activation code
- the activation code is sent to the PLC for saving.
- the PLC activation device 1100 of this embodiment further includes:
- the verification unit 1104 the server device returns the activation code corresponding to the identification code and the information of no change request if the identification code is activated and the activation code corresponding to the identification code is not changed; first receiving The unit 1103 receives the activation code and the information of no change request returned by the server device, and the verification unit 1104 verifies the PLC.
- the verification unit 1104 includes a second reading unit 11041 and a comparison unit 11042.
- the second reading unit 11041 reads the activation code saved by the PLC from the PLC; the comparison unit 11042 The activation code received from the server device is compared with the activation code read from the PLC. If they are the same, the verification is passed, otherwise the verification fails.
- the verification unit 1104 includes a second sending unit 11043 and a second receiving unit 11044.
- the second sending unit 11043 sends an activation code received from the server device to the PLC.
- the PLC compares the stored activation code with the activation code received from the server device, and if the two are consistent, returns verification success information, otherwise returns verification failure information; the second receiving unit 11044 receives the PLC If the verification success information or the verification failure information is returned, the verification is passed if the verification success information is received, and if the verification failure information is received, the verification fails.
- the server device when the identification code is activated and the activation code corresponding to the identification code is changed, the server device returns a new activation code and information about a change request; the first receiving unit 1103 Receive the new activation code returned by the server device and the information with the change request; the first sending unit 1102 sends the new activation code to the PLC for updating; the first receiving unit 1103 sends the activation code
- the changed information is sent to the server device, and the server device changes the request for changing the activation code corresponding to the identification code to a request for no change.
- the first reading unit 1101 reads the activation code stored in the PLC from the PLC before the first sending unit 1102 sends the new activation code to the PLC.
- the first sending unit 1102 In a case where the activation code is inconsistent with the new activation code, send the new activation code to the PLC for updating.
- the foregoing PLC activation device 1100 may be implemented by a controller and a memory.
- the memory stores a computer program for implementing the method of Embodiment 2 and executes the method of Embodiment 2 under the control of the controller. .
- This embodiment also provides a management device.
- the management device is configured with the above-mentioned PLC activation device 1100.
- the management device may also have the conventional composition of other management devices, such as an input device (keyboard) and output device (display). , Connection interface, etc., for the conventional composition of the management device, reference may be made to the prior art, which is not repeated here.
- an activation operation or a verification operation can be performed on the PLC, thereby suppressing the use of the cloned PLC.
- This embodiment provides a PLC activation device, which is configured on the server device 300. Since the principle of the device to solve the problem is similar to the method of Embodiment 3, its specific implementation can refer to Embodiment 1 and Embodiment 3 with the same content. The points are not repeated.
- FIG. 12 is a schematic diagram of a PLC activation device of this embodiment.
- the PLC activation device 1200 of this embodiment includes a receiving unit 1201, a checking unit 1202, and a processing unit 1203.
- PLC identification code inspection unit 1202 checks the activation status of the identification code based on the factory shipment data of the PLC
- processing unit 1203 generates an activation code corresponding to the identification code when the identification code is in the inactive state and sends it to The management device, and marking the identification code as an activated state; and when the identification code is activated, sending an activation code corresponding to the identification code to the management device.
- the processing unit 1203 may send the activation code and information without a change request to all The PCL activation system is described.
- the processing unit 1203 may send a new activation code and information with a change request to all The management equipment.
- the receiving unit 1201 may also receive information that the activation code has been changed from the management device; the processing unit 1203 changes the request for changing the activation code corresponding to the identification code to a request for no change.
- the foregoing PLC activation device 1200 may be implemented by a controller and a memory.
- the memory stores a computer program for implementing the method of the third embodiment, and the method of the third embodiment is executed under the control of the controller. .
- This embodiment also provides a server device.
- the server device is configured with the above-mentioned PLC activation device 1200.
- the server device has the conventional composition of other server devices, such as an input device (keyboard), output device (display), For the connection interface and the like, for the conventional composition of the server device, reference may be made to the existing technology, and details are not described herein again.
- an activation operation or a verification operation can be performed on the PLC, thereby suppressing the use of the cloned PLC.
- This embodiment provides a PLC activation device, which is configured on the PLC 200. Since the principle of the device to solve the problem is similar to the method of Embodiment 4, the specific implementation can refer to Embodiment 1 and Embodiment 4. The content is the same The description is not repeated here.
- FIG. 13 is a schematic diagram of a PLC activation device in this embodiment.
- the PLC activation device 1300 in this embodiment includes a receiving unit 1301, a sending unit 1302, and a saving unit 1303.
- the receiving unit 1301 receives an identification code reading request from a management device; the sending unit 1302 sends the identification code of the PLC to the management device; the receiving unit 1301 further receives an activation code corresponding to the identification code from the management device; save The unit 1303 saves the activation code.
- the receiving unit 1301 further receives an activation code reading request from the management device; the sending unit 1301 also sends the saved activation code to the management device, and the management device sends the activation code to the
- the activation codes received from the server device are compared. If they are the same, the verification is considered successful, otherwise the verification is recognized.
- the PLC activation device of this embodiment further includes:
- the verification unit 1304 and the receiving unit 1301 further receive an activation code corresponding to the identification code from the management device.
- the device further includes: the verification unit 1304 compares the received activation code with the saved activation code. If the two parties agree, the verification is successful and the verification success information is generated and sent to the management device; otherwise, the verification is failed and the verification failure information is generated and sent to the management device.
- the foregoing PLC activation device 1300 may be implemented by a controller and a memory.
- the memory stores a computer program for implementing the method of Embodiment 4, and the method of Embodiment 4 is executed under the control of the controller. .
- This embodiment also provides a PLC.
- the PLC is configured with the above-mentioned PLC activation device 1300.
- the PLC may also have the conventional composition of other PLCs, such as an input device (keyboard), output device (display), connection interface, etc.
- an input device keyboard
- output device display
- connection interface etc.
- the activation or verification of the PLC can be completed, and the use of the cloned PLC is suppressed.
- the devices and methods in the above embodiments of the present invention may be implemented by hardware, or may be implemented by hardware in combination with software.
- Embodiments of the present invention relate to such a computer-readable program.
- the logic component can implement the device or component described above, or the logic component can implement each of the components described above. Methods or steps.
- the embodiment of the present invention also relates to a storage medium for storing the above programs, such as a hard disk, a magnetic disk, an optical disk, a DVD, a flash memory, and the like.
- the methods / devices described in connection with the embodiments of the present invention may be directly embodied as hardware, software modules executed by a processor, or a combination of the two.
- one or more of the functional block diagrams and / or one or more combinations of the functional block diagrams shown in FIGS. 11-13 may correspond to each software module of a computer program flow or to each hardware module.
- These software modules can correspond to the steps shown in Figures 2, 4, and 6, respectively.
- These hardware modules can be implemented by using a field programmable gate array (FPGA) to cure these software modules.
- FPGA field programmable gate array
- a software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
- a storage medium may be coupled to the processor so that the processor can read information from and write information to the storage medium; or the storage medium may be a component of the processor.
- the processor and the storage medium may reside in an ASIC.
- the software module can be stored in the device's memory or in a memory card that can be inserted into the device. For example, if the device uses a large-capacity MEGA-SIM card or a large-capacity flash memory device, the software module may be stored in the MEGA-SIM card or a large-capacity flash memory device.
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- One or more of the functional blocks and / or one or more combinations of the functional blocks described with reference to the drawings may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors Processor, one or more microprocessors in conjunction with DSP communications, or any other such configuration.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Programmable Controllers (AREA)
Abstract
Disclosed are an activation method, apparatus and system for a programmable logic controller. The method comprises: reading an identification code of a PLC from the PLC; sending the identification code of the PLC to a server device, and when the identification code is in an unactivated state, the server device generating an activation code corresponding to the identification code, returning the activation code and marking the identification code as activated; receiving the activation code returned by the server device; and sending the activation code to the PLC for saving. According to the method, a PLC is first activated, such that the PLC acquires a unique activation code, furthermore, the PLC is verified before the PLC is operated, and the PLC is operated where the verification is passed. An unactivated PLC and a PLC which does not pass the verification cannot work normally so that the use of a clone PLC is inhibited, thereby reducing the impairment of benefit of a certified product manufacturer from the clone PLC product.
Description
本发明涉及可编程逻辑控制器(PLC)的技术领域,尤其涉及一种可编程逻辑控制器的激活方法、装置和系统。The present invention relates to the technical field of programmable logic controllers (PLCs), and in particular, to a method, device, and system for activating a programmable logic controller.
可编程逻辑控制器(PLC)是一种专门为在工业环境下应用而设计的数字运算操作电子系统。它采用一种可编程的存储器,在其内部存储执行逻辑运算、顺序控制、定时、计数和算术运算等操作的指令,通过数字式或模拟式的输入输出来控制各种类型的机械设备或生产过程。Programmable logic controller (PLC) is a digital arithmetic operation electronic system specially designed for applications in industrial environments. It uses a programmable memory that stores instructions for performing logical operations, sequence control, timing, counting, and arithmetic operations, and controls various types of mechanical equipment or production through digital or analog input and output. process.
随着PLC的广泛应用,市场上出现了克隆PLC产品的现象,导致PLC产品的正品生产商的利益受到了损害。为了解决这个问题,PLC产品的正品生产商选用支持内部只读存储器(ROM)读保护机能的微控制单元(MCU)作为PLC的控制器,通过将PLC的固件程序烧录在MCU内部的ROM中,来保护PLC的固件程序不被第三者所获取。With the widespread application of PLC, the phenomenon of cloning PLC products has appeared on the market, causing the interests of genuine manufacturers of PLC products to be harmed. In order to solve this problem, the genuine manufacturer of the PLC product selects the micro control unit (MCU) that supports the internal read-only memory (ROM) read protection function as the controller of the PLC. To protect the PLC's firmware program from being obtained by a third party.
应该注意,上面对技术背景的介绍只是为了方便对本发明的技术方案进行清楚、完整的说明,并方便本领域技术人员的理解而阐述的。不能仅仅因为这些方案在本发明的背景技术部分进行了阐述而认为上述技术方案为本领域技术人员所公知。It should be noted that the above description of the technical background is merely for the convenience of a clear and complete description of the technical solution of the present invention, and for the understanding of those skilled in the art. The above technical solutions should not be considered to be well known to those skilled in the art just because these solutions are explained in the background section of the present invention.
发明内容Summary of the Invention
发明人发现,现有的方法不能完全杜绝克隆现象的发生。The inventors have found that the existing methods cannot completely prevent the occurrence of cloning.
为了解决上述问题,本发明实施例提供了一种可编程逻辑控制器的激活方法、装置和系统,以减少市场上克隆PLC产品的出现,抑制克隆PLC产品对正品生产商的利益损害。In order to solve the above problems, embodiments of the present invention provide a method, device, and system for activating a programmable logic controller, so as to reduce the occurrence of cloned PLC products on the market and suppress the damage of cloned PLC products to the interests of genuine manufacturers.
根据本发明实施例的第一方面,提供了一种可编程逻辑控制器(PLC)的激活方法,应用于管理设备,其中,所述方法包括:According to a first aspect of the embodiments of the present invention, a method for activating a programmable logic controller (PLC) is provided, which is applied to a management device, wherein the method includes:
从所述PLC读取所述PLC的识别码;将所述PLC的识别码发送给服务器设备,所述服务器设备在所述识别码为未激活状态时生成对应所述识别码的激活码、返回所 述激活码并将所述识别码标记为已激活状态;Reading the identification code of the PLC from the PLC; sending the identification code of the PLC to a server device, the server device generating an activation code corresponding to the identification code when the identification code is in an inactive state, and returning The activation code and marking the identification code as an activated state;
接收所述服务器设备返回的所述激活码;将所述激活码发送给所述PLC进行保存。Receiving the activation code returned by the server device; sending the activation code to the PLC for storage.
根据本发明实施例的第二方面,提供了一种可编程逻辑控制器(PLC)的激活方法,应用于服务器设备,其中,所述方法包括:According to a second aspect of the embodiments of the present invention, a method for activating a programmable logic controller (PLC) is provided, which is applied to a server device, wherein the method includes:
从管理设备接收PLC的识别码;Receive the PLC's identification code from the management device;
根据所述PLC的出厂数据检查所述识别码的激活状态;Checking the activation status of the identification code according to the factory data of the PLC;
在所述识别码为未激活状态时,生成对应所述识别码的激活码并发送给所述管理设备,并将所述识别码标记为已激活状态;When the identification code is in an inactive state, generating an activation code corresponding to the identification code and sending it to the management device, and marking the identification code as an activated state;
在所述识别码为已激活状态时,将所述识别码对应的激活码发送给所述管理设备。When the identification code is activated, an activation code corresponding to the identification code is sent to the management device.
根据本发明实施例的第三方面,提供了一种可编程逻辑控制器(PLC)的操作方法,应用于PLC,其中,所述方法包括:According to a third aspect of the embodiments of the present invention, a method for operating a programmable logic controller (PLC) is provided, which is applied to a PLC, wherein the method includes:
从管理设备接收识别码读取请求;Receiving an identification code read request from a management device;
将所述PLC的识别码发送给所述管理设备;Sending the identification code of the PLC to the management device;
从所述管理设备接收所述识别码对应的激活码;Receiving an activation code corresponding to the identification code from the management device;
保存所述激活码。Save the activation code.
根据本发明实施例的第四方面,提供了一种可编程逻辑控制器(PLC)的激活装置,配置于管理设备,其中,所述装置包括:According to a fourth aspect of the embodiments of the present invention, a programmable logic controller (PLC) activation device is provided, which is configured in a management device, wherein the device includes:
第一读取单元,其从所述PLC读取所述PLC的识别码;A first reading unit that reads the identification code of the PLC from the PLC;
第一发送单元,其将所述PLC的识别码发送给服务器设备,所述服务器设备在所述识别码为未激活状态时生成对应所述识别码的激活码、返回所述激活码并将所述识别码标记为已激活状态;A first sending unit, which sends the identification code of the PLC to a server device, and the server device generates an activation code corresponding to the identification code when the identification code is in an inactive state, returns the activation code, and sends all The identification code is marked as activated;
第一接收单元,其接收所述服务器设备返回的所述激活码;所述第一发送单元将所述激活码发送给所述PLC进行保存。A first receiving unit receives the activation code returned by the server device; the first sending unit sends the activation code to the PLC for storage.
根据本发明实施例的第五方面,提供了一种可编程逻辑控制器(PLC)的激活装置,配置于服务器设备,其中,所述装置包括:According to a fifth aspect of the embodiments of the present invention, a programmable logic controller (PLC) activation device is provided and configured on a server device, wherein the device includes:
接收单元,其从管理设备接收PLC的识别码;A receiving unit that receives an identification code of a PLC from a management device;
检查单元,其根据所述PLC的出厂数据检查所述识别码的激活状态;A checking unit that checks the activation status of the identification code according to the factory data of the PLC;
处理单元,其在所述识别码为未激活状态时,生成对应所述识别码的激活码并发送给所述管理设备,并将所述识别码标记为已激活状态;在所述识别码为已激活状态时,将所述识别码对应的激活码发送给所述管理设备。A processing unit, when the identification code is in an inactive state, generating an activation code corresponding to the identification code and sending it to the management device, and marking the identification code as an activated state; when the identification code is When activated, the activation code corresponding to the identification code is sent to the management device.
根据本发明实施例的第六方面,提供了一种可编程逻辑控制器(PLC)的操作装置,配置于PLC,其中,所述装置包括:According to a sixth aspect of the embodiments of the present invention, there is provided an operating device of a programmable logic controller (PLC) configured in the PLC, wherein the device includes:
接收单元,其从管理设备接收识别码读取请求;A receiving unit that receives an identification code read request from a management device;
发送单元,其将所述PLC的识别码发送给所述管理设备;A sending unit that sends an identification code of the PLC to the management device;
所述接收单元还从所述管理设备接收所述识别码对应的激活码;The receiving unit further receives an activation code corresponding to the identification code from the management device;
保存单元,其保存所述激活码。A saving unit that saves the activation code.
根据本发明实施例的第七方面,提供了一种PLC系统,其中,所述PLC系统包括:管理设备、PLC以及服务器设备,所述管理设备包括前述第四方面所述的装置,所述PLC包括前述第六方面所述的装置,所述服务器设备包括前述第五方面所述的装置。According to a seventh aspect of the embodiments of the present invention, there is provided a PLC system, wherein the PLC system includes a management device, a PLC, and a server device, the management device includes the device according to the fourth aspect, and the PLC The apparatus according to the sixth aspect is included, and the server device includes the apparatus according to the fifth aspect.
根据本发明实施例的其他方面,提供了一种计算机可读程序,其中当在管理设备中执行所述程序时,所述程序使得计算机在所述管理设备中执行前述第一方面所述的方法。According to other aspects of embodiments of the present invention, there is provided a computer-readable program, wherein when the program is executed in a management device, the program causes a computer to execute the method described in the first aspect in the management device .
根据本发明实施例的其他方面,提供了一种存储有计算机可读程序的存储介质,其中所述计算机可读程序使得计算机在管理设备中执行前述第一方面所述的方法。According to other aspects of the embodiments of the present invention, there is provided a storage medium storing a computer-readable program, wherein the computer-readable program causes a computer to execute the method described in the foregoing first aspect in a management device.
根据本发明实施例的其他方面,提供了一种计算机可读程序,其中当在PLC中执行所述程序时,所述程序使得计算机在所述PLC中执行前述第三方面所述的方法。According to other aspects of embodiments of the present invention, there is provided a computer-readable program, wherein when the program is executed in a PLC, the program causes a computer to execute the method described in the foregoing third aspect in the PLC.
根据本发明实施例的其他方面,提供了一种存储有计算机可读程序的存储介质,其中所述计算机可读程序使得计算机在PLC中执行前述第三方面所述的方法。According to other aspects of the embodiments of the present invention, there is provided a storage medium storing a computer-readable program, wherein the computer-readable program causes a computer to execute a method described in the foregoing third aspect in a PLC.
根据本发明实施例的其他方面,提供了一种计算机可读程序,其中当在服务器设备中执行所述程序时,所述程序使得计算机在所述服务器设备中执行前述第二方面所述的方法。According to other aspects of the embodiments of the present invention, there is provided a computer-readable program, wherein when the program is executed in a server device, the program causes a computer to execute the method in the second aspect in the server device .
根据本发明实施例的其他方面,提供了一种存储有计算机可读程序的存储介质,其中所述计算机可读程序使得计算机在服务器设备中执行前述第二方面所述的方法。According to other aspects of the embodiments of the present invention, there is provided a storage medium storing a computer-readable program, wherein the computer-readable program causes a computer to execute a method described in the foregoing second aspect in a server device.
本发明的有益效果在于:通过先对PLC进行激活,使得PLC获得一个唯一的激活码,进一步的,在对PLC进行操作之前对该PLC进行验证,在验证通过的情况下 对PLC进行操作,未激活和验证失败的PLC无法正常工作,此外,激活码可在服务器设备上进行管理,激活码在服务器设备上变更后,可通过本发明实施例的方法对仅1台PLC进行激活码更新,所有未更新激活码的PLC将被视作克隆PLC,无法再通过验证并正常工作,由此抑制了克隆PLC的使用,减少了克隆PLC产品对正品生产商的利益损害。The beneficial effect of the present invention is that by activating the PLC first, the PLC obtains a unique activation code. Further, the PLC is verified before the PLC is operated, and the PLC is operated if the verification is passed. The PLC that fails to activate and verify cannot work normally. In addition, the activation code can be managed on the server device. After the activation code is changed on the server device, only one PLC can be updated with the activation code by the method of the embodiment of the present invention. A PLC without an updated activation code will be regarded as a clone PLC, which can no longer pass the verification and work normally, thereby suppressing the use of the clone PLC and reducing the damage of clone PLC products to the interests of genuine manufacturers.
参照后文的说明和附图,详细公开了本发明的特定实施方式,指明了本发明的原理可以被采用的方式。应该理解,本发明的实施方式在范围上并不因而受到限制。在所附权利要求的精神和条款的范围内,本发明的实施方式包括许多改变、修改和等同。With reference to the following description and drawings, specific embodiments of the present invention are disclosed in detail, and ways in which the principles of the present invention can be adopted are indicated. It should be understood that the scope of the embodiments of the present invention is not limited thereby. Within the spirit and terms of the appended claims, embodiments of the invention include many changes, modifications, and equivalents.
针对一种实施方式描述和/或示出的特征可以以相同或类似的方式在一个或更多个其它实施方式中使用,与其它实施方式中的特征相组合,或替代其它实施方式中的特征。Features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, combined with features in other embodiments, or in place of features in other embodiments .
应该强调,术语“包括/包含”在本文使用时指特征、整件、步骤或组件的存在,但并不排除一个或更多个其它特征、整件、步骤或组件的存在或附加。It should be emphasized that the term "including / comprising" as used herein refers to the presence of a feature, whole, step or component, but does not exclude the presence or addition of one or more other features, whole, steps or components.
在本发明实施例的一个附图或一种实施方式中描述的元素和特征可以与一个或更多个其它附图或实施方式中示出的元素和特征相结合。此外,在附图中,类似的标号表示几个附图中对应的部件,并可用于指示多于一种实施方式中使用的对应部件。Elements and features described in one drawing or an embodiment of an embodiment of the present invention may be combined with elements and features shown in one or more other drawings or implementations. In addition, in the drawings, similar reference numerals indicate corresponding parts in several drawings, and may be used to indicate corresponding parts used in more than one embodiment.
所包括的附图用来提供对本发明实施例的进一步的理解,其构成了说明书的一部分,用于例示本发明的实施方式,并与文字描述一起来阐释本发明的原理。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:The included drawings are used to provide a further understanding of the embodiments of the present invention, which constitute a part of the specification, and are used to illustrate the embodiments of the present invention and to explain the principles of the present invention together with the text description. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts. In the drawings:
图1是实施例1的PLC系统的示意图;1 is a schematic diagram of a PLC system of Embodiment 1;
图2是实施例2的PLC的激活方法的一个示意图;2 is a schematic diagram of a PLC activation method according to Embodiment 2;
图3是实施例2的PLC的激活方法的另一个示意图;3 is another schematic diagram of a PLC activation method according to Embodiment 2;
图4是实施例3的PLC的激活方法的一个示意图;4 is a schematic diagram of a PLC activation method according to Embodiment 3;
图5是实施例3的PLC的激活方法的另一个示意图;5 is another schematic diagram of a PLC activation method according to Embodiment 3;
图6是实施例4的PLC的激活方法的一个示意图;6 is a schematic diagram of a PLC activation method according to Embodiment 4;
图7是PLC的激活流程的示意图;7 is a schematic diagram of a PLC activation process;
图8是正版PLC的在线操作的示意图;Figure 8 is a schematic diagram of the online operation of a genuine PLC;
图9是克隆PLC的在线操作的示意图;Figure 9 is a schematic diagram of the online operation of the clone PLC;
图10是正版PLC的激活码更新的示意图。FIG. 10 is a schematic diagram of an activation code update of a genuine PLC.
图11是实施例5的PLC的激活装置的示意图;11 is a schematic diagram of a PLC activation device of Embodiment 5;
图12是实施例6的PLC的激活装置的示意图;FIG. 12 is a schematic diagram of a PLC activation device of Embodiment 6;
图13是实施例7的PLC的激活装置的示意图。FIG. 13 is a schematic diagram of a PLC activation device of Embodiment 7. FIG.
参照附图,通过下面的说明书,本发明实施例的前述以及其它特征将变得明显。在下面的说明和附图中,具体公开了本发明实施例的特定实施方式,其表明了其中可以采用本发明实施例的原则的部分实施方式,应了解的是,本发明实施例不限于所描述的实施方式,相反,本发明实施例包括落入所附权利要求的范围内的全部修改、变型以及等同物。With reference to the drawings, the foregoing and other features of the embodiments of the present invention will become apparent through the following description. In the following description and drawings, specific implementations of the embodiments of the present invention are specifically disclosed, which show some of the implementations in which the principles of the embodiments of the present invention can be applied. It should be understood that the embodiments of the present invention are not limited to The described embodiments, on the contrary, the embodiments of the invention include all modifications, variations, and equivalents falling within the scope of the appended claims.
在本发明实施例中,术语“第一”、“第二”等用于对不同元素从称谓上进行区分,但并不表示这些元素的空间排列或时间顺序等,这些元素不应被这些术语所限制。术语“和/或”包括相关联列出的术语的一种或多个中的任何一个和所有组合。术语“包含”、“包括”、“具有”等是指所陈述的特征、元素、元件或组件的存在,但并不排除存在或添加一个或多个其他特征、元素、元件或组件。In the embodiments of the present invention, the terms “first” and “second” are used to distinguish different elements from each other by title, but they do not indicate the spatial arrangement or chronological order of these elements, and these elements should not be used by these terms. Restricted. The term "and / or" includes any and all combinations of one or more of the associated listed terms. The terms "comprising", "including", "having" and the like refer to the presence of stated features, elements, elements or components, but do not exclude the presence or addition of one or more other features, elements, elements or components.
在本发明实施例中,单数形式“一”、“该”等包括复数形式,应广义地理解为“一种”或“一类”而并不是限定为“一个”的含义;此外术语“所述”应理解为既包括单数形式也包括复数形式,除非上下文另外明确指出。此外术语“根据”应理解为“至少部分根据……”,术语“基于”应理解为“至少部分基于……”,除非上下文另外明确指出。In the embodiment of the present invention, the singular forms "a", "the", etc. include plural forms and should be construed broadly as "a" or "a class" and not limited to the meaning of "a"; in addition, the term "a "Description" is understood to include both the singular and the plural forms unless the context clearly indicates otherwise. Furthermore, the term "based on" should be understood as "based at least in part on ..." and the term "based on" should be understood as "based at least in part on ..." unless the context clearly indicates otherwise.
下面结合附图对本发明实施例的各种实施方式进行说明。这些实施方式只是示例性的,不是对本发明实施例的限制。Various embodiments of the embodiments of the present invention will be described below with reference to the drawings. These implementation manners are merely exemplary, and are not limitations on the embodiments of the present invention.
实施例1Example 1
本实施例提供了一种PLC系统。This embodiment provides a PLC system.
图1是本实施例的PLC系统的示意图,如图1所示,该PLC系统包括管理设备100、PLC 200、以及服务器设备300。管理设备100与PLC 200通过PLC 200上的控制接口连接,管理设备100与服务器设备300通过网络连接,PLC 200与服务器设备 300不直接建立连接关系。FIG. 1 is a schematic diagram of a PLC system of this embodiment. As shown in FIG. 1, the PLC system includes a management device 100, a PLC 200, and a server device 300. The management device 100 and the PLC 200 are connected through a control interface on the PLC 200, the management device 100 and the server device 300 are connected through a network, and the PLC 200 and the server device 300 do not directly establish a connection relationship.
在本实施例中,该管理设备100可以是计算机设备,其上存储有用于对PLC 200进行激活或验证的程序,该程序可以通过软件或者固件的方式来实现,此外,不限于计算机设备,该管理设备100还可以是其他能够对PLC 200进行激活或验证的实体,如工控机等。在本实施例中,该管理设备100上还存储有PLC 200所需的软件程序,在所述PLC 200被激活并且验证通过的情况下,该管理设备100向该PLC 200下载上述软件程序,实现对PLC 200的管理。关于上述激活或验证的过程,将在下面的实施例中进行说明。In this embodiment, the management device 100 may be a computer device, which stores a program for activating or verifying the PLC 200. The program may be implemented by software or firmware. In addition, it is not limited to a computer device. The management device 100 may also be another entity capable of activating or verifying the PLC 200, such as an industrial computer. In this embodiment, the management device 100 also stores software programs required by the PLC 200. When the PLC 200 is activated and verified, the management device 100 downloads the software program to the PLC 200 to implement Management of PLC 200. The above-mentioned activation or verification process will be described in the following embodiments.
在本实施例中,该服务器设备300可以是云服务器,设置于该PLC 200的生产商处,由PLC 200的生产商进行维护和管理,但本实施例不限于此,该服务器设备300也可以不是云服务器,而是其他服务器设备。在本实施例中,该服务器设备300可以管理生产商所生产的PLC 200的相关信息,例如存储各个PLC 200的识别码及其激活状态等,当接收到来自管理设备100的识别码激活请求时,该服务器设备300可以对提交激活请求的识别码进行筛选,无效识别码无法通过激活,已激活的识别码也无法再次激活。In this embodiment, the server device 300 may be a cloud server, which is installed at the manufacturer of the PLC 200 and maintained and managed by the manufacturer of the PLC 200. However, this embodiment is not limited to this, and the server device 300 may also be Not a cloud server, but other server devices. In this embodiment, the server device 300 can manage the related information of the PLC 200 produced by the manufacturer, such as storing the identification code of each PLC 200 and its activation status, etc., when receiving the identification code activation request from the management device 100 The server device 300 can filter the identification code that submitted the activation request. The invalid identification code cannot be activated, and the activated identification code cannot be activated again.
在本实施例中,对于有效的识别码,服务器设备300可以通过检索该PLC 200的相关信息,确定该识别码的激活状态,在该识别码处于未激活状态的情况下,生成与该识别码对应的激活码发送给管理设备100,并将该识别码标记为已激活状态;在该识别码处于已激活状态的情况下,也即已经为该识别码生成了其对应的激活码,则该服务器设备300可以将该识别码对应的激活码发送给上述管理设备100,由上述管理设备100对该PLC进行验证。In this embodiment, for a valid identification code, the server device 300 may determine the activation status of the identification code by retrieving relevant information of the PLC 200, and generate the identification code with the identification code when the identification code is in an inactive state. The corresponding activation code is sent to the management device 100, and the identification code is marked as activated; if the identification code is in the activated state, that is, the corresponding activation code has been generated for the identification code, the The server device 300 may send an activation code corresponding to the identification code to the management device 100, and the management device 100 verifies the PLC.
在本实施例中,该激活码可以是根据上述识别码所生成的包含随机密钥的报文,但本实施例对此不做限制。此外,在本实施例中,该服务器设备300根据一定的事件,例如一段时间或者下载工程等事件,可以对该随机密钥进行更新,进而重新生成上述激活码。在一个实施方式中,上述随机密钥仅更新一次,也即上述激活码仅更新一次,由此避免了更新次数过多导致的管理不便的问题,但本实施例不限于此,根据需求,也可以对上述随机密钥更新多次,由此对上述激活码更新多次。In this embodiment, the activation code may be a message containing a random key generated according to the identification code, but this embodiment does not limit this. In addition, in this embodiment, the server device 300 can update the random key according to a certain event, such as a period of time or an event such as downloading a project, and then regenerate the activation code. In one embodiment, the random key is updated only once, that is, the activation code is updated only once, thereby avoiding the problem of inconvenient management caused by too many updates, but this embodiment is not limited to this. The random key may be updated multiple times, and thus the activation code may be updated multiple times.
可选的,在本实施例中,在该识别码处于已激活状态的情况下,该服务器设备300可以同时将有无变更请求的信息发送给上述管理设备100,这里,无变更请求是 指该识别码对应的激活码没有变更,有变更请求是指该识别码对应的激活码改变了。关于该激活码的更新将在下面的实施例中进行说明。Optionally, in this embodiment, when the identification code is in an activated state, the server device 300 may simultaneously send information about whether there is a change request to the management device 100. Here, the no change request refers to the There is no change to the activation code corresponding to the identification code. If there is a change request, it means that the activation code corresponding to the identification code has changed. The update of the activation code will be described in the following embodiments.
在本实施例中,PLC 200即为工业上使用的可编程逻辑控制器,其包含CPU或者MPU,可以存储应用程序,其具有唯一的识别码。在本实施例中,识别码可以是包含了设备类型、版本、序列号、唯一性ID、出厂日期等生产制造相关数据所生成的报文。但本实施例不限于此,该识别码也可以是包含了上述生产制造相关数据中的任意一项或任意组合而生成的报文,或者该识别码也可以是包含了除上述生产制造相关数据以外的其他数据而生成的报文,用于唯一标识该PLC 200。In this embodiment, the PLC 200 is a programmable logic controller used in industry, which includes a CPU or an MPU, can store an application program, and has a unique identification code. In this embodiment, the identification code may be a message generated by including manufacturing-related data such as device type, version, serial number, unique ID, and manufacturing date. However, this embodiment is not limited to this. The identification code may also be a message generated by including any one or any combination of the above-mentioned manufacturing-related data, or the identification code may also include data other than the above-mentioned manufacturing-related data. The message generated by other data is used to uniquely identify the PLC 200.
在本实施例中,只有激活并且通过验证的PLC 200才能正常使用,由此抑制了克隆PLC的使用,减少了克隆PLC产品对正品生产商的利益损害。In this embodiment, only the PLC 200 that is activated and verified can be used normally, thereby suppressing the use of the cloned PLC and reducing the damage of the cloned PLC product to the interests of the genuine manufacturer.
下面通过实施例2-7对本发明实施例的管理设备100、服务器设备300以及PLC200进行说明。The following describes the management device 100, the server device 300, and the PLC 200 according to the embodiments of the present invention through Embodiments 2-7.
实施例2Example 2
本实施例提供了一种PLC的激活方法,该方法应用于管理设备100。This embodiment provides a PLC activation method, which is applied to the management device 100.
图2是本实施例的PLC的激活方法的示意图,如图2所示,该PLC的激活方法包括:FIG. 2 is a schematic diagram of a PLC activation method according to this embodiment. As shown in FIG. 2, the PLC activation method includes:
步骤201:从PLC读取所述PLC的识别码;Step 201: Read the identification code of the PLC from the PLC;
步骤202:将所述PLC的识别码发送给服务器设备,所述服务器设备在所述识别码为未激活状态时生成对应所述识别码的激活码、返回所述激活码并将所述识别码标记为已激活状态;Step 202: Send the identification code of the PLC to a server device, and the server device generates an activation code corresponding to the identification code when the identification code is in an inactive state, returns the activation code, and sends the identification code Marked as activated;
步骤203:接收所述服务器设备返回的所述激活码;将所述激活码发送给所述PLC进行保存。Step 203: Receive the activation code returned by the server device; send the activation code to the PLC for storage.
在本实施例中,管理设备100可以将从PLC读取到的识别码发送给服务器设备300,以对该PLC 200进行激活或验证。服务器设备300在接收到该识别码后,可以通过检索自己存储的各个PLC 300的相关信息确定该识别码是已激活状态还是未激活状态,如果是未激活状态,则根据该识别码生成对应的激活码返回给管理设备100,完成对该PLC 200的激活,并将该识别码标记为已激活状态。In this embodiment, the management device 100 may send the identification code read from the PLC to the server device 300 to activate or verify the PLC 200. After receiving the identification code, the server device 300 can determine whether the identification code is activated or inactivated by retrieving relevant information of each PLC 300 stored by itself. If it is in an inactive state, a corresponding code is generated according to the identification code. The activation code is returned to the management device 100, completes the activation of the PLC 200, and marks the identification code as activated.
在本实施例中,服务器设备300对每个识别码仅进行一次激活操作,已激活的识 别码已经被服务器设备标记为已激活状态,无法再次被激活。由此,对于克隆PLC,由于该克隆PLC具有与正版PLC相同的识别码,而该识别码已经被激活,不会被再次激活,由此抑制了克隆PLC的使用。In this embodiment, the server device 300 performs only one activation operation for each identification code, and the activated identification code has been marked as activated by the server device and cannot be activated again. Therefore, for the clone PLC, since the clone PLC has the same identification code as the genuine PLC, and the identification code has been activated, it will not be activated again, thereby inhibiting the use of the clone PLC.
在本实施例中,服务器设备300存储了出厂的PLC 200的识别码和激活状态,因此,对于有激活请求的识别码,服务器设备300还可以根据存储的信息判定其是否有效,仅对有效识别码进行激活状态的判定和后续处理,因此,对于有可能使用无效识别码的克隆PLC,不对其进行激活操作,同样抑制了克隆PLC的使用。In this embodiment, the server device 300 stores the identification code and activation status of the delivered PLC 200. Therefore, the server device 300 can also determine whether the identification code is valid according to the stored information, and only identifies the validity. The code performs the activation status determination and subsequent processing. Therefore, the clone PLC that may use an invalid identification code is not activated, and the use of the clone PLC is also suppressed.
在本实施例中,该激活操作可以在PLC出厂后由用户通过上述管理设备100完成,也可以在PLC出厂前由厂家通过自己的管理设备100完成。In this embodiment, the activation operation may be performed by the user through the management device 100 after the PLC leaves the factory, or may be performed by the manufacturer through the management device 100 itself before the PLC leaves the factory.
在本实施例中,如果服务器设备300接收到的识别码为已激活状态,则该服务器设备300还可以将该识别码对应的激活码发送给管理设备100,由管理设备100对该激活码进行验证,只有验证通过的激活码才能使用,由此抑制了克隆PLC的使用。In this embodiment, if the identification code received by the server device 300 is activated, the server device 300 may also send an activation code corresponding to the identification code to the management device 100, and the management device 100 performs the activation code on the activation code. Verification, only the activation code that passed the verification can be used, thereby inhibiting the use of cloned PLCs.
在一个实施方式中,上述验证操作可以由管理设备100完成,例如,管理设备100从PLC 200读取该PLC 200保存的激活码,并将从服务器设备300接收到的激活码与从PLC 200读取到的激活码进行比较,如果两者一致则验证通过,否则验证失败。In one embodiment, the above verification operation may be completed by the management device 100. For example, the management device 100 reads the activation code saved by the PLC 200 from the PLC 200, and reads the activation code received from the server device 300 with the PLC 200 The obtained activation codes are compared. If they are consistent, the verification is passed, otherwise the verification fails.
在另一个实施方式中,上述验证操作可以由PLC 200完成,例如,管理设备100将从服务器设备300获取到的激活码发送给PLC 200,该PLC 200对其保存的激活码与从管理设备100接收到的激活码进行比较,如果两者一致则验证通过,生成验证成功信息返回给管理设备100,否则验证失败,生成验证失败信息返回给管理设备100。由此,管理设备100可以根据接收到的信息确定验证是否成功。In another embodiment, the above-mentioned verification operation may be performed by the PLC 200. For example, the management device 100 sends the activation code obtained from the server device 300 to the PLC 200, and the PLC 200 saves the activation code saved by the PLC to the management device 100 The received activation codes are compared. If the two are consistent, the verification is passed, and a verification success message is generated and returned to the management device 100; otherwise, the verification fails, and the verification failure information is generated and returned to the management device 100. Thereby, the management device 100 can determine whether the verification is successful or not according to the received information.
在本实施例中,如前所述,激活码也可以进行至少一次的更新。则在一个实施方式中,如果服务器设备300没有对该识别码对应的激活码进行更新,则其可以同时将该激活码和“无变更请求”的信息发送给管理设备100进行上述验证。In this embodiment, as described above, the activation code may also be updated at least once. Then, in one embodiment, if the server device 300 does not update the activation code corresponding to the identification code, it may send the activation code and the information of “no change request” to the management device 100 at the same time for the above verification.
在另一个实施方式中,如果服务器设备300对该识别码对应的激活码进行了更新,则其可以同时将新的激活码和“有变更请求”的信息发送给管理设备100。管理设备100在接收到这样的信息后,可以将新的激活码发送给PLC 200进行更新,并将激活码已变更的信息发送给服务器设备300,由服务器设备更改激活码是否变更的信息,例如,将该识别码对应的激活码的变更请求修改为“无变更请求”,由此,服务器设备300不会再次进行这样的激活码更新的操作。由于仅有一台保存原激活码的 PLC进行了激活码的更新操作,由此,对于有可能通过恶意手段获得了该识别码对应的原激活码的PLC,在后续的激活码验证操作中不会验证通过,进一步抑制了克隆PLC的使用。In another embodiment, if the server device 300 updates the activation code corresponding to the identification code, it may send the new activation code and the information “with a change request” to the management device 100 at the same time. After receiving such information, the management device 100 may send a new activation code to the PLC 200 to update, and send the information that the activation code has been changed to the server device 300, and the server device may change the information whether the activation code is changed, for example , The request for changing the activation code corresponding to the identification code is modified to “no change request”, and thus the server device 300 will not perform such an activation code update operation again. Because only one PLC that saved the original activation code updated the activation code, the PLC that may have obtained the original activation code corresponding to the identification code through malicious means will not be used in subsequent activation code verification operations. The verification passed, further suppressing the use of cloned PLC.
在本实施方式中,管理设备100在接收到来自服务器设备300的新的激活码和“有变更请求”的信息后,还可以从PLC 200获取其保存的激活码(原激活码),并在从服务器设备300接收到的新的激活码与该PLC 200保存的原激活码不一致的情况下,将该新的激活码发送给PLC 200进行更新。由此,避免了对激活码的反复更新,进一步抑制了克隆PLC的使用。In this embodiment, after receiving the new activation code and the “request for change” information from the server device 300, the management device 100 can also obtain the activation code (original activation code) saved from the PLC 200, and If the new activation code received from the server device 300 does not match the original activation code stored in the PLC 200, the new activation code is sent to the PLC 200 for updating. As a result, repeated updates to the activation code are avoided, and the use of cloned PLCs is further suppressed.
图3是本实施例的PLC的激活方法的另一个示意图,示出了管理设备100的操作,如图3所示,该方法包括:FIG. 3 is another schematic diagram of the PLC activation method of this embodiment, and illustrates the operation of the management device 100. As shown in FIG. 3, the method includes:
步骤301:从PLC获取PLC的识别码;Step 301: Obtain the PLC identification code from the PLC.
步骤302:将所述PLC的识别码发送给服务器设备300;Step 302: Send the identification code of the PLC to the server device 300;
步骤303:从所述服务器设备300接收对应所述识别码的激活码;Step 303: Receive an activation code corresponding to the identification code from the server device 300;
步骤304:将所述激活码发送给所述PLC进行保存,或者对所述激活码进行验证。Step 304: Send the activation code to the PLC for saving, or verify the activation code.
在本实施例中,在验证通过之后,管理设备100可以向PLC下载软件程序,由此PLC可以正常使用。在验证失败的情况下,PLC不能正常使用。图3的实施例是以识别码为有效识别码为例,在识别码为无效识别码的情况下,服务器设备300可以返回“识别码无效”的相关信息,由此也能抑制克隆PLC的使用。In this embodiment, after the verification is passed, the management device 100 can download a software program to the PLC, and thus the PLC can be used normally. If the verification fails, the PLC cannot be used normally. The embodiment of FIG. 3 uses the identification code as a valid identification code as an example. In the case where the identification code is an invalid identification code, the server device 300 can return related information of “invalid identification code”, thereby also suppressing the use of the cloned PLC. .
通过本实施例的方法,服务器设备300保存了出厂的PLC的相关信息,PLC出厂后,管理设备100对PLC进行激活,获得激活码,激活只进行一次,未激活的PLC无法正常使用;在PLC正常使用之前,还要对PLC进行验证,验证失败的PLC也无法正常使用,由此抑制了克隆PLC的使用。With the method of this embodiment, the server device 300 saves the relevant information of the delivered PLC. After the PLC leaves the factory, the management device 100 activates the PLC and obtains the activation code. The activation is performed only once. The inactive PLC cannot be used normally. Before normal use, the PLC must be verified, and the PLC that fails the verification cannot be used normally, thereby inhibiting the use of the cloned PLC.
实施例3Example 3
本实施例提供了一种PLC的激活方法,该方法应用于服务器设备300。This embodiment provides a PLC activation method, which is applied to the server device 300.
图4是本实施例的PLC的激活方法的示意图,如图4所示,该PLC的激活方法包括:FIG. 4 is a schematic diagram of a PLC activation method according to this embodiment. As shown in FIG. 4, the PLC activation method includes:
步骤401:从管理设备100接收PLC的识别码;Step 401: Receive a PLC identification code from the management device 100;
步骤402:根据所述PLC的出厂数据检查所述识别码的激活状态;Step 402: Check the activation status of the identification code according to the factory data of the PLC;
步骤403:在所述识别码为未激活状态时,生成对应所述识别码的激活码并发送给所述管理设备100,并将所述识别码标记为已激活状态;在所述识别码为已激活状态时,将所述识别码对应的激活码发送给所述管理设备100。Step 403: When the identification code is in an inactive state, generate an activation code corresponding to the identification code and send it to the management device 100, and mark the identification code as an activated state; when the identification code is When activated, the activation code corresponding to the identification code is sent to the management device 100.
在本实施例中,如前所述,服务器设备300保存了出厂的PLC的相关信息(如前所述的出厂数据),根据接收到的识别码激活请求,检查该识别码的激活状态,在该识别码处于未激活状态的情况下,生成对应该识别码的激活码返回给管理设备100,管理设备100可以将该激活码发送给PLC进行保存,由此完成了对PLC的激活;在该识别码处于已激活状态的情况下,也即该识别码对应的激活码已经生成,该服务器设备300将该激活码发送给管理设备100,管理设备100可以对的该激活码进行验证,只有验证通过的情况下该PLC才能正常使用。由此,抑制了克隆PLC的使用。In this embodiment, as described above, the server device 300 stores the relevant information of the factory PLC (the factory data as described above), and checks the activation status of the identification code according to the received identification code activation request. When the identification code is in an inactive state, an activation code corresponding to the identification code is generated and returned to the management device 100. The management device 100 can send the activation code to the PLC for storage, thereby completing the activation of the PLC; When the identification code is in an activated state, that is, the activation code corresponding to the identification code has been generated, the server device 300 sends the activation code to the management device 100, and the management device 100 can verify the activation code. Only the verification This PLC can be used normally only when it passes. Thereby, the use of the clone PLC is suppressed.
由于服务器设备300在对PLC的识别码进行了上述激活操作之后即将该识别码的激活状态修改为已激活状态,也即对于相同的识别码只进行一次激活操作,使得未激活的PLC不能正常使用,抑制了克隆PLC的使用。此外,在PLC使用之前,管理设备100还要先对该PLC进行验证,只有验证通过的PLC才能正常使用,也抑制了克隆PLC的使用。验证方式如实施例2所述,此处省略说明。After the server device 300 performs the above-mentioned activation operation on the identification code of the PLC, the activation state of the identification code is changed to the activated state, that is, the activation operation is performed only once for the same identification code, so that the inactive PLC cannot be used normally. , Inhibited the use of clone PLC. In addition, before the PLC is used, the management device 100 must first verify the PLC. Only the PLC that passes the verification can be used normally, which also inhibits the use of the cloned PLC. The verification method is as described in the second embodiment, and the description is omitted here.
在本实施例中,如前所述,该服务器设备300还可以对该激活码进行一次更新,则在该识别码处于已激活状态的情况下,如果不对该激活码进行更新,则该服务器设备300可以将上述激活码和无变更请求的信息发送给上述管理设备100,由管理设备100对该PLC进行验证;如果对该激活码进行了更新,则该服务器设备300可以将新的激活码和有变更请求的信息发送给上述管理设备100,由管理设备100将新的激活码发送给PLC,由此完成激活码的更新。In this embodiment, as described above, the server device 300 may also update the activation code once, and if the identification code is in an activated state, if the activation code is not updated, the server device 300 may send the above activation code and the information without a change request to the above management device 100, and the management device 100 verifies the PLC; if the activation code is updated, the server device 300 may send the new activation code and The information with the change request is sent to the management device 100, and the management device 100 sends a new activation code to the PLC, thereby completing the update of the activation code.
在本实施例中,在完成了激活码的更新后,管理设备100会将激活码已变更的信息发送给服务器设备300,服务器设备可以将该识别码对应的激活码的变更请求修改为无变更请求,由此,服务器设备100对相同识别码的激活码也只进行一次更新操作,未更新的PLC保存的激活码和新的激活码不一致,由此无法通过验证,也进一步抑制了克隆PLC的使用。In this embodiment, after updating the activation code, the management device 100 sends information that the activation code has been changed to the server device 300, and the server device may modify the change request for the activation code corresponding to the identification code to no change. Request, thus, the server device 100 also updates the activation code of the same identification code only once, and the activation code saved by the unupdated PLC is inconsistent with the new activation code, thereby failing the verification and further suppressing the clone of the PLC use.
在本实施例中,在步骤402之前,服务器设备300可以检查该识别码是否有效,只对有效的识别码进行后续操作。由此抑制了具有无效识别码的克隆PLC的使用。In this embodiment, before step 402, the server device 300 may check whether the identification code is valid, and perform subsequent operations only on the valid identification code. The use of cloned PLCs with invalid identification codes is thereby suppressed.
图5是本实施例的PLC的激活方法的另一个实施方式的示意图,示出了服务器设备300的操作,如图5所示,该方法包括:FIG. 5 is a schematic diagram of another embodiment of a method for activating a PLC in this embodiment, and illustrates the operation of the server device 300. As shown in FIG. 5, the method includes:
步骤501:从管理设备100接收PLC的识别码;Step 501: Receive an identification code of the PLC from the management device 100;
步骤502:判断所述识别码是否是有效的识别码,如果判断为是,则执行步骤503,否则执行步骤509;Step 502: Determine whether the identification code is a valid identification code. If the identification code is yes, go to step 503; otherwise, go to step 509;
步骤503:判断所述识别码是否是未激活状态,如果判断为是,则执行步骤504,否则执行步骤505;Step 503: Determine whether the identification code is in an inactive state, and if it is determined as yes, go to step 504, otherwise go to step 505;
步骤504:生成对应所述识别码的激活码发送给管理设备100,修改所述识别码的激活状态;Step 504: Generate an activation code corresponding to the identification code and send it to the management device 100 to modify the activation status of the identification code;
步骤505:判断所述激活码是否有变更,如果判断为是,则执行步骤506,否则执行步骤509;Step 505: Determine whether the activation code has changed. If the answer is yes, go to step 506; otherwise, go to step 509;
步骤506:将新的激活码和有变更请求的信息发送给管理设备100;Step 506: Send the new activation code and the information with the change request to the management device 100;
步骤507:接收管理设备100发送的激活码已变更的信息,将该识别码对应的激活码的变更请求修改为无变更请求;Step 507: Receive the information that the activation code has been changed and sent by the management device 100, and modify the change request of the activation code corresponding to the identification code to no change request;
步骤508:将所述激活码和无变更请求的信息发送给管理设备100;Step 508: Send the activation code and the information of no change request to the management device 100;
步骤509:生成无效识别码的相关信息返回给所述管理设备100。Step 509: Generate the related information of the invalid identification code and return it to the management device 100.
通过本实施例的方法,服务器设备300保存了出厂的PLC的相关信息,PLC出厂后,管理设备100对PLC进行激活,获得激活码,激活只进行一次,未激活的PLC无法正常使用;在PLC正常使用之前,还要对PLC进行验证,验证失败的PLC也无法正常使用,由此抑制了克隆PLC的使用。With the method of this embodiment, the server device 300 saves the relevant information of the delivered PLC. After the PLC leaves the factory, the management device 100 activates the PLC and obtains the activation code. The activation is performed only once. The inactive PLC cannot be used normally. Before normal use, the PLC must be verified, and the PLC that fails the verification cannot be used normally, thereby inhibiting the use of the cloned PLC.
实施例4Example 4
本实施例提供了一种PLC的激活方法,该方法应用于PLC 200。This embodiment provides a PLC activation method, and the method is applied to a PLC.
图6是本实施例的PLC的激活方法的示意图,如图6所示,该PLC的激活方法包括:FIG. 6 is a schematic diagram of a PLC activation method according to this embodiment. As shown in FIG. 6, the PLC activation method includes:
步骤601:从管理设备100接收识别码读取请求;Step 601: Receive an identification code reading request from the management device 100;
步骤602:将所述PLC的识别码发送给所述管理设备100;Step 602: Send the identification code of the PLC to the management device 100;
步骤603:从所述管理设备100接收所述识别码对应的激活码;Step 603: Receive an activation code corresponding to the identification code from the management device 100;
步骤604:保存所述激活码。Step 604: Save the activation code.
在本实施例中,PLC 200根据管理设备100的请求将自己的识别码发送给管理设备100,管理设备100将该识别码发送给服务器设备300,由服务器设备300生成对应该识别码的激活码返回给管理设备100,管理设备100再将给激活码发送给PLC200,由此完成了该PLC的激活。In this embodiment, the PLC 200 sends its own identification code to the management device 100 according to the request of the management device 100, the management device 100 sends the identification code to the server device 300, and the server device 300 generates an activation code corresponding to the identification code Returning to the management device 100, the management device 100 then sends the activation code to the PLC 200, thereby completing the activation of the PLC.
在本实施例中,服务器设备在生成了对应该识别码的激活码之后,将该识别码的状态修改为已激活状态,后续不会再对相同的识别码进行激活操作,由此抑制了克隆PLC的使用。In this embodiment, after the server device generates an activation code corresponding to the identification code, the status of the identification code is changed to the activated state, and subsequent activation operations on the same identification code will not be performed, thereby suppressing cloning. Use of PLC.
在本实施例中,PLC 200在正式使用之前,管理设备100还要对其进行验证。In this embodiment, before the PLC 200 is officially used, the management device 100 also needs to verify it.
在一个实施方式中,该验证操作在管理设备100上完成,则该PLC 200还可以从管理设备100接收激活码读取请求,将保存的激活码发送给管理设备100,由管理设备100将该激活码与从服务器设备接收到的激活码进行比较,如果两者一致,则认为验证成功,否则认为验证失败。In one embodiment, the verification operation is completed on the management device 100, the PLC 200 may also receive an activation code read request from the management device 100, and send the saved activation code to the management device 100, and the management device 100 will The activation code is compared with the activation code received from the server device. If they are the same, the verification is considered successful, otherwise the verification is considered failed.
在另一个实施方式中,该验证操作在PLC 200上完成,则该PLC 200还可以从管理设备100接收该管理设备100从服务器设备300接收到的激活码,将该激活码与自己保存的激活码进行比较,如果两者一致则认为验证成功,生成验证成功信息发送给管理设备100;否则认为验证失败,生成验证失败信息发送给管理设备100。无论哪种验证方式,验证失败的PLC不能正常使用,由此抑制了克隆PCL的使用。In another embodiment, the verification operation is completed on the PLC 200, the PLC 200 may also receive the activation code received by the management device 100 from the server device 300 from the management device 100, and the activation code and the activation saved by itself The codes are compared. If they are the same, the verification is considered successful and the verification success information is generated and sent to the management device 100; otherwise, the verification is deemed to be failed and the verification failure information is generated and sent to the management device 100. Regardless of the verification method, the PLC that failed the verification cannot be used normally, thereby inhibiting the use of clone PCL.
通过本实施例的方法,服务器设备300保存了出厂的PLC的相关信息,PLC出厂后,管理设备100对PLC进行激活,获得激活码,激活只进行一次,未激活的PLC无法正常使用;在PLC正常使用之前,还要对PLC进行验证,验证失败的PLC也无法正常使用,由此抑制了克隆PLC的使用。With the method of this embodiment, the server device 300 saves the relevant information of the delivered PLC. After the PLC leaves the factory, the management device 100 activates the PLC and obtains the activation code. The activation is performed only once. The inactive PLC cannot be used normally. Before normal use, the PLC must be verified, and the PLC that fails the verification cannot be used normally, thereby inhibiting the use of the cloned PLC.
以上通过实施例2-4对本实施例的PLC的激活方法从管理设备100、服务器设备300以及PLC 200的角度进行了说明,下面通过几个具体的示例对本实施例的PLC的激活方法进行说明。在下面的示例中,以安装有计算机工具软件的计算机设备作为本实施例的管理设备100、以正版PLC生产商的官方云服务器作为本实施例的服务器设备为例进行说明,但如前所述,本实施例不限于此。The method for activating the PLC in this embodiment has been described from the perspective of the management device 100, the server device 300, and the PLC 200 through the embodiments 2-4. The method for activating the PLC in this embodiment is described below through several specific examples. In the following example, a computer device installed with computer tool software is used as the management device 100 in this embodiment, and an official cloud server of a genuine PLC manufacturer is used as the server device in this embodiment for example, but as described above, This embodiment is not limited to this.
图7是正版PLC的激活流程的示意图,每台PLC首次使用前需要进行该激活操作,如图7所示,该流程包括:Figure 7 is a schematic diagram of the activation process of a genuine PLC. Each PLC needs to perform this activation operation for the first time. As shown in Figure 7, the process includes:
步骤701:用户操作者使用计算机工具软件对PLC进行激活操作;Step 701: The user operator uses a computer tool software to activate the PLC;
步骤702:计算机工具软件向PLC发送请求,读取激活用识别码;Step 702: the computer tool software sends a request to the PLC to read the activation identification code;
步骤703:PLC向计算机工具软件返回激活用识别码,这里的识别码是唯一的;Step 703: the PLC returns an activation identification code to the computer tool software, where the identification code is unique;
步骤704:计算机工具软件向云服务器发送请求,提交该PLC的识别码,申请对该PLC进行激活;Step 704: the computer tool software sends a request to the cloud server, submits an identification code of the PLC, and applies for activation of the PLC;
步骤705:云服务器根据PLC的识别码检查该PLC的出厂数据,确定该识别码的激活状态,在该识别码是未激活状态,也即该PLC为首次使用的情况下,云服务器生成对应该识别码的激活码,返回给计算机工具软件,并将该识别码标记为已激活状态;Step 705: The cloud server checks the factory data of the PLC according to the identification code of the PLC, and determines the activation status of the identification code. When the identification code is in an inactive state, that is, when the PLC is used for the first time, the cloud server generates a corresponding response. The activation code of the identification code is returned to the computer tool software, and the identification code is marked as activated;
步骤706:计算机工具软件向PLC发送请求,进行该激活码的下载;Step 706: the computer tool software sends a request to the PLC to download the activation code;
步骤707:PLC保存从计算机工具软件获取到的激活码,并向计算机工具软件返回完成的信息;Step 707: the PLC saves the activation code obtained from the computer tool software and returns the completed information to the computer tool software;
步骤708:计算机工具软件将激活已完成的信息返回给用户操作者。Step 708: The computer tool software returns the completed information to the user operator.
通过图7的流程,完成了PLC的激活。由于对相同识别码的激活操作只进行一次,对于克隆PLC,如果使用相同的识别码向云服务器申请激活,云服务器通过检查该识别码的出处数据库确定该识别码为已激活状态,则不会再次对该识别码进行激活操作,由此,避免了克隆PLC的使用。并且,对于无效识别码,云服务器可以返回无效识别码的相关信息,由此也避免了使用无效识别码的克隆PLC的使用。Through the flow of Fig. 7, the activation of the PLC is completed. Since the activation operation for the same identification code is performed only once, for a clone PLC, if the same identification code is used to apply to the cloud server for activation, the cloud server determines that the identification code is activated by checking the source database of the identification code, and it will not Activate the identification code again, thereby avoiding the use of clone PLC. In addition, for the invalid identification code, the cloud server can return information about the invalid identification code, thereby avoiding the use of the clone PLC using the invalid identification code.
图8是正版PLC的在线操作流程的示意图,如图8所示,该流程包括:Figure 8 is a schematic diagram of the online operation process of a genuine PLC. As shown in Figure 8, the process includes:
步骤801:用户操作者使用计算机工具软件进行在线下载程序等操作;Step 801: The user operator uses a computer tool software to perform operations such as downloading programs online;
步骤802:计算机工具软件向PLC发送请求,读取激活用识别码;Step 802: the computer tool software sends a request to the PLC to read the activation identification code;
步骤803:PLC向计算机工具软件返回激活用识别码,这里的识别码是唯一的;Step 803: the PLC returns an activation identification code to the computer tool software, where the identification code is unique;
步骤804:计算机工具软件向云服务器发送请求,提交该PLC的识别码,申请对该PLC进行查询;Step 804: The computer tool software sends a request to the cloud server, submits an identification code of the PLC, and applies for querying the PLC;
步骤805:云服务器根据该PLC的识别码检查该PLC的出厂数据,确定该识别码的激活状态,在该识别码是已激活状态,也即该识别码的激活码已经生成的情况下,云服务器将该识别码的激活码返回给计算机工具软件,可选的,在该激活码未变更的情况下,还可以将无变更请求的信息一起返回给计算机工具软件;Step 805: The cloud server checks the factory data of the PLC according to the identification code of the PLC, and determines the activation status of the identification code. In the case where the identification code is activated, that is, the activation code of the identification code has been generated, the cloud server The server returns the activation code of the identification code to the computer tool software. Optionally, if the activation code is not changed, it can also return the information without a change request to the computer tool software;
步骤806:计算机工具软件向PLC发送请求,查询该PLC保存的激活码;Step 806: the computer tool software sends a request to the PLC to query the activation code stored by the PLC;
步骤807:PLC向计算机工具软件返回保存的激活码;Step 807: the PLC returns the saved activation code to the computer tool software;
步骤808:计算机工具软件对激活码进行验证;验证通过的情况下,向PLC下载用户程序等;Step 808: the computer tool software verifies the activation code; if the verification is passed, download the user program to the PLC, etc .;
步骤809:PLC向计算机工具软件返回完成的信息;Step 809: the PLC returns the completed information to the computer tool software;
步骤810:计算机工具软件向用户操作者显示下载完成的信息。Step 810: The computer tool software displays the download completion message to the user operator.
在步骤808中,验证也可以在PLC上完成,如前所述,此处省略说明。In step 808, the verification may also be completed on the PLC. As described above, the description is omitted here.
通过图8的流程,完成了对PLC的激活,PLC可以正常使用。Through the process of FIG. 8, the activation of the PLC is completed, and the PLC can be used normally.
图9是克隆PLC的在线操作流程的示意图,如图9所示,步骤901-907与步骤801-807相同,此处不再赘述,此外,在步骤908中,由于从PLC获得的激活码(&&&&)与从云服务器获得的激活码(****)不一致,导致验证失败,取消下载,计算机工具软件向用户操作者显示下载失败的信息。由此抑制了克隆PLC的使用。FIG. 9 is a schematic diagram of the online operation process of the cloned PLC. As shown in FIG. 9, steps 901-907 are the same as steps 801-807, which will not be repeated here. In addition, in step 908, the activation code ( &&&&) is inconsistent with the activation code (****) obtained from the cloud server, which causes verification to fail, downloading is cancelled, and the computer tool software displays a message to the user operator that the download has failed. This inhibits the use of cloned PLCs.
图10是正版PLC的激活码更新操作流程的示意图,如图10所示,该流程包括:Fig. 10 is a schematic diagram of an activation code update operation process of a genuine PLC. As shown in Fig. 10, the process includes:
步骤1001:用户操作者使用计算机工具软件进行在线下载程序等操作;Step 1001: The user operator uses the computer tool software to perform operations such as downloading programs online;
步骤1002:计算机工具软件向PLC发送请求,读取激活用识别码;Step 1002: the computer tool software sends a request to the PLC to read the activation identification code;
步骤1003:PLC向计算机工具软件返回激活用识别码,这里的识别码是唯一的;Step 1003: The PLC returns an activation identification code to the computer tool software, where the identification code is unique;
步骤1004:计算机工具软件向云服务器发送请求,提交该PLC的识别码,申请对该PLC进行查询;Step 1004: the computer tool software sends a request to the cloud server, submits the identification code of the PLC, and applies for querying the PLC;
步骤1005:云服务器根据该PLC的识别码检查该PLC的出厂数据,确定该识别码的激活状态,在该识别码是已激活状态,但是该识别码的激活码发生了变更的情况下,云服务器将该识别码的新的激活码(&&&&)和有变更请求的信息返回给计算机工具软件;Step 1005: The cloud server checks the factory data of the PLC according to the identification code of the PLC, and determines the activation status of the identification code. When the identification code is activated, but the activation code of the identification code is changed, the cloud server The server returns the new activation code (&&&&) of the identification code and the information about the change request to the computer tool software;
步骤1006:计算机工具软件向PLC发送请求,查询该PLC保存的激活码;Step 1006: the computer tool software sends a request to the PLC to query the activation code stored by the PLC;
步骤1007:PLC向计算机工具软件返回保存的激活码(****);Step 1007: the PLC returns the saved activation code (****) to the computer tool software;
步骤1008:由于从云服务器获取到的信息显示激活码有变更,计算机工具软件将新的激活码(&&&&)和用户程序等下载到PLC;Step 1008: Since the information obtained from the cloud server shows that the activation code has changed, the computer tool software downloads the new activation code (&&&&) and the user program to the PLC;
步骤1009:PLC保存新的激活码(&&&&)和用户程序等并向计算机工具软件返回完成的信息;Step 1009: the PLC saves the new activation code (&&&&) and the user program and returns the completed information to the computer tool software;
步骤1010:计算机工具软件向云服务器发送通知,告知云服务器激活码已经变更;Step 1010: The computer tool software sends a notification to the cloud server, informing that the cloud server activation code has changed;
步骤1011:云服务器将该激活码的变更请求从有修改为无并向计算机工具软件返回相应的信息;Step 1011: The cloud server changes the activation code change request from yes to no and returns corresponding information to the computer tool software;
步骤1012:计算机工具软件向用户操作者显示下载完成的信息。Step 1012: The computer tool software displays the download completion message to the user operator.
通过图10的流程,云服务器可以对激活码进行更新,由此进一步抑制了克隆PLC的使用。Through the process of FIG. 10, the cloud server can update the activation code, thereby further suppressing the use of the cloned PLC.
实施例5Example 5
本实施例提供了一种PLC的激活装置,其对应于图7-图10的计算机工具软件,配置于管理设备100,由于该装置解决问题的原理与实施例2的方法类似,其具体的实施可以参考实施例1和实施例2,内容相同之处不再重复说明。This embodiment provides a PLC activation device, which corresponds to the computer tool software of FIG. 7 to FIG. 10 and is configured on the management device 100. Since the principle of the device to solve the problem is similar to the method of Embodiment 2, the specific implementation is Reference may be made to Embodiment 1 and Embodiment 2. The same content is not described repeatedly.
图11是本实施例的PLC的激活装置的示意图,如图11所示,本实施例的PLC的激活装置1100包括:第一读取单元1101、第一发送单元1102、以及第一接收单元1103。第一读取单元1101从PLC读取所述PLC的识别码;第一发送单元1102将所述PLC的识别码发送给服务器设备,所述服务器设备在所述识别码为未激活状态时生成对应所述识别码的激活码、返回所述激活码并将所述识别码标记为已激活状态;第一接收单元1103接收所述服务器设备返回的所述激活码;第一发送单元1102将所述激活码发送给所述PLC进行保存。FIG. 11 is a schematic diagram of a PLC activation device of this embodiment. As shown in FIG. 11, the PLC activation device 1100 of this embodiment includes a first reading unit 1101, a first sending unit 1102, and a first receiving unit 1103. . The first reading unit 1101 reads the identification code of the PLC from the PLC; the first sending unit 1102 sends the identification code of the PLC to a server device, and the server device generates a corresponding response when the identification code is in an inactive state. The activation code of the identification code, returning the activation code, and marking the identification code as activated; the first receiving unit 1103 receives the activation code returned by the server device; the first sending unit 1102 sends the activation code The activation code is sent to the PLC for saving.
在本实施例中,如图11所述,本实施例的PLC的激活装置1100还包括:In this embodiment, as shown in FIG. 11, the PLC activation device 1100 of this embodiment further includes:
验证单元1104,服务器设备在所述识别码为已激活状态,并且所述识别码对应的激活码没有变更的情况下,返回所述识别码对应的激活码和无变更请求的信息;第一接收单元1103接收所述服务器设备返回的所述激活码和无变更请求的信息,验证单元1104对所述PLC进行验证。The verification unit 1104, the server device returns the activation code corresponding to the identification code and the information of no change request if the identification code is activated and the activation code corresponding to the identification code is not changed; first receiving The unit 1103 receives the activation code and the information of no change request returned by the server device, and the verification unit 1104 verifies the PLC.
在一个实施方式中,如图11所示,验证单元1104包括第二读取单元11041和比较单元11042,第二读取单元11041从所述PLC读取所述PLC保存的激活码;比较单元11042将从所述服务器设备接收到的激活码与从所述PLC读取到的激活码进行比较,如果两者一致,则验证通过,否则验证失败。In one embodiment, as shown in FIG. 11, the verification unit 1104 includes a second reading unit 11041 and a comparison unit 11042. The second reading unit 11041 reads the activation code saved by the PLC from the PLC; the comparison unit 11042 The activation code received from the server device is compared with the activation code read from the PLC. If they are the same, the verification is passed, otherwise the verification fails.
在另一个实施方式中,如图11所示,验证单元1104包括第二发送单元11043和第二接收单元11044,第二发送单元11043将从所述服务器设备接收到的激活码发送给所述PLC,所述PLC对保存的激活码与接收到的来自所述服务器设备的激活码进 行比较,如果两者一致,则返回验证成功信息,否则返回验证失败信息;第二接收单元11044接收所述PLC返回的所述验证成功信息或所述验证失败信息,如果接收到所述验证成功信息则验证通过,如果接收到所述验证失败信息则验证失败。In another embodiment, as shown in FIG. 11, the verification unit 1104 includes a second sending unit 11043 and a second receiving unit 11044. The second sending unit 11043 sends an activation code received from the server device to the PLC. The PLC compares the stored activation code with the activation code received from the server device, and if the two are consistent, returns verification success information, otherwise returns verification failure information; the second receiving unit 11044 receives the PLC If the verification success information or the verification failure information is returned, the verification is passed if the verification success information is received, and if the verification failure information is received, the verification fails.
在本实施例中,服务器设备在所述识别码为已激活状态,并且所述识别码对应的激活码有变更的情况下,返回新的激活码和有变更请求的信息;第一接收单元1103接收所述服务器设备返回的所述新的激活码和所述有变更请求的信息;第一发送单元1102将所述新的激活码发送给所述PLC进行更新;第一接收单元1103将激活码已变更的信息发送给所述服务器设备,所述服务器设备将所述识别码对应的激活码的变更请求改为无变更请求。In this embodiment, when the identification code is activated and the activation code corresponding to the identification code is changed, the server device returns a new activation code and information about a change request; the first receiving unit 1103 Receive the new activation code returned by the server device and the information with the change request; the first sending unit 1102 sends the new activation code to the PLC for updating; the first receiving unit 1103 sends the activation code The changed information is sent to the server device, and the server device changes the request for changing the activation code corresponding to the identification code to a request for no change.
在本实施例中,第一读取单元1101在第一发送单元1102将所述新的激活码发送给所述PLC之前,从所述PLC读取所述PLC保存的激活码,第一发送单元1102在所述激活码与所述新的激活码不一致的情况下,将所述新的激活码发送给所述PLC进行更新。In this embodiment, the first reading unit 1101 reads the activation code stored in the PLC from the PLC before the first sending unit 1102 sends the new activation code to the PLC. The first sending unit 1102: In a case where the activation code is inconsistent with the new activation code, send the new activation code to the PLC for updating.
在本实施例中,上述PLC的激活装置1100可以通过控制器和存储器来实现,例如,该存储器存储有用于实现实施例2的方法的计算机程序,在控制器的控制下执行实施例2的方法。In this embodiment, the foregoing PLC activation device 1100 may be implemented by a controller and a memory. For example, the memory stores a computer program for implementing the method of Embodiment 2 and executes the method of Embodiment 2 under the control of the controller. .
本实施例还提供了一种管理设备,该管理设备配置有上述PLC的激活装置1100,此外,该管理设备还可以具有其他管理设备的常规组成,例如输入装置(键盘)、输出装置(显示器)、连接接口等,关于该管理设备的常规组成可以参考现有技术,此处不再赘述。This embodiment also provides a management device. The management device is configured with the above-mentioned PLC activation device 1100. In addition, the management device may also have the conventional composition of other management devices, such as an input device (keyboard) and output device (display). , Connection interface, etc., for the conventional composition of the management device, reference may be made to the prior art, which is not repeated here.
通过本实施例的装置或管理设备与服务器设备和PLC的交互,可以对PLC进行激活操作或验证操作,抑制了克隆PLC的使用。Through the interaction between the device or management device of this embodiment and the server device and the PLC, an activation operation or a verification operation can be performed on the PLC, thereby suppressing the use of the cloned PLC.
实施例6Example 6
本实施例提供了一种PLC的激活装置,其配置于服务器设备300,由于该装置解决问题的原理与实施例3的方法类似,其具体的实施可以参考实施例1和实施例3,内容相同之处不再重复说明。This embodiment provides a PLC activation device, which is configured on the server device 300. Since the principle of the device to solve the problem is similar to the method of Embodiment 3, its specific implementation can refer to Embodiment 1 and Embodiment 3 with the same content. The points are not repeated.
图12是本实施例的PLC的激活装置的示意图,如图12所示,本实施例的PLC的激活装置1200包括:接收单元1201、检查单元1202以及处理单元1203,接收单 元1201从管理设备接收PLC的识别码;检查单元1202根据所述PLC的出厂数据检查所述识别码的激活状态;处理单元1203在所述识别码为未激活状态时,生成对应所述识别码的激活码并发送给所述管理设备,并将所述识别码标记为已激活状态;在所述识别码为已激活状态时,将所述识别码对应的激活码发送给所述管理设备。FIG. 12 is a schematic diagram of a PLC activation device of this embodiment. As shown in FIG. 12, the PLC activation device 1200 of this embodiment includes a receiving unit 1201, a checking unit 1202, and a processing unit 1203. PLC identification code; inspection unit 1202 checks the activation status of the identification code based on the factory shipment data of the PLC; processing unit 1203 generates an activation code corresponding to the identification code when the identification code is in the inactive state and sends it to The management device, and marking the identification code as an activated state; and when the identification code is activated, sending an activation code corresponding to the identification code to the management device.
在本实施例中,在所述识别码为已激活状态时,如果所述识别码对应的激活码没有变更,则所述处理单元1203可以将所述激活码和无变更请求的信息发送给所述PCL激活系统。In this embodiment, when the identification code is activated, if the activation code corresponding to the identification code has not changed, the processing unit 1203 may send the activation code and information without a change request to all The PCL activation system is described.
在本实施例中,在所述识别码为已激活状态时,如果所述识别码对应的激活码有变更,则所述处理单元1203可以将新的激活码和有变更请求的信息发送给所述管理设备。在本实施例中,所述接收单元1201还可以从所述管理设备接收激活码已变更的信息;所述处理单元1203将所述识别码对应的激活码的变更请求改为无变更请求。In this embodiment, when the identification code is activated, if the activation code corresponding to the identification code is changed, the processing unit 1203 may send a new activation code and information with a change request to all The management equipment. In this embodiment, the receiving unit 1201 may also receive information that the activation code has been changed from the management device; the processing unit 1203 changes the request for changing the activation code corresponding to the identification code to a request for no change.
在本实施例中,上述PLC的激活装置1200可以通过控制器和存储器来实现,例如,该存储器存储有用于实现实施例3的方法的计算机程序,在控制器的控制下执行实施例3的方法。In this embodiment, the foregoing PLC activation device 1200 may be implemented by a controller and a memory. For example, the memory stores a computer program for implementing the method of the third embodiment, and the method of the third embodiment is executed under the control of the controller. .
本实施例还提供了一种服务器设备,该服务器设备配置有上述PLC的激活装置1200,此外,该服务器设备还有其他服务器设备的常规组成,例如输入装置(键盘)、输出装置(显示器)、连接接口等,关于该服务器设备的常规组成可以参考现有技术,此处不再赘述。This embodiment also provides a server device. The server device is configured with the above-mentioned PLC activation device 1200. In addition, the server device has the conventional composition of other server devices, such as an input device (keyboard), output device (display), For the connection interface and the like, for the conventional composition of the server device, reference may be made to the existing technology, and details are not described herein again.
通过本实施例的装置或服务器设备与管理设备的交互,可以对PLC进行激活操作或验证操作,抑制了克隆PLC的使用。Through the interaction between the device or the server device and the management device in this embodiment, an activation operation or a verification operation can be performed on the PLC, thereby suppressing the use of the cloned PLC.
实施例7Example 7
本实施例提供了一种PLC的激活装置,其配置于PLC 200,由于该装置解决问题的原理与实施例4的方法类似,其具体的实施可以参考实施例1和实施例4,内容相同之处不再重复说明。This embodiment provides a PLC activation device, which is configured on the PLC 200. Since the principle of the device to solve the problem is similar to the method of Embodiment 4, the specific implementation can refer to Embodiment 1 and Embodiment 4. The content is the same The description is not repeated here.
图13是本实施例的PLC的激活装置的示意图,如图13所示,本实施例的PLC的激活装置1300包括:接收单元1301、发送单元1302以及保存单元1303。接收单元1301从管理设备接收识别码读取请求;发送单元1302将所述PLC的识别码发送给所述管理设备;接收单元1301还从所述管理设备接收所述识别码对应的激活码; 保存单元1303保存所述激活码。FIG. 13 is a schematic diagram of a PLC activation device in this embodiment. As shown in FIG. 13, the PLC activation device 1300 in this embodiment includes a receiving unit 1301, a sending unit 1302, and a saving unit 1303. The receiving unit 1301 receives an identification code reading request from a management device; the sending unit 1302 sends the identification code of the PLC to the management device; the receiving unit 1301 further receives an activation code corresponding to the identification code from the management device; save The unit 1303 saves the activation code.
在本实施例中,接收单元1301还从所述管理设备接收激活码读取请求;发送单元1301还将保存的所述激活码发送给所述管理设备,所述管理设备将所述激活码与从服务器设备接收到的激活码进行比较,如果两者一致,则认为验证成功,否则认为验证识别。In this embodiment, the receiving unit 1301 further receives an activation code reading request from the management device; the sending unit 1301 also sends the saved activation code to the management device, and the management device sends the activation code to the The activation codes received from the server device are compared. If they are the same, the verification is considered successful, otherwise the verification is recognized.
在本实施例中,如图13所示,本实施例的PLC的激活装置还包括:In this embodiment, as shown in FIG. 13, the PLC activation device of this embodiment further includes:
验证单元1304,接收单元1301还从所述管理设备接收所述识别码对应的激活码;所述装置还包括:验证单元1304将接收到的所述激活码与保存的激活码进行比较,如果两者一致则认为验证成功,生成验证成功信息发送给所述管理设备;否则认为验证失败,生成验证失败信息发送给所述管理设备。The verification unit 1304 and the receiving unit 1301 further receive an activation code corresponding to the identification code from the management device. The device further includes: the verification unit 1304 compares the received activation code with the saved activation code. If the two parties agree, the verification is successful and the verification success information is generated and sent to the management device; otherwise, the verification is failed and the verification failure information is generated and sent to the management device.
在本实施例中,上述PLC的激活装置1300可以通过控制器和存储器来实现,例如,该存储器存储有用于实现实施例4的方法的计算机程序,在控制器的控制下执行实施例4的方法。In this embodiment, the foregoing PLC activation device 1300 may be implemented by a controller and a memory. For example, the memory stores a computer program for implementing the method of Embodiment 4, and the method of Embodiment 4 is executed under the control of the controller. .
本实施例还提供了一种PLC,该PLC配置有上述PLC的激活装置1300,此外,该PLC还可以具有其他PLC的常规组成,例如输入装置(键盘)、输出装置(显示器)、连接接口等,关于该PLC的常规组成可以参考现有技术,此处不再赘述。This embodiment also provides a PLC. The PLC is configured with the above-mentioned PLC activation device 1300. In addition, the PLC may also have the conventional composition of other PLCs, such as an input device (keyboard), output device (display), connection interface, etc. For the conventional composition of the PLC, reference may be made to the prior art, which is not repeated here.
通过本实施例的装置或PLC与管理设备的交互,可以完成PLC的激活或验证,抑制了克隆PLC的使用。Through the interaction between the device of this embodiment or the PLC and the management device, the activation or verification of the PLC can be completed, and the use of the cloned PLC is suppressed.
本发明实施例以上的装置和方法可以由硬件实现,也可以由硬件结合软件实现。本发明实施例涉及这样的计算机可读程序,当该程序被逻辑部件所执行时,能够使该逻辑部件实现上文所述的装置或构成部件,或使该逻辑部件实现上文所述的各种方法或步骤。本发明实施例还涉及用于存储以上程序的存储介质,如硬盘、磁盘、光盘、DVD、flash存储器等。The devices and methods in the above embodiments of the present invention may be implemented by hardware, or may be implemented by hardware in combination with software. Embodiments of the present invention relate to such a computer-readable program. When the program is executed by a logic component, the logic component can implement the device or component described above, or the logic component can implement each of the components described above. Methods or steps. The embodiment of the present invention also relates to a storage medium for storing the above programs, such as a hard disk, a magnetic disk, an optical disk, a DVD, a flash memory, and the like.
结合本发明实施例描述的方法/装置可直接体现为硬件、由处理器执行的软件模块或二者组合。例如,图11-13中所示的功能框图中的一个或多个和/或功能框图的一个或多个组合,既可以对应于计算机程序流程的各个软件模块,亦可以对应于各个硬件模块。这些软件模块,可以分别对应于图2、4、6所示的各个步骤。这些硬件模块例如可利用现场可编程门阵列(FPGA)将这些软件模块固化而实现。The methods / devices described in connection with the embodiments of the present invention may be directly embodied as hardware, software modules executed by a processor, or a combination of the two. For example, one or more of the functional block diagrams and / or one or more combinations of the functional block diagrams shown in FIGS. 11-13 may correspond to each software module of a computer program flow or to each hardware module. These software modules can correspond to the steps shown in Figures 2, 4, and 6, respectively. These hardware modules can be implemented by using a field programmable gate array (FPGA) to cure these software modules.
软件模块可以位于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、移动磁盘、CD-ROM或者本领域已知的任何其它形式的存储介质。可以将一种存储介质耦接至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息;或者该存储介质可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。该软件模块可以存储在设备的存储器中,也可以存储在可插入设备的存储卡中。例如,若设备采用的是较大容量的MEGA-SIM卡或者大容量的闪存装置,则该软件模块可存储在该MEGA-SIM卡或者大容量的闪存装置中。A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to the processor so that the processor can read information from and write information to the storage medium; or the storage medium may be a component of the processor. The processor and the storage medium may reside in an ASIC. The software module can be stored in the device's memory or in a memory card that can be inserted into the device. For example, if the device uses a large-capacity MEGA-SIM card or a large-capacity flash memory device, the software module may be stored in the MEGA-SIM card or a large-capacity flash memory device.
针对附图中描述的功能方框中的一个或多个和/或功能方框的一个或多个组合,可以实现为用于执行本发明实施例所描述功能的通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件或者其任意适当组合。针对附图描述的功能方框中的一个或多个和/或功能方框的一个或多个组合,还可以实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、与DSP通信结合的一个或多个微处理器或者任何其它这种配置。With regard to one or more of the functional blocks and / or one or more combinations of the functional blocks described in the drawings, it may be implemented as a general-purpose processor or a digital signal processor for performing the functions described in the embodiments of the present invention. (DSP), application specific integrated circuit (ASIC), field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or any suitable combination thereof. One or more of the functional blocks and / or one or more combinations of the functional blocks described with reference to the drawings may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors Processor, one or more microprocessors in conjunction with DSP communications, or any other such configuration.
以上结合具体的实施方式对本发明进行了描述,但本领域技术人员应该清楚,这些描述都是示例性的,并不是对本发明保护范围的限制。本领域技术人员可以根据本发明的精神和原理对本发明做出各种变型和修改,这些变型和修改也在本发明的范围内。The present invention has been described above with reference to specific embodiments, but it should be clear to those skilled in the art that these descriptions are all exemplary and do not limit the scope of protection of the present invention. Those skilled in the art can make various variations and modifications to the present invention according to the spirit and principle of the present invention, and these variations and modifications are also within the scope of the present invention.
Claims (27)
- 一种可编程逻辑控制器的激活方法,应用于管理设备,其中,所述方法包括:A method for activating a programmable logic controller is applied to a management device, wherein the method includes:从可编程逻辑控制器读取所述可编程逻辑控制器的识别码;将所述可编程逻辑控制器的识别码发送给服务器设备,所述服务器设备在所述识别码为未激活状态时生成对应所述识别码的激活码、返回所述激活码并将所述识别码标记为已激活状态;Reading the programmable logic controller's identification code from a programmable logic controller; sending the programmable logic controller's identification code to a server device, the server device generating when the identification code is in an inactive state Corresponding to the activation code of the identification code, returning the activation code, and marking the identification code as an activated state;接收所述服务器设备返回的所述激活码;将所述激活码发送给所述可编程逻辑控制器进行保存。Receiving the activation code returned by the server device; sending the activation code to the programmable logic controller for storage.
- 根据权利要求1所述的方法,其中,所述服务器设备在所述识别码为已激活状态,并且所述识别码对应的激活码没有变更的情况下,返回所述识别码对应的激活码和无变更请求的信息;所述方法还包括:The method according to claim 1, wherein the server device returns an activation code corresponding to the identification code and an activation code corresponding to the identification code when the identification code is activated and the activation code corresponding to the identification code is not changed. No change request information; the method further includes:接收所述服务器设备返回的所述激活码和无变更请求的信息;对所述可编程逻辑控制器进行验证。Receiving the activation code and no change request information returned by the server device; verifying the programmable logic controller.
- 根据权利要求2所述的方法,其中,对所述可编程逻辑控制器进行验证,包括:The method of claim 2, wherein verifying the programmable logic controller comprises:从所述可编程逻辑控制器读取所述可编程逻辑控制器保存的激活码;Reading the activation code saved by the programmable logic controller from the programmable logic controller;将从所述服务器设备接收到的激活码与从所述可编程逻辑控制器读取到的激活码进行比较,如果两者一致,则验证通过,否则验证失败。The activation code received from the server device is compared with the activation code read from the programmable logic controller. If they are the same, the verification is passed, otherwise the verification fails.
- 根据权利要求2所述的方法,其中,对所述可编程逻辑控制器进行验证,包括:The method of claim 2, wherein verifying the programmable logic controller comprises:将从所述服务器设备接收到的激活码发送给所述可编程逻辑控制器,所述可编程逻辑控制器对保存的激活码与接收到的来自所述服务器设备的激活码进行比较,如果两者一致,则返回验证成功信息,否则返回验证失败信息;Sending the activation code received from the server device to the programmable logic controller, and the programmable logic controller compares the saved activation code with the received activation code from the server device. If it is the same, it returns the verification success message, otherwise it returns the verification failure message;接收所述可编程逻辑控制器返回的所述验证成功信息或所述验证失败信息,如果接收到所述验证成功信息则验证通过,如果接收到所述验证失败信息则验证失败。Receiving the verification success information or the verification failure information returned by the programmable logic controller; if the verification success information is received, the verification is passed; if the verification failure information is received, the verification fails.
- 根据权利要求1所述的方法,其中,所述服务器设备在所述识别码为已激活状态,并且所述识别码对应的激活码有变更的情况下,返回新的激活码和有变更请求的信息,所述方法还包括:The method according to claim 1, wherein when the identification code is activated and the activation code corresponding to the identification code is changed, a new activation code and a request for a change are returned. Information, the method further includes:接收所述服务器设备返回的所述新的激活码和所述有变更请求的信息;Receiving the new activation code and the change request information returned by the server device;将所述新的激活码发送给所述可编程逻辑控制器进行更新;Sending the new activation code to the programmable logic controller for updating;将激活码已变更的信息发送给所述服务器设备,所述服务器设备将所述识别码对应的激活码的变更请求改为无变更请求。Sending the information that the activation code has been changed to the server device, and the server device changes the request for changing the activation code corresponding to the identification code to a request for no change.
- 根据权利要求5所述的方法,其中,将所述新的激活码发送给所述可编程逻辑控制器之前,所述方法还包括:The method according to claim 5, wherein before sending the new activation code to the programmable logic controller, the method further comprises:从所述可编程逻辑控制器读取所述可编程逻辑控制器保存的激活码,在所述激活码与所述新的激活码不一致的情况下,将所述新的激活码发送给所述可编程逻辑控制器进行更新。Read the activation code stored by the programmable logic controller from the programmable logic controller, and send the new activation code to the new activation code if the activation code is inconsistent with the new activation code The programmable logic controller is updated.
- 一种可编程逻辑控制器的激活方法,应用于服务器设备,其中,所述方法包括:A programmable logic controller activation method is applied to a server device, wherein the method includes:从管理设备接收可编程逻辑控制器的识别码;Receiving the identification code of the programmable logic controller from the management device;根据所述可编程逻辑控制器的出厂数据检查所述识别码的激活状态;Checking the activation state of the identification code according to the factory data of the programmable logic controller;在所述识别码为未激活状态时,生成对应所述识别码的激活码并发送给所述管理设备,并将所述识别码标记为已激活状态;When the identification code is in an inactive state, generating an activation code corresponding to the identification code and sending it to the management device, and marking the identification code as an activated state;在所述识别码为已激活状态时,将所述识别码对应的激活码发送给所述管理设备。When the identification code is activated, an activation code corresponding to the identification code is sent to the management device.
- 根据权利要求7所述的方法,其中,在所述识别码为已激活状态时,如果所述识别码对应的激活码没有变更,则将所述激活码和无变更请求的信息发送给所述管理设备。The method according to claim 7, wherein, when the identification code is activated, if the activation code corresponding to the identification code has not changed, sending the activation code and information without a change request to the Manage devices.
- 根据权利要求7所述的方法,其中,在所述识别码为已激活状态时,如果所述识别码对应的激活码有变更,则将新的激活码和有变更请求的信息发送给所述管理设备。The method according to claim 7, wherein when the identification code is activated, if the activation code corresponding to the identification code is changed, a new activation code and information with a change request are sent to the Manage devices.
- 根据权利要求9所述的方法,其中,所述方法还包括:The method according to claim 9, wherein the method further comprises:从所述管理设备接收激活码已变更的信息;Receiving information that the activation code has been changed from the management device;将所述识别码对应的激活码的变更请求改为无变更请求。The change request of the activation code corresponding to the identification code is changed to no change request.
- 一种可编程逻辑控制器的操作方法,应用于可编程逻辑控制器,其中,所述方法包括:A method of operating a programmable logic controller is applied to a programmable logic controller, wherein the method includes:从管理设备接收识别码读取请求;Receiving an identification code read request from a management device;将所述可编程逻辑控制器的识别码发送给所述管理设备;Sending the identification code of the programmable logic controller to the management device;从所述管理设备接收所述识别码对应的激活码;Receiving an activation code corresponding to the identification code from the management device;保存所述激活码。Save the activation code.
- 根据权利要求11所述的方法,其中,所述方法还包括:The method according to claim 11, wherein the method further comprises:从所述管理设备接收激活码读取请求;Receiving an activation code reading request from the management device;将保存的所述激活码发送给所述管理设备,所述管理设备将所述激活码与从服务器设备接收到的激活码进行比较,如果两者一致,则认为验证成功,否则认为验证失败。Sending the saved activation code to the management device, and the management device compares the activation code with the activation code received from the server device, and if the two are consistent, the verification is considered successful, otherwise the verification is considered failed.
- 根据权利要求11所述的方法,其中,所述方法还包括:The method according to claim 11, wherein the method further comprises:从所述管理设备接收所述识别码对应的激活码;Receiving an activation code corresponding to the identification code from the management device;将接收到的所述激活码与保存的激活码进行比较,如果两者一致则认为验证成功,生成验证成功信息发送给所述管理设备;否则认为验证失败,生成验证失败信息发送给所述管理设备。The received activation code is compared with the saved activation code. If they are the same, the verification is considered to be successful and a verification success message is generated and sent to the management device; otherwise, the verification is considered to be failed and the verification failure information is generated and sent to the management device.
- 一种可编程逻辑控制器的激活装置,配置于管理设备,其中,所述装置包括:An activation device of a programmable logic controller configured in a management device, wherein the device includes:第一读取单元,其从可编程逻辑控制器读取所述可编程逻辑控制器的识别码;A first reading unit that reads an identification code of the programmable logic controller from a programmable logic controller;第一发送单元,其将所述可编程逻辑控制器的识别码发送给服务器设备,所述服务器设备在所述识别码为未激活状态时生成对应所述识别码的激活码、返回所述激活码并将所述识别码标记为已激活状态;A first sending unit that sends an identification code of the programmable logic controller to a server device, where the server device generates an activation code corresponding to the identification code when the identification code is in an inactive state, and returns the activation code Code and mark the identification code as an activated state;第一接收单元,其接收所述服务器设备返回的所述激活码;所述第一发送单元将所述激活码发送给所述可编程逻辑控制器进行保存。A first receiving unit receives the activation code returned by the server device; the first sending unit sends the activation code to the programmable logic controller for storage.
- 根据权利要求14所述的装置,其中,所述服务器设备在所述识别码为已激活状态,并且所述识别码对应的激活码没有变更的情况下,返回所述识别码对应的激活码和无变更请求的信息;The apparatus according to claim 14, wherein the server device returns the activation code and No change request information;所述第一接收单元接收所述服务器设备返回的所述激活码和无变更请求的信息;所述装置还包括:Receiving, by the first receiving unit, the activation code and no change request information returned by the server device; the apparatus further includes:验证单元,其对所述可编程逻辑控制器进行验证。A verification unit that verifies the programmable logic controller.
- 根据权利要求15所述的装置,其中,所述验证单元包括:The apparatus according to claim 15, wherein the verification unit comprises:第二读取单元,其从所述可编程逻辑控制器读取所述可编程逻辑控制器保存的激活码;A second reading unit, which reads an activation code saved by the programmable logic controller from the programmable logic controller;比较单元,将从所述服务器设备接收到的激活码与从所述可编程逻辑控制器读取 到的激活码进行比较,如果两者一致,则验证通过,否则验证失败。The comparison unit compares the activation code received from the server device with the activation code read from the programmable logic controller. If they are the same, the verification is passed, otherwise the verification fails.
- 根据权利要求15所述的装置,其中,所述验证单元包括:The apparatus according to claim 15, wherein the verification unit comprises:第二发送单元,其将从所述服务器设备接收到的激活码发送给所述可编程逻辑控制器,所述可编程逻辑控制器对保存的激活码与接收到的来自所述服务器设备的激活码进行比较,如果两者一致,则返回验证成功信息,否则返回验证失败信息;A second sending unit, which sends the activation code received from the server device to the programmable logic controller, where the programmable logic controller performs the saved activation code and the received activation from the server device Code comparison, if the two are the same, return the verification success message, otherwise return the verification failure message;第二接收单元,其接收所述可编程逻辑控制器返回的所述验证成功信息或所述验证失败信息,如果接收到所述验证成功信息则验证通过,如果接收到所述验证失败信息则验证失败。A second receiving unit that receives the verification success information or the verification failure information returned by the programmable logic controller, and passes verification if the verification success information is received, and verifies if the verification failure information is received failure.
- 根据权利要求14所述的装置,其中,所述服务器设备在所述识别码为已激活状态,并且所述识别码对应的激活码有变更的情况下,返回新的激活码和有变更请求的信息;The apparatus according to claim 14, wherein the server device returns a new activation code and a request for a change when the identification code is activated and the activation code corresponding to the identification code is changed. information;所述第一接收单元接收所述服务器设备返回的所述新的激活码和所述有变更请求的信息;Receiving, by the first receiving unit, the new activation code and the change request information returned by the server device;所述第一发送单元将所述新的激活码发送给所述可编程逻辑控制器进行更新;Sending, by the first sending unit, the new activation code to the programmable logic controller for updating;所述第一接收单元将激活码已变更的信息发送给所述服务器设备,所述服务器设备将所述识别码对应的激活码的变更请求改为无变更请求。The first receiving unit sends information that the activation code has been changed to the server device, and the server device changes the request for changing the activation code corresponding to the identification code to a request for no change.
- 根据权利要求18所述的装置,其中,The apparatus according to claim 18, wherein:所述第一读取单元在所述第一发送单元将所述新的激活码发送给所述可编程逻辑控制器之前,从所述可编程逻辑控制器读取所述可编程逻辑控制器保存的激活码,所述第一发送单元在所述激活码与所述新的激活码不一致的情况下,将所述新的激活码发送给所述可编程逻辑控制器进行更新。Before reading, by the first reading unit, the programmable logic controller from the programmable logic controller before the first sending unit sends the new activation code to the programmable logic controller; If the activation code is inconsistent with the new activation code, the first sending unit sends the new activation code to the programmable logic controller for updating.
- 一种可编程逻辑控制器的激活装置,配置于服务器设备,其中,所述装置包括:An activation device of a programmable logic controller configured in a server device, wherein the device includes:接收单元,其从管理设备接收可编程逻辑控制器的识别码;A receiving unit that receives an identification code of a programmable logic controller from a management device;检查单元,其根据所述可编程逻辑控制器的出厂数据检查所述识别码的激活状态;A checking unit that checks the activation status of the identification code according to the factory data of the programmable logic controller;处理单元,其在所述识别码为未激活状态时,生成对应所述识别码的激活码并发送给所述管理设备,并将所述识别码标记为已激活状态;在所述识别码为已激活状态时,将所述识别码对应的激活码发送给所述管理设备。A processing unit, when the identification code is in an inactive state, generating an activation code corresponding to the identification code and sending it to the management device, and marking the identification code as an activated state; when the identification code is When activated, the activation code corresponding to the identification code is sent to the management device.
- 根据权利要求20所述的装置,其中,在所述识别码为已激活状态时,如果所述识别码对应的激活码没有变更,则所述处理单元将所述激活码和无变更请求的信息发送给所述管理设备。The device according to claim 20, wherein, when the identification code is activated, if the activation code corresponding to the identification code has not changed, the processing unit includes the activation code and information of no change request To the management device.
- 根据权利要求20所述的装置,其中,在所述识别码为已激活状态时,如果所述识别码对应的激活码有变更,则所述处理单元将新的激活码和有变更请求的信息发送给所述管理设备。The device according to claim 20, wherein, when the identification code is activated, if the activation code corresponding to the identification code is changed, the processing unit updates the new activation code and the information with a change request To the management device.
- 根据权利要求22所述的装置,其中,The apparatus according to claim 22, wherein:所述接收单元还从所述管理设备接收激活码已变更的信息;The receiving unit further receives information that the activation code has been changed from the management device;所述处理单元将所述识别码对应的激活码的变更请求改为无变更请求。The processing unit changes a change request of the activation code corresponding to the identification code to a no change request.
- 一种可编程逻辑控制器的操作装置,配置于可编程逻辑控制器,其中,所述装置包括:An operating device of a programmable logic controller is configured in the programmable logic controller, wherein the device includes:接收单元,其从管理设备接收识别码读取请求;A receiving unit that receives an identification code read request from a management device;发送单元,其将所述可编程逻辑控制器的识别码发送给所述管理设备;A sending unit that sends an identification code of the programmable logic controller to the management device;所述接收单元还从所述管理设备接收所述识别码对应的激活码;The receiving unit further receives an activation code corresponding to the identification code from the management device;保存单元,其保存所述激活码。A saving unit that saves the activation code.
- 根据权利要求24所述的装置,其中,The apparatus according to claim 24, wherein:所述接收单元还从所述管理设备接收激活码读取请求;The receiving unit further receives an activation code reading request from the management device;所述发送单元还将保存的所述激活码发送给所述管理设备,所述管理设备将所述激活码与从服务器设备接收到的激活码进行比较,如果两者一致,则认为验证成功,否则认为验证失败。The sending unit also sends the saved activation code to the management device, and the management device compares the activation code with the activation code received from the server device, and if the two are consistent, the verification is considered successful, Otherwise, the verification is considered to have failed.
- 根据权利要求24所述的装置,其中,所述接收单元还从所述管理设备接收所述识别码对应的激活码;所述装置还包括:The apparatus according to claim 24, wherein the receiving unit further receives an activation code corresponding to the identification code from the management device; the apparatus further comprises:验证单元,其将接收到的所述激活码与保存的激活码进行比较,如果两者一致则认为验证成功,生成验证成功信息发送给所述管理设备;否则认为验证失败,生成验证失败信息发送给所述管理设备。The verification unit compares the received activation code with the saved activation code. If the two are consistent, it considers the verification successful and generates verification success information and sends it to the management device; otherwise, it considers the verification failed and generates verification failure information to send To the management device.
- 一种可编程逻辑控制器系统,其中,所述可编程逻辑控制器系统包括:管理设备、可编程逻辑控制器以及服务器设备,所述管理设备包括权利要求14-19任一项所述的装置,所述可编程逻辑控制器包括权利要求24-26任一项所述的装置,所述服务器设备包括权利要求20-23任一项所述的装置。A programmable logic controller system, wherein the programmable logic controller system includes a management device, a programmable logic controller, and a server device, and the management device includes the device according to any one of claims 14 to 19 The programmable logic controller includes the device according to any one of claims 24-26, and the server device includes the device according to any one of claims 20-23.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2021506557A JP7156499B2 (en) | 2018-09-29 | 2019-09-10 | Programmable logic controller activation method, device and system |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811147046.0 | 2018-09-29 | ||
CN201811147046.0A CN110968841B (en) | 2018-09-29 | 2018-09-29 | Activation method, device and system of programmable logic controller |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020063328A1 true WO2020063328A1 (en) | 2020-04-02 |
Family
ID=69951172
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/105144 WO2020063328A1 (en) | 2018-09-29 | 2019-09-10 | Activation method, apparatus and system for programmable logic controller |
Country Status (3)
Country | Link |
---|---|
JP (1) | JP7156499B2 (en) |
CN (1) | CN110968841B (en) |
WO (1) | WO2020063328A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114268502A (en) * | 2021-12-24 | 2022-04-01 | 北京深思数盾科技股份有限公司 | Intelligent device activation method, server, terminal device and intelligent device |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113204187B (en) * | 2020-06-30 | 2023-05-09 | 欧姆龙(上海)有限公司 | Control system and control method thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101106771A (en) * | 2006-07-10 | 2008-01-16 | 王磊 | Mobile phone software encryption and verification method |
CN101777105A (en) * | 2010-01-25 | 2010-07-14 | 上海北大方正科技电脑系统有限公司 | Computer booting anti-counterfeit authentication method based on BIOS |
CN103577744A (en) * | 2012-08-08 | 2014-02-12 | 上海赤炫信息科技有限公司 | Network on-line activating mode for Android mobile internet equipment |
CN106094708A (en) * | 2016-07-07 | 2016-11-09 | 揭阳市易捷五金机电有限公司 | PLC remote on-line monitoring method, system, monitor terminal and remote server |
US20170006027A1 (en) * | 2013-09-13 | 2017-01-05 | Aquabit Spirals Inc. | Tag Management System, Tag Management Method, Information Provision System, and Information Provision Method, as well as Devices and Tag Used Therefor |
CN107729761A (en) * | 2017-10-30 | 2018-02-23 | 青岛海信电器股份有限公司 | A kind of Activiation method of encryption device, encryption device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8032181B2 (en) * | 2007-09-01 | 2011-10-04 | Apple Inc. | Service provider activation with subscriber identity module policy |
CN103023876B (en) * | 2012-11-22 | 2016-05-04 | 中国科学院声学研究所 | A kind of network terminal and safety certification thereof, registration activation method, server |
US20160180103A1 (en) * | 2014-12-18 | 2016-06-23 | Electrolux Home Products, Inc. | System, method, apparatus, and computer program product for activating a software functionality on an appliance |
CN106993203B (en) * | 2017-03-08 | 2020-06-30 | 广州视源电子科技股份有限公司 | Television activation method and system |
-
2018
- 2018-09-29 CN CN201811147046.0A patent/CN110968841B/en active Active
-
2019
- 2019-09-10 WO PCT/CN2019/105144 patent/WO2020063328A1/en active Application Filing
- 2019-09-10 JP JP2021506557A patent/JP7156499B2/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101106771A (en) * | 2006-07-10 | 2008-01-16 | 王磊 | Mobile phone software encryption and verification method |
CN101777105A (en) * | 2010-01-25 | 2010-07-14 | 上海北大方正科技电脑系统有限公司 | Computer booting anti-counterfeit authentication method based on BIOS |
CN103577744A (en) * | 2012-08-08 | 2014-02-12 | 上海赤炫信息科技有限公司 | Network on-line activating mode for Android mobile internet equipment |
US20170006027A1 (en) * | 2013-09-13 | 2017-01-05 | Aquabit Spirals Inc. | Tag Management System, Tag Management Method, Information Provision System, and Information Provision Method, as well as Devices and Tag Used Therefor |
CN106094708A (en) * | 2016-07-07 | 2016-11-09 | 揭阳市易捷五金机电有限公司 | PLC remote on-line monitoring method, system, monitor terminal and remote server |
CN107729761A (en) * | 2017-10-30 | 2018-02-23 | 青岛海信电器股份有限公司 | A kind of Activiation method of encryption device, encryption device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114268502A (en) * | 2021-12-24 | 2022-04-01 | 北京深思数盾科技股份有限公司 | Intelligent device activation method, server, terminal device and intelligent device |
Also Published As
Publication number | Publication date |
---|---|
CN110968841B (en) | 2023-03-10 |
JP7156499B2 (en) | 2022-10-19 |
CN110968841A (en) | 2020-04-07 |
JP2021533503A (en) | 2021-12-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI726573B (en) | Block chain-based data compression and query method and device and electronic equipment | |
US10698678B2 (en) | Method for online updating firmware of complex programmable logic device | |
US7240194B2 (en) | Systems and methods for distributing trusted certification authorities | |
WO2020063328A1 (en) | Activation method, apparatus and system for programmable logic controller | |
US9965599B2 (en) | Function setting method | |
WO2020092809A1 (en) | Monitoring device components using distributed ledger | |
US20170364406A1 (en) | Security patch tool | |
CN108491466B (en) | Electronic device, access instruction information acquisition method, and storage medium | |
JP6861739B2 (en) | Embedded device and firmware update method | |
US10489137B1 (en) | Software verification system and methods | |
TWI599906B (en) | Program update device, complex cell device, update decision program product and program update method | |
WO2021171906A1 (en) | Information processing device, and program starting method | |
WO2016177075A1 (en) | Method of checking associative relationship of service data, device and readable storage medium utilizing same | |
CN106845164B (en) | Network-based software authorization method | |
CN109002317B (en) | PCBA firmware upgrading method and system and PCBA | |
TWI497319B (en) | Update method of baseboard management controller | |
WO2022082360A1 (en) | Digital asset transfer system | |
CN112035495B (en) | Data synchronization method, device, server and storage medium | |
TW202340952A (en) | Password management method for bios and bmc | |
JP2022021457A (en) | Information processing program, information processing method and information processing device | |
JP5379054B2 (en) | Manufacturing operation verification environment system, manufacturing operation verification method, and manufacturing operation verification program | |
TW202343225A (en) | Method and system for submission of electronic programming code | |
TW202013181A (en) | Method for updating firmware of complex programmable logic device | |
JP7579480B2 (en) | Electronic control device and authentication method | |
WO2016062080A1 (en) | Profile protecting method and device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19865655 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2021506557 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19865655 Country of ref document: EP Kind code of ref document: A1 |