Method for realizing fast configuration aiming at equipment for simultaneously replacing different types and protocols
By identifying the device communication parameters and characteristic values, matching the device and configuration files, the rapid configuration of different types and protocol devices in the intelligent bus system is solved, and the configuration efficiency and system stability are improved.
Patent Information
- Application Number
- CN202411773390.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-03-25
AI Technical Summary
The existing intelligent bus system configuration methods are complex, requiring professional knowledge and a lot of time, making it difficult to achieve rapid configuration, especially in multi-device replacement scenarios.
By identifying the device communication parameters and protocols, reading the device key feature values based on the device hardware, matching the corresponding relationship between different devices and configuration files, and issuing the device configuration files for verification, to achieve rapid configuration.
It reduces manual participation in the configuration process, improves configuration efficiency, reduces the risk of configuration errors, improves the stability and reliability of the system, and allows non-professional users to easily complete the equipment configuration.
Smart Images

Figure CN119697009A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart homes, and in particular to the field of smart control applications, and specifically refers to a method, device, processor and computer-readable storage medium thereof for realizing rapid configuration for simultaneously replacing devices of different types and protocols. Background Art
[0002] Traditional configuration methods usually require operators to have deep professional knowledge, including in-depth understanding of bus system architecture, familiarity with communication protocols of different devices, and complex parameter setting skills, etc. This makes it difficult for ordinary users to configure the equipment by themselves, and they must rely on professional technicians, which increases labor and time costs.
[0003] The configuration process is often very cumbersome, requiring parameter setting, address allocation, function debugging and other steps for each device. For an intelligent bus system with a large number of devices, this process may take hours or even days. For example, in the bus system configuration of a large intelligent building, technicians need to run back and forth between different floors and areas to manually set up each device, which consumes a lot of time and energy.
[0004] In addition, different types of equipment may have large differences in configuration methods, further increasing the difficulty and complexity of configuration. For non-professional users, facing these complex configuration processes, they are often helpless, which greatly limits the popularization and promotion of intelligent bus systems.
[0005] In view of this, it is particularly urgent to develop a method for replacing one or more devices of different types and protocols at the same time and quickly configuring them in an intelligent bus system. This method can not only improve the efficiency of device configuration and reduce the system downtime caused by the configuration process, but also reduce the risk of configuration errors and improve the stability and reliability of the system. At the same time, it can also allow non-professional users to easily complete the configuration of devices and promote the application of intelligent bus systems in a wider range of fields. Summary of the invention
[0006] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a method, device, processor and computer-readable storage medium thereof that meet the requirements of high stability, high configuration efficiency and a wide range of applications for realizing rapid configuration for simultaneously replacing devices of different types and protocols.
[0007] In order to achieve the above objectives, the method, apparatus, processor and computer-readable storage medium thereof for realizing fast configuration for simultaneously replacing devices of different types and protocols of the present invention are as follows: The method for realizing rapid configuration by simultaneously replacing devices of different types and protocols is mainly characterized in that the method comprises the following steps: (1) Identify device communication parameters and protocols; (2) Read the key characteristic value of the device based on the unique hardware identifier of the device; (3) Match the attention correspondence between different devices and configuration files; (4) Send device configuration files and verify them.
[0008] Preferably, the step (1) specifically includes the following steps: (1.1) The bus system is powered on, all devices to be replaced are connected to the bus system, and the devices to be replaced broadcast their device characteristic values at their respective baud rates and parameters; (1.2) The gateway polls and receives characteristic value broadcasts at different baud rates and parameters; (1.3) Determine whether the device characteristic value is successfully identified. If yes, proceed to step (1.4); otherwise, proceed to step (1.2); (1.4) Parse the characteristic value data packet through different protocol frame structures and determine the protocol and protocol characteristics to which the characteristic value belongs; (1.5) Record the unique device identifier, baud rate and other bus parameters; (1.6) All known parameters and protocols are polled and traversed in turn to determine whether all devices to be replaced have been traversed. If so, end the step; otherwise, continue with step (1.2).
[0009] Preferably, the step (2) specifically includes the following steps: (2.1) Read the type, function and characteristics of the device to be replaced in sequence according to the unique hardware identifier of the device; (2.2) Determine whether the reading is successful. If so, continue with step (2.3); otherwise, continue with step (2.1); (2.3) Based on the device function characteristics, send control packets to control each device function that is successfully matched this time; (2.4) Determine whether the control is successful. If so, proceed to step (2.5); otherwise, proceed to step (2.1); (2.5) Associate and store the unique device identifier, device type, and functional characteristics; (2.6) Traverse in sequence and determine whether the traversal is completed. If so, end the step; otherwise, continue with step (2.1).
[0010] Preferably, the step (3) specifically comprises the following steps: (3.1) The gateway detects the distance of the device to be replaced; (3.2) The gateway sends a detection packet to detect the location of the matched device; (3.3) After the nearest device receives the data packet, it switches to the sending state and maintains it for 1 second; (3.4) After 1 second, other devices far away automatically give up sending reply packets; (3.5) The nearest device sends a reply packet and exits the distance detection process; (3.6) Traverse in sequence to determine whether all devices to be replaced have been traversed. If so, proceed to step (3.7); otherwise, proceed to step (3.2); (3.7) Calculate the distance relationship between the devices on the bus and the gateway in turn, find out the distance relationship between the device to be replaced and the gateway, and prepare the configuration file of the device to be replaced based on the distance relationship; (3.8) Compare the device type and functional characteristics of the old device and the new device to be replaced to confirm whether they match. If so, proceed to step (3.9); otherwise, proceed to step (3.2); (3.9) Send the historical configuration file to the new device to be replaced, replace the unique identifier of the old device in the configuration with the unique identifier of the replaced device, and exit the configuration sending state, waiting for the configuration verification state.
[0011] Preferably, the step (4) specifically includes the following steps: (4.1) All devices start the automated configuration verification process; (4.2) Automatically execute device configuration files at 5-second intervals; (4.3) Determine whether any device execution configuration error occurs during execution. If so, proceed to step (4.4); otherwise, proceed to step (4.2); (4.4) Marking error profiles through the operation of any device; (4.5) Continue to perform automated configuration verification; (4.6) Determine whether the verification is completed. If so, end the step; otherwise, continue with step (4.2).
[0012] The main feature of the device for realizing rapid configuration for simultaneously replacing devices of different types and protocols is that the device comprises: a processor configured to execute computer executable instructions; The memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for realizing rapid configuration for simultaneously replacing devices of different types and protocols are implemented.
[0013] The main feature of the processor for realizing rapid configuration for simultaneously replacing devices of different types and protocols is that the processor is configured to execute computer executable instructions. When the computer executable instructions are executed by the processor, the various steps of the above-mentioned method for realizing rapid configuration for simultaneously replacing devices of different types and protocols are realized.
[0014] The main feature of the computer-readable storage medium is that a computer program is stored thereon, and the computer program can be executed by a processor to implement the various steps of the above-mentioned method for realizing rapid configuration for simultaneously replacing devices of different types and protocols.
[0015] The method, device, processor and computer-readable storage medium of the present invention for realizing rapid configuration for simultaneously replacing devices of different types and protocols are adopted, which reduces the steps of on-site manual operation, improves configuration efficiency and reduces the probability of configuration errors; reduces the difficulty of after-sales service, and users do not need to learn professional configuration software and can quickly operate; reduces dependence on professionals and greatly reduces human maintenance costs; the rapid configuration method can quickly meet users' needs for replacement and new equipment, and improves user stickiness and satisfaction of the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 The present invention is a flow chart of a method for implementing rapid configuration for simultaneously replacing devices of different types and protocols.
[0017] Figure 2 The present invention is a flow chart of identifying device communication parameters and protocols in a method for implementing rapid configuration for simultaneously replacing devices of different types and protocols.
[0018] Figure 3 The present invention is a flow chart of a method for realizing rapid configuration for simultaneously replacing devices of different types and protocols, for reading a key characteristic value of a device according to a unique hardware identifier of the device.
[0019] Figure 4 The present invention is a flow chart of the method for realizing fast configuration by simultaneously replacing devices of different types and protocols, which matches the attention correspondence between different devices and configuration files.
[0020] Figure 5 The present invention is a flow chart of issuing and verifying a device configuration file for a method for implementing rapid configuration for simultaneously replacing devices of different types and protocols.
[0021] Figure 6 This is a system topology diagram for realizing rapid configuration for simultaneously replacing devices of different types and protocols according to the present invention. DETAILED DESCRIPTION
[0022] In order to more clearly describe the technical content of the present invention, further description is given below in conjunction with specific embodiments.
[0023] The method for realizing rapid configuration for simultaneously replacing devices of different types and protocols of the present invention comprises the following steps: (1) Identify device communication parameters and protocols; (2) Read the key characteristic value of the device based on the unique hardware identifier of the device; (3) Match the attention correspondence between different devices and configuration files; (4) Send device configuration files and verify them.
[0024] As a preferred embodiment of the present invention, the step (1) specifically includes the following steps: (1.1) The bus system is powered on, all devices to be replaced are connected to the bus system, and the devices to be replaced broadcast their device characteristic values at their respective baud rates and parameters; (1.2) The gateway polls and receives characteristic value broadcasts at different baud rates and parameters; (1.3) Determine whether the device characteristic value is successfully identified. If yes, proceed to step (1.4); otherwise, proceed to step (1.2); (1.4) Parse the characteristic value data packet through different protocol frame structures and determine the protocol and protocol characteristics to which the characteristic value belongs; (1.5) Record the unique device identifier, baud rate and other bus parameters; (1.6) All known parameters and protocols are polled and traversed in turn to determine whether all devices to be replaced have been traversed. If so, end the step; otherwise, continue with step (1.2).
[0025] As a preferred embodiment of the present invention, the step (2) specifically includes the following steps: (2.1) Read the type, function and characteristics of the device to be replaced in sequence according to the unique hardware identifier of the device; (2.2) Determine whether the reading is successful. If so, continue with step (2.3); otherwise, continue with step (2.1); (2.3) Based on the device function characteristics, send control packets to control each device function that is successfully matched this time; (2.4) Determine whether the control is successful. If so, proceed to step (2.5); otherwise, proceed to step (2.1); (2.5) Associate and store the unique device identifier, device type, and functional characteristics; (2.6) Traverse in sequence and determine whether the traversal is completed. If so, end the step; otherwise, continue with step (2.1).
[0026] As a preferred embodiment of the present invention, the step (3) specifically includes the following steps: (3.1) The gateway detects the distance of the device to be replaced; (3.2) The gateway sends a detection packet to detect the location of the matched device; (3.3) After the nearest device receives the data packet, it switches to the sending state and maintains it for 1 second; (3.4) After 1 second, other devices far away automatically give up sending reply packets; (3.5) The nearest device sends a reply packet and exits the distance detection process; (3.6) Traverse in sequence to determine whether all devices to be replaced have been traversed. If so, proceed to step (3.7); otherwise, proceed to step (3.2); (3.7) Calculate the distance relationship between the devices on the bus and the gateway in turn, find out the distance relationship between the device to be replaced and the gateway, and prepare the configuration file of the device to be replaced based on the distance relationship; (3.8) Compare the device type and functional characteristics of the old device and the new device to be replaced to confirm whether they match. If so, proceed to step (3.9); otherwise, proceed to step (3.2); (3.9) Send the historical configuration file to the new device to be replaced, replace the unique identifier of the old device in the configuration with the unique identifier of the replaced device, and exit the configuration sending state, waiting for the configuration verification state.
[0027] As a preferred embodiment of the present invention, the step (4) specifically includes the following steps: (4.1) All devices start the automated configuration verification process; (4.2) Automatically execute device configuration files at 5-second intervals; (4.3) Determine whether any device execution configuration error occurs during execution. If so, proceed to step (4.4); otherwise, proceed to step (4.2); (4.4) Marking error profiles through the operation of any device; (4.5) Continue to perform automated configuration verification; (4.6) Determine whether the verification is completed. If so, end the step; otherwise, continue with step (4.2).
[0028] The device for realizing rapid configuration for simultaneously replacing devices of different types and protocols of the present invention, wherein the device comprises: a processor configured to execute computer executable instructions; The memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for realizing rapid configuration for simultaneously replacing devices of different types and protocols are implemented.
[0029] The processor of the present invention is used to implement rapid configuration for simultaneously replacing devices of different types and protocols, wherein the processor is configured to execute computer-executable instructions, and when the computer-executable instructions are executed by the processor, the various steps of the above-mentioned method for rapidly configuring simultaneously replacing devices of different types and protocols are implemented.
[0030] The computer-readable storage medium of the present invention stores a computer program thereon, and the computer program can be executed by a processor to implement the various steps of the above-mentioned method for realizing rapid configuration for simultaneously replacing devices of different types and protocols.
[0031] In a specific implementation of the present invention, the present invention does not need to use professional configuration software to access the system and re-debug and issue the configuration. It only needs to connect the replacement device to the bus, power on, and the system automatically executes the replacement process. After the replacement device is successfully replaced, the original configuration function is automatically executed to assist the user in confirming that the configuration is successful. The present invention can achieve self-identification of devices with different functional types and different protocols, and can also be compatible with different replacements and configuration adaptation for multiple devices that need to be replaced at the same time.
[0032] like Figure 1 It is a process of automatically identifying device communication parameters, which includes the following steps: (1.1) The system is powered on normally, and all devices to be replaced are connected to the system. The devices to be replaced that are in an unconfigured state begin to broadcast device characteristic values at their respective baud rates and parameters.
[0033] (1.2) The gateway polls and receives characteristic value broadcasts under different known baud rates and parameters. It parses the characteristic value data packets received through different protocol frame structures, determines which protocol the characteristic value belongs to, whether it conforms to the known protocol characteristics, and records the unique device identifier.
[0034] (1.3) Poll all known parameters and protocols in turn to find all new or replaced devices that meet the system requirements.
[0035] like Figure 2 It is a process of reading and confirming the device type and functional characteristics based on the unique identification of the device hardware, which specifically includes the following steps: (2.1) Read the device type and functional characteristics of the successfully matched device by traversing different protocols.
[0036] (2.2) After successful reading, a control package is sent to each device function that has been successfully matched. After receiving all successful control feedback packages, the device's unique identifier, device type, and functional characteristics are associated and stored.
[0037] Figure 2 The above steps are based on the normal communication between the device and the gateway to read the device's unique identification, device type and functional characteristics.
[0038] like Figure 3 The configuration file inheritance confirmation process of the replacement device includes the following steps: (3.1) Perform position detection on the matched devices. Under the same baud rate, when the system is silent, the time for each frame of data to reach devices at different distances on the same bus is different. The closer the distance, the earlier the data packet is received. When the nearest unconfigured device receives the data packet first, it immediately enters the sending state and maintains it for 1 second, preparing to reply to the system that it is the first unconfigured device to receive the packet on the bus. At this time, other devices on the bus cannot send data packets because the bus is clamped. After 1 second, other devices automatically give up the bus competition.
[0039] (3.2) According to the above method, calculate the distance between the devices on the bus and the gateway one by one.
[0040] (3.3) Based on the historical data of the replaced device, the distance relationship between the replaced device and the gateway can be known. Based on these distance relationships, the configuration files of the corresponding devices stored in the gateway are prepared.
[0041] (3.4) Synchronously compare the device types and functional features of a pair of new and old devices that have matching distance relationships to confirm that they are devices of the same type and with the same functions.
[0042] (3.5) The historical configuration file is sent to the device that has completed the matching of the old and new devices. The unique identifier of the device that has completed the replacement configuration replaces the unique identifier of the old device in the configuration, and exits the configuration sending state and waits for the configuration verification state.
[0043] Figure 3 Based on the confirmed key features of the above devices, the gateway begins to identify the communication distance between one or more devices with A+B+C feature values and the gateway, and allocates different configuration files to devices with the same features according to different communication distances.
[0044] like Figure 4 The device performs an automated configuration verification process, which distributes and verifies the configuration file based on the one-to-one correspondence between the confirmed device and the configuration file. The specific steps include: (4.1) After all devices are configured, the automated configuration verification process begins. All replaced device functions begin to be automatically executed at intervals of 5 seconds after completion.
[0045] (4.2) If any device execution configuration error occurs during execution, the user can actively trigger any device in the system (such as any switch) to mark it.
[0046] (4.3) Incorrect configuration during the process will not affect other devices to continue to execute the automated configuration verification process.
[0047] Above Figures 1 to 4 The steps are executed sequentially.
[0048] The main components of the bus system are the bus gateway and bus devices. The system members are connected hand in hand by the bus, and the power supply and communication between the systems are completed through the bus. The linkage, scene and other intelligent configurations between all devices in the system are linked together by the gateway through the distribution of configuration files. Usually, the configuration file is generated by professional configuration engineers through the host computer software according to the actual situation on site, and then distributed to all devices. Each device carries its own configuration file.
[0049] At the same time, the gateway records important parameters such as the unique identification, device type, function, configuration file, etc. of the devices in the system.
[0050] In a specific embodiment of the present invention, when one or more devices in the system are damaged and need to be replaced with new devices, this method is applicable when there is no professional person present to use the host computer configuration software for debugging and configuration.
[0051] like Figure 5 , there is a bus gateway and 8 bus devices in the system, 3 of which are devices to be replaced to replace old devices. When the system is powered on, devices 1, 3, and 5 are connected to the system respectively. The baud rates of devices 1 and 3 are 9600bps, and the baud rate of device 5 is 115200bps. Devices 1 and 3 are 1-position switch and 3-position switch panels respectively, and device 5 is a thermostat.
[0052] Device 1 and device 3 broadcast the switch device characteristic value through the switch bus protocol at a baud rate of 9600bps, and device 5 broadcasts the thermostat device characteristic value through the thermostat bus protocol at a baud rate of 115200bps. The gateway receives the characteristic value broadcast by the bus device while switching between the two baud rates of 9600bps and 115200bps. After successful reception, the switch and thermostat protocols are used to parse the received characteristic values respectively, and the unique identification of the device is recorded after correct parsing.
[0053] Then, through the unique identification of devices 1 and 3, use the baud rate of 9600bps and the switch bus protocol to read the device type and device function points of devices 1 and 3. Through the unique identification of device 5, use the baud rate of 115200bps and the thermostat bus protocol to read the device type and device function points of device 5. Through the read device function points, send control command packets to devices 1, 3, and 5 at the corresponding baud rate and bus protocol. After the control packet reply is correctly received, the unique identification of the device and the device type and device function points are associated and stored.
[0054] Next, the gateway enters the configuration file matching process. The gateway first sends a distance detection packet on the bus, which is 8 bits in size. Device 1 will first receive the detection packet on the bus, and then device 1 will immediately switch to the sending state. At this time, the bus is clamped by device 1, and no other device can perform a sending operation. After the clamping process lasts for 1 second, other bus devices will give up sending even if they receive the distance detection packet. At this time, device 1 sends a reply and exits the distance competition. The gateway now believes that device 1 is the closest device among the current devices 1, 3, and 5.
[0055] Similarly, the gateway finds the next closest devices 3 and 5. Based on the distance relationship between the old devices 1, 3, and 5, the gateway compares whether the device types and functional points of the new devices match the old devices, and sends the corresponding configuration files to the matching new devices 1, 3, and 5. The gateway exits the configuration state and enters the verification state.
[0056] The gateway starts to verify the configurations issued by devices 1, 3, and 5 respectively. After each device's configuration is executed, the next configuration will be executed 5 seconds later. If the configuration file execution content of device 3 does not match the original configuration during the process, the user can operate any device, such as pressing the thermostat or other switch device button. The gateway will record the configuration file error of device 3 and continue to execute the configuration verification of device 5.
[0057] After the verification of other devices is completed, the configuration file is sent and verified to device 3 again.
[0058] The method of the present invention is that all devices on the bus broadcast their own characteristic values at different baud rates and different protocols at the same time, and the gateway switches the communication parameters at different time slices, and further performs protocol matching on the characteristic values that can be correctly received under the parameters. The present invention can support multiple devices with different communication parameters and different communication protocols on one bus.
[0059] The present invention is aimed at a deployment solution based on a network server. The present invention is firstly aimed at the bus system of a smart home, and solves the problem that when one or more bus devices under the bus system need to be replaced, the configuration file that the replacement device should inherit is identified according to the gateway's multiple judgment algorithms. This configuration file has no direct relationship with the basic environment and hardware differences, and directly inherits the historical configuration after the inheritance relationship is determined.
[0060] The present invention also discloses that when multiple bus devices with the same characteristic value need to be replaced, the corresponding relationship between the device and the configuration file to be inherited is identified by judging the communication distance. The present invention solves the problem that when multiple identical devices need to be replaced on the bus, the matching relationship cannot be effectively distinguished because the configuration files carried by the same devices are different.
[0061] The specific implementation scheme of this embodiment can refer to the relevant description in the above embodiment, which will not be repeated here.
[0062] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0063] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0064] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0065] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution device. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0066] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the corresponding program may be stored in a computer-readable storage medium, which, when executed, includes one of the steps of the method embodiment or a combination thereof.
[0067] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0068] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0069] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0070] The method, device, processor and computer-readable storage medium of the present invention for realizing rapid configuration for simultaneously replacing devices of different types and protocols are adopted, which reduces the steps of on-site manual operation, improves configuration efficiency and reduces the probability of configuration errors; reduces the difficulty of after-sales service, and users do not need to learn professional configuration software and can quickly operate; reduces dependence on professionals and greatly reduces human maintenance costs; the rapid configuration method can quickly meet users' needs for replacement and new equipment, and improves user stickiness and satisfaction of the product.
[0071] In this specification, the present invention has been described with reference to specific embodiments thereof. However, it is apparent that various modifications and variations may be made without departing from the spirit and scope of the present invention. Therefore, the specification and drawings should be regarded as illustrative rather than restrictive.
Claims
1. A method for realizing rapid configuration for simultaneously replacing devices of different types and protocols, characterized in that: The method comprises the following steps: (1) Identify device communication parameters and protocols; (2) Read the key characteristic value of the device based on the unique hardware identifier of the device; (3) Match the attention correspondence between different devices and configuration files; (4) Send device configuration files and verify them.
2. The method for realizing rapid configuration for simultaneously replacing devices of different types and protocols according to claim 1, characterized in that: The step (1) specifically includes the following steps: (1.1) The bus system is powered on, all devices to be replaced are connected to the bus system, and the devices to be replaced broadcast their device characteristic values at their respective baud rates and parameters; (1.2) The gateway polls and receives characteristic value broadcasts at different baud rates and parameters; (1.3) Determine whether the device characteristic value is successfully identified. If yes, proceed to step (1.4); otherwise, proceed to step (1.2); (1.4) Parse the characteristic value data packet through different protocol frame structures and determine the protocol and protocol characteristics to which the characteristic value belongs; (1.5) Record the unique device identifier, baud rate and other bus parameters; (1.6) All known parameters and protocols are polled and traversed in turn to determine whether all devices to be replaced have been traversed. If so, end the step; otherwise, continue with step (1.2).
3. The method for realizing rapid configuration for simultaneously replacing devices of different types and protocols according to claim 1, characterized in that: The step (2) specifically includes the following steps: (2.1) Read the type, function and characteristics of the device to be replaced in sequence according to the unique hardware identifier of the device; (2.2) Determine whether the reading is successful. If so, continue with step (2.3); otherwise, continue with step (2.1); (2.3) Based on the device function characteristics, send control packets to control the function of each device that has been successfully matched this time; (2.4) Determine whether the control is successful. If so, proceed to step (2.5); otherwise, proceed to step (2.1); (2.5) Associate and store the unique device identifier, device type, and functional characteristics; (2.6) Traverse in sequence and determine whether the traversal is completed. If so, end the step; otherwise, continue with step (2.1).
4. The method for realizing rapid configuration for simultaneously replacing devices of different types and protocols according to claim 1, characterized in that: The step (3) specifically includes the following steps: (3.1) The gateway detects the distance of the device to be replaced; (3.2) The gateway sends a detection packet to detect the location of the matched device; (3.3) After the nearest device receives the data packet, it switches to the sending state and maintains it for 1 second; (3.4) After 1 second, other devices far away automatically give up sending reply packets; (3.5) The nearest device sends a reply packet and exits the distance detection process; (3.6) Traverse in sequence to determine whether all devices to be replaced have been traversed. If so, proceed to step (3.7); otherwise, proceed to step (3.2); (3.7) Calculate the distance relationship between the devices on the bus and the gateway in turn, find out the distance relationship between the device to be replaced and the gateway, and prepare the configuration file of the device to be replaced based on the distance relationship; (3.8) Compare the device type and functional characteristics of the old device and the new device to be replaced to confirm whether they match. If so, proceed to step (3.9); otherwise, proceed to step (3.2); (3.9) Send the historical configuration file to the new device to be replaced, replace the unique identifier of the old device in the configuration with the unique identifier of the replaced device, and exit the configuration sending state, waiting for the configuration verification state.
5. The method for realizing rapid configuration for simultaneously replacing devices of different types and protocols according to claim 1, characterized in that: The step (4) specifically includes the following steps: (4.1) All devices start the automated configuration verification process; (4.2) Automatically execute device configuration files at 5-second intervals; (4.3) Determine whether any device execution configuration error occurs during execution. If so, proceed to step (4.4); otherwise, proceed to step (4.2); (4.4) Marking error profiles through the operation of any device; (4.5) Continue to perform automated configuration verification; (4.6) Determine whether the verification is completed. If so, end the step; otherwise, continue with step (4.2).
6. A device for realizing rapid configuration for simultaneously replacing devices of different types and protocols, characterized in that: The device comprises: a processor configured to execute computer-executable instructions; A memory storing one or more computer executable instructions, wherein when the computer executable instructions are executed by the processor, the steps of the method for realizing rapid configuration for simultaneously replacing devices of different types and protocols as described in any one of claims 1 to 5 are implemented.
7. A processor for implementing rapid configuration for simultaneously replacing devices of different types and protocols, characterized in that: The processor is configured to execute computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for realizing rapid configuration for simultaneously replacing devices of different types and protocols described in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program can be executed by a processor to implement the various steps of the method for realizing rapid configuration for simultaneously replacing devices of different types and protocols as described in any one of claims 1 to 5.