Wireless personal area network cascading method, system and storage medium

By establishing the first and second networks with the same network identifier in a wireless personal area network and using target short address allocation, the problem of homofrequency interference is solved, and network reliability and communication efficiency are improved.

CN116347429BActive Publication Date: 2025-08-29广东公信智能会议股份有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310271009.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-17
Publication Date
2025-08-29
Estimated Expiration
2043-03-17

AI Technical Summary

Technical Problem

The problem of synchronous interference caused by multiple wireless devices in wireless personal area networks sharing the same working frequency band affects network reliability. In the prior art, the direct sequence spread spectrum method is not reliable in severe interference environments.

Method used

By establishing a first and a second network with the same network identifier, different channels are used to distinguish the network, and target short address allocation is performed, wireless communication between external devices and slave devices is realized, and channel conflicts and synchronous interference is avoided.

Benefits of technology

It improves the network reliability of wireless personal LAN, simplifies the re-registration and connection process of slave devices, reduces address allocation redundancy, and improves communication efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116347429B_ABST
    Figure CN116347429B_ABST
Patent Text Reader

Abstract

The present application discloses a wireless personal area network cascading method, system and storage medium. The method includes establishing a first network in response to a power-on instruction and emitting a first network beacon wireless signal; establishing a second network based on the first network beacon wireless signal and emitting a second network beacon wireless signal, wherein the network identifier of the second network is the same as the network identifier of the first network; upon receiving a registration connection instruction including target registration information and historical registration information sent by a slave device, controlling the slave device to register and connect with the first network or the second network based on the target registration information; assigning a short address to the slave device based on the historical registration information to obtain a target short address, wherein the target short address is used for wireless communication between an external device and the slave device. According to the technical solution of the present application, the first network and the second network are managed as a whole, which can effectively improve the wireless network reliability of the personal area network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to, but is not limited to, the field of data communication technology, and in particular to a wireless personal area network cascading method, system, and storage medium. Background Art

[0002] Because wireless network radio channels operate in unlicensed frequency bands, wireless devices such as wireless microphones, wireless communication devices, and remote controllers often share the same operating frequency band. Multiple wireless devices sharing the same frequency band are prone to co-channel interference, which can affect the normal operation of the PAN (Personal Area Network) wireless network. Direct sequence spread spectrum (DSSS) is commonly used for interference mitigation, but this approach is not very reliable in environments with severe co-channel interference. Summary of the Invention

[0003] The embodiments of the present application provide a wireless personal area network cascading method, system and storage medium, which can effectively improve the wireless network reliability of the personal area network.

[0004] In a first aspect, an embodiment of the present application provides a wireless personal area network cascading method, including:

[0005] In response to a power-on instruction, establishing a first network and sending a first network beacon wireless signal;

[0006] establishing a second network according to the first network beacon wireless signal and sending a second network beacon wireless signal, wherein the network identifier of the second network is the same as the network identifier of the first network;

[0007] When receiving a registration connection instruction including target registration information and historical registration information sent by a slave device, controlling the slave device to register and connect with the first network or the second network according to the target registration information;

[0008] A short address is allocated to the slave device according to the historical registration information to obtain a target short address, wherein the target short address is used for wireless communication between an external device and the slave device.

[0009] According to the wireless personal area network cascading method of the embodiment of the first aspect of the present application, there are at least the following beneficial effects: in response to a power-on instruction, a first network is established and a first network beacon wireless signal is emitted, and then a second network is established based on the first network beacon wireless signal and a second network beacon wireless signal is emitted, thereby avoiding channel conflicts between the first network and the second network. Since the service specification of the MAC sublayer of the wireless personal area network defines that each independent network is distinguished by a network identifier, the present application uses the network identifier of the second network to be the same as the network identifier of the first network, so that the first network and the second network can be managed as a whole. When a registration connection instruction including target registration information and historical registration information is received from a slave device, the slave device is controlled to register and connect with the first network or the second network according to the target registration information, and then a short address is allocated to the slave device based on the historical registration information to obtain a target short address, wherein the target short address is used for wireless communication between the external device and the slave device. According to the technical solution of the present application, the first network and the second network are distinguished by different channels, and the first network and the second network are managed as a whole, and then the target short address is used to realize wireless communication between the external device and the slave device. Compared with the related technology that uses direct sequence spread spectrum to resist interference but cannot avoid co-frequency interference, the technical solution can effectively improve the wireless network reliability of the personal local area network.

[0010] According to some embodiments of the first aspect of the present application, establishing a first network and sending a first network beacon wireless signal in response to a power-on instruction includes:

[0011] Performing a radio frequency energy detection scan to obtain a first channel energy value;

[0012] When the first channel energy value is less than a preset channel energy threshold, a first network is established according to the first channel energy value, and a first network beacon wireless signal is sent.

[0013] According to some embodiments of the first aspect of the present application, establishing a second network according to the first network beacon wireless signal and sending a second network beacon wireless signal includes:

[0014] Determining a target frequency band interval according to the first network beacon wireless signal;

[0015] Acquire a second channel energy value of the target frequency band interval;

[0016] When the second channel energy value is less than a preset channel energy threshold, a second network is established according to the second channel energy value, and a second network beacon wireless signal is sent.

[0017] According to some embodiments of the first aspect of the present application, controlling the slave device to register and connect with the first network or the second network according to the target registration information includes:

[0018] When the target registration information is the first network beacon wireless signal, control the slave device to register and connect with the first network,

[0019] or,

[0020] When the target registration information is the second network beacon wireless signal, the slave device is controlled to register and connect with the second network.

[0021] According to some embodiments of the first aspect of the present application, allocating a short address to the slave device according to the historical registration information to obtain a target short address includes:

[0022] When the historical registration information indicates that the slave device is registered for the first time, obtaining the target short address according to a preset address allocation rule;

[0023] or,

[0024] When the historical registration information indicates that the slave device is registered for the second time, obtaining an extended address of the slave device;

[0025] The extended address is converted to obtain the target short address.

[0026] According to some embodiments of the first aspect of the present application, after converting the extended address to obtain the target short address, the method further includes:

[0027] The target short address is stored in the device information table.

[0028] According to some embodiments of the first aspect of the present application, the method further includes:

[0029] In response to a communication instruction including the extended address and a communication request sent by the external device, confirming the target short address according to the extended address and the device information table;

[0030] Perform wireless communication with the slave device according to the target short address and the communication request to obtain target communication content;

[0031] The target communication content and the extended address are sent to the external device.

[0032] In a second aspect, an embodiment of the present application provides a wireless personal area network cascading system, including:

[0033] a first network establishing module, configured to establish a first network in response to a power-on instruction and send a first network beacon wireless signal;

[0034] a second network establishing module, the second network establishing module being configured to establish a second network according to the first network beacon wireless signal and send a second network beacon wireless signal, wherein the network identifier of the second network is the same as the network identifier of the first network;

[0035] a registration connection module, configured to, upon receiving a registration connection instruction sent by a slave device and including target registration information and historical registration information, control the slave device to register and connect with the first network or the second network according to the target registration information;

[0036] A short address allocation module is used to allocate a short address to the slave device according to the historical registration information to obtain a target short address, wherein the target short address is used for wireless communication between an external device and the slave device.

[0037] In a third aspect, an embodiment of the present application provides an electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the wireless personal area network cascading method as described in the first aspect is implemented.

[0038] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the wireless personal area network cascading method as described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation to the technical solution of the present invention.

[0040] Figure 1 This is a flowchart of the steps of a wireless personal area network cascading method provided by an embodiment of the present application;

[0041] Figure 2 is a flowchart of the steps of a method for establishing a first network provided by another embodiment of the present application;

[0042] Figure 3 is a flowchart of the steps of a method for establishing a second network provided by another embodiment of the present application;

[0043] Figure 4 This is a flowchart of the steps of a method for registering a connection from a device provided in another embodiment of the present application;

[0044] Figure 5 is a flowchart of the steps of a method for obtaining a target short address provided by another embodiment of the present application;

[0045] Figure 6 is a flowchart of the steps of a method for storing a target short address provided by another embodiment of the present application;

[0046] Figure 7 is a flowchart of the steps of a wireless communication method between an external device and a slave device provided by another embodiment of the present application;

[0047] Figure 8 This is a schematic diagram of a connection configuration of a wireless personal area network provided by another embodiment of the present application;

[0048] Figure 9 This is a schematic diagram of a connection configuration of a wireless personal area network provided by another embodiment of the present application;

[0049] Figure 10 This is a module diagram of a wireless personal area network cascade system provided by another embodiment of the present application;

[0050] Figure 11 This is a schematic diagram of the hardware structure of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0052] It is understood that although the device schematics illustrate functional module divisions and the flowcharts illustrate logical sequences, in certain circumstances, the steps shown or described may be performed in a sequence that differs from the module divisions in the device or the sequence in the flowcharts. The terms "first," "second," and the like in the specification, claims, or accompanying drawings are used to distinguish similar items and are not necessarily used to describe a specific sequence or precedence.

[0053] The present application provides a wireless personal area network cascading method, system and storage medium. In response to a power-on instruction, a first network is established and a first network beacon wireless signal is emitted. Subsequently, a second network is established based on the first network beacon wireless signal and a second network beacon wireless signal is emitted, thereby avoiding channel conflicts between the first network and the second network. Since the service specification of the MAC sublayer of the wireless personal area network defines that each independent network is distinguished by a network identifier, the present application uses the network identifier of the second network to be the same as the network identifier of the first network, so that the first network and the second network can be managed as a whole. When a registration connection instruction including target registration information and historical registration information is received from a slave device, the slave device is controlled to register and connect with the first network or the second network according to the target registration information, and then a short address is allocated to the slave device based on the historical registration information to obtain a target short address, wherein the target short address is used for wireless communication between an external device and the slave device. According to the technical solution of the present application, the first network and the second network are distinguished by different channels, and the first network and the second network are managed as a whole, and then the target short address is used to realize wireless communication between the external device and the slave device. Compared with the related technology that uses direct sequence spread spectrum to resist interference but cannot avoid co-frequency interference, the technical solution can effectively improve the wireless network reliability of the personal local area network.

[0054] The embodiments of the present application are further described below with reference to the accompanying drawings.

[0055] Reference Figure 1 , Figure 1 This is a flowchart of a method for cascading wireless personal area networks provided by an embodiment of the present application. The method for cascading wireless personal area networks includes but is not limited to the following steps:

[0056] Step S110, in response to the power-on instruction, establishing a first network and sending a first network beacon wireless signal;

[0057] Step S120, establishing a second network according to the first network beacon wireless signal, and sending a second network beacon wireless signal, wherein the network identifier of the second network is the same as the network identifier of the first network;

[0058] Step S130, upon receiving a registration connection instruction including target registration information and historical registration information sent by the slave device, controlling the slave device to register and connect with the first network or the second network according to the target registration information;

[0059] Step S140 , allocating a short address to the slave device according to the historical registration information to obtain a target short address, wherein the target short address is used for wireless communication between the external device and the slave device.

[0060] It should be noted that the embodiments of the present application do not limit the specific content of the first network beacon wireless signal and the second network beacon wireless signal, which may include a channel number and a radio frequency energy value, or may include a channel frequency, a channel bandwidth, and a channel signal strength, etc. The embodiments of the present application also do not limit the specific method of emitting the first network beacon wireless signal and the second network beacon wireless signal, which may include emitting several first network beacon wireless signals or second network beacon wireless signals at intervals of a preset period, or may include emitting several first network beacon wireless signals or second network beacon wireless signals continuously and uninterruptedly.

[0061] In addition, it should be noted that the embodiments of the present application do not limit the specific content of the target registration information, which may be a channel number, or may include a channel number and channel signal strength, etc. The embodiments of the present application do not limit the specific content of the historical registration information, which may include the number of historical registrations and the historical registration time, or may include the historical registration channel number, etc.

[0062] It is understandable that for many low-rate, low-power, short-range wireless network protocols, the physical layer and media access control layer (MAC) of their protocol models are based on the IEEE802.15.4 technical standard, for example, ZigBee, ISA100.11a, WirelessHART, Thread, Wi-SUN, and TI 15.4-Stack protocols. IEEE 802.15.4 defines the protocol for low-rate wireless personal area networks (LR-WPANs). Since the service specification of the MAC sublayer of wireless personal area networks defines that each independent network is distinguished by a network identifier, when the network identifier of a first network is the same as the network identifier of a second network, regardless of whether the slave device registers and connects to the first network or the second network, they are considered to be the same wireless personal area network. Therefore, when the slave device switches from the first network to the second network, there is no need to modify the network identifier of the slave device. Compared with the related technology, when the slave device switches between different networks, it is necessary to first scan the channel and obtain a new beacon wireless signal. The network identifier of the slave device is modified according to the new beacon wireless signal. Only then can the slave device re-register to join the network. This technical solution simplifies the process of re-registering the slave device.

[0063] It is understood that by first establishing the first network and then establishing the second network based on the first network beacon wireless signal emitted by the first network, the first and second networks operate on different channels, thereby achieving relative independence and non-interference between the first and second networks. Even if a slave device registered and connected to the first network and a slave device registered and connected to the second network have the same network identifier, the normal operation of the first and second networks will not be affected, thereby improving the reliability of the wireless network of the personal area network.

[0064] It can be understood that in response to a power-on instruction, a first network is established and a first network beacon wireless signal is emitted. Subsequently, a second network is established based on the first network beacon wireless signal and a second network beacon wireless signal is emitted. This can avoid channel conflicts between the first network and the second network, and the slave device can freely choose to register and connect to the first network or the second network, which can improve the reliability of the wireless network of the personal area network. Since the service specification of the MAC sublayer of the wireless personal area network defines that each independent network is distinguished by a network identifier, the embodiment of the present application uses the network identifier of the second network to be the same as the network identifier of the first network, so that the first network and the second network can be managed as a whole. When a registration connection instruction including target registration information and historical registration information is received from the slave device, the slave device is controlled to register and connect with the first network or the second network according to the target registration information, and then a short address is allocated to the slave device based on the historical registration information to obtain a target short address, wherein the target short address is used for wireless communication between the external device and the slave device. According to the technical solution of the present application, the first network and the second network are distinguished by different channels, and the first network and the second network are managed as a whole, and then the target short address is used to realize the communication between the external device and the slave device. Compared with the related technology that uses the direct sequence spread spectrum method for anti-interference, but cannot avoid the same-frequency interference, the technical solution can effectively improve the wireless network reliability of the personal local area network.

[0065] In addition, refer to Figure 2 In one embodiment, Figure 1 Step S110 in the illustrated embodiment further includes but is not limited to the following steps:

[0066] Step S210, performing a radio frequency energy detection scan to obtain a first channel energy value;

[0067] In step S220 , when the first channel energy value is less than a preset channel energy threshold, a first network is established according to the first channel energy value, and a first network beacon wireless signal is sent.

[0068] It should be noted that the embodiments of the present application do not limit the specific method for detecting and scanning RF energy. The detection and scanning of RF energy may be performed by performing corresponding calculations on received signals over a specific time period, or by using a dual-threshold energy detection method. The embodiments of the present application do not limit the specific value of the preset channel energy threshold, which may be adjusted based on actual needs.

[0069] It is understood that a first channel energy value is obtained by performing a radio frequency energy detection scan. When the first channel energy value is less than a preset channel energy threshold, it indicates that the wireless channel corresponding to the first channel energy value is clean. Based on the first channel energy value, the first network is established on the channel corresponding to the first channel energy value, thereby ensuring the wireless network stability of the first network. The first network beacon wireless signal is emitted to facilitate the subsequent establishment of the second network.

[0070] In addition, refer to Figure 3 In one embodiment, Figure 1 Step S120 in the illustrated embodiment further includes but is not limited to the following steps:

[0071] Step S310, confirming the target frequency band interval according to the first network beacon wireless signal;

[0072] Step S320, obtaining a second channel energy value in the target frequency band interval;

[0073] In step S330 , when the second channel energy value is less than a preset channel energy threshold, a second network is established according to the second channel energy value, and a second network beacon wireless signal is sent.

[0074] It is understandable that by confirming the target frequency band interval based on the first network beacon wireless signal, confirming that the target frequency band interval will not conflict with the channel of the first network, the wireless network reliability of the personal area network is improved. The second channel energy value of the target frequency band interval is obtained. When the second channel energy value is less than the preset channel energy threshold, it indicates that the wireless channel of the channel corresponding to the second channel energy value is clean. Based on the second channel energy value, a second network is established on the channel corresponding to the second channel energy value, which can ensure the wireless network stability of the second network. By sending a second network beacon wireless signal, the subsequent establishment of a third network is facilitated.

[0075] In addition, refer to Figure 4 In one embodiment, Figure 1 Step S130 in the illustrated embodiment further includes but is not limited to the following steps:

[0076] Step S410: When the target registration information is a first network beacon wireless signal, control the slave device to register and connect with the first network;

[0077] Step S420: When the target registration information is a second network beacon wireless signal, control the slave device to register and connect to the second network.

[0078] It can be understood that after the slave device is powered on, it first performs a channel scan and obtains the network beacon wireless signal corresponding to the scanned network. When the target registration information is the first network beacon wireless signal, it indicates that the slave device selects the first network for registration and connection, and controls the slave device to register and connect with the first network; when the target registration information is the second network beacon wireless signal, it indicates that the slave device selects the second network for registration and connection, and controls the slave device to register and connect with the second network.

[0079] In addition, refer to Figure 5 In one embodiment, Figure 1 Step S140 in the illustrated embodiment further includes but is not limited to the following steps:

[0080] Step S510: When the historical registration information indicates that the slave device is registering for the first time, a target short address is obtained according to a preset address allocation rule;

[0081] Step S520: When the historical registration information indicates that the slave device is a secondary registration, obtain the extended address of the slave device;

[0082] Step S530: convert the extended address to obtain a target short address.

[0083] It should be noted that the embodiment of the present application does not limit the specific content of the address allocation rule. It can be a rule of sequential address allocation or a rule of random address allocation. Among them, the embodiment of the present application preferably allocates addresses in sequence and obtains the target short address in accordance with the rule of sequential address allocation, which facilitates the subsequent management of the target short address.

[0084] It is understandable that when the slave device is interfered with and loses the first network beacon wireless signal of the first network, the slave device re-scans the channel, and when the second network beacon wireless signal is scanned, the slave device registers and connects in the second network. The slave device has corresponding short addresses in the first network and the second network respectively. For example, the short address of the slave device in the first network is "0x0006", and the short address of the slave device in the second network is "0x0007". There may be a short address "0x0006" in the second network that is the same as the short address corresponding to the slave device in the first network, but the short address "0x0006" in the second network corresponds to another slave device. Subsequent direct use of the short address for wireless communication between external devices is prone to errors. In an embodiment of the present application, when the historical registration information indicates that the slave device is registered for the first time, it means that the slave device has not been assigned a target short address. The target short address is obtained according to the preset address allocation rule, and there is no need to consider the problem of repeated short addresses of the slave devices. When historical registration information indicates that a slave device is registering for the second time, this indicates that the slave device has a corresponding short address in the network it previously registered with, and the network it previously registered with is different from the network corresponding to the current target registration information. For example, the slave device previously registered with the first network, but currently wishes to register with the second network. Since the extended address of a slave device is unique, the extended address is obtained and converted to the target short address. This target short address serves as the corresponding short address in the network the slave device is currently registering with. The one-to-one correspondence between the target short address and the extended address ensures the accuracy of subsequent communication between the external device and the slave device.

[0085] It can be understood that when the slave device is interfered with, causing the slave device to be disconnected from the first network, when the slave device re-scans the channel, it still scans the first network beacon wireless signal. The slave device can directly reconnect to the first network corresponding to the first network beacon wireless signal, and there is no need to reallocate the target short address. The slave device can directly use the target short address originally obtained from the slave device to communicate, which can effectively avoid address allocation redundancy.

[0086] In addition, refer to Figure 6 In one embodiment, Figure 5 After step S530 in the illustrated embodiment, the wireless personal area network cascading method further includes but is not limited to the following steps:

[0087] Step S610: Store the target short address in the device information table.

[0088] It should be noted that this application does not limit the specific form of the device information table, which can be a cloud-based device information table or a local device information table. The embodiments of this application also do not limit the specific method of storing the target short address in the device information table, which can be a one-to-one storage of the target short address and the extended address of the slave device, or a storage of the target short address and the channel number.

[0089] It can be understood that the target short address and the extended address of the slave device are stored in a one-to-one correspondence. When the slave device completes the registration connection, the target short address can be converted into an extended address according to the device information table in the information instruction sent to the external device to represent the slave device; and in the wireless information instruction sent to the slave device, the extended address can be converted into a target short address according to the device information table to represent the slave device, so as to improve the address conversion efficiency and accuracy, thereby effectively improving the wireless communication efficiency of the wireless personal area network, and ensuring the accuracy of subsequent communication between the external device and the slave device.

[0090] It is understandable that the target short address is stored in the device information table to facilitate subsequent management of the wireless personal area network.

[0091] In addition, refer to Figure 7 In one embodiment, the wireless personal area network cascading method further includes but is not limited to the following steps:

[0092] Step S710, in response to a communication instruction including an extended address and a communication request sent by an external device, confirming a target short address according to the extended address and the device information table;

[0093] Step S720, wirelessly communicating with the slave device according to the target short address and the communication request to obtain target communication content;

[0094] Step S730: Send the target communication content and the extended address to the external device.

[0095] It should be noted that the present application does not limit the specific content of the communication request, which may be a request to query the switch status of the slave device, or a request to query the historical communication of the slave device, etc.

[0096] It is understandable that when a slave device is interfered with and loses the first network beacon wireless signal of the first network, the slave device re-scans the channel. When it scans the second network beacon wireless signal, the slave device registers and connects to the second network. The slave device has corresponding short addresses in the first network and the second network, respectively. For example, the short address of the slave device in the first network is "0x0006" and the short address of the slave device in the second network is "0x0007". The second network may have the same short address "0x0006" as the short address corresponding to the slave device in the first network, but the short address "0x0006" in the second network corresponds to another slave device. Since the network identifier of the first network is the same as the network identifier of the second network, the first network and the second network as a whole directly use the short address to communicate between external devices, which is prone to errors. In an embodiment of the present application, in response to a communication instruction sent by an external device including an extended address and a communication request, since the extended address of the slave device is unique, the target short address corresponding to the slave device is stored in the device information table. The device information table is searched based on the extended address to confirm the target short address, and then the network currently registered and connected by the slave device is confirmed. In the network to which the slave device is currently registered and connected, the target short address and communication request are used to communicate with the slave device to obtain the target communication content, which is then converted into an extended address. The target communication content and the extended address are then sent to the external device, ensuring the communication reliability of the wireless personal area network.

[0097] In addition, refer to Figure 8 In one embodiment, the network identifiers (PAN IDs) of master coordinators A, B, and C are all set to 0x0ABC. The MAC sublayer service specification for wireless personal area networks (WLANs) defines each independent network as distinguished by a network identifier. From slave device 1 to slave device 18, registering and connecting to any of the networks corresponding to master coordinators A, B, and C is considered to be part of the same WLAN. Master coordinator A corresponds to the first network, master coordinator B corresponds to the second network, and master coordinator C corresponds to the third network. The primary difference between master coordinators A, B, and C is their operating channels: master coordinator A corresponds to wireless channel 1, master coordinator B corresponds to wireless channel 2, and master coordinator C corresponds to wireless channel 3. After powering on, a slave device first scans channels to obtain network beacon wireless signals. It then registers and connects to the network it detects. The corresponding master coordinator then assigns the slave device a unique 16-bit short address for that network. Even if the slave devices under the master coordinator A, master coordinator B and master coordinator C have the same short address, the master coordinator A, master coordinator B and master coordinator C work on different channels, are independent of each other, do not interfere with each other, and do not affect the normal operation of the three networks.

[0098] When the wireless channel 1 of slave device 6 is interfered with, resulting in the loss of the network beacon wireless signal of the original master coordinator A, slave device 6 will restart the channel scan, search for the network beacon wireless signal of the master coordinator B on wireless channel 2, and register to connect to the new master coordinator B. Figure 8 and Figure 9 The 16-bit short address of slave device 6 on master coordinator A is 0x0006. When it is newly registered on master coordinator B, since slave device 12 has been assigned 0x0006, the extended address of slave device 6 is converted to the corresponding 16-bit short address "0x0007" on master coordinator B.

[0099] When an external device needs to obtain the switch status information of slave device 6, it sends slave device 6's 64-bit extended address, "BC:D7:C9:26:02:39:06:8B," to the system controller. The system controller then searches the device information table and obtains the short address, "0x0007," corresponding to slave device 6 on master coordinator B. Master coordinator B then communicates with slave device 6 through master coordinator B to obtain the required switch status information. Master coordinator B returns the switch status information and slave device 6's short address, "0x0007," to the system controller. The system controller then searches the device information table and confirms that the extended address, "BC:D7:C9:26:02:39:06:8B," corresponds to slave device 6's short address, "0x0007." Finally, the system controller sends the extended address of slave device 6, along with the switch status information, to the external device.

[0100] In addition, refer to Figure 10 One embodiment of the present application provides a wireless personal area network cascading system 1000, the wireless personal area network cascading system 1000 comprising:

[0101] A first network establishing module 1010, the first network establishing module 1010 is used to establish a first network in response to a power-on instruction and send a first network beacon wireless signal;

[0102] A second network establishing module 1020 is configured to establish a second network based on the first network beacon wireless signal and send a second network beacon wireless signal, wherein the network identifier of the second network is the same as the network identifier of the first network;

[0103] The registration and connection module 1030 is configured to control the slave device to register and connect with the first network or the second network according to the target registration information when receiving a registration and connection instruction including target registration information and historical registration information sent by the slave device;

[0104] The short address allocation module 1040 is used to allocate a short address to the slave device according to the historical registration information to obtain a target short address, wherein the target short address is used for wireless communication between the external device and the slave device.

[0105] The specific implementation of the wireless personal area network cascading system 1000 in the embodiment of the present application is basically the same as the specific implementation of the above-mentioned wireless personal area network cascading method, and will not be repeated here.

[0106] It is understandable that the wireless personal area network cascade system 1000 can be applied to communication devices such as smart homes, smart conferences, smart meters and wireless sensors.

[0107] In addition, refer to Figure 11 An embodiment of the present application further provides an electronic device 1100, comprising: a memory 1110, a processor 1120, and a computer program stored on the memory 1110 and executable on the processor 1120. When the processor 1120 executes the computer program, the wireless personal area network cascading method of the above embodiment is implemented.

[0108] The processor 1120 and the memory 1110 may be connected via a bus or other means.

[0109] The non-transitory software program and instructions required to implement the wireless personal area network cascading method of the above embodiment are stored in the memory 1110. When executed by the processor 1120, the wireless personal area network cascading method of the above embodiment is executed, for example, the above-described Figure 1 Method steps S110 to S140, Figure 2 Method steps S210 to S220, Figure 3 Method steps S310 to S330, Figure 4 Method steps S410 to S420, Figure 5 Method steps S510 to S530, Figure 6 Method step S610 and Figure 7 Method steps S710 to S730 in .

[0110] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, i.e., they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment.

[0111] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions. The computer-executable instructions are executed by a processor 1120 or a controller, for example, by a processor 1120 in the electronic device 1100, so that the processor 1120 can execute the wireless personal area network cascading method in the above embodiment, for example, executing the above-described Figure 1 Method steps S110 to S140, Figure 2 Method steps S210 to S220, Figure 3 Method steps S310 to S330, Figure 4 Method steps S410 to S420, Figure 5 Method steps S510 to S530, Figure 6 Method step S610 and Figure 7 Method step S710 to method step S730 in. It will be appreciated by those skilled in the art that all or some of the steps and systems in the method disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by processor 1120, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or temporary media). As known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0112] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0113] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above implementation mode. Technical personnel familiar with the field can also make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. A wireless personal area network cascading method, characterized in that: include: In response to a power-on instruction, establishing a first network and sending a first network beacon wireless signal; establishing a second network according to the first network beacon wireless signal and sending a second network beacon wireless signal, wherein the network identifier of the second network is the same as the network identifier of the first network; When receiving a registration connection instruction including target registration information and historical registration information sent by a slave device, controlling the slave device to register and connect with the first network or the second network according to the target registration information; Allocating a short address to the slave device according to the historical registration information to obtain a target short address, wherein the target short address is used for wireless communication between an external device and the slave device; The step of establishing a second network according to the first network beacon wireless signal and sending a second network beacon wireless signal includes: Determining a target frequency band interval according to the first network beacon wireless signal; Acquire a second channel energy value of the target frequency band interval; When the second channel energy value is less than a preset channel energy threshold, a second network is established according to the second channel energy value, and a second network beacon wireless signal is sent.

2. The wireless personal area network cascading method according to claim 1, characterized in that: The step of establishing a first network and sending a first network beacon wireless signal in response to a power-on instruction includes: Performing a radio frequency energy detection scan to obtain a first channel energy value; When the first channel energy value is less than a preset channel energy threshold, a first network is established according to the first channel energy value, and a first network beacon wireless signal is sent.

3. The wireless personal area network cascading method according to claim 1, characterized in that: The controlling the slave device to register and connect with the first network or the second network according to the target registration information includes: When the target registration information is the first network beacon wireless signal, control the slave device to register and connect with the first network, or, When the target registration information is the second network beacon wireless signal, the slave device is controlled to register and connect with the second network.

4. The wireless personal area network cascading method according to claim 1, characterized in that: The allocating a short address to the slave device according to the historical registration information to obtain a target short address includes: When the historical registration information indicates that the slave device is registered for the first time, obtaining the target short address according to a preset address allocation rule; or, When the historical registration information indicates that the slave device is registered for the second time, obtaining an extended address of the slave device; The extended address is converted to obtain the target short address.

5. The wireless personal area network cascading method according to claim 4, characterized in that: After converting the extended address to obtain the target short address, the method further includes: The target short address is stored in the device information table.

6. The wireless personal area network cascading method according to claim 5, characterized in that: The method further comprises: In response to a communication instruction including the extended address and a communication request sent by the external device, confirming the target short address according to the extended address and the device information table; Perform wireless communication with the slave device according to the target short address and the communication request to obtain target communication content; The target communication content and the extended address are sent to the external device.

7. A wireless personal area network cascade system, characterized in that: include: a first network establishing module, configured to establish a first network in response to a power-on instruction and send a first network beacon wireless signal; a second network establishing module, the second network establishing module being configured to establish a second network according to the first network beacon wireless signal and send a second network beacon wireless signal, wherein the network identifier of the second network is the same as the network identifier of the first network; a registration connection module, configured to, upon receiving a registration connection instruction sent by a slave device and including target registration information and historical registration information, control the slave device to register and connect with the first network or the second network according to the target registration information; a short address allocation module, configured to allocate a short address to the slave device according to the historical registration information to obtain a target short address, wherein the target short address is used for wireless communication between an external device and the slave device; The step of establishing a second network according to the first network beacon wireless signal and sending a second network beacon wireless signal includes: Determining a target frequency band interval according to the first network beacon wireless signal; Acquire a second channel energy value of the target frequency band interval; When the second channel energy value is less than a preset channel energy threshold, a second network is established according to the second channel energy value, and a second network beacon wireless signal is sent.

8. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the wireless personal area network cascading method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the wireless personal area network cascading method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Control method, control device and wireless local area network access point

    CN106454939A

  • Communication management method and communication management device for wireless conference system

    CN112995571A