Method, device, equipment and medium for identifying wireless devices

By sending pulse signal query instructions to wireless slave devices and analyzing the reception duration, the installation problem of multi-zone controllers in traditional regional control systems is solved, the address setting and unified control of wireless devices are realized, and the efficiency and accuracy of regional control are improved.

CN116582850BActive Publication Date: 2025-09-26GUANGDONG NEW ENERGY TECH DEV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310541868.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-12
Publication Date
2025-09-26
Estimated Expiration
2043-05-12

AI Technical Summary

Technical Problem

In traditional zone control systems, the installation and debugging of multi-zone controllers are inconvenient. This is especially true in multi-zone centralized control systems, where installation and wiring are very difficult. Furthermore, identifying and controlling multiple wireless signal control ports in the same zone is a major challenge.

Method used

By sending a pulse signal query instruction to the wireless slave device, receiving and analyzing the pulse signal and duration, determining the address setting method based on the duration, and then setting the address of the wireless slave device, including grouping processing and sending adaptation instructions to achieve address setting.

Benefits of technology

It facilitates unified coordination and control of various wireless devices, simplifies the installation process, and improves the efficiency and accuracy of regional control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116582850B_ABST
    Figure CN116582850B_ABST
Patent Text Reader

Abstract

Embodiments of the present invention disclose a method, apparatus, device, and medium for identifying wireless devices. The method is performed by a wireless host device and includes: sending a pulse signal query instruction to a wireless slave device; wherein the wireless slave device and the wireless host device are within a set area; receiving a pulse signal and a reception duration returned by the wireless slave device based on the pulse signal query instruction; wherein the reception duration is the duration from sending the pulse signal query instruction to receiving the pulse signal; determining an address setting method based on the reception duration; and setting the address of the corresponding wireless slave device based on the address setting method. This technical solution can facilitate unified coordination and control of various wireless devices and achieve regional control by identifying and addressing the signals of wireless devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless technology, and in particular to a method, apparatus, device and medium for identifying a wireless device. Background Art

[0002] In the field of air conditioning and heat pump control and applications, traditional zone control systems mostly use wired transmission control. This creates numerous inconveniences in the installation and commissioning of multi-zone controllers. During installation, special drilling and hole drilling are required for communication and power cables. This is particularly challenging in multi-zone centralized control systems, where installation and routing are particularly challenging. Wireless signal control technology is gradually being introduced. However, identifying and controlling multiple wireless signal control ports within the same zone presents a significant challenge. Summary of the Invention

[0003] The present invention provides a method, apparatus, device and medium for identifying wireless devices, which can identify the signals of wireless devices and set addresses, thereby facilitating unified coordination and control of various wireless devices and realizing regional control.

[0004] According to one aspect of the present invention, a method for identifying a wireless device is provided, the method being executed by a wireless host device, comprising:

[0005] Sending a pulse signal query instruction to a wireless slave device; wherein the wireless slave device and the wireless master device are within a set area;

[0006] Receive a pulse signal and a reception duration returned by the wireless slave device based on the pulse signal query instruction; wherein the reception duration is the duration from sending the pulse signal query instruction to receiving the pulse signal;

[0007] determining an address setting method based on the reception duration;

[0008] The address of the corresponding wireless slave device is set based on the address setting method.

[0009] Optionally, determining an address setting method based on the reception duration includes:

[0010] Grouping the pulse signals according to the reception duration to obtain at least one pulse signal group;

[0011] Determine the address setting method corresponding to each pulse signal group.

[0012] Optionally, grouping the pulse signals according to the reception duration includes:

[0013] Dividing the pulse signals having the same reception duration into a group;

[0014] The pulse signals with different receiving durations are divided into one group.

[0015] Optionally, determining the address setting method corresponding to each pulse signal group includes:

[0016] For a pulse signal group having different reception durations, the address setting method is determined as follows: for each pulse signal in the pulse signal group, a first adaptation instruction is sent to the corresponding wireless slave device;

[0017] When receiving the first waiting instruction returned by the wireless slave device based on the first adaptation instruction, continue to send a first address setting instruction to the wireless slave device to set the address of the wireless slave device; wherein the first address setting instruction includes first set address information.

[0018] Optionally, determining the address setting method corresponding to each pulse signal group includes:

[0019] For a pulse signal group with the same reception duration, the address setting method is determined as follows: for each pulse signal in the pulse signal group, a second adaptation instruction is sent to the corresponding wireless slave device;

[0020] upon receiving a second waiting instruction returned by the wireless slave device based on the second adaptation instruction, continuing to send the adaptive waiting instruction to the wireless slave device;

[0021] receiving an adaptive start instruction returned by the wireless slave device based on the adaptive wait instruction; wherein the adaptive start instruction is generated by the wireless slave device based on a comparison result of the instruction duration and the reception duration; and the adaptive start instruction is returned by the wireless slave device based on the adjusted power;

[0022] determining the adjusted power of the wireless slave device according to the adaptive startup instruction, and generating a second address setting instruction based on the adjusted power of the wireless slave device; wherein the second address setting instruction includes the adjusted power of the wireless slave device and second set address information;

[0023] The second address setting instruction is sent to the wireless slave device to set the address of the wireless slave device.

[0024] Optionally, after setting the address of the corresponding wireless slave device based on the address setting method, the method further includes:

[0025] receiving a determination instruction sent by the wireless slave device; wherein the determination instruction includes third set address information of the wireless slave device;

[0026] determining whether the third set address information is consistent with the address of the wireless slave device;

[0027] If the third set address information is consistent with the address of the wireless slave device, the address setting of the wireless slave device is completed.

[0028] According to another aspect of the present invention, there is provided a device for identifying a wireless device, the device being configured in a wireless host device and comprising:

[0029] A query instruction sending module is used to send a pulse signal query instruction to a wireless slave device; wherein the wireless slave device and the wireless master device are within a set area;

[0030] A signal and duration receiving module, configured to receive a pulse signal and a receiving duration returned by the wireless slave device based on the pulse signal query instruction; wherein the receiving duration is the duration from sending the pulse signal query instruction to receiving the pulse signal;

[0031] An address setting mode determining module, configured to determine an address setting mode based on the reception duration;

[0032] The address setting module is used to set the address of the corresponding wireless slave device based on the address setting method.

[0033] Optionally, the address setting method determination module includes:

[0034] a pulse information group acquiring unit, configured to group the pulse signals according to the reception duration to obtain at least one pulse signal group;

[0035] The address setting mode determining unit is used to determine the address setting modes corresponding to each pulse signal group.

[0036] According to another aspect of the present invention, an electronic device is provided, comprising:

[0037] at least one processor; and

[0038] a memory communicatively connected to the at least one processor; wherein,

[0039] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the wireless device identification method according to any embodiment of the present invention.

[0040] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the wireless device identification method according to any embodiment of the present invention when executed.

[0041] The technical solution of an embodiment of the present invention involves sending a pulse signal query instruction to a wireless slave device; wherein the wireless slave device and the wireless master device are within a set area; receiving a pulse signal returned by the wireless slave device based on the pulse signal query instruction and the reception duration; wherein the reception duration is the duration between sending the pulse signal query instruction and receiving the pulse signal; determining an address setting method based on the reception duration; and setting the address of the corresponding wireless slave device based on the address setting method. This technical solution can facilitate unified coordination and control of various wireless devices and achieve regional control by identifying and setting addresses based on wireless device signals.

[0042] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 This is a flowchart of a method for identifying a wireless device according to a first embodiment of the present invention;

[0045] Figure 2 This is an example diagram of a pulse signal received from a wireless slave device according to the first embodiment of the present invention;

[0046] Figure 3 This is a flowchart of a method for identifying a wireless device according to a second embodiment of the present invention;

[0047] Figure 4 This is a schematic structural diagram of an identification device for a wireless device according to a third embodiment of the present invention;

[0048] Figure 5 It is a structural diagram of an electronic device provided according to the fourth embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0050] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0051] Example 1

[0052] Figure 1 This is a flow chart of a method for identifying a wireless device according to a first embodiment of the present invention. This embodiment is applicable to the case of identifying multiple wireless devices. The method can be executed by an identification device of a wireless device. The identification device of the wireless device can be implemented in the form of hardware and / or software. The identification device of the wireless device can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:

[0053] S110: Send a pulse signal query instruction to the wireless slave device.

[0054] The method of this embodiment can be executed by a wireless host device, which can identify and set address numbers for each wireless slave device within a currently set area. Specifically, in this embodiment, after the system in the currently set area is powered on, the wireless host device can use an automatic recognition mechanism to automatically identify and set the wireless slave devices in the current area, collect and assign the set address numbers of each wireless slave device, thereby facilitating unified coordination and control of wireless slave devices in various areas. For example, this embodiment can be applied to wireless temperature controllers using air conditioning or heat pump control technology to coordinate and control various areas and achieve regional control of room temperature.

[0055] The wireless slave device and the wireless master device are within a set area. The set area can be understood as a pre-set range area, which can be set according to actual conditions. The set area can send and receive wireless signals and perform data transmission and processing. The wireless master device in this embodiment can identify and set wireless slave devices within the set area, and can also identify and set wireless slave devices within the set area. The wireless slave device in this embodiment can be at least one, for example, one wireless slave device, or three wireless slave devices, or seven wireless slave devices. The pulse signal query instruction can be understood as an instruction to query the pulse signal of the wireless slave device. The pulse signal query instruction in this embodiment can be used to determine the number of all wireless slave devices currently within the set area.

[0056] The wireless master device in this embodiment may use a set transmission power to send a pulse signal query instruction to the wireless slave device.

[0057] S120: Receive the pulse signal and reception duration returned by the wireless slave device based on the pulse signal query instruction.

[0058] The reception duration may be the duration between sending the pulse signal query instruction and receiving the pulse signal. The pulse signal may be a signal returned based on the pulse signal query instruction. In this embodiment, the wireless master device may receive the pulse signals returned based on the pulse signal query instruction and the reception duration from all wireless slave devices currently within a set area.

[0059] For example, the pulse signal of the wireless slave device received in this embodiment is shown in FIG. Figure 2 As shown, the wireless host device M1 can send a pulse signal query instruction (which can be a host header code 0xAA and a query instruction 0xEE) according to the set transmission power P0, and receive the pulse signals and reception durations of each wireless slave module currently in the set area in real time to determine the total number of all wireless slave devices in the current area; for example, 7 pulse signals and reception durations are currently received, the 1st pulse signal and its reception duration T1; the 2nd pulse signal and its reception duration T2; the 3rd pulse signal and its reception duration T3; the 4th pulse signal and its reception duration T4; the 5th pulse signal and its reception duration T5; the 6th pulse signal and its reception duration T6; the 7th pulse signal and its reception duration T7; in this embodiment, the set address number of the wireless slave device corresponding to the reception duration can be S1 to S7.

[0060] S130: Determine an address setting method based on the reception duration.

[0061] The address setting method may be different for different reception durations. In this embodiment, the address setting method of each wireless slave device may be determined based on the different reception durations of each wireless slave device, thereby enabling address setting for each wireless slave device.

[0062] S140: Set the address of the corresponding wireless slave device based on the address setting method.

[0063] The address setting can be understood as setting the address of the wireless slave device. In this embodiment, the address modes of the wireless slave devices can be different, and the addresses of the corresponding wireless slave devices can be set based on the address setting modes.

[0064] The technical solution of an embodiment of the present invention involves sending a pulse signal query instruction to a wireless slave device; wherein the wireless slave device and the wireless master device are within a set area; receiving a pulse signal returned by the wireless slave device based on the pulse signal query instruction and the reception duration; wherein the reception duration is the duration between sending the pulse signal query instruction and receiving the pulse signal; determining an address setting method based on the reception duration; and setting the address of the corresponding wireless slave device based on the address setting method. This technical solution can facilitate unified coordination and control of various wireless devices and achieve regional control by identifying and setting addresses based on wireless device signals.

[0065] Example 2

[0066] Figure 3 This is a flow chart of a wireless device identification method provided by embodiment 2 of the present invention. This embodiment is optimized based on the above embodiment. The specific optimization is: determining the address setting method based on the reception duration, including: grouping the pulse signal according to the reception duration to obtain at least one pulse signal group; determining the address setting method corresponding to each pulse signal group. Figure 3 As shown, the method includes:

[0067] S310: Send a pulse signal query instruction to the wireless slave device.

[0068] The wireless slave device and the wireless host device are within a set area.

[0069] S320: Receive the pulse signal and reception duration returned by the wireless slave device based on the pulse signal query instruction.

[0070] The reception duration is the duration from sending a pulse signal query instruction to receiving the pulse signal.

[0071] S330. Group the pulse signals according to the reception duration to obtain at least one pulse signal group.

[0072] The pulse signal group can be obtained by grouping the pulse signals of each wireless slave device. In this embodiment, the pulse signals of each wireless slave device can be grouped according to the time between sending the pulse signal query instruction and receiving the pulse signal, so as to obtain at least one pulse signal group.

[0073] In this embodiment, optionally, the pulse signals are grouped according to the reception duration, including: dividing the pulse signals with the same reception duration into one group; and dividing the pulse signals with different reception durations into one group.

[0074] Among them, the same receiving duration can be understood as the same receiving duration of the pulse signal of the wireless slave device. In this embodiment, the pulse signals with the same receiving duration can be considered to have similar positions if the time before and after the pulse is within the range of the preset basic pulse time difference, and the pulse signals with the same receiving duration can be divided into a group. Among them, the preset basic pulse time difference can be pre-set; illustratively, the preset basic pulse time difference can be ±0.1, and can also be set according to actual needs. The different receiving durations can be understood as the different receiving durations of the pulse signals of the wireless slave devices. In this embodiment, the pulse signals and receiving durations are significantly different, and the time before and after the pulse exceeds the preset basic pulse time difference. The pulse signals that can be identified separately can be divided into a group.

[0075] For example, in this embodiment, the wireless host device M1 can automatically analyze the reception duration of each signal pulse, and divide the pulse signal into pulse signals of each group according to the reception duration. In this embodiment, a basic pulse signal sequence can also be formed according to the reception duration. Figure 2 As shown, for example: T1 <T2=T3<T4<T5=T6<T7。

[0076] The first group of pulse signals: the pulse signals and receiving times are obviously different, the time between the front and back pulses exceeds the preset basic pulse time difference, and the pulse signals that can be identified separately, such as the first signal pulse T1, the fourth signal pulse T4, and the seventh signal pulse T7, can be processed as the first group of pulse signals. In this embodiment, if there are multiple pulse signals with similar receiving times, they are sorted in order according to the length of the receiving time to become the second and third groups of pulse signals. The second group of pulse signals: the pulse signals and receiving times are the same, the time between the front and back pulses is within the preset basic pulse time difference, and the positions of N slave wireless modules are close. These N slave wireless modules are together regarded as the second group of pulse signals. For example, the second pulse signal T2 and the third pulse signal T3 can be processed as the second group of pulse signals. The third group of pulse signals: can be sorted in order according to the second priority pulse signals, such as the fifth signal pulse T5 and the sixth signal pulse T6 can be processed as the third group of pulse signals.

[0077] It should be noted that the “first”, “second” and “third” in the first group of pulse signals, the second group of pulse signals and the third group of pulse signals are only used to distinguish different groups, and do not distinguish the order.

[0078] In addition, in this embodiment, the wireless master device M1 and the wireless slave device can both set the wireless signal transmission power to P0 before completing self-setting. The wireless external device W1 is a fixed wireless signal calibration, and the fixed wireless address automatically set to 0x20 when the module is powered on.

[0079] In this embodiment, the pulse signals can be divided into different groups for processing according to different reception durations, so as to facilitate setting using the corresponding address setting method.

[0080] S340: Determine the address setting method corresponding to each pulse signal group.

[0081] In this embodiment, optionally, the address setting method corresponding to each pulse signal group is determined, including: for pulse signal groups with different reception durations, the address setting method is determined as follows: for each pulse signal in the pulse signal group, a first adaptation instruction is sent to the corresponding wireless slave device; upon receiving a first waiting instruction returned by the wireless slave device based on the first adaptation instruction, a first address setting instruction is continued to be sent to the wireless slave device to perform address setting for the wireless slave device; wherein, the first address setting instruction includes first setting address information.

[0082] The first adaptation instruction can be understood as a confirmation instruction before address setting. In this embodiment, the first adaptation instruction can be sent to the corresponding wireless slave device for each pulse signal in the pulse signal group. After receiving the first adaptation instruction, the wireless slave device in this embodiment will immediately reply to the wireless master device with a first waiting instruction.

[0083] Specifically, the wireless master device in this embodiment can sort the pulse signal groups according to their corresponding reception times, and then send the first adaptation command to the wireless slave devices in sequence based on the set transmit power. In this embodiment, upon receiving the first adaptation command, the wireless slave device immediately responds with a first wait command to the wireless master device, enters a wait setting state, and internally begins counting the instruction reception duration. The instruction reception duration can be the time between responding to the first wait command and receiving the first address setting command from the wireless master device.

[0084] The first address setting instruction can be understood as an instruction for setting an address for the wireless slave device. The first address setting instruction can include first set address information and may also include information about the reception duration of its pulse signal or other information, which can be set according to actual needs. The first set address information can be understood as address information that needs to be set for the wireless slave device. In this embodiment, when the wireless master device receives the first wait instruction returned by the wireless slave device based on the first adaptation instruction, it continues to send the first address setting instruction including the first set address information to the wireless slave device to set the address of the wireless slave device.

[0085] Specifically, when the wireless host device receives a pulse signal based on the first wait instruction, it continues to issue the first address setting instruction; when the wireless slave device receives the first address setting instruction, it parses the instruction and determines whether the receiving time in the instruction information is consistent with the receiving instruction time. If the time is consistent, the address information in the first address setting instruction is obtained to complete the address setting number of the wireless slave device; for example, the address setting number can be S1, S2, or S N In addition, the wireless slave device in this embodiment may also immediately reply to the confirmation instruction. If the time lengths are inconsistent, the wireless slave device may remain in a waiting state without replying.

[0086] For example, the wireless master device in this embodiment can send the first adaptation instruction, the first address setting instruction, and the first determination instruction to the wireless slave device in sequence according to the order of the basic pulse signals of the corresponding wireless slave devices with different reception durations. In this embodiment, the address can be sent to the corresponding wireless slave device according to the order of the pulse signals, thereby completing the address setting. Figure 2As shown, for the first pulse signal T1, the fourth pulse signal T4, and the seventh pulse signal T7, the wireless master device M1 first sets the address of the wireless slave device S1. After completing the address setting of the wireless slave device corresponding to the first pulse signal, it enters the address setting of the wireless slave device S4, and then enters the address setting of the wireless slave device S7. The first adaptation instruction can be set to the master header code 0xAA, the universal adaptation instruction set, and the address Sx set to 0xA0; the first waiting instruction can be set to the slave header code 0x55, the waiting instruction set 0xB0, and the waiting state 0xFF; the first address setting instruction can be set to the master header code 0xAA, the setting instruction set 0xC0, the address Sx set, and the adaptation time Tx0; the first confirmation instruction can be set to the slave header code 0x55, the confirmation instruction set 0xD0, the address Sx set, and the completion state 0xFF. It should be noted that the above instruction setting content is only an example and is not limited. The instruction content can be set according to actual needs.

[0087] Through such a setting in this embodiment, corresponding instructions can be sent to wireless slave devices with different pulse signal reception durations, so that addresses of the wireless slave devices can be set, which facilitates unified coordination and management.

[0088] In this embodiment, optionally, determining the address setting mode corresponding to each pulse signal group includes: for pulse signal groups with the same reception duration, determining the address setting mode as follows: for pulse signal groups with the same reception duration, determining the address setting mode as follows: for each pulse signal in the pulse signal group, sending a second adaptation instruction to the corresponding wireless slave device; upon receiving a second wait instruction returned by the wireless slave device based on the second adaptation instruction, continuing to send an adaptive wait instruction to the wireless slave device; receiving an adaptive start instruction returned by the wireless slave device based on the adaptive wait instruction; wherein the adaptive start instruction is generated by the wireless slave device based on a comparison result between the instruction duration and the reception duration; the adaptive start instruction is returned by the wireless slave device based on the adjusted power; determining the adjusted power of the wireless slave device according to the adaptive start instruction, and generating a second address setting instruction based on the adjusted power of the wireless slave device; wherein the second address setting instruction includes the adjusted power of the wireless slave device and second set address information; and sending the second address setting instruction to the wireless slave device to perform address setting on the wireless slave device.

[0089] The second adaptation instruction can be understood as a confirmation instruction before address setting. In this embodiment, a second adaptation instruction can be sent to the corresponding wireless slave device for each pulse signal in the pulse signal group. After receiving the second adaptation instruction, the wireless slave device in this embodiment will immediately reply to the wireless master device with a second waiting instruction. The instruction duration can be the time between the waiting instruction sent by the wireless slave device and the reception of the second address setting instruction; the adaptive waiting instruction can be understood as an instruction that enables the wireless slave device to execute the adaptive power setting algorithm when the conditions are met. The adaptive start instruction can be an instruction for the wireless slave device to return the power adjusted by the power setting algorithm, and can be generated by the wireless slave device based on the comparison result of the instruction duration and the reception duration.

[0090] The power setting algorithm in this embodiment can be understood as a pre-set power algorithm that can be used to adjust the power of the wireless slave device's transmission instructions. The power setting algorithm in this embodiment can be used for wireless slave devices that receive at the same time, that is, at the same location. The wireless slave device can automatically run the algorithm based on the conditions met, thereby adjusting the power of the wireless slave device's own transmission instructions, achieving different transmission powers at the same location to form different wireless signal transmission rates, thereby generating different address setting instructions. The implementation formula of the power setting algorithm can be:

[0091]

[0092] Among them, PA is the adjusted self-transmitting power; α is the module startup time coefficient; T φ can be the module startup time; β can be the random function coefficient; H χ A random value can be selected: a random function generates a unique random value using the module's unique chip ID as a random factor. Ta represents the minimum time difference for the wireless signal module's transmit power. δ represents the module transmit power difference coefficient. Combined with Ta, this ensures that after each module adjusts its adaptive transmit power, the time difference between the wireless signals it sends is sufficient to complete a frame of data transmission, preventing data crosstalk and interference. P0 represents the default standard transmit power for the wireless slave device. The coefficients in the power algorithm are determined by the wireless slave device model used and can be set based on the actual model and scenario testing.

[0093] Specifically, the wireless master device in this embodiment can sort the pulse signal groups according to their corresponding reception times, and the wireless master device can sequentially send the second adaptation instruction to the wireless slave devices based on the set transmit power. In this embodiment, upon receiving the second adaptation instruction, the wireless slave device immediately responds with a second waiting instruction to the wireless master device, enters a waiting setting state, and internally starts timing and recording the instruction duration.

[0094] In this embodiment, the adaptive start instruction can be generated by the wireless slave device based on the comparison result of the instruction duration and the reception duration by: judging whether the instruction duration is the same as the reception duration; if the instruction duration is the same as the reception duration, the wireless slave device runs the setting power algorithm, adjusts the transmission power of the wireless slave device, and replies to the wireless master device based on the adjusted transmission power. If the instruction duration is different from the reception duration, the wireless slave device stops receiving and replying to the instruction and enters a waiting state.

[0095] The second address setting instruction can be understood as an instruction for setting an address for the wireless slave device, and can be generated by the adjusted power of the wireless slave device. The second address setting instruction can include the second set address information and the adjusted power of the wireless slave device, and can also include other information, which can be set according to actual needs. The second set address information can be understood as the address information that needs to be set for the wireless slave device. In this embodiment, when the wireless host device can parse the adaptive start instruction of the first pulse signal received, obtain the adjusted power of the wireless slave device in the adaptive start instruction, and generate the second address setting instruction based on the adjusted power of the wireless slave device; the wireless host device can send the second address setting instruction to the wireless slave device using the set standard transmission power to set the address of the wireless slave device.

[0096] Specifically, when the wireless slave device receives the second address setting instruction from the wireless master device, it analyzes the instruction to determine whether the adaptive transmit power included in the instruction is consistent with the transmit power of its own wireless slave device. If the powers are consistent, the wireless slave device obtains the second set address information Sx from the second address setting instruction, sets it as the device address of its own wireless slave device, and responds with an adaptive confirmation instruction, restoring the transmit power of the wireless slave device to the standard power P0. If the powers are inconsistent, the wireless slave device may not respond or make any response and remain in a waiting state.

[0097] Furthermore, in this embodiment, after the wireless master device receives an adaptive confirmation command from a wireless slave, it can analyze whether the address set in the adaptive command is consistent with the wireless slave device address. If the addresses are consistent, the adaptive setting of the wireless slave device address is completed and the next wireless slave device address setting is started. If the address is not received or the addresses are inconsistent, the adaptive command is sent again to re-set the address.

[0098] For example, in this embodiment, after the wireless master device has completed setting the addresses of the wireless slave devices corresponding to all pulse signals in the current group, it then proceeds to process and set the wireless slave devices corresponding to the pulse signals in the next group. For example, for the second and third pulse signals in the group, the wireless master device first sets the S2 address, then sets the S3 address. After completing these settings, it proceeds to process the wireless slave devices corresponding to the pulse signals in the next group. Among them, the second adaptation instruction can be set to the host header code 0xAA, the adaptive adaptation instruction 0x0A, and the set address Sx; the second waiting instruction can be set to the slave header code 0x55, the waiting instruction set 0x0B, and the waiting state 0xFF; the adaptive waiting instruction can be set to the host header code 0xAA, the adaptive adaptation instruction 0x0C, the adaptation time Tx, and the set address Sx; the adaptive start instruction can be set to the slave header code 0x55, the adaptive adaptation instruction 0x0D, and the adaptive adaptation power PA; the second address setting instruction can be set to the host header code 0xAA, the adaptive adaptation instruction 0x0E, the adaptive adaptation power PA, and the set address Sx. The adaptive determination instruction can be set to the slave header code 0x55, the adaptive adaptation instruction 0x0F, the set address Sx, and the set state 0xFF. It should be noted that the above instruction setting content is only an example and is not limited. The instruction content can be set according to actual needs.

[0099] Through such a setting in this embodiment, corresponding instructions can be sent to wireless slave devices with the same pulse signal reception duration, and corresponding instructions can be returned to the wireless slave devices through adjusted transmission power, thereby setting addresses for wireless slave devices in the same position, facilitating unified coordination and management.

[0100] S350: Set the address of the corresponding wireless slave device based on the address setting method.

[0101] In this embodiment, optionally, after the address of the corresponding wireless slave device is set based on the address setting method, the method further includes: receiving a determination instruction sent by the wireless slave device; wherein the determination instruction includes third set address information of the wireless slave device; judging whether the third set address information is consistent with the address of the wireless slave device; if the third set address information is consistent with the address of the wireless slave device, completing the address setting of the wireless slave device.

[0102] The confirmation instruction can be understood as an instruction to reconfirm the currently set wireless slave device address. The third set address information can be understood as the address information of the wireless slave device that sent the confirmation instruction. The wireless master device in this embodiment can, upon receiving the confirmation instruction sent by the wireless slave device, parse the third set address information in the confirmation instruction and determine whether the third set address information is consistent with the address of the wireless slave device. If the addresses are consistent, the address setting of the wireless slave device is completed and the setting of other wireless slave devices can be carried out. If the address is not received or the addresses are inconsistent, the process returns to the step of sending the adaptation instruction and resetting the address. In this embodiment, after the wireless master device completes the address setting for all wireless slave devices, it can exit the self-identification mechanism.

[0103] For example, the hardware system of the solution in this embodiment can be a wireless control module directly linked to the controller of each wireless device to realize the reception and transmission of wireless signals and control the various functions of the corresponding module. The wireless host device M1 can be a user operation terminal device such as a wireless room thermostat; the outdoor unit wireless signal control module W1 can be an air conditioner, heat pump outdoor unit, etc.; the wireless slave devices S1, S2, S3, S4...S N :Air outlet controllers for fan trays, indoor units, etc. in each area. The basic area control system can be wireless slave devices S1~S N Collect the actual environment information in the area and transmit it to the wireless host device M1 through wireless signals. The wireless host device M1 collects and organizes the information of each wireless slave device S1~S N The environmental information is used to control the air supply capacity of each area according to the control requirements, and the unit capacity requirements are summarized and sent to the wireless signal control module W1 of the outdoor unit. W1 adjusts the unit capacity in real time to achieve energy-saving, environmental protection, and efficient control and operation.

[0104] Furthermore, after the wireless host device in this embodiment completes address setting for all wireless slave devices within a region, it can be directly applied to the display panel. Users can use the display panel to set the unique attributes of each wireless slave device according to their needs. For example, S1 can be the living room; S2 can be the master bedroom; S3 can be the second bedroom; S4 can be the children's room; S5 can be the study; S6 can be the kitchen; S7 can be the bathroom, and so on. After the user completes the settings, the wireless host device automatically memorizes the zone settings and transmits them to the backend app, server, and other backends via WiFi, 4G, and other internet access modules, completing the establishment of the zone system. Users can achieve unified, independent, and coordinated control of each zone through the wireless host device's display panel, voice control, and the backend app, thereby meeting their daily needs.

[0105] Example 3

[0106] Figure 4 1 is a schematic diagram of a structure of an identification device for a wireless device according to the third embodiment of the present invention. Figure 4 As shown, the device is configured in a wireless host device, and the device includes:

[0107] The query instruction sending module 410 is used to send a pulse signal query instruction to the wireless slave device; wherein the wireless slave device and the wireless master device are in a set area;

[0108] The signal and duration receiving module 420 is configured to receive the pulse signal and the reception duration returned by the wireless slave device based on the pulse signal query instruction; wherein the reception duration is the duration between sending the pulse signal query instruction and receiving the pulse signal;

[0109] An address setting mode determining module 430, configured to determine an address setting mode based on the reception duration;

[0110] The address setting module 440 is configured to set the address of the corresponding wireless slave device based on the address setting method.

[0111] Optionally, the address setting mode determination module 430 includes:

[0112] a pulse information group acquiring unit, configured to group the pulse signals according to the reception duration to obtain at least one pulse signal group;

[0113] The address setting mode determining unit is used to determine the address setting modes corresponding to each pulse signal group.

[0114] Optionally, a pulse information group acquiring unit is configured to group the pulse signals having the same reception duration into one group;

[0115] The pulse signals with different receiving durations are divided into one group.

[0116] Optionally, the address setting mode determining unit is specifically configured to determine, for a group of pulse signals having different reception durations, an address setting mode as follows: for each pulse signal in the pulse signal group, sending a first adaptation instruction to a corresponding wireless slave device;

[0117] When receiving the first waiting instruction returned by the wireless slave device based on the first adaptation instruction, continue to send a first address setting instruction to the wireless slave device to set the address of the wireless slave device; wherein the first address setting instruction includes first set address information.

[0118] Optionally, the address setting mode determining unit is specifically configured to determine, for a group of pulse signals having the same reception duration, an address setting mode as follows: for each pulse signal in the pulse signal group, sending a second adaptation instruction to the corresponding wireless slave device;

[0119] upon receiving a second waiting instruction returned by the wireless slave device based on the second adaptation instruction, continuing to send the adaptive waiting instruction to the wireless slave device;

[0120] receiving an adaptive start instruction returned by the wireless slave device based on the adaptive wait instruction; wherein the adaptive start instruction is generated by the wireless slave device based on a comparison result of the instruction duration and the reception duration; and the adaptive start instruction is returned by the wireless slave device based on the adjusted power;

[0121] determining the adjusted power of the wireless slave device according to the adaptive startup instruction, and generating a second address setting instruction based on the adjusted power of the wireless slave device; wherein the second address setting instruction includes the adjusted power of the wireless slave device and second set address information;

[0122] The second address setting instruction is sent to the wireless slave device to set the address of the wireless slave device.

[0123] Optionally, the method further includes: an address determination module, configured to receive a determination instruction sent by the wireless slave device after setting the address of the corresponding wireless slave device based on the address setting method; wherein the determination instruction includes third set address information of the wireless slave device;

[0124] determining whether the third set address information is consistent with the address of the wireless slave device;

[0125] If the third set address information is consistent with the address of the wireless slave device, the address setting of the wireless slave device is completed.

[0126] An identification device for a wireless device provided in an embodiment of the present invention can execute an identification method for a wireless device provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method.

[0127] Example 4

[0128] Figure 51 is a schematic diagram of the structure of an electronic device provided according to embodiment four of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0129] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0130] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0131] The processor 11 may be any general-purpose and / or specialized processing component with processing and computing capabilities. Examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any other suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the wireless device identification method.

[0132] In some embodiments, the wireless device identification method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the wireless device identification method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the wireless device identification method in any other suitable manner (e.g., via firmware).

[0133] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0134] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0135] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0136] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0137] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0138] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0139] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0140] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for identifying a wireless device, characterized in that: The method is performed by a wireless host device, comprising: Sending a pulse signal query instruction to a wireless slave device; wherein the wireless slave device and the wireless master device are within a set area; Receive a pulse signal and a reception duration returned by the wireless slave device based on the pulse signal query instruction; wherein the reception duration is the duration from sending the pulse signal query instruction to receiving the pulse signal; determining an address setting method based on the reception duration; Setting the address of the corresponding wireless slave device based on the address setting method; Determining an address setting method based on the receiving duration includes: Grouping the pulse signals according to the reception duration to obtain at least one pulse signal group; Determine the address setting method corresponding to each pulse signal group; Determine the address setting method corresponding to each pulse signal group, including: For a pulse signal group with the same reception duration, the address setting method is determined as follows: for each pulse signal in the pulse signal group, a second adaptation instruction is sent to the corresponding wireless slave device; Upon receiving the second waiting instruction returned by the wireless slave device based on the second adaptation instruction, continue to send the adaptive waiting instruction to the wireless slave device; wherein the adaptive waiting instruction is an instruction that enables the wireless slave device to execute the adaptive power setting algorithm when a condition is met; receiving an adaptive start instruction returned by the wireless slave device based on the adaptive wait instruction; wherein the adaptive start instruction is generated by the wireless slave device based on a comparison result of the instruction duration and the reception duration; and the adaptive start instruction is returned by the wireless slave device based on the adjusted power; determining the adjusted power of the wireless slave device according to the adaptive startup instruction, and generating a second address setting instruction based on the adjusted power of the wireless slave device; wherein the second address setting instruction includes the adjusted power of the wireless slave device and second set address information; The second address setting instruction is sent to the wireless slave device to set the address of the wireless slave device.

2. The method according to claim 1, characterized in that Grouping the pulse signals according to the reception duration includes: Dividing the pulse signals having the same reception duration into a group; The pulse signals with different receiving durations are divided into one group.

3. The method according to claim 2, characterized in that Determine the address setting method corresponding to each pulse signal group, including: For a pulse signal group having different reception durations, the address setting method is determined as follows: for each pulse signal in the pulse signal group, a first adaptation instruction is sent to the corresponding wireless slave device; When receiving the first waiting instruction returned by the wireless slave device based on the first adaptation instruction, continue to send a first address setting instruction to the wireless slave device to set the address of the wireless slave device; wherein the first address setting instruction includes first set address information.

4. The method according to claim 1 or 3, characterized in that After the address of the corresponding wireless slave device is set based on the address setting method, the method further includes: receiving a determination instruction sent by the wireless slave device; wherein the determination instruction includes third set address information of the wireless slave device; determining whether the third set address information is consistent with the address of the wireless slave device; If the third set address information is consistent with the address of the wireless slave device, the address setting of the wireless slave device is completed.

5. A wireless device identification device, characterized in that: The device is configured in a wireless host device and includes: A query instruction sending module is used to send a pulse signal query instruction to a wireless slave device; wherein the wireless slave device and the wireless master device are within a set area; A signal and duration receiving module, configured to receive a pulse signal and a receiving duration returned by the wireless slave device based on the pulse signal query instruction; wherein the receiving duration is the duration from sending the pulse signal query instruction to receiving the pulse signal; An address setting mode determining module, configured to determine an address setting mode based on the reception duration; An address setting module, configured to set an address for a corresponding wireless slave device based on the address setting method; The address setting method determines the module, including: a pulse information group acquiring unit, configured to group the pulse signals according to the reception duration to obtain at least one pulse signal group; An address setting mode determining unit, configured to determine the address setting modes corresponding to each pulse signal group; An address setting mode determining unit is specifically configured to determine, for a group of pulse signals having the same reception duration, an address setting mode of sending a second adaptation instruction to a corresponding wireless slave device for each pulse signal in the group of pulse signals; Upon receiving the second waiting instruction returned by the wireless slave device based on the second adaptation instruction, continue to send the adaptive waiting instruction to the wireless slave device; wherein the adaptive waiting instruction is an instruction that enables the wireless slave device to execute the adaptive power setting algorithm when a condition is met; receiving an adaptive start instruction returned by the wireless slave device based on the adaptive wait instruction; wherein the adaptive start instruction is generated by the wireless slave device based on a comparison result of the instruction duration and the reception duration; and the adaptive start instruction is returned by the wireless slave device based on the adjusted power; determining the adjusted power of the wireless slave device according to the adaptive startup instruction, and generating a second address setting instruction based on the adjusted power of the wireless slave device; wherein the second address setting instruction includes the adjusted power of the wireless slave device and second set address information; The second address setting instruction is sent to the wireless slave device to set the address of the wireless slave device.

6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the wireless device identification method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the wireless device identification method according to any one of claims 1 to 4 when executed.

Citation Information

Patent Citations

  • Intelligent electric equipment automatic identification and address allocation method

    CN114500469A