A method and device for encrypting a heat pump unit, a heat pump unit and a storage medium
By reading the unique identification code and generating a multi-factor password for encryption before the heat pump unit leaves the factory, the problem of the complexity of existing heat pump unit encryption methods is solved, realizing the convenience of user use and production testing, and enhancing security and reliability.
Patent Information
- Application Number
- CN202310077822.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-03
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2043-02-03
AI Technical Summary
The existing encryption methods for heat pump units are quite complex, resulting in low convenience for users when they are taken offline, affecting user experience. Furthermore, they are inconvenient in the production and testing stages, impacting production efficiency.
Before the heat pump unit leaves the factory, the unique identification code is read, and a multi-factor password generation algorithm is used to generate a power-on encryption password and a test encryption password to encrypt the unit separately. The unit's encryption and decryption flag in the memory is set to the encrypted state, and decryption control is performed in conjunction with the Internet platform of the server and terminal equipment.
While ensuring the safety of the heat pump unit, the portability of encryption and decryption has been improved, making it convenient for users to use offline, compatible with the convenience of production and testing processes, and enhancing security and reliability.
Smart Images

Figure CN116182431B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of unit control, and in particular to a hot pump unit encryption method and device, a hot pump unit and a storage medium. BACKGROUND
[0002] The current hot pump control and application field has entered the era of Internet intelligence, and the safety and reliability of the hot pump unit are increasingly important. In the current hot pump product market, the encryption control algorithm of the hot pump unit is single, and the hot pump unit password is easily obtained, which poses a great risk to the safe use of the product. Therefore, a more complex encryption algorithm needs to be used to encrypt the hot pump unit.
[0003] However, for a complex encrypted hot pump unit, the offline decryption use scenario is most common in the actual use process of the user, and if the decryption operation is complicated and complex, the convenience is not high, which will result in poor user experience. Moreover, in the production, manufacturing and testing links of the hot pump unit, the complex encryption algorithm will also affect the production and testing process, and affect the production efficiency. SUMMARY
[0004] The present application provides a hot pump unit encryption method and device, a hot pump unit and a storage medium to solve the problem that the existing hot pump unit encryption method is complex and not convenient for the user to use offline and when testing the unit after it leaves the factory. While ensuring the safety of the hot pump unit, the portability of the hot pump unit encryption and decryption is improved.
[0005] According to an aspect of the present application, a hot pump unit encryption method is provided, comprising:
[0006] reading a unique identification code of the hot pump unit when the hot pump unit is powered on for the first time before it leaves the factory;
[0007] generating a start-up encryption password and a test encryption password according to the unique identification code and a multi-factor password generation algorithm, and respectively encrypting the hot pump unit according to the start-up encryption password and the test encryption password;
[0008] setting a unit encryption and decryption flag stored in the memory of the hot pump unit to an encryption state.
[0009] According to another aspect of the present application, a hot pump unit encryption device is provided, comprising:
[0010] An identification code reading module is configured to read a unique identification code of the hot pump unit when the hot pump unit is powered on for the first time before it leaves the factory;
[0011] An encryption module is configured to generate a start-up encryption password and a test encryption password according to the unique identification code and a multi-factor password generation algorithm, and respectively encrypt the hot pump unit according to the start-up encryption password and the test encryption password;
[0012] The first setting module is configured to set a unit encryption and decryption flag stored in a memory of the heat pump unit to an encryption state.
[0013] According to another aspect of the present application, there is provided an electronic device, comprising:
[0014] at least one processor; and
[0015] a memory connected with the at least one processor; wherein
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the encryption method of the heat pump unit according to any one of the embodiments of the present application.
[0017] According to another aspect of the present application, there is provided a computer readable storage medium storing computer instructions for enabling a processor to perform the encryption method of the heat pump unit according to any one of the embodiments of the present application when executed by the processor.
[0018] The technical solution of the embodiments of the present application solves the problem that the encryption method of the existing heat pump unit is relatively complex and is not convenient for use by the user offline and for testing when the heat pump unit is shipped, by reading a unique identification code of the heat pump unit when the heat pump unit is powered on for the first time before being shipped, generating a boot encryption password and a test encryption password according to the unique identification code and a multi-factor password generation algorithm, respectively encrypting the heat pump unit according to the boot encryption password and the test encryption password, and setting a unit encryption and decryption flag stored in a memory of the heat pump unit to an encryption state. The boot encryption password and the test encryption password are automatically generated by using the multi-factor password generation algorithm, thereby ensuring the security of the heat pump unit while improving the portability of encryption and decryption.
[0019] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.
[0021] Figure 1is a flow chart of an encryption method of a heat pump unit provided by the embodiment one of the present application;
[0022] Figure 2A is a flow chart of an encryption method of a heat pump unit provided by the embodiment two of the present application;
[0023] Figure 2B is a flow chart of a decryption method of a heat pump unit provided by the embodiment two of the present application;
[0024] Figure 2C is a flow chart of a decryption method of a test state of a heat pump unit provided by the embodiment two of the present application;
[0025] Figure 3 is a structural schematic diagram of an encryption device of a heat pump unit provided by the embodiment three of the present application;
[0026] Figure 4 is a structural schematic diagram of an electronic device for implementing the encryption method of a heat pump unit of the embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the personnel in the art better understand the present application scheme, the technical scheme in the embodiment of the present application will be described clearly and completely below in combination with the drawings in the embodiment of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by the person skilled in the art without creative labor should belong to the scope of protection of the present application.
[0028] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment one
[0030] Figure 1A flowchart of an encryption method of a heat pump unit is provided for Embodiment One of the present application. The present embodiment can be applied to the encryption of a heat pump unit. The method can be executed by an encryption device of the heat pump unit, which can be realized in the form of hardware and / or software, and can be configured in the heat pump unit. As shown in FIG. 1, the method comprises the following steps. Figure 1
[0031] S110, reading the unique identification code of the heat pump unit at the first power-on before the heat pump unit is shipped.
[0032] The unique identification code of the heat pump unit can be understood as an identification code capable of uniquely identifying the heat pump unit. For example, the unique identification code of the heat pump unit can include the heat pump unit shipment barcode, the heat pump unit control panel ROM ID number, and the product heat pump unit networking module IME number, etc. It can also include a unique identification code formed by permutation and combination of at least two types of identification codes mentioned above, or a self-defined identification code with unique identification function.
[0033] Specifically, after the heat pump unit is completed and manufactured, it will be powered on one or more times before being shipped for testing. At the first power-on before the heat pump unit is shipped, the unique identification code of the heat pump unit is obtained through the control panel of the heat pump unit.
[0034] S120, generating the boot encryption password and the test encryption password according to the unique identification code and the multi-factor password generation algorithm, and respectively encrypting the heat pump unit according to the boot encryption password and the test encryption password.
[0035] The multi-factor password generation algorithm is a password generation algorithm used to generate the password required for encryption or decryption. Since the password generation algorithm is determined by multiple password factors based on specific password calculation logic, it is called a multi-factor password generation algorithm. The boot encryption password is a password for the boot mode entered by the offline user for the mirror use of the heat pump unit. The test encryption password is a password for the test state entered for the test of the heat pump unit before being shipped.
[0036] Specifically, the unique identification code of the heat pump unit is input into the multi-factor password generation algorithm to obtain the boot encryption password and the test encryption password respectively. The boot encryption password is used to encrypt the parameters or software systems used in the boot mode of the heat pump unit. The test encryption password is used to encrypt the parameters or software systems used in the test state of the heat pump unit.
[0037] When decryption of the heat pump unit is required, the responding decryption password can be selected according to the actual application scenario to decrypt the heat pump unit. Specifically, the start-up decryption password can be selected to decrypt the heat pump unit in the start-up working mode, so that the heat pump unit enters the start-up working mode, facilitating normal use of the heat pump unit by the user; or the test decryption password can be selected to decrypt the heat pump unit in the test state, so that the heat pump unit enters the test state, facilitating pre-shipment testing of the heat pump unit.
[0038] For example, the start-up encryption password and the test encryption password can be generated according to the unique identification code and the multi-factor password generation algorithm. The start-up encryption password and the test encryption password can be generated by inputting the unique identification code of the heat pump unit into the same multi-factor password generation algorithm, so that the same start-up encryption password and test encryption password are obtained. Alternatively, the unique identification code of the heat pump unit can be input into a first multi-factor password generation algorithm to obtain the start-up encryption password, and the unique identification code of the heat pump unit can be input into a second multi-factor password generation algorithm to obtain the test encryption password. The start-up encryption password and the test encryption password are different.
[0039] S130, setting the unit encryption and decryption flag stored in the memory of the heat pump unit to an encryption state.
[0040] The unit encryption and decryption flag can be understood as a flag for identifying whether the heat pump unit is currently in an encryption state or an unencrypted state. The unit encryption and decryption flag is stored in the memory inside the heat pump unit.
[0041] Specifically, after the heat pump unit is encrypted by the start-up encryption password and the test encryption password, the unit encryption and decryption flag stored in the memory of the heat pump unit is set to an encryption state, indicating that the heat pump unit is currently in an encryption state.
[0042] For example, the unit encryption and decryption flag is F_unlock_password_ok. F_unlock_password_ok can be set to 0 to indicate that the heat pump unit is currently in an encryption state, or F_unlock_password_ok can be set to 1 to indicate that the heat pump unit is currently in a decryption state. Alternatively, F_unlock_password_ok can be set to 0 to indicate that the heat pump unit is currently in an encryption state, F_unlock_password_ok can be set to 1 to indicate that the heat pump unit is currently in a test decryption state, and F_unlock_password_ok can be set to 2 to indicate that the heat pump unit is currently in a start-up decryption state.
[0043] The technical scheme of the embodiment of the present application comprises the following steps: reading the unique identification code of the heat pump unit when the heat pump unit is powered on for the first time before leaving the factory; generating a start-up encryption password and a test encryption password according to the unique identification code and a multi-factor password generation algorithm, and respectively encrypting the heat pump unit according to the start-up encryption password and the test encryption password; and setting the unit encryption and decryption flag stored in the memory of the heat pump unit to an encryption state. The multi-factor password generation algorithm is used to automatically generate the start-up encryption password and the test encryption password, which solves the problem that the encryption method of the existing heat pump unit is relatively complex and is not convenient for users to use when offline and to test when leaving the factory. Meanwhile, the method is compatible with double encryption control of users and production, which not only guarantees the market security encryption control requirement, but also meets the convenience of internal product production, testing, installation and debugging, etc., and realizes the safety of the heat pump unit while improving the portability of the heat pump unit encryption and decryption.
[0044] Embodiment two
[0045] Figure 2A A flowchart of an encryption method of a heat pump unit provided by the second embodiment of the present application, the embodiment further limits step S120 between the above-mentioned embodiments to "the generation of the start-up encryption password and the test encryption password according to the unique identification code and the multi-factor password generation algorithm comprises: generating the start-up encryption password according to the unique identification code and a first multi-factor password generation algorithm; and generating the test encryption password according to the unique identification code and a second multi-factor password generation algorithm; wherein the first multi-factor password generation algorithm and the second multi-factor password generation algorithm are different".
[0046] As shown in Figure 2A , the method comprises the following steps:
[0047] S210, reading the unique identification code of the heat pump unit when the heat pump unit is powered on for the first time before leaving the factory.
[0048] S220, generating a start-up encryption password according to the unique identification code and a first multi-factor password generation algorithm.
[0049] The first multi-factor password generation algorithm is used to generate the start-up encryption password.
[0050] Specifically, the unique identification code is input into the first multi-factor password generation algorithm to obtain the start-up encryption password Real_code.
[0051] S230, generating a test encryption password according to the unique identification code and a second multi-factor password generation algorithm.
[0052] The second multi-factor password generation algorithm is used to generate the test encryption password, and the first multi-factor password generation algorithm and the second multi-factor password generation algorithm are different. Therefore, the start-up encryption password and the test encryption password are different.
[0053] Specifically, the unique identification code is input into the second multi-factor password generation algorithm to obtain a test encryption password Test_code. Since the first multi-factor password generation algorithm and the second multi-factor password generation algorithm are different, the boot encryption password and the test encryption password are also different, so that the encryption of the boot working mode and the test state of the heat pump unit is independent of each other, and the passwords are not communicated with each other. The safety of the test and use of the heat pump unit is improved.
[0054] S240, the heat pump unit is encrypted according to the boot encryption password and the test encryption password.
[0055] S250, the unit encryption and decryption flag stored in the memory of the heat pump unit is set to an encryption state.
[0056] The technical scheme of the embodiment of the application comprises the following steps: reading a unique identification code of a heat pump unit when the heat pump unit is powered on for the first time before leaving the factory; generating a boot encryption password according to the unique identification code and a first multi-factor password generation algorithm; wherein the first multi-factor password generation algorithm and a second multi-factor password generation algorithm are different; generating a test encryption password according to the unique identification code and the second multi-factor password generation algorithm; encrypting the heat pump unit according to the boot encryption password and the test encryption password; and setting a unit encryption and decryption flag stored in a memory of the heat pump unit to an encryption state. The boot encryption password and the test encryption password are automatically generated by using different multi-factor password generation algorithms, which solves the problem that the encryption method of the existing heat pump unit is relatively complex and is not convenient for use by a user offline and for testing when leaving the factory, further improves the safety of the heat pump unit, and improves the portability of the encryption and decryption of the heat pump unit.
[0057] After the unit encryption and decryption flag of the heat pump unit is set to the encryption state, the heat pump unit can also be decrypted by using a decryption password. The encryption process of the heat pump unit is described in the following embodiments.
[0058] Optionally, after the unit encryption and decryption flag stored in the memory of the heat pump unit is set to the encryption state, the method further comprises the following steps:
[0059] S261, reading the unit encryption and decryption flag stored in the memory when the heat pump unit is powered on after leaving the factory.
[0060] Specifically, the heat pump unit is powered on in a scenario where the heat pump unit leaves the factory and a user needs to boot the heat pump unit for use. After the heat pump unit is powered on, the control board of the heat pump unit reads the unit encryption and decryption flag F_unlock_password_ok stored in the internal memory of the heat pump unit to check whether the heat pump unit is currently in an unencrypted state, i.e., an encryption state.
[0061] S262, in the case that the unit encryption and decryption flag indicates that the heat pump unit is in an encryption state, when the start-up decryption password is obtained, the start-up decryption password is used to unlock the start-up operation mode of the heat pump unit. The start-up decryption password is generated by the server according to the unique identification code and a first multi-factor password generation algorithm. The unique identification code is determined by the server according to the heat pump unit information uploaded by the terminal device.
[0062] In the embodiment, the heat pump unit can be connected with the server to realize information interaction between the heat pump unit and the server, so as to facilitate complex calculation on the server. The server can be a cloud server or other type of server, and the embodiment of the present application does not limit this. The heat pump unit can also be connected with the terminal device to facilitate information interaction between the user and the heat pump unit through the terminal device. The terminal device can be a mobile phone, a tablet computer or a smart gateway, and the embodiment of the present application does not limit this. The connection mode between the heat pump unit and the server and the terminal device can be a wired mode, or a local area network, Bluetooth, WIFI or other wireless connection mode, and the embodiment of the present application does not limit this.
[0063] Specifically, if it is determined according to the unit encryption and decryption flag that the heat pump unit is currently in an encryption state, the heat pump unit requests the server to obtain a start-up decryption password, and the server requests the terminal device to obtain a unique identification code of the heat pump unit after receiving the request. After obtaining the unique identification code sent by the terminal device, the server inputs the unique identification code into a first multi-factor password generation algorithm to generate a start-up decryption password SET_code, and sends the start-up decryption password to the heat pump unit or the terminal device.
[0064] If the start-up decryption password is sent to the heat pump unit, the heat pump unit can directly obtain the start-up decryption password and use the start-up decryption password to unlock the start-up operation mode of the heat pump unit; if the start-up decryption password is directly sent to the terminal device to display the start-up decryption password to the user, the heat pump unit can obtain the start-up decryption password input by the user or sent by the terminal device through the control panel of the heat pump unit, and use the start-up decryption password to unlock the start-up operation mode of the heat pump unit.
[0065] It should be noted that, since the same first multi-factor password generation algorithm is used to generate the start-up decryption password SET_code and the start-up encryption password Real_code, the start-up decryption password and the start-up encryption password are the same.
[0066] The unique identification code of the heat pump unit is determined by the server according to the heat pump unit information uploaded by the terminal device. The specific method can be that the server receives the heat pump unit information uploaded by the user to the heat pump unit through the terminal device, and determines the unique identification code of the heat pump unit by performing information recognition and analysis on the heat pump unit information.
[0067] Exemplarily, the server can send the start-up decryption password to the terminal device in the following manners: through a specific communication frequency band, using a short message verification code, remote control, or other manners to send the start-up decryption password to the client of the terminal device for decryption.
[0068] Exemplarily, the manner of unlocking the start-up operation mode of the heat pump unit by using the start-up decryption password can be that the terminal device directly sends the start-up decryption password to the heat pump unit; after receiving the decryption password SET_code, the heat pump unit compares the decryption password SET_code with the start-up encryption password Real_code. If they are the same, the heat pump unit determines that the decryption password SET_code is the start-up decryption password, and uses the start-up decryption password SET_code to unlock the start-up operation mode of the heat pump unit, so that the heat pump unit enters a normal operation state.
[0069] Optionally, the heat pump unit information includes: a heat pump unit installation site map, a heat pump unit factory bar code, and heat pump unit use reserved use information.
[0070] The heat pump unit installation site map refers to a site map of installing the heat pump unit by the user, and the heat pump unit factory bar code refers to
[0071] Specifically, the user uploads the heat pump unit installation site map, the heat pump unit factory bar code, and the heat pump unit use reserved use information to the server through the terminal device. The server audits whether the heat pump unit is installed correctly according to the heat pump unit installation site map to ensure the safety of the heat pump unit installation; determines the type of the heat pump unit and other information according to the heat pump unit factory bar code, and then obtains the pre-set unique identification code of the heat pump unit, and audits whether the actual use information of the heat pump unit and the recorded heat pump unit use information are consistent according to the heat pump unit use reserved use information, to ensure the subsequent updating, regular maintenance and repair work of each heat pump unit.
[0072] S263、In the unlocked start-up operation mode of the heat pump unit, the unit encryption and decryption flag is set to a decryption state.
[0073] Specifically, after the start-up operation mode of the heat pump unit is unlocked, the unit encryption and decryption flag of the heat pump unit is set to a decryption state, so that after the heat pump unit is powered off and powered on again, the unit encryption and decryption flag is in the decryption state, and therefore the heat pump unit can directly enter the working state without decryption again.
[0074] Optionally, after setting the unit encryption and decryption flag stored in the memory of the heat pump unit to an encryption state, the method further includes:
[0075] S271, when the heat pump unit is powered on, reading the unit encryption and decryption flag stored in the memory.
[0076] Specifically, the test personnel may need to test the heat pump unit before the heat pump unit is shipped, the user or the sales personnel may need to experience or test the heat pump unit before the heat pump unit is sold, and the after-sales installer may need to test the heat pump unit after the heat pump unit is sold. In the above scenarios, the heat pump unit needs to be temporarily decrypted. When the heat pump unit is powered on, the control panel of the heat pump unit reads the unit encryption and decryption flag F_unlock_password_ok stored in the internal memory of the heat pump unit, and checks whether the heat pump unit is currently in an unencrypted state, i.e., an encrypted state.
[0077] S272, in the case where the unit encryption and decryption flag indicates that the heat pump unit is in an encrypted state, when the test decryption password is obtained, it is determined whether the test decryption password is within a valid period according to the cumulative time of the heat pump unit entering the test operation mode.
[0078] The valid period is set to different times according to different test conditions and other information of the heat pump unit.
[0079] Specifically, if it is determined according to the unit encryption and decryption flag that the heat pump unit is currently in an encrypted state, when the decryption password is received, the decryption password and the test encryption password Test_code are compared. If they are the same, the heat pump unit determines that the decryption password SET_code is the test decryption password, and determines whether the test decryption password is within a valid period according to the cumulative time of the heat pump unit entering the test operation mode.
[0080] The way of determining whether the test decryption password is within a valid period according to the cumulative time of the heat pump unit entering the test operation mode is: obtaining the cumulative time of the heat pump unit entering the test operation mode, if the cumulative time is less than or equal to a preset time, it is determined that the test decryption password is within a valid period; if the cumulative time is greater than the preset time, it is determined that the test decryption password is not within a valid period.
[0081] Optionally, the test decryption password directly input by the user is obtained through the control panel or the terminal device of the heat pump unit.
[0082] Optionally, the test decryption password is generated by the server according to the unique identification code sent by the terminal device and the second multi-factor password generation algorithm.
[0083] Specifically, the server obtains the unique identification code of the heat pump unit input on the terminal device, or obtains the unique identification code of the heat pump unit through the heat pump unit information uploaded by the terminal device; inputs the unique identification code of the heat pump unit into the second multi-factor password generation algorithm for generating a test encryption password, obtains a test decryption password same as the test encryption password, and delivers it to the terminal device or the heat pump unit.
[0084] S273, if within the validity period, then based on the test decryption password, the test state of the heat pump unit is decrypted to make the heat pump unit enter the test running mode;
[0085] Specifically, if the test decryption password is within the validity period, the test decryption password SET_code is used to unlock the test state of the heat pump unit, so that the heat pump unit enters the test running mode. Because the test decryption password can also be considered as a temporary decryption password of the heat pump unit.
[0086] S274, when the heat pump unit exceeds the validity period or the heat pump unit is powered off, the heat pump unit is controlled to exit the test running mode and still remains in the encrypted state.
[0087] It should be noted that after the test state of the heat pump unit is unlocked, the heat pump unit can enter an independent test state for pre-shipment, pre-installation and post-installation tests of the heat pump unit. However, the heat pump unit is only in a temporary decryption state, and the encryption and decryption flag F_unlock_password_ok of the unit still remains in the encrypted state. After the heat pump unit exceeds the validity period or is powered off, the heat pump unit is controlled to exit the current test running mode and still remains in the encrypted state. That is, after the heat pump unit exits the current test running mode, the test decryption password needs to be provided next time the heat pump unit is powered on to decrypt the test state of the heat pump unit.
[0088] The present application adopts a multi-factor multi-encryption algorithm, combines a server, an APP background of a terminal device and other Internet platforms for decryption control, strengthens the anti-deciphering mechanism, improves the safety and reliability of the heat pump unit, ensures the safety of user information, and optimizes the intelligent integrated heat pump unit control technology.
[0089] Optionally, the multi-factor password generation algorithm comprises:
[0090] Step 1: generating a password factor according to the unique identification code of at least one type of heat pump unit.
[0091] Illustratively, the password factor is generated by the unique identification code UNIT_CODE of at least one type of heat pump unit. The password factor can be composed of a single unique identification code of the heat pump unit, for example, (1) the password factor 1 is the product heat pump unit factory bar code; (2) the password factor 2 is the product heat pump unit control panel ROM_ID number; (3) the password factor 3 is the product heat pump unit networking module IME number; (4) the password factor 4 is a self-defined unique identification code. The password factor can be composed of a sequence of multiple unique identification codes arranged and combined; the password factor 5 is a sequence of multiple unique identification codes (such as: product heat pump unit factory bar code + product heat pump unit control panel ROM_ID number).
[0092] Step 2: splitting the password factor to obtain a plurality of calculation factors based on a preset factor bit splitting mode.
[0093] For example, the calculation factors are obtained by splitting the password factor by bit, such as: (1) password factor 1 is split to obtain 16 calculation factors of bit0,...bit15; (2) password factor 2 is split to obtain 2 calculation factors of bit0~bit7 and bit8~bit15; (3) password factor 3 is split to obtain 4 calculation factors of bit0~bit3, bit4~bit7, bit8~bit11 and bit12~bit15; (4) password factor 4 is split to obtain n1(n1≥2) calculation factors; (5) password factor 5: the permutation sequence of the multiple unique identification codes is split to obtain n2(n2≥2) calculation factors.
[0094] Step 3: inputting each of the calculation factors into a preset calculation formula to obtain a password; the password includes an encryption password or a decryption password.
[0095] The preset calculation formula is a formula for generating a password based on a password factor, which can be a CRC, MD5, accumulation, or other calculation formula, or a self-defined calculation formula.
[0096] For example, each of the calculation factors obtained by splitting the password factor by bit is input into the preset calculation formula to obtain the password.
[0097] It should be noted that the steps of the multi-factor password generation algorithm can be applied to generate the encryption password or the decryption password required by any of the above embodiments, including: a boot encryption password, a boot decryption password, a test encryption password, and a test decryption password. Therefore, the multi-factor password generation algorithm can be a first multi-factor password generation algorithm for generating a boot encryption password and a boot decryption password, or a second multi-factor password generation algorithm for generating a test encryption password and a test decryption password.
[0098] Figure 2B is a flowchart of a decryption method of a heat pump unit according to an embodiment of the present application. In a specific example, as shown in Figure 2BAs shown, the heat pump unit reads the unit encryption and decryption flag F_unlock_password_ok in the memory through the control panel; it is judged whether the unit encryption and decryption flag indicates that the heat pump unit is in an encrypted state, for example, it is judged whether F_unlock_password_ok == 1, which indicates that the heat pump unit is in an encrypted state, then the display panel of the heat pump unit displays the unencrypted interface, reminding the user to decrypt. And when the server reads the unique identification code of the heat pump unit, based on the unique identification code and the multi-factor password generation algorithm, the corresponding decryption password SET_code is generated, and the decryption password is sent to the terminal device in various ways such as SMS verification code, remote control, etc. The terminal device acquires the decryption password SET_code and sends the decryption password SET_code to the heat pump unit. The heat pump unit judges whether the decryption password SET_code is consistent with the test encryption password Test_code If consistent, the decryption password SET_code is used to decrypt the test mode of the heat pump unit, and the heat pump unit is controlled to enter the test mode. If not consistent, it is further judged whether the decryption password SET_code is consistent with the start-up encryption password Real_code; if not consistent, the unencrypted state is maintained, the display panel displays the unencrypted interface, and the user is reminded to decrypt; if consistent, the decryption password SET_code is used to encrypt the start-up working mode of the heat pump unit, and the heat pump unit is controlled to enter the start-up working mode. In addition, F_unlock_password_ok = 1 is also set and stored in the internal memory of the control panel, so that the heat pump unit remains in the decrypted state.
[0099] Figure 2C is a flowchart of a decryption method of a test state of a heat pump unit provided by Embodiment Two of the present application. In another specific example, as shown in Figure 2C In the case where the unit encryption and decryption flag indicates that the heat pump unit is in an encrypted state, when the test decryption password is acquired, the heat pump unit reads the validity period Test_run_time of the test decryption password in the memory through the control panel, that is, it is judged whether the cumulative time of the heat pump unit entering the test running mode is greater than the validity period (for example, 3 hours). If yes, it indicates that the test decryption password exceeds the validity period, the heat pump unit exits the test running mode, the control panel returns to the interface waiting for decryption again, and the test decryption password is invalid. If not, it indicates that the test decryption password is within the validity period, then the heat pump unit is decrypted based on the test decryption password, enters and remains in the test running mode. It is judged whether the heat pump unit is powered off in the test running mode, if the heat pump unit is powered off, the heat pump unit exits the test running mode, remains in the unencrypted state, and the control panel returns to the interface waiting for decryption again. If the heat pump unit is not powered off, the heat pump unit is decrypted, enters and remains in the test running mode; at the same time, the cumulative time of the heat pump unit entering the test running mode is acquired, and the cumulative time is stored in the internal memory for reading.
[0100] Embodiment three
[0101] Figure 3 A structural schematic diagram of an encryption device of a heat pump unit is provided for embodiment three of the present application. As shown in the figure, the device comprises: Figure 3
[0102] An identification code reading module 310, configured to read a unique identification code of the heat pump unit when the heat pump unit is powered on for the first time before leaving the factory;
[0103] An encryption module 320, configured to generate a start-up encryption password and a test encryption password according to the unique identification code and a multi-factor password generation algorithm, and to encrypt the heat pump unit according to the start-up encryption password and the test encryption password respectively;
[0104] A first setting module 330, configured to set a unit encryption and decryption flag stored in a memory of the heat pump unit to an encryption state.
[0105] Optionally, the encryption module 320 is specifically configured to:
[0106] generate the start-up encryption password according to the unique identification code and a first multi-factor password generation algorithm;
[0107] generate the test encryption password according to the unique identification code and a second multi-factor password generation algorithm;
[0108] wherein the first multi-factor password generation algorithm and the second multi-factor password generation algorithm are different.
[0109] Optionally, the device further comprises:
[0110] A first flag reading module, configured to read the unit encryption and decryption flag stored in the memory when the heat pump unit is powered on after leaving the factory;
[0111] An unlocking module, configured to, when the unit encryption and decryption flag indicates that the heat pump unit is in an encryption state, and when a start-up decryption password is obtained, unlock a start-up working mode of the heat pump unit by using the start-up decryption password, wherein the start-up decryption password is generated by a server according to the unique identification code and a first multi-factor password generation algorithm, and the unique identification code is determined by the server according to heat pump unit information uploaded by a terminal device;
[0112] A second setting module, configured to, after the start-up working mode of the heat pump unit is unlocked, set the unit encryption and decryption flag to a decryption state.
[0113] Optionally, the heat pump unit information comprises a heat pump unit installation site map, a heat pump unit factory leaving barcode and heat pump unit use reserved use information.
[0114] Optionally, the device further comprises:
[0115] A second flag reading module is configured to read the unit encryption / decryption flag stored in the memory when the heat pump unit is powered on before leaving the factory.
[0116] An effective period judgment module is configured to, when the unit encryption / decryption flag indicates that the heat pump unit is in an encrypted state, judge whether the test decryption password is within an effective period according to the cumulative time of the heat pump unit entering the test running mode after the test decryption password is obtained.
[0117] A test state decryption module is configured to, if the test decryption password is within the effective period, perform test state decryption on the heat pump unit based on the test decryption password, so that the heat pump unit enters the test running mode.
[0118] A state recovery module is configured to, when the heat pump unit exceeds the effective period or the heat pump unit is powered off, control the heat pump unit to exit the test running mode and still keep the encrypted state.
[0119] Optionally, the test decryption password is generated by the server according to the unique identification code sent by the terminal device and the second multi-factor password generation algorithm.
[0120] Optionally, the multi-factor password generation algorithm comprises:
[0121] generating a password factor according to the unique identification code of at least one type of heat pump unit;
[0122] splitting the password factor to obtain a plurality of calculation factors based on a preset factor bit splitting mode;
[0123] inputting each calculation factor into a pre-designed calculation formula to obtain a password; the password comprises an encryption password or a decryption password.
[0124] The encryption device of the heat pump unit provided in the embodiments of the present application can perform the encryption method of the heat pump unit provided in any embodiment of the present application, and has the corresponding function modules and beneficial effects of performing the method.
[0125] Embodiment Four
[0126] Figure 4A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0127] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0128] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0129] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the encryption methods of a heat pump unit.
[0130] In some embodiments, the encryption method of the heat pump package can be implemented as a computer program tangibly embodied in a computer readable storage medium, e.g., storage unit 18. In some embodiments, parts or all of the computer program can be loaded and / or installed onto electronic device 10 via, e.g., ROM 12 and / or communication unit 19. When the computer program is loaded onto RAM 13 and executed by processor 11, one or more steps of the encryption method of the heat pump package as described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the encryption method of the heat pump package by other means, e.g., with the aid of firmware.
[0131] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, specially designed application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0132] Computer programs implementing methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed, implements the functions / acts specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0133] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0134] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0135] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), blockchain network, and the Internet.
[0136] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.
[0137] It should be understood that the various forms of flow shown above can be reordered, added to, or have steps deleted. For example, the steps described in the present application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, which are not limited herein.
[0138] The above detailed description does not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method of encrypting a heat pump unit, characterized by, The method comprises: reading a unique identification code of the heat pump unit when the heat pump unit is powered on for the first time before the heat pump unit is shipped, the unique identification code of the heat pump unit being used to uniquely identify the identification code of the heat pump unit; generating a start-up encryption password and a test encryption password according to the unique identification code and a multi-factor password generation algorithm, and respectively encrypting the heat pump unit according to the start-up encryption password and the test encryption password, the start-up encryption password being used to encrypt a user start-up mode of the heat pump unit, and the test encryption password being used to encrypt a factory test mode of the heat pump unit; setting a unit encryption and decryption flag stored in a memory of the heat pump unit to an encryption state; the generating of the start-up encryption password and the test encryption password according to the unique identification code and the multi-factor password generation algorithm comprises: generating the start-up encryption password according to the unique identification code and a first multi-factor password generation algorithm; generating the test encryption password according to the unique identification code and a second multi-factor password generation algorithm; wherein the first multi-factor password generation algorithm and the second multi-factor password generation algorithm are different.
2. The method of claim 1, wherein, after the unit encryption and decryption flag stored in the memory of the heat pump unit is set to the encryption state, further comprising: reading the unit encryption and decryption flag stored in the memory when the heat pump unit is powered on after the heat pump unit is shipped; in a case where the unit encryption and decryption flag indicates that the heat pump unit is in the encryption state, when a start-up decryption password is obtained, unlocking the start-up mode of the heat pump unit by using the start-up decryption password, wherein the start-up decryption password is generated by a server according to the unique identification code and a first multi-factor password generation algorithm, and the unique identification code is determined by the server according to heat pump unit information uploaded by a terminal device; after the start-up mode of the heat pump unit is unlocked, setting the unit encryption and decryption flag to a decryption state.
3. The method of claim 2, wherein, the heat pump unit information comprises: a heat pump unit installation site map, a heat pump unit shipment barcode, and heat pump unit use reserved use information.
4. The method of claim 1, wherein, after the unit encryption and decryption flag stored in the memory of the heat pump unit is set to the encryption state, further comprising: reading the unit encryption and decryption flag stored in the memory when the heat pump unit is powered on before the heat pump unit is shipped; in a case where the unit encryption and decryption flag indicates that the heat pump unit is in the encryption state, when a test decryption password is obtained, judging whether the test decryption password is within a valid period according to an accumulated time of the heat pump unit entering a test running mode; if within the valid period, decrypting the heat pump unit in a test state based on the test decryption password, so that the heat pump unit enters the test running mode; when the heat pump unit exceeds the valid period or the heat pump unit is powered off, controlling the heat pump unit to exit the test running mode and still remain in the encryption state.
5. The method of claim 4, wherein, the test decryption password is generated by a server according to a unique identification code sent by a terminal device and the second multi-factor password generation algorithm.
6. The method according to any one of claims 1-2 and 5, characterized in that, the multi-factor password generation algorithm comprises: generating a password factor according to a unique identification code of at least one type of heat pump unit; splitting the password factor to obtain a plurality of calculation factors based on a preset factor bit splitting manner; The calculation factors are input into a pre-designed calculation formula to obtain a password; the password includes an encryption password or a decryption password.
7. A decryption and encryption device of a heat pump unit, characterized by comprising: The method comprises the steps of: An identification code reading module is configured to read a unique identification code of the heat pump unit when the heat pump unit is powered on for the first time before leaving the factory, the unique identification code of the heat pump unit being used to uniquely identify the identification code of the heat pump unit; An encryption module is configured to generate a start-up encryption password and a test encryption password according to the unique identification code and a multi-factor password generation algorithm, and to encrypt the heat pump unit according to the start-up encryption password and the test encryption password, respectively, the start-up encryption password being used to encrypt a user start-up working mode of the heat pump unit, and the test encryption password being used to encrypt a factory test mode of the heat pump unit; A first setting module is configured to set a unit encryption and decryption flag stored in a memory of the heat pump unit to an encryption state. The encryption module is specifically configured to generate the start-up encryption password according to the unique identification code and a first multi-factor password generation algorithm, and to generate the test encryption password according to the unique identification code and a second multi-factor password generation algorithm, wherein the first multi-factor password generation algorithm and the second multi-factor password generation algorithm are different.
8. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected to the at least one processor in communication; wherein The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the encryption method of the heat pump unit according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for enabling the processor to execute the encryption method of the heat pump unit according to any one of claims 1-6 when executed.
Citation Information
Patent Citations
Household appliance encryption method and device and household appliance
CN106533664A
Multi-split air conditioner debugging method and terminal
CN109974205A