An encryption cable with dynamically set count limit

CN115600260BActive Publication Date: 2026-08-21SHENZHEN LIGHTING PRECISION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211324775.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2026-08-21
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

[0005]本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种动态设置计数限制的加密排线,旨在解决现有技术中排线不具备计数功能,当使用次数过多时,会出现排线损坏,从而影响数据传输的问题,以及排线不具备加密功能,无法防止抄板,不利于版权的保护的问题

Benefits of technology

[0026]有益效果:与现有技术相比,本发明提供了一种动态设置计数限制的加密排线,所述加密排线包括:加密验证模块,与所述加密验证模块耦合连接的硬件ID接口和控制模块。其中,所述控制模块包括计数单元、设置单元和限制单元,通过计数单元记录排线的使用次数,便于产品售后维护,通过限制单元对排线进行次数限制,保证排线质量的稳定性。加密验证模块包括加密验证单元和存储单元,所述加密验证单元上设置有加密IC,所述存储单元上设置有EEPROM存储器,所述EEPROM存储器中分区保存数据参数,通过加密验证模块实现排线两端的加密通信、加密验证,以防止抄板。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115600260B_ABST
    Figure CN115600260B_ABST
Patent Text Reader

Abstract

The application discloses a kind of dynamic setting encryption wiring of count limit, the encryption wiring includes: encryption authentication module, hardware ID interface and control module coupled with the encryption authentication module;Wherein, the control module includes count unit, setting unit and limit unit, the encryption authentication module includes encryption authentication unit and storage unit, encryption IC is set on the encryption authentication unit, EEPROM memory is set on the storage unit, and data parameters are saved in the partition in the EEPROM memory.The encryption communication of the present application can be realized in the both ends of wiring through encryption authentication module, encryption authentication, to prevent copying board, the use frequency of wiring is recorded by count unit, to facilitate product after-sales maintenance, the frequency of wiring is limited by limit unit, to ensure the stability of wiring quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data transmission control, and more specifically to an encrypted ribbon cable with dynamically set counting limits. Background Technology

[0002] Ribbon cables are widely used for data transmission in moving parts and moving areas, such as data cables connecting hard drives and optical drives to motherboards in computers, data cables connecting displays to motherboards in mobile phones, and data cables connecting devices. Ribbon cables offer high assembly reliability and quality, reducing the amount of hardware required for internal connections, such as solder joints, relays, baseboard circuitry, and cables commonly used in traditional electronic packaging. Using ribbon cables provides higher assembly reliability and quality.

[0003] However, due to the flexible and thin nature of ribbon cables, their lifespan is relatively limited. Furthermore, existing ribbon cables lack a counting function, leading to cable damage after excessive use and affecting data transmission. Secondly, existing ribbon cables lack encryption capabilities, failing to prevent reverse engineering and compromising copyright protection.

[0004] Therefore, existing technologies still need to be improved and developed. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide an encrypted ribbon cable with dynamically set counting limits, which addresses the above-mentioned defects of the prior art. This invention aims to solve the problems of existing ribbon cables not having a counting function, which can lead to cable damage when used too many times, thus affecting data transmission, and the lack of encryption function, which makes it impossible to prevent copying and is detrimental to copyright protection.

[0006] The technical solution adopted by this invention to solve the technical problem is as follows:

[0007] This invention provides an encrypted ribbon cable with dynamically set counting limits, wherein the encrypted ribbon cable includes:

[0008] An encryption verification module, a hardware ID interface and a control module coupled to the encryption verification module; wherein, the control module includes a counting unit, a setting unit and a limiting unit, the encryption verification module includes an encryption verification unit and a storage unit, the encryption verification unit is provided with an encryption IC, the storage unit is provided with an EEPROM memory, and the EEPROM memory is partitioned to store data parameters.

[0009] In one implementation, the data parameters include:

[0010] The first ribbon cable ID, the number of times it has been used, and the limit number of times it can be used; wherein, the first ribbon cable ID is a number of pre-stored valid ribbon cable IDs; the number of times it has been used corresponds one-to-one with the first ribbon cable ID and is used to record the number of times the encrypted ribbon cable has been used; the limit number of times it can be used corresponds one-to-one with the first ribbon cable ID and is used to limit the upper limit of the number of times the encrypted ribbon cable can be used.

[0011] In one implementation, the hardware ID interface is used to read the ID of the encrypted ribbon cable and send the ID of the encrypted ribbon cable as a second ribbon cable ID to the encryption verification unit.

[0012] In one implementation, the encryption verification unit is used for:

[0013] Receive the second ribbon cable ID and read the first ribbon cable ID from the EEPROM memory;

[0014] The second ribbon cable ID is compared with the first ribbon cable ID. If the second ribbon cable ID is the same as the first ribbon cable ID, the encrypted ribbon cable is set to an available state. If the second ribbon cable ID is different from the first ribbon cable ID, the encrypted ribbon cable is set to an unavailable state.

[0015] When the encrypted cable is in an available state, the data information transmitted in the encrypted cable is encrypted using an encryption algorithm; wherein, the encryption algorithm includes MD5, SHA1, SHA256, DES, 3DES, AES, RSA and ECC.

[0016] In one implementation, the counting unit is used to calculate the number of times the encrypted cable is used and send the number of times it is used to the setting unit.

[0017] In one implementation, the setting unit is configured to set the number of times used in the data parameters in the EEPROM memory in the storage unit according to the number of times used, and to set the first ribbon cable ID and the limit number of times in the data parameters according to user instructions.

[0018] In one implementation, the restriction unit is used to control the usage rights of the encrypted ribbon cable based on the second ribbon cable ID.

[0019] In one implementation, controlling the usage permissions of the encrypted ribbon cable based on the second ribbon cable ID includes:

[0020] The second ribbon cable ID is matched with the first ribbon cable ID in the data parameters. The number of times the first ribbon cable ID has been used and the number of times the limit has been set are compared to obtain the comparison result.

[0021] Based on the comparison results, the usage permissions of the encrypted cable are controlled.

[0022] In one implementation, controlling the usage rights of the encrypted cable based on the comparison result includes:

[0023] If the comparison result shows that the number of times it has been used is less than the limit number of times, then the usage permission of the encrypted cable corresponding to the second cable ID is set to allow use;

[0024] If the comparison result shows that the number of times it has been used is greater than or equal to the limit number of times, then the usage permission of the encrypted cable corresponding to the second cable ID is set to not be allowed.

[0025] In one implementation, when the usage permission is set to disallowed, the encrypted cable cannot transmit encrypted data.

[0026] Beneficial Effects: Compared with existing technologies, this invention provides an encrypted ribbon cable with dynamically set counting limits. The encrypted ribbon cable includes: an encryption verification module, a hardware ID interface coupled to the encryption verification module, and a control module. The control module includes a counting unit, a setting unit, and a limiting unit. The counting unit records the number of times the ribbon cable is used, facilitating after-sales maintenance. The limiting unit limits the number of uses, ensuring the stability of the ribbon cable's quality. The encryption verification module includes an encryption verification unit and a storage unit. The encryption verification unit is equipped with an encryption IC, and the storage unit is equipped with an EEPROM memory. The EEPROM memory stores data parameters in partitions. The encryption verification module enables encrypted communication and encryption verification between the two ends of the ribbon cable to prevent reverse engineering. Attached Figure Description

[0027] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0028] Figure 1 This is a schematic diagram of the structure of the encrypted ribbon cable with dynamically set counting limits provided in an embodiment of the present invention.

[0029] Figure 2 This is a circuit diagram of the encryption IC provided in an embodiment of the present invention.

[0030] Figure 3 This is a schematic diagram of the encryption principle provided in an embodiment of the present invention.

[0031] Figure 4 This is an EEPROM initialization flowchart provided in an embodiment of the present invention.

[0032] Figure 5 This is a flowchart of the host authentication process provided in an embodiment of the present invention.

[0033] Figure 6 This is a flowchart of the slave authentication write process provided in an embodiment of the present invention.

[0034] Figure 7 This is a flowchart of the slave authentication read process provided in an embodiment of the present invention. Detailed Implementation

[0035] To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0036] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this specification means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.

[0037] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0038] Currently, ribbon cables are widely used for connections between mobile phone motherboards and testing equipment, as well as between other hardware devices. However, due to their flexible and thin nature, ribbon cables have a relatively limited lifespan. Furthermore, existing ribbon cables lack a counting function, leading to cable damage after excessive use and affecting data transmission. Secondly, existing ribbon cables lack encryption capabilities, failing to prevent reverse engineering and compromising copyright protection.

[0039] Therefore, to solve the above problems, this embodiment provides an encrypted ribbon cable with dynamically set counting limits. This embodiment allows for setting different usage counts for different types of ribbon cables, and the usage count is obtained through a counting unit, enabling real-time monitoring of the ribbon cable's lifespan and wear. Data security is protected through encryption of data transmission. Specifically, the encrypted ribbon cable in this embodiment includes: an encryption verification module, a hardware ID interface coupled to the encryption verification module, and a control module. The control module includes a counting unit, a setting unit, and a limiting unit. The counting unit records the usage count of the ribbon cable for easy after-sales maintenance, while the limiting unit limits the number of uses to ensure the stability of the ribbon cable's quality. The encryption verification module includes an encryption verification unit and a storage unit. The encryption verification unit is equipped with an encryption IC, and the storage unit is equipped with an EEPROM memory. The EEPROM memory stores data parameters in partitions. The encryption verification module enables encrypted communication and verification between the two ends of the ribbon cable to prevent reverse engineering.

[0040] This embodiment provides an encrypted ribbon cable with dynamically set counting limits. For example... Figure 1 As shown, the encrypted cable with dynamically set count limits includes the following structure:

[0041] An encryption verification module, a hardware ID interface and a control module coupled to the encryption verification module; wherein, the control module includes a counting unit, a setting unit and a limiting unit, the encryption verification module includes an encryption verification unit and a storage unit, the encryption verification unit is provided with an encryption IC, the storage unit is provided with an EEPROM memory, and the EEPROM memory is partitioned to store data parameters.

[0042] Specifically, such as Figure 1 As shown, the encryption verification module is coupled to the hardware ID interface, which is used to read the hardware ID of the ribbon cable. The encryption verification module is also coupled to the control module. The encryption verification module is equipped with an encryption IC used to verify the legitimacy of the ribbon cable and encrypt the data transmitted by the ribbon cable. A typical circuit of the encryption IC is shown below. Figure 2 As shown. The encryption IC contains a secure, encrypted EEPROM. Read and write operations can be performed on the EEPROM memory using read / write commands with encryption verification. The EEPROM storage space is divided into several byte-defined functional areas to store different data parameters. The control module includes a counting unit, a setting unit, and a limiting unit. The encryption process is as follows... Figure 3As shown, the 4-byte plaintext input from the host and the 4-byte random number from the TRNG are processed and used as input to the RC4 encryption engine. The RC4 encryption engine uses a 16-byte key from the EEPROM to encrypt the input data and outputs a MAC value. The initialization and authentication process of the EEPROM memory is as follows: Figure 4 As shown. The host authentication process is as follows. Figure 5 As shown, the slave device's authentication write process is as follows: Figure 6 As shown, the slave authentication and reading process is as follows: Figure 7 As shown.

[0043] In one implementation, the data parameters include:

[0044] The first ribbon cable ID, the number of times it has been used, and the limit number of times it can be used; wherein, the first ribbon cable ID is a number of pre-stored valid ribbon cable IDs; the number of times it has been used corresponds one-to-one with the first ribbon cable ID and is used to record the number of times the encrypted ribbon cable has been used; the limit number of times it can be used corresponds one-to-one with the first ribbon cable ID and is used to limit the upper limit of the number of times the encrypted ribbon cable can be used.

[0045] Specifically, the storage space of the EEPROM memory is divided into a set of related storage bytes, and data parameters are set in them, as shown in Table 1.

[0046] Table 1. Placeholder Table for Data Parameters

[0047] 2 Byte 2 Byte 2 Byte 2 Byte 2 Byte

[0048] In the data parameters, the first ribbon cable ID is 2 bytes. During the testing phase after the ribbon cable is produced, the value of the first ribbon cable ID is used. If the first ribbon cable ID is 0x00, it indicates a new ribbon cable. After the first ribbon cable ID is written to the EEPROM memory through the setting module, the first ribbon cable ID and the second ribbon cable ID can be compared to determine whether the ribbon cable is a valid ribbon cable.

[0049] The number of times the cable has been used occupies 2 bytes and is used to count the number of times the cable has been used.

[0050] The inverted count occupies 2 bytes and is used to confirm the correctness of the count and prevent statistical errors caused by EEPROM damage.

[0051] The limit on the number of times a ribbon cable can be used is 2 bytes. This limit is used to restrict the number of times a ribbon cable can be used. Since the number of times a ribbon cable can be used varies depending on the connector, the limit on the number of times a ribbon cable can be used can be set to restrict the number of times different ribbon cables can be used, so as to conform to the lifespan of different ribbon cable models.

[0052] The limit count inverted occupies 2 bytes and is used to ensure the reliability of the limit.

[0053] Among them, the number of times used, the inverted number of times used, the limit number of times, and the inverted number of times limit correspond one-to-one with the first ribbon cable ID. That is, each first ribbon cable ID is set with its own number of times used, the inverted number of times used, the limit number of times, and the inverted number of times limit, so as to achieve independent restrictions on different ribbon cables.

[0054] In one implementation, the hardware ID interface is used to read the ID of the encrypted ribbon cable and send the ID of the encrypted ribbon cable as a second ribbon cable ID to the encryption verification unit.

[0055] Specifically, a hardware ID interface is provided on the encrypted ribbon cable. The ID of the encrypted ribbon cable can be read through this interface. The encrypted ribbon cable has 8-10 pins. By connecting the pins high (3.3V power supply or logic high) or low (ground), the CPU reads the pin high / low signal and converts it into a 10-bit binary encrypted ribbon cable ID, i.e., the hardware ID. After reading the encrypted ribbon cable ID, the hardware ID interface sends this ID as the second ribbon cable ID to the encryption verification unit.

[0056] For example, a 10-bit ID pin can theoretically support 1023 encrypted ribbon cable IDs. The number of encrypted ribbon cable IDs can be increased by adding more encrypted ribbon cable ID pins. As shown in Table 2, when bits 9-0 are 000000011, the encrypted ribbon cable ID is 0x003; when bits 9-0 are all 1, the encrypted ribbon cable ID is 0x3FF.

[0057] Table 2. Hardware ID Examples

[0058] 0 0 0 0 0 0 0 0 1 0x001 0 0 0 0 0 0 0 1 0 0x002 0 0 0 0 0 0 0 1 1 0x003 0 0 0 0 0 0 1 0 0 0x004 … … … … … … … … … … 1 1 1 1 1 1 1 1 1 0x3FF

[0059] Using the hardware ID interface has the following effects:

[0060] Facilitates the initialization of encrypted ribbon cables: Before production, the encryption IC can be a unified chip. After the encrypted ribbon cables are manufactured, a corresponding hardware ID, i.e., the second ribbon cable ID, can be set for each ribbon cable. During ribbon cable testing, the second ribbon cable ID can be read through the ribbon cable's hardware ID interface, and the corresponding initialization data can be written according to the second ribbon cable ID.

[0061] To check if the encryption IC on the encryption cable corresponds to the encryption cable: Illegal vendors buy old encryption cables, remove the encryption IC, and stick it on counterfeit encryption cables. To prevent this from happening, the testing equipment will read the second cable ID and compare it with the first cable ID stored in the encryption chip before testing. If they are different, it can be considered an illegal cable.

[0062] In one implementation, the encryption verification unit is used for:

[0063] Receive the second ribbon cable ID and read the first ribbon cable ID from the EEPROM memory;

[0064] The second ribbon cable ID is compared with the first ribbon cable ID. If the second ribbon cable ID is the same as the first ribbon cable ID, the encrypted ribbon cable is set to an available state. If the second ribbon cable ID is different from the first ribbon cable ID, the encrypted ribbon cable is set to an unavailable state.

[0065] When the encrypted cable is in an available state, the data information transmitted in the encrypted cable is encrypted using an encryption algorithm; wherein, the encryption algorithm includes MD5, SHA1, SHA256, DES, 3DES, AES, RSA and ECC.

[0066] Specifically, upon receiving the second ribbon cable ID, the system searches the parameter data in the EEPROM memory to see if a first ribbon cable ID with the same value is already stored. If so, it indicates that the encrypted ribbon cable corresponding to the second ribbon cable ID is valid, and the encrypted ribbon cable can be set to an available state. If a first ribbon cable ID with the same value is not found in the parameter data, it indicates that the encrypted ribbon cable corresponding to the second ribbon cable ID is invalid, and its second ribbon cable ID has not been pre-stored, so the encrypted ribbon cable can be set to an unavailable state.

[0067] Specifically, when the encryption cable is in an available state, it contains an encryption IC. Read and write operations can be performed on the EEPROM memory using read / write commands with encryption verification. The second cable ID is read through the corresponding interface, and communication with the encryption IC is established to complete encryption verification. When the encryption cable is in an available state, communication is refused.

[0068] For example, when the EEPROM memory has the storage parameters shown in Table 3, if the received second ribbon cable ID is 0x103, the same first ribbon cable ID cannot be found in the data parameter table. Therefore, the encrypted ribbon cable corresponding to the second ribbon cable ID of 0x103 is set to unusable. If the received second ribbon cable ID is 0x001, the same first ribbon cable ID can be found in the data parameter table. Therefore, the encrypted ribbon cable corresponding to the second ribbon cable ID of 0x001 is set to usable, and the data information transmitted in the encrypted ribbon cable is encrypted using an encryption algorithm.

[0069] Table 3. Data Parameter Table

[0070] 0x001 0x001 0x111 0x002 0x010 0x111

[0071] In one implementation, the counting unit is used to calculate the number of times the encrypted cable is used and send the number of times it is used to the setting unit.

[0072] Specifically, during the use of encrypted ribbon cables, the following abnormal situations often occur: the ribbon cable breaks down without warning during use; the ribbon cable works fine for a while but suddenly the assembly burns out; the ribbon cable is fine at first but becomes unusable after a period of use. The main reasons for these problems are: customers have used it many times but think the ribbon cable is new; customers have used the ribbon cable beyond its service life but continue to use it, i.e., overuse causing unstable testing; the ribbon cable has not reached its usage limit or the designed usage limit is unreasonable, and the ribbon cable can actually continue to be used. In this embodiment, the counting unit increments the count every time the encrypted ribbon cable connects to the hardware device, thus enabling the monitoring of the number of times the encrypted ribbon cable has been used, making it easy to know the true number of times the ribbon cable has been used. By sending the usage count to the setting unit, the data parameters are updated by the setting unit. Monitoring the number of times the encrypted ribbon cable has been used can also provide a basis for after-sales service.

[0073] For example, when the counting unit calculates the number of times the encrypted ribbon cable with the second ribbon cable ID 0x001 has been used (0x003 times) by the number of times the encrypted ribbon cable is inserted, it sends the second ribbon cable ID 0x001 and the number of times it has been used (0x003) to the setting unit, notifying the setting unit that the encrypted ribbon cable with the second ribbon cable ID 0x001 has been used 3 times.

[0074] In one implementation, the setting unit is configured to set the number of times used in the data parameters in the EEPROM memory in the storage unit according to the number of times used, and to set the first ribbon cable ID and the limit number of times in the data parameters according to user instructions.

[0075] Specifically, the data parameters stored in the encrypted ribbon cable in this embodiment can be set by the setting unit. When the setting unit receives the usage count sent by the counting unit, it can write the usage count into the EEPROM memory, updating the usage count in the data parameters. If the user instruction includes the first ribbon cable ID and the limit usage data that need to be updated, the setting unit will update the data parameters according to the user instruction.

[0076] For example, when the setting unit receives a message from the counting unit indicating that the usage count of the encrypted ribbon cable with the second ribbon cable ID 0x001 is 0x010, it writes the usage count into the EEPROM memory and updates the corresponding usage count of the encrypted ribbon cable with the first ribbon cable ID 0x001 in the data parameters to 0x010. If the user instruction includes an instruction to update the limit usage count of the first ribbon cable ID 0x002 to 0x030, the setting unit will update the data parameters according to the user instruction to set the limit usage count of the first ribbon cable ID 0x002 to 0x030.

[0077] In one implementation, the restriction unit is used to control the usage rights of the encrypted ribbon cable based on the second ribbon cable ID.

[0078] In one implementation, controlling the usage permissions of the encrypted ribbon cable based on the second ribbon cable ID includes:

[0079] The second ribbon cable ID is matched with the first ribbon cable ID in the data parameters. The number of times the first ribbon cable ID has been used and the number of times the limit has been set are compared to obtain the comparison result.

[0080] Based on the comparison results, the usage permissions of the encrypted cable are controlled.

[0081] Specifically, the restriction unit is used to control the usage permissions of the ribbon cable, which is distinguished by its ribbon cable ID. Once the second ribbon cable ID is obtained, the corresponding first ribbon cable ID, along with the number of uses and the limit set for that first ribbon cable ID, can be obtained by querying the data parameters. Then, the number of uses and the limit need to be compared to determine whether the encrypted ribbon cable has reached its usage limit.

[0082] For example, when the second ribbon cable ID is obtained as 0x002, the restriction unit can query the data parameters to find that when the corresponding first ribbon cable ID is 0x002, the used count and the limit count are set to 0x008 and 0x115 respectively. The used count and the limit count are then compared, and the result shows that the used count is less than the limit count. The usage permissions of the ribbon cable are then controlled based on this comparison result.

[0083] In one implementation, controlling the usage rights of the encrypted cable based on the comparison result includes:

[0084] If the comparison result shows that the number of times it has been used is less than the limit number of times, then the usage permission of the encrypted cable corresponding to the second cable ID is set to allow use;

[0085] If the comparison result shows that the number of times it has been used is greater than or equal to the limit number of times, then the usage permission of the encrypted cable corresponding to the second cable ID is set to not be allowed.

[0086] Specifically, if the number of uses is less than the limit, it means the ribbon cable has not yet reached the usage limit and can continue to be used. If the number of uses is greater than or equal to the limit, it means the ribbon cable has reached the usage limit and will not be allowed to continue to be used. The usage limit is different for each ribbon cable. Some ribbon cable connectors have a higher number of uses, while others have a lower limit. If a single quantity limit is blindly applied, many problems will arise. Therefore, by setting the usage limit based on the first ribbon cable ID, it is possible to set a different usage limit for each ribbon cable, achieving a personalized usage limit for ribbon cables with different characteristics.

[0087] For example, if the first ribbon cable ID is 0x002, and the corresponding number of uses in the data parameters is 0x008, which is less than the limit of 0x100, then the usage permission of the corresponding second ribbon cable ID 0x002 is set to allowed, and the encrypted ribbon cable can then perform data transmission and communication. If the first ribbon cable ID is 0x003, and the corresponding number of uses in the data parameters is 0x300, which is greater than the limit of 0x100, then the usage permission of the corresponding second ribbon cable ID 0x003 is set to disallowed.

[0088] In one implementation, when the usage permission is set to disallowed, the encrypted cable cannot transmit encrypted data.

[0089] Specifically, when the access permission for the encrypted ribbon cable is set to disallowed, encrypted data transmission is not possible. The user can be prompted that the ribbon cable has exceeded its service life and should be replaced with a new one.

[0090] Those skilled in the art will recognize that the units and implementation steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0091] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the terminal device and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0092] In the several embodiments provided in this application, it should be understood that the disclosed terminal devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, or may be electrical, mechanical or other forms of connection.

[0093] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.

[0094] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a single processing device, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The integrated units described above can be implemented in hardware or as software functional units.

[0095] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0096] In summary, this invention discloses an encrypted ribbon cable with dynamically set counting limits. The encrypted ribbon cable includes: an encryption verification module, a hardware ID interface coupled to the encryption verification module, and a control module. The control module includes a counting unit, a setting unit, and a limiting unit. The encryption verification module includes an encryption verification unit and a storage unit. The encryption verification unit is equipped with an encryption IC, and the storage unit is equipped with an EEPROM memory, which stores data parameters in partitions. This invention enables encrypted communication and verification between the two ends of the ribbon cable through the encryption verification module to prevent reverse engineering. The counting unit records the number of times the ribbon cable has been used, facilitating after-sales maintenance. The limiting unit limits the number of uses of the ribbon cable, ensuring the stability of the ribbon cable quality.

[0097] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. An encrypted ribbon cable with dynamically set counting limits, characterized in that, The encrypted cable includes: An encryption verification module, a hardware ID interface and a control module coupled to the encryption verification module; wherein, the control module includes a counting unit, a setting unit and a limiting unit, the encryption verification module includes an encryption verification unit and a storage unit, the encryption verification unit is provided with an encryption IC, the storage unit is provided with an EEPROM memory, and the EEPROM memory is partitioned to store data parameters; The data parameters include: The data includes a first ribbon cable ID, the number of times it has been used, the limit number of times it has been used, the inverted number of times it has been used, and the inverted limit number of times it has been used. The first ribbon cable ID is a pre-stored set of several valid ribbon cable IDs. The number of times it has been used corresponds one-to-one with the first ribbon cable ID and is used to record the number of times the encrypted ribbon cable has been used. The limit number of times it has been used corresponds one-to-one with the first ribbon cable ID and is used to limit the maximum number of times the encrypted ribbon cable can be used. The hardware ID interface is used to read the ID of the encrypted ribbon cable and send the ID of the encrypted ribbon cable as the second ribbon cable ID to the encryption verification unit. The encryption verification unit is used to: receive the second ribbon cable ID and read the first ribbon cable ID from the EEPROM memory; The second ribbon cable ID is compared with the first ribbon cable ID. If the second ribbon cable ID is the same as the first ribbon cable ID, the encrypted ribbon cable is set to an available state. If the second ribbon cable ID is different from the first ribbon cable ID, the encrypted ribbon cable is set to an unavailable state. When the encrypted cable is in an available state, the data information transmitted in the encrypted cable is encrypted using an encryption algorithm; wherein, the encryption algorithm includes MD5, SHA1, SHA256, DES, 3DES, AES, RSA and ECC.

2. The encrypted ribbon cable with dynamically set counting limits according to claim 1, characterized in that, The counting unit is used to calculate the number of times the encrypted ribbon cable is used, and sends the number of uses to the setting unit.

3. The encrypted ribbon cable with dynamically set counting limits according to claim 2, characterized in that, The setting unit is used to set the number of times used in the data parameters in the EEPROM memory in the storage unit according to the number of times used, and to set the first ribbon cable ID and the limit number of times in the data parameters according to user instructions.

4. The encrypted ribbon cable with dynamically set counting limits according to claim 1, characterized in that, The restriction unit is used to control the usage rights of the encrypted ribbon cable based on the second ribbon cable ID.

5. The encrypted ribbon cable with dynamically set counting limits according to claim 4, characterized in that, The step of controlling the usage permissions of the encrypted ribbon cable based on the second ribbon cable ID includes: The second ribbon cable ID is matched with the first ribbon cable ID in the data parameters. The number of times the first ribbon cable ID has been used and the number of times the limit has been set are compared to obtain the comparison result. Based on the comparison results, the usage permissions of the encrypted cable are controlled.

6. The encrypted ribbon cable with dynamically set counting limits according to claim 5, characterized in that, The step of controlling the usage rights of the encrypted cable based on the comparison result includes: If the comparison result shows that the number of times it has been used is less than the limit number of times, then the usage permission of the encrypted cable corresponding to the second cable ID is set to allow use; If the comparison result shows that the number of times it has been used is greater than or equal to the limit number of times, then the usage permission of the encrypted cable corresponding to the second cable ID is set to not be allowed.

7. The encrypted ribbon cable with dynamically set counting limits according to claim 6, characterized in that, When the usage permission is set to not be allowed, the encrypted cable cannot transmit encrypted data.

Citation Information

Patent Citations

  • Interactive anti-counterfeiting authentication method and intelligent anti-counterfeiting label

    CN102185832A

  • Anti-counterfeiting electronic cigarette with limited service life and control method thereof

    CN114365871A

  • Semiconductor memory card and data reading apparatus

    CN1316087A