Multi-device communication system and multi-device networking method
By using the address ciphertext in the storage device and the key sent by the host device in the multi-device communication system to decrypt the target communication address, the security risks of the address identification allocation scheme in the prior art are solved, and the security of the system is improved.
Patent Information
- Application Number
- CN202410995182.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-07-23
AI Technical Summary
In the existing multi-device communication system, the address identification allocation scheme has security risks. Any device with the ability to obtain electrical signals can replace the slave device, resulting in a threat to the system security.
By storing the address ciphertext in the storage device and sending the key by the host device during networking, the slave device can decrypt the target communication address, ensuring that only the legal device can access the system.
It effectively prevents third-party equipment from replacing slave equipment, improves system security, and ensures that only authorized equipment can obtain keys and decrypt the target communication address, thereby accessing the system.
Smart Images

Figure CN119070978A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a multi-device communication system and a multi-device networking method. Background Art
[0002] In industrial sites, when multiple devices are involved, the communication between multiple slave devices and the host device requires corresponding address identifiers to distinguish them, so as to ensure the effectiveness of communication.
[0003] Each slave device needs to complete the relevant functions of its setting position, including control, collection, feedback, etc. That is to say, the address identifier of the slave device corresponds to its setting position, so that its setting position can be determined according to its address identifier later, which is convenient for realizing relevant control.
[0004] Some existing address identification allocation schemes are usually achieved by collecting electrical signals corresponding to the access location. However, this will result in any device with the ability to obtain electrical signals being able to replace the slave device in the system and thus serve as a new slave device, resulting in a greater security risk in the system. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention provides a communication system for multiple devices and a networking method for multiple devices.
[0006] In a first aspect, in one embodiment, the present invention provides a communication system for multiple devices, the communication system for multiple devices comprising:
[0007] A host device, a plurality of storage devices and a plurality of slave devices, wherein the storage devices and the slave devices correspond one to one;
[0008] The address input terminal of each slave device is electrically connected to the address output terminal of the corresponding storage device, and the communication terminal of each slave device is electrically connected to the communication terminal of the host device respectively;
[0009] For each slave device, the slave device is used to obtain the address ciphertext from the corresponding storage device and the key sent by the host device when networking, decrypt the address ciphertext according to the key, and obtain the target communication address; the address ciphertext in each storage device is different.
[0010] In one embodiment, the address input terminal of each storage device is electrically connected to the address output terminal of the host device;
[0011] The host device is used to send the corresponding address ciphertext to each storage device for storage.
[0012] In one embodiment, a single bus is used to electrically connect the storage device and the slave device.
[0013] In one embodiment, the storage device comprises a read-only memory.
[0014] In a second aspect, in one embodiment, the present invention provides a multi-device networking method, which is applied to a multi-device communication system in any of the above embodiments, and the multi-device networking method includes the following steps performed by each slave device:
[0015] Obtaining the address ciphertext from the corresponding storage device and obtaining the key sent by the host device;
[0016] Decrypt the address ciphertext according to the key to obtain the target communication address;
[0017] After receiving the address query instruction sent by the host device, a networking response is sent to the host device according to the target communication address, so that the host device completes the networking.
[0018] In one embodiment, the address ciphertext includes a first part of the address ciphertext, a second part of the address ciphertext and a communication address ciphertext; decrypting the address ciphertext according to the key to obtain the target communication address includes:
[0019] Decrypt the first part of the address ciphertext, the second part of the address ciphertext and the communication address ciphertext respectively according to the key to obtain the first part of the address ciphertext corresponding to the first part of the address, the second part of the address ciphertext corresponding to the second part of the address ciphertext and the initial communication address corresponding to the communication address ciphertext;
[0020] According to the first part of the address and the second part of the address, a verification communication address is obtained;
[0021] Verify the initial communication address according to the verification communication address to obtain a verification result;
[0022] If the verification result indicates that the verification is passed, the initial communication address is determined as the target communication address.
[0023] In one embodiment, the initial communication address is verified according to the verification communication address to obtain a verification result, including:
[0024] Compare the verification communication address with the initial communication address to obtain a comparison result;
[0025] If the comparison result indicates that the verification communication address is the same as the initial communication address, a verification result indicating that the verification is successful is obtained.
[0026] In one embodiment, the address input terminal of each storage device is electrically connected to the address output terminal of the host device respectively; for each slave device and the corresponding storage device, the multi-device networking method further includes the following steps performed by the host device:
[0027] Get the key and target communication address;
[0028] Encrypt the target communication address according to the key to obtain the address ciphertext;
[0029] Sending the address ciphertext to a storage device for storage;
[0030] Send the key to the slave device.
[0031] In one embodiment, after the step of sending the key to the slave device, the multi-device networking method further includes the following steps performed by the host device:
[0032] Send an address query command to the slave device;
[0033] If the target communication address responded by the slave device is received, the networking with the slave device is completed.
[0034] In one embodiment, sending a key to a slave device includes:
[0035] The key is added to the address query instruction to implement the sending of the key by sending the address query instruction.
[0036] Through the above-mentioned multi-device communication system and multi-device networking method, data is directly obtained based on the address ciphertext in the storage device, and the slave device can only decrypt the address ciphertext according to the key sent by the host device when networking, so as to obtain the corresponding target communication address. The key is only sent by the host device when networking, so after the networking is completed, when other third-party devices want to replace the slave devices in the current system, the third-party devices may have the data acquisition function to obtain the address ciphertext, but can no longer obtain the key. In the end, they cannot access the system because they cannot decrypt the target communication address, thereby ensuring the security of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 A schematic diagram of the structure of a communication system of multiple devices in one embodiment of the present invention;
[0039] Figure 2 A schematic diagram of a structure in which a host device and a storage device are electrically connected in one embodiment of the present invention;
[0040] Figure 3 A schematic diagram of the structure of electrical connection between a storage device and a slave device in one embodiment of the present invention;
[0041] Figure 4 A schematic diagram of a flow chart of a slave device in a networking method in one embodiment of the present invention;
[0042] Figure 5 A schematic diagram of a process flow of a host device in a networking method according to an embodiment of the present invention;
[0043] Figure 6 The figure is a schematic diagram of the overall process of a multi-device networking method in one embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0045] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined. In the present application, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in the present application is not necessarily interpreted as being more preferred or more advantageous than other embodiments. In order to enable any person skilled in the art to implement and use the present invention, the following description is given. In the following description, details are listed for the purpose of explanation. It should be understood that those of ordinary skill in the art will recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details that make the description of the present invention obscure. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in this application.
[0046] First, as Figure 1 As shown, in one embodiment, the present invention provides a multi-device communication system, which includes a host device, multiple storage devices and multiple slave devices, and the storage devices and the slave devices correspond one to one.
[0047] The communication system of multiple devices may be an electrical power distribution system, a mechanical equipment protection system, an automatic control system and an emergency shutdown system, and the slave device corresponds to a circuit breaker in the system.
[0048] In an electrical distribution system, there is usually a complex electrical distribution network, including transmission lines, transformers, switchboards, etc. Multiple circuit breakers are used for protection and control at various levels, such as the main circuit breaker for total power control of the entire system, and the secondary circuit breaker for branch circuits and equipment protection.
[0049] In the mechanical equipment protection system, many mechanical equipment (such as motors, pumps, fans, etc.) need circuit breakers for protection. Multiple circuit breakers can provide overload protection, short circuit protection and isolation functions in different circuits to ensure the safety of equipment and personnel.
[0050] In automation control systems, multiple circuit breakers are used to control and protect various electrical devices. For example, circuit breakers are used in PLC (Programmable Logic Controller) systems to segment and protect different logic circuits and actuators.
[0051] In emergency shutdown systems, emergency shutdown systems are required to deal with dangerous situations. Multiple circuit breakers can be used to implement these systems, so that power can be quickly cut off in an emergency to ensure the safety of personnel and equipment.
[0052] exist Figure 1 In the embodiment, the address input terminal of each slave device is electrically connected to the address output terminal of the corresponding storage device, and the communication terminal of each slave device is electrically connected to the communication terminal of the host device.
[0053] Among them, the storage device and the slave device can communicate through I2C. I2C (Inter-Integrated Circuit) is a widely used serial communication protocol that allows multiple devices to communicate using a shared bus. It was developed by Philips (now NXP Semiconductors) and is commonly used in various electronic systems such as embedded systems, sensors, and integrated circuits. I2C uses only two wires, the SDA line (serial data line) and the SCL line (serial clock line), which enable bidirectional communication between devices.
[0054] Among them, the host device can adopt common types of hosts in industrial systems, such as PLC (programmable logic controller) host, DCS (distributed control system) host, SCADA (supervision, control and data acquisition) host, MES (manufacturing execution system) host.
[0055] Among them, RS485 can be used for communication between slave devices and host devices. RS485 communication is a commonly used serial communication protocol used for long-distance data transmission in industrial automation and control systems. RS485 supports multi-node communication and allows half-duplex communication, that is, data can be transmitted in both directions, but not at the same time.
[0056] For each slave device, the slave device is used to obtain the address ciphertext from the corresponding storage device and the key sent by the host device when networking, decrypt the address ciphertext according to the key, and obtain the target communication address; the address ciphertext in each storage device is different.
[0057] The communication address may be a simple single number. For example, if there are 10 slave devices, the communication addresses may be 1, 2, 3, ..., 10. When the slave devices are grouped, the communication address may also be a combination number combined with the grouping information. For example, if there are 10 slave devices in a group of 5, the communication addresses in the first group may be 101, 102, 103, ..., 105, and the communication addresses in the second group may be 201, 202, 203, ..., 205. It should be noted that no matter what method is used for the communication address of the slave device, it needs to reflect the difference from other slave devices.
[0058] The address ciphertext is obtained by encrypting the target communication address with a key in advance. Therefore, after the slave device obtains the key and the address ciphertext, the address ciphertext can be decrypted with the key to obtain the corresponding target communication address.
[0059] The types of keys used may include symmetric keys and asymmetric keys.
[0060] Symmetric key: A symmetric key is also called a shared key or secret key. It is the same key used in both encryption and decryption. Symmetric key algorithms use relatively small key lengths and have fast operation speeds, making them suitable for encryption and decryption of large amounts of data. However, symmetric keys need to be securely shared with both communicating parties, which may present challenges in key distribution and management.
[0061] Common symmetric key algorithms include: AES (Advanced Encryption Standard), DES (Data Encryption Standard), 3DES (Triple DES), RC4, etc.
[0062] Asymmetric Key: Asymmetric keys, also known as public-key key pairs, consist of a pair of related keys: a public key and a private key. The public key is used for encryption, and the private key is used for decryption. This type of key is generated using a mathematical algorithm, where the encryption process uses a different key than the decryption process. Asymmetric key algorithms provide a higher level of security and ease of key distribution. The public key can be shared publicly by both parties communicating, while the private key is kept secret. With an asymmetric key algorithm, data can only be decrypted using the corresponding private key after encryption.
[0063] Common asymmetric key algorithms include: RSA (Rivest-Shamir-Adleman), DSA (Digital Signature Algorithm), ECC (Elliptic Curve Cryptography), etc.
[0064] The address ciphertext in the storage device may be input in advance by other devices or equipment in or outside the system.
[0065] Through the above-mentioned multi-device communication system, data is directly obtained based on the address ciphertext in the storage device. The slave device can only decrypt the address ciphertext according to the key sent by the host device when networking, so as to obtain the corresponding target communication address. The key is only sent by the host device when networking. Therefore, after the networking is completed, when other third-party devices want to replace the slave devices in the current system, the third-party devices may have the data acquisition function to obtain the address ciphertext, but can no longer obtain the key. In the end, they cannot access the system because they cannot decrypt the target communication address, thereby ensuring the security of the system.
[0066] like Figure 2 As shown, in one embodiment, the address input terminal of each storage device is electrically connected to the address output terminal of the host device respectively.
[0067] The host device is used to send the corresponding address ciphertext to each storage device for storage.
[0068] Among them, the above embodiments have mentioned that the address ciphertext can be input by other devices or equipment, but this method will cause the address ciphertext to be always fixed during the operation of the system and cannot be modified, and the flexibility is poor.
[0069] Therefore, in this embodiment, in view of this situation, the address input terminal of the storage device is electrically connected to the address output terminal of the host device, so that the host device outputs the corresponding address ciphertext. Since the host device is always connected to the system and has the ability to adjust the address ciphertext in real time, the address ciphertext in the storage device can also be adjusted during the operation of the system, thereby improving flexibility.
[0070] It should be noted that since the storage device corresponds one-to-one with the slave device, there are multiple storage devices, and the address ciphertexts required in the multiple storage devices are different, so the host device needs to output the corresponding address ciphertexts to the multiple storage devices respectively.
[0071] like Figure 3 As shown, in one embodiment, a single bus (such as Figure 3 1-wire) electrical connection.
[0072] Among them, 1-Wire is a serial communication protocol used to transmit data and provide power between electronic devices. It is a single bus communication protocol developed by Maxim Integrated and is usually used in low-speed, short-distance communication applications. 1-Wire only requires a single signal line to transmit data and provide power, simplifying the complexity of connection and wiring.
[0073] It has been mentioned above that the communication between the storage device and the slave device can be achieved through I2C, but I2C requires two signal lines, which requires the slave device to provide a better signal interface and is easily restricted in the use scenario.
[0074] In one embodiment, the storage device comprises a read-only memory.
[0075] Among them, Read-Only Memory (ROM) is an electronic device that stores data, in which the data is programmed during the manufacturing process and cannot be modified afterwards. ROM is called read-only memory because the data stored in it can only be read, but not written.
[0076] Since the application scenario of this application is an industrial system, the connected slave device needs to read the address ciphertext in the storage device to obtain the corresponding target communication address, so as to complete the system networking and realize industrial control. Therefore, the reliability of the address ciphertext in the storage device is particularly important. The use of a read-only memory can prevent other disguised devices pretending to be slave devices from modifying the address ciphertext in the storage device, thereby causing the storage device to be unable to perform its normal function and causing the connected normal slave device to be unable to work normally. The read-only memory can improve the reliability of the system.
[0077] Among them, the data of ROM is permanently programmed during the manufacturing process. Once the programming is completed, the data will not be lost due to power off or other operations. It provides a reliable way of data storage.
[0078] In industrial systems, power outages often occur, and read-only memories can store data during power outages, thereby ensuring that address ciphertext does not need to be re-stored in the storage device after power-on, thereby improving system operation efficiency.
[0079] In a second aspect, in one embodiment, the present invention provides a multi-device networking method, which is applied to a multi-device communication system in any of the above embodiments; Figure 4 As shown, the multi-device networking method includes the following steps performed by each slave device:
[0080] Step 101, obtaining the address ciphertext from the corresponding storage device and obtaining the key sent by the host device.
[0081] The acquisition of the address ciphertext and the key is automatically performed after the slave device is powered on. That is, when the slave device is powered on, it automatically enters the processing logic of acquiring the address ciphertext and the key with the power-on as a logic trigger.
[0082] Among them, the host device only sends the key when networking.
[0083] Step 102, decrypt the address ciphertext according to the key to obtain the target communication address.
[0084] Among them, when there is only one address ciphertext, the target communication address can be directly obtained by decryption.
[0085] Step 103, after receiving the address query instruction sent by the host device, a networking response is made to the host device according to the target communication address, so that the host device completes the networking.
[0086] Among them, during the networking process, the host device needs to send a corresponding address query instruction so that the slave device responds using the target communication address it has determined. For the slave device, after receiving the address query instruction, it responds using the target communication address. The response can be understood as the slave device informing the host device that it has determined the target communication address. The slave device can send simple data, which carries the determined target communication address, so that the host device knows and confirms it, thereby completing the networking of the slave device and the host device.
[0087] It should be noted that this embodiment only mentions the networking process of one slave device, and the networking processes of other slave devices are the same and will not be repeated here. The difference is that the target communication addresses determined by each slave device are different, and the target communication addresses carried when responding are also different.
[0088] Through the above-mentioned multi-device networking method, data is directly obtained based on the address ciphertext in the storage device, and the slave device can only decrypt the address ciphertext according to the key sent by the host device when networking, so as to obtain the corresponding target communication address. The key is only sent by the host device when networking, so after the networking is completed, when other third-party devices want to replace the slave devices in the current system, the third-party devices may have the data acquisition function to obtain the address ciphertext, but can no longer obtain the key. In the end, they cannot access the system because they cannot decrypt the target communication address, thereby ensuring the security of the system.
[0089] In one embodiment, the address ciphertext includes a first part of the address ciphertext, a second part of the address ciphertext and a communication address ciphertext; decrypting the address ciphertext according to the key to obtain the target communication address includes:
[0090] The first part address ciphertext, the second part address ciphertext and the communication address ciphertext are decrypted respectively according to the key to obtain the first part address corresponding to the first part address ciphertext, the second part address corresponding to the second part address ciphertext and the initial communication address corresponding to the communication address ciphertext.
[0091] Among them, the above embodiment has mentioned that when there is only one type of address ciphertext, the target communication address can be directly decrypted. In this embodiment, the address ciphertext includes three types, namely the first part address ciphertext, the second part address ciphertext and the communication address ciphertext, so the corresponding decryption can obtain three types of addresses, namely the first part address, the second part address and the initial communication address.
[0092] The first partial address and the second partial address can be understood as respectively including characteristic contents related to the partial addresses, while the communication address includes complete characteristic contents, and the partial characteristics can be used to obtain complete characteristics through correlation operations.
[0093] A verification communication address is obtained based on the first address portion and the second address portion.
[0094] The first address and the second address can be used to obtain the verification communication address through a simple sum operation. For example, the first address represents the group address, and the second address represents the address within the group. If the group address is 1 and the address within the group is 02, the verification communication address 102 can be obtained, and 001002 with different data lengths can also be obtained. Of course, in other embodiments, the first address and the second address can also represent different meanings, and the verification communication address can be obtained through different calculation methods, but the core is that the first address and the second address respectively contain part of the characteristic content in the communication address.
[0095] The initial communication address is verified according to the verification communication address to obtain a verification result.
[0096] Among them, based on the above example, if the verification communication address obtained is 001002, and the initial communication address obtained by direct decryption is 102, then the verification communication address can be converted through the corresponding data length and then compared with the initial communication address 102. If they are consistent, a verification result indicating that the verification is passed is obtained.
[0097] If the verification result indicates that the verification is passed, the initial communication address is determined as the target communication address.
[0098] Among them, when the verification result indicates that the verification is passed, it means that there are no abnormalities in the relevant processes and data. On the contrary, when the verification result indicates that the verification fails, it means that there may be at least partial abnormalities in the relevant processes and data.
[0099] In one embodiment, the initial communication address is verified according to the verification communication address to obtain a verification result, including:
[0100] The verification communication address is compared with the initial communication address to obtain a comparison result.
[0101] Among them, based on the above example, when the obtained verification communication address is 102, its data length is the same as the data length of the initial communication address obtained by decryption, so it can be directly verified by comparison.
[0102] If the comparison result indicates that the verification communication address is the same as the initial communication address, a verification result indicating that the verification is successful is obtained.
[0103] If the comparison result indicates that the verification communication address and the initial communication address are different, a verification result indicating a verification failure is obtained.
[0104] In one embodiment, the address input terminal of each storage device is electrically connected to the address output terminal of the host device; for each slave device and the corresponding storage device, Figure 5 As shown, the multi-device networking method also includes the following steps performed by the host device:
[0105] Step 201, obtain a key and a target communication address.
[0106] The key may be generated by the host device, or may be generated by other devices and then input into the host device.
[0107] Step 202, encrypt the target communication address according to the key to obtain the address ciphertext.
[0108] Among them, when there is only one type of address ciphertext, there is no need to implement the above-mentioned verification process, and there is only the target communication address, so only the target communication address needs to be encrypted to obtain the address ciphertext. If there is a verification process, the host device needs to encrypt the first part of the address, the second part of the address, and the communication address according to the key to obtain the first part of the address ciphertext, the second part of the address ciphertext, and the communication address ciphertext respectively.
[0109] Step 203, sending the address ciphertext to a storage device for storage.
[0110] Step 204: Send the key to the slave device.
[0111] Among them, since the key is only sent when networking, the storage of the address ciphertext is usually earlier than the sending of the key, but in fact the sending of the address ciphertext and the sending of the key do not require a corresponding sending order. This application does not limit the sending order of the two, that is, there is no order requirement for step 203 and step 204.
[0112] In one embodiment, after the step of sending the key to the slave device, the multi-device networking method further includes the following steps performed by the host device:
[0113] Send an address query command to the slave device.
[0114] Among them, since it takes a certain amount of time for the slave device to obtain the final target communication address after obtaining the address ciphertext and key, the host device needs to send the address query instruction after a certain period of time after sending the address ciphertext and key to ensure that the slave device can obtain the target communication address and improve the effectiveness of the address query.
[0115] If the target communication address responded by the slave device is received, the networking with the slave device is completed.
[0116] In one embodiment, sending a key to a slave device includes:
[0117] The key is added to the address query instruction to implement the sending of the key by sending the address query instruction.
[0118] Among them, sending the key by carrying it can reduce the number of times data is sent.
[0119] The key can also be sent separately.
[0120] In one embodiment, sending a key to a slave device includes:
[0121] Send the key to the slave device in broadcast mode.
[0122] Among them, since the key is sent when networking is being carried out, the host device and the slave device have not yet established communication, so it can be sent by broadcasting to ensure that each slave device can receive it.
[0123] In order to make the above embodiments clearer, the technical solutions in the above embodiments are now described in combination. Figure 6 As shown, the system pre-produces a key, and the host device uses the key to encrypt the group address, the address within the group, and the communication address, respectively, to obtain the group address ciphertext, the address within the group ciphertext, and the communication address ciphertext, and then burns the three groups of ciphertexts into the storage device 1, so that the storage device 1 stores the ciphertext. After the corresponding slave device 1 is powered on, it obtains three groups of ciphertexts from the storage device 1. The host device sends the key in a broadcasting manner. After receiving the key, the slave device 1 decrypts the three groups of ciphertexts to obtain the group address, the address within the group, and the communication address, and then generates the communication address according to the group address and the address within the group, and mutually verifies the generated communication address and the decrypted communication address. If the verification is successful, the final communication address is obtained. The host device performs an address query to send the corresponding address query instruction, and the slave device 1 responds according to the address query instruction and uses address No. 1. It can be understood that address No. 1 is the communication address finally determined by the slave device 1. The host device confirms according to address No. 1, and completes the networking with the slave device 1 after passing.
[0124] Among them, Figure 6 In addition to slave device 1, slave device n is also included, and storage device n corresponding to slave device n is not in Figure 6 However, the processing flow of the slave device n is the same as that of the slave device 1, and the processing flow of the slave device 1 can be referred to. After the host device completes networking with all the slave devices, the entire networking process ends.
[0125] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0126] The above is a detailed introduction to a multi-device communication system and a multi-device networking method provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
[0127] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
Claims
1. A multi-device communication system, characterized in that: The multi-device communication system comprises: A host device, a plurality of storage devices and a plurality of slave devices, wherein the storage devices correspond to the slave devices one by one; The address input terminal of each of the slave devices is electrically connected to the address output terminal of the corresponding storage device, and the communication terminal of each of the slave devices is electrically connected to the communication terminal of the host device respectively; For each of the slave devices, the slave device is used to obtain the address ciphertext from the corresponding storage device and the key sent by the host device when networking, decrypt the address ciphertext according to the key, and obtain the target communication address; the address ciphertext in each storage device is different.
2. The multi-device communication system according to claim 1, characterized in that: The address input terminal of each storage device is electrically connected to the address output terminal of the host device respectively; The host device is used to send the corresponding address ciphertext to each of the storage devices for storage.
3. The multi-device communication system according to claim 1 or 2, characterized in that: The storage device and the slave device are electrically connected using a single bus.
4. The multi-device communication system according to claim 1 or 2, characterized in that: The storage device includes a read-only memory.
5. A multi-device networking method, characterized in that: The multi-device networking method is applied to the multi-device communication system according to any one of claims 1 to 4, and the multi-device networking method includes the following steps performed by each slave device: Obtaining the address ciphertext from the corresponding storage device and obtaining the key sent by the host device; Decrypting the address ciphertext according to the key to obtain the target communication address; After receiving the address query instruction sent by the host device, a networking response is made to the host device according to the target communication address, so that the host device completes the networking.
6. The multi-device networking method according to claim 5, characterized in that: The address ciphertext includes a first part address ciphertext, a second part address ciphertext and a communication address ciphertext; and decrypting the address ciphertext according to the key to obtain the target communication address includes: Decrypt the first partial address ciphertext, the second partial address ciphertext and the communication address ciphertext respectively according to the key to obtain the first partial address corresponding to the first partial address ciphertext, the second partial address corresponding to the second partial address ciphertext and the initial communication address corresponding to the communication address ciphertext; Obtaining a verification communication address according to the first partial address and the second partial address; Verifying the initial communication address according to the verification communication address to obtain a verification result; If the verification result indicates that the verification is passed, the initial communication address is determined as the target communication address.
7. The multi-device networking method according to claim 6, characterized in that: The verifying the initial communication address according to the verification communication address to obtain a verification result includes: Comparing the verification communication address with the initial communication address to obtain a comparison result; If the comparison result indicates that the verification communication address and the initial communication address are the same, a verification result indicating that the verification is successful is obtained.
8. The multi-device networking method according to any one of claims 5 to 7, characterized in that: The address input end of each storage device is electrically connected to the address output end of the host device respectively; for each slave device and the corresponding storage device, the multi-device networking method further includes the following steps performed by the host device: Obtaining the key and the target communication address; Encrypting the target communication address according to the key to obtain the address ciphertext; Sending the address ciphertext to the storage device for storage; The key is sent to the slave device.
9. The multi-device networking method according to claim 8, characterized in that: After the step of sending the key to the slave device, the multi-device networking method further includes the following steps performed by the host device: Sending the address query instruction to the slave device; If the target communication address responded by the slave device is received, networking with the slave device is completed.
10. The multi-device networking method according to claim 9, characterized in that: The sending the key to the slave device includes: The key is added to the address query instruction, so as to send the key by sending the address query instruction.
Citation Information
Patent Citations
Address ciphertext storage method and device, storage medium and electronic device
CN117749474A
System and Method for Secured Host-slave Communication
US20130067016A1
Memory system and method of controlling nonvolatile memory
US20190362081A1
