Hardware encryption method for LED intelligent control system

文档序号:1159644 发布日期:2020-09-15 浏览:7次 中文

阅读说明:本技术 一种led智能控制系统硬件加密方法 (Hardware encryption method for LED intelligent control system ) 是由 陈义忠 于 2020-07-03 设计创作,主要内容包括:本发明公开了一种LED智能控制系统硬件加密方法,其包括以下步骤:LED智能控制系统的微控制单元获取加密因子,所述加密因子自微控制单元中的EEPROM位置获取,所述加密因子在微控制单元经算法运算并存储为第一运算结果;步骤S1中的加密因子传送至LED智能控制系统的FPGA,所述加密因子在FPGA经算法运算并存储为第二运算结果;比对第一运算结果与第二运算结果一致性;若运算结果一致,则硬件加密解除;若运算结果不一致,则硬件保持加密状态。本发明所述LED智能控制系统硬件加密方法,其结构简单,构思巧妙,通过微控制单元和FPGA的结合,实现了控制系统的硬件加密,有效防止LED智能控制系统的程序被盗用,具有良好的推广价值。(The invention discloses a hardware encryption method for an LED intelligent control system, which comprises the following steps: the method comprises the steps that a micro control unit of the LED intelligent control system obtains an encryption factor, the encryption factor is obtained from an EEPROM (electrically erasable programmable read-only memory) position in the micro control unit, and the encryption factor is subjected to algorithm operation in the micro control unit and stored as a first operation result; the encryption factor in the step S1 is transmitted to an FPGA of the LED intelligent control system, and the encryption factor is subjected to algorithm operation in the FPGA and stored as a second operation result; comparing the consistency of the first operation result and the second operation result; if the operation results are consistent, the hardware encryption is released; if the operation results are not consistent, the hardware keeps the encryption state. The hardware encryption method of the LED intelligent control system has the advantages of simple structure and ingenious conception, realizes the hardware encryption of the control system through the combination of the micro control unit and the FPGA, effectively prevents the program of the LED intelligent control system from being stolen, and has good popularization value.)

1. A hardware encryption method for an LED intelligent control system is characterized by comprising the following steps:

s1, the micro control unit of the LED intelligent control system acquires an encryption factor, the encryption factor is acquired from an EEPROM position in the micro control unit, and the encryption factor is subjected to algorithm operation in the micro control unit and is stored as a first operation result;

s2, transmitting the encryption factor in the step S1 to an FPGA of the LED intelligent control system, wherein the encryption factor is subjected to algorithm operation in the FPGA and is stored as a second operation result;

s3, comparing the consistency of the first operation result and the second operation result;

s4, if the operation results are consistent, the hardware encryption is released;

s5, if the calculation results do not match, the hardware maintains the encrypted state.

2. The LED intelligent control system hardware encryption method of claim 1, wherein in step S1, the algorithm is addition, subtraction, multiplication, division, exclusive and/or AND.

3. The LED intelligent control system hardware encryption method of claim 1, wherein the algorithm in step S2 is identical to the algorithm in step S1.

4. The LED intelligent control system hardware encryption method of claim 1, wherein in step S2, the encryption factor is transmitted to FPGA through I2C interface.

5. The LED intelligent control system hardware encryption method of claim 1, wherein the encryption factor is a location address.

6. The LED intelligent control system hardware encryption method of claim 5, wherein the first operation result in the step S1 is located in an encryption factor of the next encryption.

7. The encryption method for the hardware of the LED intelligent control system according to claim 1, wherein the result of the encryption factor after algorithm operation is stored as the encryption factor for the next startup.

Technical Field

The invention belongs to the technical field of intelligent control of lamps, and relates to a hardware encryption method for an LED intelligent control system.

Background

The LED intelligent control system is an illumination control system which utilizes advanced electromagnetic voltage regulation and electronic induction technology, takes public illumination unified grid intelligence as a platform, monitors and tracks power supply in real time, automatically and smoothly regulates the voltage and current amplitude of a circuit, improves extra power consumption caused by unbalanced load in an illumination circuit, improves power factors, reduces the working temperature of lamps and circuits and achieves the purpose of optimizing power supply.

The traditional large-scale LED intelligent control system is controlled based on an FPGA (field programmable gate array), particularly ALTERA FPGA is mostly operated and configured and started from an EPCS (electronic product control system), the EPCS does not have an encryption protection function, and a program is easy to steal and use.

Therefore, it is necessary to design a hardware encryption method for an LED intelligent control system to solve the existing technical problems.

Disclosure of Invention

The hardware encryption method for the LED intelligent control system is simple in structure and ingenious in conception, realizes hardware encryption of the control system through the combination of the micro control unit and the FPGA, effectively prevents programs of the LED intelligent control system from being stolen, and has good popularization value.

In order to solve the technical problem, the hardware encryption method of the LED intelligent control system provided by the invention comprises the following steps:

s1, the micro control unit of the LED intelligent control system acquires an encryption factor, the encryption factor is acquired from an EEPROM position in the micro control unit, and the encryption factor is subjected to algorithm operation in the micro control unit and is stored as a first operation result;

s2, transmitting the encryption factor in the step S1 to an FPGA of the LED intelligent control system, wherein the encryption factor is subjected to algorithm operation in the FPGA and is stored as a second operation result;

s3, comparing the consistency of the first operation result and the second operation result;

s4, if the operation results are consistent, the hardware encryption is released;

s5, if the calculation results do not match, the hardware maintains the encrypted state.

In some embodiments, in step S1, the encryption factor is obtained from an EEPROM location in the micro control unit.

In some embodiments, in step S1, the algorithm is addition, subtraction, multiplication, division, exclusive and/or and.

In some embodiments, the algorithm in step S2 is consistent with the algorithm in step S1.

In some embodiments, the encryption factor is communicated to the FPGA through the I2C interface in step S2.

In some embodiments, the encryption factor is a location address.

In some embodiments, the result of the first operation in step S1 is located in the next encrypted encryption factor.

In some embodiments, the result of the arithmetic operation on the encryption factor is stored as the encryption factor for the next boot.

The invention has the beneficial effects that:

the hardware encryption method for the LED intelligent control system provided by the invention has the advantages that the structure is simple, the conception is ingenious, the hardware encryption of the control system is realized through the combination of the micro control unit and the FPGA, and the program of the LED intelligent control system is effectively prevented from being stolen.

Drawings

The above advantages of the present invention will become more apparent and more readily appreciated from the detailed description set forth below when taken in conjunction with the drawings, which are intended to be illustrative, not limiting, of the invention and in which:

FIG. 1 is a flow chart of a hardware encryption method for an LED intelligent control system according to the present invention.

Detailed Description

Fig. 1 is a related schematic diagram of a hardware encryption method for an LED intelligent control system according to the present application, and the present invention is described in detail below with reference to the following specific embodiments and the accompanying drawings.

The examples described herein are specific embodiments of the present invention, are intended to be illustrative and exemplary in nature, and are not to be construed as limiting the scope of the invention. In addition to the embodiments described herein, those skilled in the art will be able to employ other technical solutions which are obvious based on the disclosure of the claims and the specification of the present application, and these technical solutions include technical solutions which make any obvious replacement or modification for the embodiments described herein.

The drawings in the present specification are schematic views to assist in explaining the concept of the present invention, and schematically show the shapes of respective portions and their mutual relationships. It is noted that the drawings are not necessarily to the same scale so as to clearly illustrate the structures of the various elements of the embodiments of the invention. Like reference numerals are used to denote like parts.

As shown in fig. 1, the hardware encryption method for the LED intelligent control system includes the following steps:

s1, the micro control unit of the LED intelligent control system acquires an encryption factor, the encryption factor is acquired from an EEPROM position in the micro control unit, and the encryption factor is subjected to algorithm operation in the micro control unit and is stored as a first operation result;

s2, transmitting the encryption factor in the step S1 to an FPGA of the LED intelligent control system, wherein the encryption factor is subjected to algorithm operation in the FPGA and is stored as a second operation result;

s3, comparing the consistency of the first operation result and the second operation result;

s4, if the operation results are consistent, the hardware encryption is released;

s5, if the calculation results do not match, the hardware maintains the encrypted state.

As an embodiment of the present invention, in step S1, the encryption factor is obtained from an EEPROM location in the micro control unit. The algorithms are addition, subtraction, multiplication, division, difference and/or and. It will be appreciated that the algorithm may be any combination of the above algorithms, such as a combination of addition, multiplication and division, or a combination of subtraction, multiplication and summation.

As another embodiment of the present invention, the algorithm in step S2 is identical to the algorithm in step S1. Only if the algorithm added in the micro control unit is consistent with the algorithm set in the FPGA, the conclusion that the first operation result is consistent with the second operation result can be deduced.

In some embodiments, the encryption factor is communicated to the FPGA through the I2C interface in step S2. I2C is a simple, bidirectional two-wire synchronous serial bus that can ensure the safety of information transmission.

In the invention, the encryption factor is a position address, and the encryption factor calculated by a preset algorithm is still stored in the original position address.

As an embodiment of the present invention, the result of the first operation in step S1 is located in the encryption factor of the next encryption. Therefore, the difficulty of cracking the hardware of the LED intelligent control system can be increased, and the safety of the LED intelligent control system is ensured.

As another embodiment of the invention, the result of the arithmetic operation of the encryption factor is stored as the encryption factor of the next start.

Compared with the prior art, the hardware encryption method for the LED intelligent control system is simple in structure and ingenious in conception, realizes hardware encryption of the control system through the combination of the micro control unit and the FPGA, effectively prevents programs of the LED intelligent control system from being stolen, and has good popularization value.

The present invention is not limited to the above embodiments, and any other products in various forms can be obtained by the teaching of the present invention, but any changes in the shape or structure thereof, which are the same as or similar to the technical solutions of the present invention, fall within the protection scope of the present invention.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种降压型LED驱动芯片及应用

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!