Equipment address configuration method and system, air conditioning system, electronic equipment and medium
By acquiring device information and assigning a unique target address, the problems of low efficiency and conflict in address configuration of air conditioning terminal devices are solved, achieving high efficiency in batch configuration and management.
Patent Information
- Application Number
- CN202511161907.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-19
- Publication Date
- 2025-10-31
AI Technical Summary
In existing technologies, the address configuration of air conditioning terminal devices is inefficient and prone to address conflicts, leading to management inconvenience.
By obtaining the device information of the target device, a unique target address is assigned using the communication module and the management terminal, and then set to the target device through the communication module to avoid address conflicts.
It enables batch configuration of air conditioning terminal device addresses, improving configuration efficiency and avoiding address conflicts, thus ensuring the accuracy and reliability of device management.
Smart Images

Figure CN120881043A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of equipment management, and more particularly to a method, system, air conditioning system, electronic equipment, and medium for configuring equipment addresses. Background Technology
[0002] Air conditioning terminal devices, such as fan coil units, are common components of air conditioning systems. For large-scale commercial projects, a large number of terminal devices are usually configured to meet the demand. To facilitate centralized management of terminal devices, a group control system is often configured to manage and configure all terminal devices in a unified manner.
[0003] In order to enable group control devices to control terminal devices, each terminal device needs to be configured with a unique communication address. In the existing technology, the addresses of terminal devices are configured manually one by one, which is inefficient and prone to address configuration errors, causing address conflicts. Summary of the Invention
[0004] The main objective of this invention is to provide a device address configuration method, system, air conditioning system, electronic device, and medium, aiming to solve the problem of low address configuration efficiency of terminal devices in the prior art.
[0005] To achieve the above objectives, the present invention provides a device address configuration method, the device address configuration method comprising:
[0006] Obtain device information of the target device, wherein the device information is obtained by the communication module from the target device and sent to the management terminal;
[0007] A target address is assigned to the target device based on the device information, wherein different target devices correspond to different target addresses, and the target address is used for communication between the target device and the group control system;
[0008] The target address is sent to the communication module corresponding to the target device, so that the communication module sets the communication address of the target device as the target address.
[0009] Optionally, allocating a target address to the target device based on the device information includes:
[0010] Obtain the unique device identifier corresponding to each of the target devices;
[0011] The unique identifiers of each device are sorted to obtain a device identifier queue;
[0012] The target address is assigned sequentially to the unique device identifiers in the device identifier queue.
[0013] Optionally, allocating a target address to the target device based on the device information includes:
[0014] Obtain the unique device identifier and device batch information corresponding to each of the target devices;
[0015] Identify multiple devices in the same batch corresponding to the batch information of the equipment;
[0016] Determine whether the equipment in the same batch corresponds one-to-one with the unique identifier of the equipment;
[0017] If the devices in the same batch correspond one-to-one with the unique device identifier, then a target address is assigned to the target device based on the unique device identifier.
[0018] Optionally, the step of determining whether the devices in the same batch correspond one-to-one with the unique device identifier includes:
[0019] If the devices in the same batch do not correspond one-to-one with the unique identifier of the device, then the offline devices are determined from the devices in the same batch, wherein the offline devices are target devices that do not correspond to the unique identifier of the device;
[0020] Obtain the offline device information of the offline device, and generate alarm information containing the offline device information;
[0021] The alarm information is indicated.
[0022] Optionally, allocating a target address to the target device based on the device information includes:
[0023] Obtain the unique device identifier and device batch information corresponding to each of the target devices;
[0024] Identify multiple devices in the same batch corresponding to the batch information of the equipment;
[0025] A target address is assigned to each of the devices in the same batch, and the target address is different for each of the devices in the same batch.
[0026] Match the online device corresponding to the unique identifier of the device within the same batch of devices;
[0027] The target address corresponding to the online device is used as the target address of the target device corresponding to the unique identifier of the device.
[0028] Optionally, the step of sending the target address to the communication module corresponding to the target device, so that the communication module sets the communication address of the target device to the target address, includes:
[0029] Obtain the target address corresponding to each of the target devices;
[0030] Determine if multiple identical target addresses exist;
[0031] If multiple identical target addresses exist, then identify conflicting devices with the same target addresses among the target devices;
[0032] The target addresses of the conflicting devices are reassigned so that the target addresses of each target device are different.
[0033] To achieve the above objectives, the present invention also provides a device address configuration system, which is applied to the device address configuration method described above; the device address configuration system includes a management terminal, a communication module, target devices, and a group control system; the management terminal is communicatively connected to the communication module, the communication module is connected to the target devices, and each target device is communicatively connected to the group control system; wherein:
[0034] The communication module is used to obtain the device information corresponding to the target device from the target device, and send the device information to the management terminal;
[0035] The management terminal is used to obtain device information of the target devices, assign target addresses to each target device according to the device information, and send the target addresses to the communication module corresponding to the target devices. Different target devices correspond to different target addresses, and the target addresses are used for communication between the target devices and the group control system.
[0036] The communication module is used to set the communication address of the target device to the target address.
[0037] To achieve the above objectives, the present invention also provides an air conditioning system, which includes a communication module, target devices, and a group control system as described above. The air conditioning system is communicatively connected to a management terminal; the communication module is communicatively connected to the management terminal and to the target devices; and each target device is communicatively connected to the group control system.
[0038] To achieve the above objectives, the present invention also provides an electronic device, the electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the device address configuration method as described above.
[0039] To achieve the above objectives, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the device address configuration method described above.
[0040] This invention proposes a device address configuration method, system, air conditioning system, electronic device, and medium. The method involves acquiring device information of a target device, wherein the device information is obtained by a communication module from the target device and sent to a management terminal. Based on the device information, a target address is assigned to the target device, wherein different target devices correspond to different target addresses, and the target address is used for communication between the target device and the group control system. The target address is then sent to the communication module corresponding to the target device, so that the communication module sets the target device's communication address as the target address. By acquiring device information from the target device through the communication module, different target devices can be distinguished, and different target addresses can be assigned to different target devices based on the device information, thus avoiding address conflicts. Furthermore, by sending the target address to the corresponding target device through the communication module, batch setting of target device addresses is achieved, improving the efficiency of target device address configuration. Attached Figure Description
[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0042] 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, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0044] Figure 1 This is a flowchart illustrating the first embodiment of the device address configuration method of the present invention;
[0045] Figure 2 A module structure diagram of the device address configuration system of this invention;
[0046] Figure 3 This is a schematic diagram of the modular structure of the air conditioning system of the present invention;
[0047] Figure 4 This is a schematic diagram of the module structure of the electronic device of the present invention.
[0048] Explanation of icon numbers:
[0049] label name label name 100 Management terminal 300 Target equipment 200 Communication module 400 Group control system 210 Data transmission unit Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0051] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0052] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.
[0053] This invention provides a device address configuration method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating a first embodiment of the device address configuration method of the present invention, the method comprising the following steps:
[0054] Step S10: Obtain device information of the target device, wherein the device information is obtained by the communication module from the target device and sent to the management terminal;
[0055] The target device is the device that needs to be configured with an address. The specific type of the target device can be set according to actual needs. For example, the target device is a terminal device in an air conditioning system, such as a fan coil unit. When configuring the address, since the fan coil unit communicates with the group control system through a handheld device, the specific target device can be the handheld device on the fan coil unit. This embodiment and subsequent embodiments use the handheld device as the target device for illustration.
[0056] The device information refers to the relevant information of the target device. The target device has pre-set corresponding device information; for example, when a handheld device leaves the factory, the factory system writes the device information into the handheld device's storage module. The target device establishes a communication connection with the communication module. When address configuration is required, the communication module obtains the device information from the target device and sends it to the management terminal. The communication module communicates with the management terminal. The communication module is a module capable of communicating with the management terminal. It is understood that existing handheld devices, besides connecting to the group control system via a bus, do not have other communication methods. Therefore, in order to achieve communication with the management terminal, this embodiment sets up a communication module to realize information transmission between the management terminal and the target device.
[0057] Specifically, when the handheld device is powered on, it can actively send the stored device information to the communication module, so that the communication module can send the device information to the management terminal.
[0058] The management terminal can be configured according to actual needs. It can be a server from the handheld device manufacturer or an air conditioning system manufacturer, serving as the management terminal for the location of the air conditioning system. The specific communication method between the management terminal and the communication module can be configured based on the actual needs of the management terminal, such as Ethernet, LAN, or NFC. If the management terminal is a server, the communication module can connect to the server via Ethernet. When the management terminal is a server from the handheld device manufacturer, it can obtain management permissions and API interface permissions from the handheld device manufacturer's server, and use these permissions to call the handheld device manufacturer's server to implement the relevant functions of the management terminal.
[0059] Step S20: Assign a target address to the target device according to the device information, wherein different target devices correspond to different target addresses, and the target address is used for communication between the target device and the group control system;
[0060] The target address is the communication address assigned to the target device. It can be understood that the group control system needs to establish communication connections with multiple target devices. Therefore, in order to control each target device, the corresponding communication addresses of different target devices in the group control system should be set differently to distinguish the target devices in the group control system.
[0061] Since the equipment information is set based on the actual information of the specific target equipment, the equipment information can reflect the uniqueness of the target equipment. That is, the equipment information corresponding to different target equipment is different. Therefore, the unique characterization of the target equipment can be achieved based on the equipment information. Thus, the target address assigned to the target equipment based on the equipment information can correspond to the target equipment actually set in the air conditioning system, thereby determining the target address corresponding to each target equipment.
[0062] It should be noted that the group control system has a communication connection with each target device. However, before the target address is determined, the target device does not have a communication address in the communication scenario of the group control system. Therefore, it cannot communicate with the group control system and thus cannot configure the address of the target device through the group control system. In order to achieve batch address configuration, this embodiment sets up a communication module and a management terminal, so that before the target address is configured, communication can be achieved between the communication module and the management terminal, and the address of the target device can be configured through the management terminal.
[0063] Step S30: Send the target address to the communication module corresponding to the target device, so that the communication module sets the communication address of the target device as the target address.
[0064] Once the target address is determined, it can be sent to the target device to set the target device's communication address in the group control system as the target address, thus enabling batch configuration of target addresses for multiple target devices.
[0065] This embodiment obtains device information from the target device through the communication module, enabling the differentiation of different target devices. Based on the device information, different target addresses are assigned to different target devices, thus avoiding address conflicts. The target addresses are then sent to the corresponding target devices through the communication module, achieving batch setting of target device addresses and improving the efficiency of target device address configuration.
[0066] For ease of explanation, the device address configuration system used in the device address configuration method of this invention will be described first, see [link to documentation]. Figure 2 The device address configuration system includes a management terminal 100, a communication module 200, target devices 300, and a group control system 400; the management terminal 100 is communicatively connected to the communication module 200, the communication module 200 is connected to the target devices 300, and each target device 300 is communicatively connected to the group control system 400; wherein:
[0067] The communication module 200 is used to obtain the device information corresponding to the target device 300 from the target device 300, and send the device information to the management terminal 100;
[0068] The management terminal 100 is used to assign a target address to each of the target devices 300 according to the device information, and send the target address to the communication module 200 corresponding to the target device 300. Different target devices 300 correspond to different target addresses, and the target address is used for communication between the target device 300 and the group control system 400.
[0069] The communication module 200 is used to set the communication address of the target device 300 to the target address.
[0070] The group control system 400 establishes a communication connection with each target device 300 to control the target device 300; the basis for the group control system 400 to control the target device 300 is that the target device 300 is configured with the corresponding communication address.
[0071] The target device 300 is connected to the management terminal 100 through the communication module 200. The target device 300 stores device information and sends the device information to the management terminal 100 through the communication module 200. The management terminal 100 assigns a target address to each target device 300 according to the received device information of each target device 300, so that each target device 300 can be assigned a different target address. After the target address is determined, the target address is sent to the corresponding target device 300 through the communication module 200, thereby realizing the batch configuration of target addresses for multiple target devices 300.
[0072] After the target device 300 sets the communication address to the target address, the group control system 400 can control the target device 300.
[0073] In this embodiment, the communication module 200 obtains device information from the target device 300, enabling the differentiation of different target devices 300. Based on the device information, different target addresses are assigned to different target devices 300, thus avoiding address conflicts. The communication module 200 sends the target addresses to the corresponding target devices 300, realizing batch setting of the addresses of the target devices 300 and improving the address configuration efficiency of the target devices 300.
[0074] Furthermore, each of the target devices 300 is configured to be connected hand in hand, and the first device among the target devices 300 is connected to the group control system 400, wherein the first device is the head device or the tail device among the target devices 300 connected hand in hand.
[0075] In this embodiment, the target devices 300 are connected in a daisy-chain manner. This daisy-chain connection method simplifies wiring, facilitates device setup, reduces costs, and at the same time reduces signal reflection and electromagnetic interference, thereby improving communication reliability.
[0076] Since the target devices 300 are connected in a daisy-chain manner, when the group control device connects to the target device 300, it can connect through the first target device 300 in the daisy-chain structure, i.e., the head device, or the second target device 300, i.e., the tail device. The daisy-chain method enables signal transmission among all target devices 300. Therefore, the group control system 400 only needs to connect to one target device 300 to achieve communication with all target devices 300.
[0077] Furthermore, each of the target devices 300 is daisy-chained via a 485 bus.
[0078] In this embodiment, the group control system 400 and the target device 300 are connected via a 485 bus; the specific connection structure of the target device 300 can be set according to actual needs, such as by connecting via shielded twisted pair cable.
[0079] Furthermore, each of the target devices 300 is connected to the group control system 400.
[0080] In other embodiments, the target device 300 and the group control system 400 can be connected separately. It is understood that different connection methods have different characteristics. For example, the daisy-chain connection method can simplify the system and has good reliability, but if a communication line is broken, it will affect the communication of other target devices 300. On the other hand, the method in which each target device 300 is directly connected to the group control system 400 can avoid the problem of a single target device 300's communication failure affecting other target devices 300, but its wiring is relatively complex and has greater interference. Therefore, the connection method between the target device 300 and the group control system 400 can be selected based on actual needs.
[0081] Furthermore, the communication module 200 includes a plurality of data transmission units 210, each of which is connected to the target device 300 in a one-to-one correspondence; each of the data transmission units 210 is communicatively connected to the management terminal 100.
[0082] It is understandable that the communication module 200 needs to obtain device information from the target device 300. However, the target device 300 itself is not configured with a communication address. Therefore, in order to enable communication with the target device 300 without configuring a communication address, this embodiment sets up multiple DTUs (Data Transfer Units 210) and sets each DTU to correspond one-to-one with the target device 300. At this time, the communication between the data transfer unit 210 and the target device 300 is unique. Therefore, without setting the communication address of the group control system 400, the data transfer unit 210 can obtain device information from the target device 300 and send the device information to the management terminal 100. At the same time, it can also write the target address sent by the management terminal 100 into the target device 300, thereby configuring the communication address of the target device 300.
[0083] The specific connection method between the data transmission unit 210 and the target device 300 can be set according to actual needs, such as CAN bus, 485 bus, UART bus, etc.
[0084] Furthermore, the target device 300 includes a control unit and a storage unit, the control unit and the storage unit are communicatively connected, and the control units of each target device 300 are daisy-chained; wherein:
[0085] The storage unit stores the device information of the target device 300, including a unique device identifier and device batch information.
[0086] The equipment information is pre-set in the target equipment 300; the equipment information may specifically include the equipment unique identifier and the equipment batch information; the equipment unique identifier is used to indicate the uniqueness of the target equipment 300, such as the equipment ID or equipment barcode; the equipment batch information is used to indicate the relevant information of the batch in which the target equipment 300 belongs.
[0087] It is understandable that handheld controllers are shipped in batches, with each batch containing multiple controllers. For a project, typically one batch of handheld controllers is used to control the terminal fan coil unit. Therefore, address configuration often requires configuring a batch of handheld controllers. In this embodiment, by setting the target device batch information in the storage unit, the management terminal 100 can determine the batch to which the target device 300 belongs, thereby identifying all target devices 300 within that batch. This enables batch address configuration of the target devices 300, improving configuration efficiency.
[0088] Furthermore, the management terminal 100 includes a storage module, wherein:
[0089] The storage module stores device batch data, which includes device information for all target devices 300 in the batch corresponding to the device batch information.
[0090] The management terminal 100 contains corresponding device batch data. The device batch data package contains device information of the target device 300 included in each batch. The device batch data contains the content of the specific batch corresponding to the device batch information. Therefore, the device information of the target device 300 in the batch can be determined through the device batch information.
[0091] Furthermore, in the second embodiment of the device address configuration method of the present invention based on the first embodiment of the present invention, step S20 includes the following steps:
[0092] Step S21: Obtain the unique device identifier corresponding to each of the target devices;
[0093] Step S22: Sort the unique identifiers of each device to obtain a device identifier queue;
[0094] Step S23: Assign target addresses sequentially to the unique device identifiers in the device identifier queue.
[0095] Unique device identifiers are used to indicate the uniqueness of a target device, such as device ID or device barcode.
[0096] Since the unique identifier of the target device is unique, sorting the unique identifiers of the target devices can yield a queue of device identifiers arranged in order of unique identifier. Based on the queue of device identifiers, target addresses are assigned to the target devices sequentially. For example, when the group control system connects to the target devices through the Modbus RTU communication interface, the communication address is assigned starting from 0x01. That is, the first target device in the device identifier queue is assigned 0x01 as the target address, the second target device is assigned 0x02 as the target address, and so on, until target addresses are determined for all target devices.
[0097] This embodiment sorts the unique device identifiers to obtain a device identifier queue and then allocates target addresses sequentially. This avoids duplicate allocation of target addresses and ensures the uniqueness of each target address within the target device. It should be noted that the specific target address allocation method can be set based on actual needs, as long as different target devices are assigned different target addresses.
[0098] Furthermore, in the third embodiment of the device address configuration method of the present invention based on the first embodiment of the present invention, step S20 includes the following steps:
[0099] Step S24: Obtain the unique device identifier and device batch information corresponding to each target device;
[0100] Step S25: Determine multiple devices in the same batch corresponding to the batch information of the devices;
[0101] Step S26: Determine whether the devices in the same batch correspond one-to-one with the unique device identifier;
[0102] Step S27: If the devices in the same batch correspond one-to-one with the device unique identifier, then assign a target address to the target device according to the device unique identifier.
[0103] Equipment batch information is used to indicate the relevant information of the batch to which the target equipment belongs.
[0104] It is understandable that handheld controllers are shipped in batches, with each batch containing multiple handheld controllers. For a project, a batch of handheld controllers is typically used to control the terminal fan coil unit. Therefore, address configuration often requires configuring a batch of handheld controllers. In this embodiment, by setting the device batch information of the target device in the storage unit, the management terminal can determine the batch of the target device, thereby identifying all target devices within that batch, i.e., devices in the same batch.
[0105] When there is a one-to-one correspondence between devices in the same batch and their unique identifiers, it means that all devices in the batch are online. At this time, assigning a target address to the target device through the device's unique identifier can achieve address configuration for all devices in the batch.
[0106] Step S28: If the devices in the same batch do not correspond one-to-one with the unique device identifier, then determine the offline devices in the same batch, wherein the offline devices are target devices that do not correspond to the unique device identifier.
[0107] Step S29: Obtain the offline device information of the offline device and generate alarm information containing the offline device information;
[0108] Step S210: Indicate the alarm information.
[0109] When the devices in the same batch do not correspond one-to-one with their unique identifiers, it indicates that there are target devices in the batch that are not online. This may be because target devices with abnormal electrical connections have failed to power on or have failed to send device information to the management terminal through the communication module. Therefore, it is necessary to investigate the electrical connection abnormalities of the target devices to ensure that the addresses of all target devices in the batch are configured.
[0110] Therefore, in this embodiment, target devices that have not received device information within the same batch of devices, i.e., devices that have been taken offline, are identified, and alarm information containing the information of these offline devices is generated to indicate the alarm information. The specific method of indicating the alarm information can be set according to actual needs. For example, if the management terminal is the server of the handheld device manufacturer, the alarm information can be sent to the management terminal of the air conditioning system so that the management terminal can display the alarm information; or if the management terminal is the management terminal of the air conditioning system, the alarm information can be displayed on the management terminal. The offline device information is used to indicate the information of the offline device, such as the unique identifier of the offline device.
[0111] The management terminal can also set the correspondence between device information and the specific location of the handheld device. After obtaining alarm information, the location of the offline device can be obtained by matching the offline information in the alarm information and the location of the offline device can be displayed. This allows users to quickly locate the offline handheld device based on the location of the offline device and troubleshoot any abnormalities of the offline device.
[0112] Furthermore, in the fourth embodiment of the device address configuration method of the present invention based on the first embodiment of the present invention, step S20 includes the following steps:
[0113] Step S211: Obtain the unique device identifier and device batch information corresponding to each target device;
[0114] Step S212: Determine multiple devices in the same batch corresponding to the batch information of the devices;
[0115] Step S213: Assign a target address to each of the devices in the same batch, wherein the target addresses corresponding to each of the devices in the same batch are different;
[0116] Step S214: Match the online device corresponding to the unique identifier of the device in the same batch of devices;
[0117] Step S215: Use the target address corresponding to the online device as the target address of the target device corresponding to the device's unique identifier.
[0118] In practical applications, the air conditioning system may not configure all target devices within a batch at once. Therefore, some devices in the same batch may not be used at this time, but may still be activated later. When they are activated later, target address configuration is still required. Therefore, in order to ensure the uniqueness of the communication address of devices within a batch, in this embodiment, target addresses are first assigned to all devices in the same batch. Then, online devices are identified in the same batch, and the communication address of the online devices is set to the corresponding target address, thereby realizing the address configuration of the online target devices. Target addresses are also assigned to devices that are not currently in use, thereby ensuring that devices in the same batch have a unique communication address. When a new target device in the same batch is activated later, the corresponding target address can be directly matched from the target addresses of the devices in the same batch, ensuring that the communication address of the newly activated device is different from that of the original target device.
[0119] This embodiment enables address configuration when some devices in the same batch are not yet enabled, thus ensuring the uniqueness of the communication address of each target device when new devices are enabled later.
[0120] Furthermore, in the fifth embodiment of the device address configuration method of the present invention based on the first embodiment of the present invention, step S30 is followed by the following step:
[0121] Step S40: Obtain the target address corresponding to each of the target devices;
[0122] Step S50: Determine if there are multiple identical target addresses;
[0123] Step S60: If multiple identical target addresses exist, identify conflicting devices with the same target addresses among the target devices.
[0124] Step S70: Reassign target addresses to the conflicting devices so that the target addresses of each target device are different.
[0125] In practical applications, manual operation or system errors may cause different target devices to be set to the same communication address. In this case, there is an address conflict between the target devices, which affects the group control system's control of the target devices. Therefore, it is necessary to resolve the conflicting addresses.
[0126] The management terminal can periodically obtain the target address of each target device; in practice, each target device can periodically send its own target address to the management terminal through the communication module.
[0127] The management terminal checks the target addresses of each target device to determine if multiple target devices have the same target address. If multiple target devices have the same target address, the conflicting device with the same target address is identified, and a new target address is assigned to the conflicting device to resolve the address conflict issue.
[0128] The specific method for reallocating target addresses can be set based on actual needs. For example, the target address of the conflicting device with the smallest sequence number corresponding to the device's unique identifier can be kept unchanged, while free target addresses can be allocated to other conflicting devices.
[0129] This embodiment detects conflicting devices, enabling the identification and timely resolution of address conflict issues, thus ensuring the normal control of the target device.
[0130] Further, step S70 includes:
[0131] Step S71: Obtain conflict device information corresponding to each of the conflicting devices;
[0132] Step S72: Indicate the conflicting device information;
[0133] Step S73: Receive the user-defined address input based on the conflicting device information;
[0134] Step S74: Use the user-defined address as the target address of the conflicting device.
[0135] The conflicting device information refers to the device information corresponding to the conflicting device. There are various reasons for conflicting devices. In some cases, there may be a need to set a special address for the target device. Therefore, after a conflicting device is detected, the conflicting device information can be indicated. The indication method for conflicting device information can be similar to the aforementioned alarm information. For example, if the conflicting device information is displayed on the management terminal, the user can identify the conflicting device on the management terminal and set a specific communication address for the conflicting device, i.e., the user-defined address. After receiving the user-defined address, the management terminal sends the user-defined address to the corresponding conflicting device through the communication module to update the communication address of the conflicting device.
[0136] In this application, the user sets the address of the conflicting device, which can adapt to more application scenarios and ensure the rationality of the target device's communication address setting.
[0137] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0138] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0139] This application also provides a device address configuration system for implementing the above-described device address configuration method. The device address configuration system is applied to the device address configuration method described above. The device address configuration system includes a management terminal, a communication module, target devices, and a group control system. The management terminal is communicatively connected to the communication module, the communication module is connected to the target devices, and each target device is communicatively connected to the group control system. Wherein:
[0140] The communication module is used to obtain the device information corresponding to the target device from the target device, and send the device information to the management terminal;
[0141] The management terminal is used to obtain device information of the target devices, assign target addresses to each target device according to the device information, and send the target addresses to the communication module corresponding to the target device. Different target devices correspond to different target addresses, and the target addresses are used for communication between the target devices and the group control system.
[0142] The communication module is used to set the communication address of the target device to the target address.
[0143] This device address configuration system obtains device information from the target device through the communication module, enabling the differentiation of different target devices. Based on the device information, different target addresses are assigned to different target devices, thus avoiding address conflicts. The target address is then sent to the corresponding target device through the communication module, realizing batch setting of target device addresses and improving the efficiency of target device address configuration.
[0144] Furthermore, the management terminal is also used to obtain the unique device identifier corresponding to each of the target devices; sort the unique device identifiers to obtain a device identifier queue; and sequentially assign target addresses to the unique device identifiers in the device identifier queue.
[0145] Furthermore, the management terminal is also used to obtain the unique device identifier and device batch information corresponding to each target device; determine multiple devices in the same batch corresponding to the device batch information; determine whether the devices in the same batch correspond one-to-one with the unique device identifier; if the devices in the same batch correspond one-to-one with the unique device identifier, then allocate a target address to the target device according to the unique device identifier.
[0146] Furthermore, the management terminal is also used to determine offline devices in the same batch of devices if the devices in the same batch do not correspond one-to-one with the device unique identifier, wherein the offline device is a target device that does not correspond to the device unique identifier; obtain offline device information of the offline device, generate alarm information containing the offline device information; and provide indication for the alarm information.
[0147] Furthermore, the management terminal is also used to obtain the unique device identifier and device batch information corresponding to each target device; determine multiple devices in the same batch corresponding to the device batch information; assign a target address to each device in the same batch, wherein the target addresses corresponding to each device in the same batch are different; match the online device corresponding to the unique device identifier in the same batch; and use the target address corresponding to the online device as the target address of the target device corresponding to the unique device identifier.
[0148] Furthermore, the management terminal is also used to obtain the target address corresponding to each target device; determine whether there are multiple identical target addresses; if there are multiple identical target addresses, identify conflicting devices with the same target address among the target devices; and reassign target addresses to the conflicting devices so that the target addresses of each target device are different.
[0149] The present invention also provides an air conditioning system, see below. Figure 3The air conditioning system includes the communication module, target devices, and group control system as described above. The air conditioning system is communicatively connected to the management terminal. The communication module is communicatively connected to the management terminal and the target devices. Each target device is communicatively connected to the group control system.
[0150] Furthermore, the air conditioning system includes a terminal fan coil unit, and the target device is a handheld device corresponding to the terminal fan coil unit.
[0151] Reference Figure 4 In terms of hardware structure, the electronic device may include components such as a communication module 10, a memory 20, and a processor 30. In the electronic device, the processor 30 is connected to both the memory 20 and the communication module 10. The memory 20 stores a computer program, which is executed by the processor 30. When the computer program is executed, it implements the steps of the above-described method embodiments.
[0152] The communication module 10 can connect to external communication devices via a network. The communication module 10 can receive requests from the external communication devices and can also send requests, instructions, and information to the external communication devices. The external communication devices can be other electronic devices, servers, or IoT devices, such as televisions, etc.
[0153] The memory 20 can be used to store software programs and various data. The memory 20 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as obtaining device information of the target device), etc.; the data storage area may include a database, and may store data or information created based on system usage. Furthermore, the memory 20 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0154] The processor 30 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 20, and by calling data stored in the memory 20, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. The processor 30 may include one or more processing units; optionally, the processor 30 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 30.
[0155] although Figure 4Not shown, but the above-described electronic device may further include a circuit control module for connecting to a power supply to ensure the normal operation of other components. Those skilled in the art will understand that... Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0156] The present invention also proposes a computer-readable storage medium having a computer program stored thereon. The computer-readable storage medium may be... Figure 4 The memory 20 in the electronic device may also be at least one of ROM (Read-Only Memory) / RAM (Random Access Memory), magnetic disk, optical disk, etc. The computer-readable storage medium includes a number of instructions to cause a terminal device with a processor (which may be a television, automobile, mobile phone, computer, server, terminal, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0157] In this invention, the terms "first," "second," "third," "fourth," and "fifth" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0158] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0159] Although embodiments of the present invention have been shown and described above, the scope of protection of the present invention is not limited thereto. It is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, and substitutions to the above embodiments within the scope of the present invention, and such changes, modifications, and 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. A device address configuration method, characterized in that, The device address configuration method includes: Obtain device information of the target device, wherein the device information is obtained by the communication module from the target device and sent to the management terminal; A target address is assigned to the target device based on the device information, wherein different target devices correspond to different target addresses, and the target address is used for communication between the target device and the group control system; The target address is sent to the communication module corresponding to the target device, so that the communication module sets the communication address of the target device as the target address.
2. The device address configuration method as described in claim 1, characterized in that, The step of allocating a target address to the target device based on the device information includes: Obtain the unique device identifier corresponding to each of the target devices; The unique identifiers of each device are sorted to obtain a device identifier queue; The target address is assigned sequentially to the unique device identifiers in the device identifier queue.
3. The device address configuration method as described in claim 1, characterized in that, The step of allocating a target address to the target device based on the device information includes: Obtain the unique device identifier and device batch information corresponding to each of the target devices; Identify multiple devices in the same batch corresponding to the batch information of the equipment; Determine whether the equipment in the same batch corresponds one-to-one with the unique identifier of the equipment; If the devices in the same batch correspond one-to-one with the unique device identifier, then a target address is assigned to the target device based on the unique device identifier.
4. The device address configuration method as described in claim 3, characterized in that, The step of determining whether the devices in the same batch correspond one-to-one with the unique identifier of the devices includes: If the devices in the same batch do not correspond one-to-one with the unique identifier of the device, then the offline devices are determined from the devices in the same batch, wherein the offline devices are target devices that do not correspond to the unique identifier of the device; Obtain the offline device information of the offline device, and generate alarm information containing the offline device information; The alarm information is indicated.
5. The device address configuration method as described in claim 1, characterized in that, The step of allocating a target address to the target device based on the device information includes: Obtain the unique device identifier and device batch information corresponding to each of the target devices; Identify multiple devices in the same batch corresponding to the batch information of the equipment; A target address is assigned to each of the devices in the same batch, and the target address is different for each of the devices in the same batch. Match the online device corresponding to the unique identifier of the device within the same batch of devices; The target address corresponding to the online device is used as the target address of the target device corresponding to the unique identifier of the device.
6. The device address configuration method as described in claim 1, characterized in that, The step of sending the target address to the communication module corresponding to the target device, so that the communication module sets the communication address of the target device to the target address, includes: Obtain the target address corresponding to each of the target devices; Determine if multiple identical target addresses exist; If multiple identical target addresses exist, then identify conflicting devices with the same target addresses among the target devices; The target addresses of the conflicting devices are reassigned so that the target addresses of each target device are different.
7. A device address configuration system, characterized in that, The device address configuration system is applied to the device address configuration method as described in any one of claims 1 to 6; the device address configuration system includes a management terminal, a communication module, target devices, and a group control system; the management terminal is communicatively connected to the communication module, the communication module is connected to the target devices, and each target device is communicatively connected to the group control system; wherein: The communication module is used to obtain the device information corresponding to the target device from the target device, and send the device information to the management terminal; The management terminal is used to obtain device information of the target devices, assign target addresses to each target device according to the device information, and send the target addresses to the communication module corresponding to the target devices. Different target devices correspond to different target addresses, and the target addresses are used for communication between the target devices and the group control system. The communication module is used to set the communication address of the target device to the target address.
8. An air conditioning system, characterized in that, The air conditioning system includes a communication module, target devices, and a group control system as described in any one of claims 7. The air conditioning system is communicatively connected to the management terminal. The communication module is communicatively connected to the management terminal and to the target devices. Each target device is communicatively connected to the group control system.
9. An electronic device, characterized in that, The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the device address configuration method as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the device address configuration method as described in any one of claims 1 to 6.