Method and device for accessing a kinetic switch to a wireless mesh network, and terminal equipment

By scanning the Bluetooth broadcast data of the kinetic energy switch and obtaining data from the server, and determining the proxy node in combination with the device node of the wireless grid network, the limitations of kinetic energy switch network access in the existing technology are solved, and a convenient network access configuration process is realized.

CN115278622BActive Publication Date: 2025-05-02SHENZHEN TOPBAND CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210821176.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-13
Publication Date
2025-05-02
Estimated Expiration
2042-07-13

AI Technical Summary

Technical Problem

When connecting kinetic energy switches to wireless grid networks, the prior art needs to add QR code stickers or laser engravings to the kinetic energy switch body and rely on specific proxy node equipment. If the QR code is damaged, it will not be able to access the network, which has limitations.

Method used

By scanning the Bluetooth broadcast data sent when the kinetic energy switch is pressed, obtaining the kinetic energy switch logo, and obtaining the kinetic energy switch data from the server, determining the proxy node from the device node of the target wireless grid network, and sending kinetic energy switch setting information to complete the network access configuration.

Benefits of technology

There is no need for a specific proxy node device, just press the kinetic energy switch to complete the network access setting, avoiding the binding problem of fixed equipment and the configuration process is convenient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115278622B_ABST
    Figure CN115278622B_ABST
Patent Text Reader

Abstract

The present application relates to a method, apparatus, terminal device, computer-readable storage medium and computer program product for accessing a kinetic energy switch to a wireless mesh network. The method comprises: obtaining Bluetooth broadcast data emitted when a scanned kinetic energy switch is pressed, the Bluetooth broadcast data carrying a kinetic energy switch identifier of the kinetic energy switch; obtaining kinetic energy switch data of the kinetic energy switch from a server based on the kinetic energy switch identifier; determining a proxy node from device nodes of the target wireless mesh network; obtaining kinetic energy switch setting information of the kinetic energy switch determined based on the kinetic energy switch data, and sending the kinetic energy switch setting information to the proxy node. This method can conveniently and easily complete the network access configuration of the kinetic energy switch without the need for a specific proxy node device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network technology, and in particular to a method for a kinetic energy switch to access a wireless mesh network, an apparatus for a kinetic energy switch to access a wireless mesh network, a terminal device, a computer-readable storage medium, and a computer program product. Background Art

[0002] Mesh network, also known as wireless mesh network, is a multi-hop network and one of the key technologies to solve the last mile problem. Wireless mesh can communicate with other networks in a coordinated manner. It is a dynamic and continuously expandable network architecture. Any two devices can maintain wireless interconnection. It has outstanding features such as dynamic self-organization, self-configuration, and self-maintenance. For example, any two devices can communicate via Bluetooth.

[0003] In some scenarios for Mesh networks, there is a need to add low-power kinetic switches to the Mesh network, that is, the kinetic switches need to be configured accordingly. The kinetic switch is a new type of intelligent switch that converts the trace kinetic energy generated by pressing the switch into electrical energy to form an energy supply for signal transmission. It is passive and wireless, safe to use, and does not require wall chiseling, wiring, or wiring. It can be installed on any solid surface.

[0004] However, the inventors have found that the current method of networking kinetic switches requires adding a QR code sticker or laser engraving to the kinetic switch body, and requires the presence of a specific proxy node device in the mesh network to connect the kinetic switch to the mesh network. If the QR code is damaged, the kinetic switch cannot be connected to the mesh network, which has limitations. Summary of the invention

[0005] Based on this, it is necessary to provide a method for a kinetic energy switch to access a wireless mesh network, an apparatus for a kinetic energy switch to access a wireless mesh network, a terminal device, a computer-readable storage medium and a computer program product to address the above technical problems.

[0006] In a first aspect, the present application provides a method for a kinetic energy switch to access a wireless mesh network. The method comprises:

[0007] Acquire Bluetooth broadcast data sent when the scanned kinetic energy switch is pressed, wherein the Bluetooth broadcast data carries a kinetic energy switch identifier of the kinetic energy switch;

[0008] Based on the kinetic energy switch identifier, obtaining kinetic energy switch data of the kinetic energy switch from a server;

[0009] Determine a proxy node from device nodes in the target wireless mesh network;

[0010] Acquire kinetic energy switch setting information of the kinetic energy switch determined based on the kinetic energy switch data, and send the kinetic energy switch setting information to the proxy node.

[0011] In some embodiments, after scanning and acquiring the Bluetooth broadcast data emitted when the kinetic energy switch is pressed, and before acquiring the kinetic energy switch data of the kinetic energy switch from the server based on the kinetic energy switch identifier, the method further includes the following steps:

[0012] Matching the kinetic energy switch identifier with wireless mesh network data of the target wireless mesh network;

[0013] If it is determined based on the matching result that the kinetic energy switch does not belong to the target wireless mesh network, the process proceeds to the step of obtaining kinetic energy switch data of the kinetic energy switch from a server based on the kinetic energy switch identifier.

[0014] In some embodiments, obtaining kinetic energy switch data of the kinetic energy switch from a server based on the kinetic energy switch identifier includes:

[0015] Sending a kinetic energy switch query request to the server, wherein the kinetic energy switch query request carries the kinetic energy switch identifier;

[0016] A kinetic energy switch query response returned by the server is received, wherein if the kinetic energy switch registration information corresponding to the kinetic energy switch identifier exists in the server, the kinetic energy switch query response carries the kinetic energy switch data of the kinetic energy switch.

[0017] In some embodiments, if the kinetic energy switch registration information corresponding to the kinetic energy switch identifier does not exist in the server, the kinetic energy switch query response carries prompt information that the kinetic energy switch is not registered.

[0018] In some embodiments, the method further comprises:

[0019] The kinetic energy switch data is added to the wireless mesh network data of the target wireless mesh network.

[0020] In some embodiments, determining the proxy node from the device nodes of the target wireless mesh network includes:

[0021] A pre-selected device node among the device nodes of the target wireless mesh network is determined as the proxy node.

[0022] In some embodiments, determining the proxy node from the device nodes of the target wireless mesh network includes:

[0023] Determine a target device node in the target wireless mesh network that is within a signal radiation range;

[0024] A proxy node is selected and determined from each of the target device nodes.

[0025] In some embodiments, the determining a target device node in the target wireless mesh network that is within a signal radiation range includes:

[0026] Searching for device nodes of the target wireless mesh network within the signal radiation range;

[0027] Among the searched device nodes, the device nodes whose signal power is greater than the preset power are determined as target device nodes.

[0028] In some embodiments, the step of selecting and determining a proxy node from each of the target device nodes includes:

[0029] A device node randomly selected from each of the target device nodes is determined as a proxy node.

[0030] In some embodiments, the kinetic energy switch data includes: the kinetic energy switch identifier and a numerical value of the number of keys of the kinetic energy switch.

[0031] In some embodiments, the kinetic energy switch setting information includes: the function of each button of the kinetic energy switch, and the device address controlled by each button, and the device address includes at least one of a unicast address, a group address or a broadcast address.

[0032] In a second aspect, the present application provides a device for connecting a kinetic energy switch to a wireless mesh network. The device includes a kinetic energy switch information acquisition module, a data acquisition module, a proxy node determination module, and a setting module, wherein:

[0033] A kinetic energy switch information acquisition module, used to acquire Bluetooth broadcast data sent when the scanned kinetic energy switch is pressed, wherein the Bluetooth broadcast data carries a kinetic energy switch identifier of the kinetic energy switch;

[0034] A data acquisition module, used for acquiring kinetic energy switch data of the kinetic energy switch from a server based on the kinetic energy switch identifier;

[0035] A proxy node determination module, used to determine a proxy node from device nodes in the target wireless mesh network;

[0036] The setting module is used to obtain kinetic energy switch setting information of the kinetic energy switch determined based on the kinetic energy switch data, and send the kinetic energy switch setting information to the proxy node.

[0037] In a third aspect, the present application further provides a terminal device. The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of any one of the vehicle startup control methods described above when executing the computer program.

[0038] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-mentioned methods for connecting a kinetic energy switch to a wireless mesh network.

[0039] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned methods for connecting a kinetic energy switch to a wireless mesh network are implemented.

[0040] The above-mentioned method for accessing a kinetic switch to a wireless mesh network, the device for accessing a kinetic switch to a wireless mesh network, the terminal device, the computer-readable storage medium and the computer program product, when configuring the kinetic switch, obtain the Bluetooth broadcast data emitted when the kinetic switch is pressed by scanning to obtain the kinetic switch identifier, and obtain the kinetic switch data of the kinetic switch from the server accordingly, and after determining the proxy node from the device nodes of the target wireless mesh network, send the obtained kinetic switch setting information to the proxy node to complete the network access configuration of the kinetic switch. Therefore, there is no need for a specific proxy node device, and the network access setting of the kinetic switch can be completed by pressing the kinetic switch, and the proxy node can be directly determined from the device nodes of the target wireless mesh network for setting, avoiding the binding problem of fixed devices, and the configuration process is convenient and fast. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A diagram of an application environment of a method for connecting a kinetic energy switch to a wireless mesh network in one embodiment;

[0042] Figure 2 A schematic flow chart of a method for connecting a kinetic energy switch to a wireless mesh network in one embodiment;

[0043] Figure 3 A schematic flow chart of a method for connecting a kinetic energy switch to a wireless mesh network in another embodiment;

[0044] Figure 4 A schematic diagram of the interaction process of a kinetic energy switch accessing a wireless mesh network in a specific example;

[0045] Figure 5 A structural block diagram of a device for connecting a kinetic energy switch to a wireless mesh network in an embodiment;

[0046] Figure 6 FIG. 4 is a diagram showing the internal structure of a terminal device in an embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] In the method for connecting a kinetic energy switch to a wireless mesh network provided in the embodiment of the present application, a plurality of Mesh devices form a Mesh network 30. It should be understood that: Figure 1 The description only takes several Mesh devices included in the Mesh network as examples. In an actual Mesh network, the number of Mesh devices included and the multi-hop relationship between the Mesh devices may also be other settings. The Mesh network 30 can communicate with an external network, for example, communicating with a server 10 or a terminal device 20 through a network, and the terminal device 20 can communicate with the server 10 through a network connection. The data storage system can store data that the server 10 needs to process, such as kinetic switch data registered by the kinetic switch 40. The data storage system can be integrated on the server 10, or it can be placed on the cloud or other servers. Among them, the terminal device 20 can communicate with the Mesh device in the Mesh network 30 via Bluetooth, and the terminal device 20 can be one of the Mesh devices in the Mesh network 30.

[0049] When the kinetic energy switch 40 needs to be configured to the Mesh network 30, the kinetic energy switch 40 can be registered on the server 10 first. The specific registration can be registered through the terminal device 20, or it can be registered on the server 10 through other devices when the kinetic energy switch 40 leaves the factory or in other cases. Then the terminal device 20 opens the scanning interface, and by pressing the kinetic energy switch 40, the kinetic energy switch 40 sends Bluetooth broadcast data. After the terminal device 20 scans and receives the Bluetooth broadcast data, it pulls the kinetic energy switch data registered by the kinetic energy switch from the server 10, and then randomly or by another method determines a proxy node from each Mesh device (i.e., device node) of the Mesh network where it is located, and sends the configuration information for the kinetic energy switch 40 to the proxy node, thereby completing the network access configuration process of the kinetic energy switch 40.

[0050] The terminal device 20 may be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 10 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0051] In one embodiment, Figure 2As shown, a method for connecting a kinetic energy switch to a wireless mesh network is provided, and the method is applied to Figure 1 The terminal device 20 in the example is used for explanation, and the steps include the following steps S201 to S204.

[0052] Step S201: obtaining Bluetooth broadcast data sent when a scanned kinetic energy switch is pressed, wherein the Bluetooth broadcast data carries a kinetic energy switch identifier of the kinetic energy switch.

[0053] Among them, the Bluetooth scanning interface of the terminal device can be opened to perform Bluetooth scanning to obtain the Bluetooth broadcast data sent when the kinetic energy switch is pressed. Alternatively, when the kinetic energy switch is to be connected to the Mesh network, the terminal device automatically starts the Bluetooth scanning process of the terminal device after receiving the instruction to start connecting the kinetic energy switch to the Mesh network to obtain the Bluetooth broadcast data sent when the kinetic energy switch is pressed.

[0054] The kinetic energy switch is an intelligent switch that collects the tiny mechanical kinetic energy generated when the kinetic energy switch is pressed to obtain electrical energy. After the kinetic energy switch is pressed, it will no longer generate mechanical kinetic energy, so the kinetic energy switch will enter a dormant state. Therefore, by scanning and obtaining the Bluetooth broadcast data sent when the kinetic energy switch is pressed, the information of the kinetic energy switch can be obtained.

[0055] The kinetic switch identifier is information that can uniquely identify the kinetic switch. In some embodiments, the kinetic switch identifier can be a MAC (Medium / Media Access Control) address of the kinetic switch. It should be understood that the kinetic switch is provided with one or more buttons. When the kinetic switch is pressed, a certain button of the kinetic switch is usually pressed. Therefore, the key value of the specific button pressed can also be carried in the above-mentioned Bluetooth broadcast data.

[0056] Step S202: based on the kinetic energy switch identifier, obtaining kinetic energy switch data of the kinetic energy switch from a server.

[0057] Wherein, the method of obtaining the kinetic energy switch data of the kinetic energy switch from the server may be to directly query and obtain from the server. In some embodiments, the method of obtaining the kinetic energy switch data of the kinetic energy switch from the server based on the kinetic energy switch identifier may include:

[0058] Sending a kinetic energy switch query request to the server, wherein the kinetic energy switch query request carries the kinetic energy switch identifier;

[0059] Receive a kinetic energy switch query response returned by the server.

[0060] Wherein, if the kinetic energy switch registration information corresponding to the kinetic energy switch identifier exists in the server, the kinetic energy switch query response carries the kinetic energy switch data of the kinetic energy switch. If the kinetic energy switch registration information corresponding to the kinetic energy switch identifier does not exist in the server, the kinetic energy switch query response carries the prompt information that the kinetic energy switch is not registered.

[0061] If the received kinetic energy switch query response includes prompt information that the kinetic energy switch is not registered, the current process of the kinetic energy switch accessing the wireless mesh network can be directly terminated.

[0062] In other embodiments, when the received kinetic energy switch query response includes prompt information that the kinetic energy switch is not registered, the kinetic energy switch may be further registered on the server, and after the registration is successful, the step of sending a kinetic energy switch query request to the server is returned.

[0063] In other embodiments, when the received kinetic energy switch query response includes prompt information that the kinetic energy switch is not registered, the kinetic energy switch registration is completed through other devices, and after the kinetic energy switch registration is completed, the kinetic energy switch query request is resent to the server.

[0064] In some embodiments, when the terminal device maintains or stores the wireless mesh network data of the target wireless mesh network in which it is located, after obtaining the kinetic switch data of the kinetic switch, the kinetic switch data can be further added to the wireless mesh network data of the target wireless mesh network in which it is located to complete the network access of the kinetic switch. The wireless mesh network data with the kinetic switch data added can be further sent to the server for storage, so as to be synchronously stored and backed up on the server, so that the terminal device can obtain the wireless mesh data from the server when needed, such as the next time it is turned on, after restarting, or after restoring factory settings.

[0065] Step S203: determining a proxy node from the device nodes of the target wireless mesh network.

[0066] The target wireless mesh network refers to the wireless mesh network targeted by the terminal device when performing network access and distribution operations, which may be the Mesh network where the terminal device itself is located.

[0067] In some embodiments, the above-mentioned determining the proxy node from the device nodes of the target wireless mesh network includes:

[0068] A pre-selected device node among the device nodes of the target wireless mesh network is determined as the proxy node.

[0069] That is, when determining the proxy node, a device node in the Mesh network where the terminal is located may be pre-selected, and then the device node may be determined as the proxy node.

[0070] In some other embodiments, the above-mentioned determining the proxy node from the device nodes of the target wireless mesh network includes:

[0071] Determine a target device node in the target wireless mesh network that is within a signal radiation range;

[0072] A proxy node is selected and determined from each of the target device nodes.

[0073] Among them, the Mesh network where the terminal device is located will contain multiple Mesh devices, but not all Mesh devices are within the signal service coverage of the terminal device, that is, not all Mesh devices can communicate with other Mesh devices. Therefore, it is necessary to first determine the target device node in the target wireless mesh network within the signal radiation range of the terminal device.

[0074] In some embodiments, determining a target device node in the target wireless mesh network within a signal radiation range may specifically include:

[0075] Searching for device nodes of the target wireless mesh network within the signal radiation range;

[0076] Among the searched device nodes, the device nodes whose signal power is greater than the preset power are determined as target device nodes. The preset power can be determined based on the signal power of the kinetic energy switch, or based on the signal power of the terminal device, or can be pre-applied through other standards, which is not specifically limited in the embodiments of the present application.

[0077] When selecting and determining the proxy node from the target device nodes, any possible method may be used for selection. For example, the Nth target device node with the highest received signal power among the target device nodes may be determined as the proxy node, where N may be 1, 2, 3 or any other number.

[0078] In some embodiments, a device node randomly selected from each of the target device nodes may be determined as a proxy node. The randomly selected device node may be a device node randomly selected by a user from each of the target device nodes, for example, after each of the target device nodes is displayed on a terminal device, the user randomly selects a device node from each of the displayed target device nodes. On the other hand, the randomly selected device node may also be a device node randomly selected by the terminal device from each of the target device nodes, that is, the random selection process may not require user participation.

[0079] Step S204: Acquire kinetic energy switch setting information of the kinetic energy switch determined based on the kinetic energy switch data, and send the kinetic energy switch setting information to the proxy node.

[0080] After the proxy node is determined, the kinetic energy switch can be configured on the proxy node. Specifically, the kinetic energy switch setting information of the kinetic energy switch determined based on the kinetic energy switch data can be first obtained.

[0081] Among them, the kinetic energy switch data obtained above includes: the kinetic energy switch identifier and the numerical value of the kinetic energy switch buttons, that is, the obtained kinetic energy switch data itself only contains the information of the kinetic energy switch itself, and does not contain the control functions of each button of the kinetic energy switch. Therefore, it is necessary to obtain the kinetic energy switch setting information of the kinetic energy switch.

[0082] The specific method of obtaining the kinetic switch setting information of the kinetic switch can be set by the user of the terminal device on the display interface of the terminal device, or by the terminal device interacting with the server, or by other methods, which is not specifically limited in the embodiments of the present application. The obtained kinetic switch setting information can specifically include: the function of each button of the kinetic switch, and the device address controlled by each button, wherein the device address includes at least one of a unicast address, a group address, or a broadcast address.

[0083] The method for connecting the kinetic energy switch to the wireless mesh network in the above-mentioned embodiments, when configuring the network for the kinetic energy switch, obtains the Bluetooth broadcast data sent when the kinetic energy switch is pressed by scanning to obtain the kinetic energy switch identifier, and obtains the kinetic energy switch data of the kinetic energy switch from the server accordingly, and after determining the proxy node from the device nodes of the target wireless mesh network, sends the obtained kinetic energy switch setting information to the proxy node to complete the network access configuration of the kinetic energy switch. Therefore, there is no need for a specific proxy node device, and the network access setting of the kinetic energy switch can be completed by simply pressing the kinetic energy switch, and the proxy node can be directly determined from the device nodes of the target wireless mesh network for setting, avoiding the binding problem of fixed devices, and the configuration process is convenient and fast.

[0084] refer to Figure 3 As shown, in other embodiments, based on the above embodiments, after scanning and acquiring the Bluetooth broadcast data sent when the kinetic energy switch is pressed in the above step S201, before acquiring the kinetic energy switch data of the kinetic energy switch from the server based on the kinetic energy switch identifier in the above step S202, the following may also be included:

[0085] Step S2011: matching the kinetic energy switch identifier with the wireless mesh network data of the target wireless mesh network;

[0086] Step S2012: If it is determined based on the matching result that the kinetic energy switch does not belong to the target wireless mesh network, the step of obtaining kinetic energy switch data of the kinetic energy switch from a server based on the kinetic energy switch identifier is entered.

[0087] Therefore, after scanning and acquiring the Bluetooth broadcast data sent when the kinetic energy switch is pressed, it is first determined whether the kinetic energy switch identifier belongs to the target wireless mesh network. Only when the kinetic energy switch does not belong to the target wireless mesh network, it will enter the subsequent series of processes such as acquiring the kinetic energy switch data of the kinetic energy switch from the server. This is to avoid that when configuring a certain kinetic energy switch, other kinetic energy switches that have been connected to the network are being pressed by other users, or other kinetic energy switches that have been connected to the network are pressed by mistake, and the network configuration process is repeated for these kinetic energy switches that have been connected to the network.

[0088] Among them, when the terminal device matches the kinetic energy switch identifier with the wireless mesh network data of the target wireless mesh network, the terminal device may match the kinetic energy switch identifier with the wireless mesh network data of the target wireless mesh network stored or maintained by itself. If the wireless mesh network data contains the kinetic energy switch identifier, it is considered that the kinetic energy switch belongs to the target wireless mesh network, otherwise it does not belong to the target wireless mesh network.

[0089] In other embodiments, if the wireless mesh network data of the target wireless mesh network is stored in a server, the terminal device may also send the kinetic energy switch identifier to the server to match it with the wireless mesh network data maintained by the server.

[0090] Based on the above-mentioned embodiments, a detailed description is given below in conjunction with one of the specific examples. It should be understood that the following specific examples are merely illustrative descriptions for a more detailed understanding of the embodiments of the present application, and are not sufficient to constitute a limitation on the solutions claimed in the present application.

[0091] refer to Figure 4 As shown, the solution in this specific example involves a server (also called a backend), a terminal device, a Mesh device, and a kinetic switch, wherein multiple Mesh devices form a Mesh network. Specifically, when the kinetic switch is connected to a wireless mesh network, the following related processes are specifically involved.

[0092] The kinetic energy switch to be connected needs to be registered on the server. The specific method of registering the kinetic energy switch to the server can be: Figure 4The terminal device involved in the registration may also be registered through other devices. The specific registration information of the kinetic switch registered to the server may specifically include the kinetic switch identifier (such as MAC address) of the kinetic switch and the corresponding number of buttons. The server may store the registration information.

[0093] Among them, for each Mesh network, there is a data file that records the data of the Mesh devices, network configuration information, encryption methods and other information in the Mesh network, which is called wireless mesh network data in the above embodiment, wherein the data file also contains the configuration information of each kinetic energy switch that has been connected to the network. In some embodiments, the data file can exist in the form of a json file, and in other embodiments, the data file can also be a file in other forms. Each time the terminal device turns on the function of the Mesh network, or each time the application program that executes the method of connecting the kinetic energy switch of the present application to the wireless mesh network is turned on, the latest file will be pulled from the server to the local to obtain the latest Mesh network data file, and according to the information recorded in the data file, the Mesh devices in the Mesh network are connected, and the scanned kinetic energy switch data is recorded for later use, such as setting the function of the button of the newly connected kinetic energy switch, or changing the function of the button of the kinetic energy switch that has been connected to the network.

[0094] When the kinetic energy switch needs to be connected to the wireless mesh network, after receiving the instruction to connect the kinetic energy switch to the wireless mesh network, the Bluetooth data scanning interface on the terminal device can be triggered to open. Then, during the scanning time of the terminal device, any button of the kinetic energy switch is pressed. Each time the kinetic energy switch is pressed, a frame of Bluetooth broadcast data will be sent, that is, all data of the kinetic energy switch will be sent accordingly on the Bluetooth broadcast channel, and the Bluetooth broadcast data specifically includes the MAC address of the kinetic energy switch and the key value of the pressed button.

[0095] In some embodiments, the terminal device can display the MAC address of the device obtained by scanning based on the Bluetooth broadcast data obtained by scanning. In some embodiments, while displaying the MAC address obtained by scanning, the product type of the product corresponding to the MAC address can also be judged. If it is not the target product type, the MAC address obtained by scanning that is not the target product type is filtered out and not displayed on the scanning interface.

[0096] Subsequently, the terminal device matches the MAC address of the kinetic energy switch with the above-mentioned data file it obtains to determine whether the kinetic energy switch has joined the Mesh network corresponding to the data file. If the MAC address is included in the data file, it means that the kinetic energy switch has joined the Mesh network, and there is no need to perform the access process of the kinetic energy switch. If the MAC address is not included in the data file, it means that the kinetic energy switch is not connected to the Mesh network, and it is necessary to perform the network configuration operation of connecting the kinetic energy switch to the Mesh network.

[0097] Then, the terminal device sends a kinetic energy switch query request to the server, where the kinetic energy switch query request carries a kinetic energy switch identifier. In some embodiments, the kinetic energy switch query request may also carry the above-mentioned key value.

[0098] After receiving the kinetic energy switch query request, the server queries whether the kinetic energy switch has been registered based on the kinetic energy switch identifier, or based on the kinetic energy switch identifier and the key value.

[0099] If the kinetic energy switch has been registered, the server obtains the registration information when the kinetic energy switch is registered, that is, obtains the kinetic energy switch data of the kinetic energy switch, such as at least one or more of the number of buttons of the kinetic energy switch, which buttons are specifically, or the appearance of the kinetic energy switch, etc., and returns a kinetic energy switch query response to the terminal device, and the kinetic energy switch query response carries the kinetic energy switch data of the kinetic energy switch.

[0100] If the kinetic energy switch is not registered, the server returns a prompt message indicating that the kinetic energy switch is not registered to the terminal device. Based on the prompt message indicating that the kinetic energy switch is not registered, the terminal device can terminate the current process of connecting the kinetic energy switch to the wireless mesh network, or complete the registration of the kinetic energy switch according to the prompt and then resend the kinetic energy switch query request to the server.

[0101] After the terminal device obtains the kinetic switch data of the kinetic switch, the kinetic switch data can be displayed on the display interface of the terminal device to allow the user of the terminal device to verify whether the pulled kinetic switch data is the kinetic switch that needs to be accessed and configured. For example, based on the appearance of the displayed kinetic switch, confirm whether it is the kinetic switch that needs to be accessed and configured.

[0102] After the terminal device obtains the kinetic switch data of the kinetic switch, the obtained kinetic switch data can be added to the Mesh network used in the above scanning, that is, added to the above data file, to complete the network access operation of the kinetic switch. In this process, there is no need to interact with the kinetic switch for data, that is, there is no need to press the kinetic switch.

[0103] After the kinetic energy switch data is added to the above data file, the network access operation of the kinetic energy switch is completed. However, the kinetic energy switch cannot be added to the Mesh network yet. It is necessary to select an agent node of the kinetic energy switch in the Mesh network before the kinetic energy switch can be connected to the network.

[0104] Specifically, the terminal device can be placed in a position relatively close to the kinetic energy switch and scanned by the terminal device. Since the terminal device is close to the kinetic energy switch, the signal radiation range of the terminal device can be considered to be the radiation range of the kinetic energy switch to a certain extent. Among them, the distance between the terminal device and the position of the kinetic energy switch can be within a certain distance range, and the distance range can be set in combination with actual technical needs, and the embodiments of the present application do not make specific limitations.

[0105] Subsequently, the terminal device performs a Bluetooth scan to obtain target device nodes in the Mesh device within the signal radiation range of the terminal device, which may be device nodes whose received signal power is greater than a preset power, and displays these target device nodes. When displaying, they may be sorted according to the strength of the received signal power.

[0106] Based on the displayed target device nodes, the user can randomly select a target device node and set it as a proxy node, or the terminal device can also randomly select or determine a target device node as a proxy node.

[0107] Subsequently, the configuration information of the kinetic energy switch is set to obtain the kinetic energy switch setting information of the kinetic energy switch, and the kinetic energy switch setting information may specifically include: the function of each button of the kinetic energy switch, and the device address controlled by each button, and the device address includes at least one of a unicast address, a group address or a broadcast address.

[0108] Subsequently, the terminal device sends the set kinetic energy switch setting information to the above-selected proxy node, and after receiving the kinetic energy switch setting information, the proxy node saves the kinetic energy switch setting information.

[0109] After the above process, the kinetic switch can normally access the network and control the corresponding devices in the mesh network, realizing the interaction between the kinetic switch and the proxy node. At this time, when any button of the kinetic switch is pressed, the kinetic button will send out Bluetooth broadcast data, which includes the MAC address and button value of the kinetic switch. After receiving the Bluetooth broadcast data, the proxy node parses the intermediate button value, matches the button value with the above kinetic switch setting information, and converts it into mesh information to control the corresponding device.

[0110] It can be seen that based on the method of the embodiment of the present application shown above, the registered kinetic energy switch is added to the network by scanning the air data packet (i.e., Bluetooth broadcast data), which reduces the investment in printing or laser engraving of the QR code, reduces the investment cost, and reduces the occurrence of the QR code being damaged and unusable due to human reasons. In addition, by supporting the random selection of proxy nodes, the diversity of the client's choice of device type is reduced, avoiding the binding problem between fixed devices.

[0111] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0112] Based on the same inventive concept, the embodiment of the present application also provides a device for connecting a kinetic energy switch to a wireless mesh network for implementing the method for connecting a kinetic energy switch to a wireless mesh network. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of the embodiments of the device for connecting one or more kinetic energy switches to a wireless mesh network provided below can refer to the limitations of the vehicle startup control method above, and will not be repeated here.

[0113] In one embodiment, Figure 5 As shown, a device for connecting a kinetic energy switch to a wireless mesh network is provided, comprising: a kinetic energy switch information acquisition module 501, a data acquisition module 502, a proxy node determination module 503 and a setting module 504. Among them:

[0114] The kinetic energy switch information acquisition module 501 is used to acquire the Bluetooth broadcast data sent when the scanned kinetic energy switch is pressed, and the Bluetooth broadcast data carries the kinetic energy switch identifier of the kinetic energy switch;

[0115] A data acquisition module 502, configured to acquire kinetic energy switch data of the kinetic energy switch from a server based on the kinetic energy switch identifier;

[0116] A proxy node determination module 503, configured to determine a proxy node from device nodes in the target wireless mesh network;

[0117] The setting module 504 is used to obtain kinetic energy switch setting information of the kinetic energy switch determined based on the kinetic energy switch data, and send the kinetic energy switch setting information to the proxy node.

[0118] In some embodiments, the device further comprises a kinetic switch matching module, wherein:

[0119] A kinetic energy switch matching module, used to match the kinetic energy switch identifier with wireless mesh network data of the target wireless mesh network;

[0120] The data acquisition module 502 acquires kinetic energy switch data of the kinetic energy switch from a server based on the kinetic energy switch identifier when the kinetic energy switch matching module determines that the kinetic energy switch does not belong to the target wireless mesh network based on the matching result.

[0121] In some embodiments, the data acquisition module 502 sends a kinetic energy switch query request to the server, wherein the kinetic energy switch query request carries the kinetic energy switch identifier; and receives a kinetic energy switch query response returned by the server, wherein if the server contains kinetic energy switch registration information corresponding to the kinetic energy switch identifier, the kinetic energy switch query response carries the kinetic energy switch data of the kinetic energy switch.

[0122] In some embodiments, if the kinetic energy switch registration information corresponding to the kinetic energy switch identifier does not exist in the server, the kinetic energy switch query response carries prompt information that the kinetic energy switch is not registered.

[0123] In some embodiments, the data acquisition module 502 is further configured to add the kinetic energy switch data to the wireless mesh network data of the target wireless mesh network.

[0124] In some embodiments, the proxy node determination module 503 is used to determine a pre-selected device node among the device nodes of the target wireless mesh network as the proxy node.

[0125] In some embodiments, the proxy node determination module 503 is used to determine a target device node in the target wireless mesh network within the signal radiation range; and select and determine a proxy node from each of the target device nodes.

[0126] In some embodiments, the proxy node determination module 503 is used to search for device nodes of the target wireless mesh network within the signal radiation range; and determine the device nodes whose signal power is greater than a preset power among the searched device nodes as target device nodes.

[0127] In some embodiments, the proxy node determination module 503 is used to determine a device node randomly selected from each of the target device nodes as a proxy node.

[0128] In some embodiments, the kinetic energy switch data includes: the kinetic energy switch identifier and the number of keys of the kinetic energy switch. The kinetic energy switch setting information includes: the function of each key of the kinetic energy switch, and the device address controlled by each key, wherein the device address includes at least one of a unicast address, a group address, or a broadcast address.

[0129] Each module in the above-mentioned device for connecting the kinetic energy switch to the wireless mesh network can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the terminal device in the form of hardware, or can be stored in the memory in the terminal device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0130] In one embodiment, a terminal device is provided, whose internal structure diagram can be as follows: Figure 6 As shown. The terminal device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the terminal device is used to provide computing and control capabilities. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the terminal device is used to exchange information between the processor and an external device. The communication interface of the terminal device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for a kinetic energy switch to access a wireless mesh network is implemented. The display unit of the terminal device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the terminal device can be a touch layer covered on the display screen, or it can be a button, trackball or touchpad set on the terminal device housing, or it can be an external keyboard, touchpad or mouse, etc.

[0131] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the terminal device to which the scheme of the present application is applied. The specific terminal device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0132] In one embodiment, a terminal device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method of connecting a kinetic energy switch to a wireless mesh network according to any of the embodiments described above is implemented.

[0133] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for connecting a kinetic energy switch to a wireless mesh network according to any of the embodiments described above is implemented.

[0134] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0135] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0136] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for connecting a kinetic energy switch to a wireless mesh network, characterized in that: Applied to a terminal device, the method comprises: Open the Bluetooth scanning interface of the terminal device to perform Bluetooth scanning, or receive an instruction to start connecting the kinetic energy switch to the wireless mesh network, start the Bluetooth scanning process of the terminal device to obtain the Bluetooth broadcast data sent when the scanned kinetic energy switch is pressed, and the Bluetooth broadcast data carries the kinetic energy switch identifier of the kinetic energy switch; Based on the kinetic energy switch identifier, pull the kinetic energy switch data registered by the kinetic energy switch from the server, the kinetic energy switch data including: the kinetic energy switch identifier and a key number value of the kinetic energy switch; Determine a proxy node from device nodes in the target wireless mesh network; By performing setting operations on the display interface of the terminal device, or by interacting between the terminal device and the server, kinetic energy switch setting information of the kinetic energy switch determined based on the kinetic energy switch data is obtained, and the kinetic energy switch setting information is sent to the proxy node.

2. The method according to claim 1, characterized in that After scanning and acquiring the Bluetooth broadcast data sent when the kinetic energy switch is pressed, and before acquiring the kinetic energy switch data of the kinetic energy switch from the server based on the kinetic energy switch identifier, the step further includes: Matching the kinetic energy switch identifier with wireless mesh network data of the target wireless mesh network; If it is determined based on the matching result that the kinetic energy switch does not belong to the target wireless mesh network, the process proceeds to the step of obtaining kinetic energy switch data of the kinetic energy switch from a server based on the kinetic energy switch identifier.

3. The method according to claim 1, characterized in that The acquiring, from a server, kinetic energy switch data of the kinetic energy switch based on the kinetic energy switch identifier includes: Sending a kinetic energy switch query request to the server, wherein the kinetic energy switch query request carries the kinetic energy switch identifier; A kinetic energy switch query response returned by the server is received, wherein if the kinetic energy switch registration information corresponding to the kinetic energy switch identifier exists in the server, the kinetic energy switch query response carries the kinetic energy switch data of the kinetic energy switch.

4. The method according to claim 3, characterized in that If the server does not have the kinetic energy switch registration information corresponding to the kinetic energy switch identifier, the kinetic energy switch query response carries prompt information that the kinetic energy switch is not registered.

5. The method according to claim 2, characterized in that: The method further comprises: The kinetic energy switch data is added to the wireless mesh network data of the target wireless mesh network.

6. The method according to claim 1, characterized in that The determining of the proxy node from the device nodes of the target wireless mesh network includes: A pre-selected device node among the device nodes of the target wireless mesh network is determined as the proxy node.

7. The method according to claim 1, characterized in that The determining of the proxy node from the device nodes of the target wireless mesh network includes: Determine a target device node in the target wireless mesh network that is within a signal radiation range; A proxy node is selected and determined from each of the target device nodes.

8. The method according to claim 7, characterized in that The determining of a target device node in the target wireless mesh network within a signal radiation range includes: Searching for device nodes of the target wireless mesh network within a signal radiation range; Among the searched device nodes, the device nodes whose signal power is greater than the preset power are determined as target device nodes.

9. The method according to claim 7, characterized in that: The step of selecting and determining a proxy node from each of the target device nodes comprises: A device node randomly selected from each of the target device nodes is determined as a proxy node.

10. A device for connecting a kinetic switch to a wireless mesh network, characterized in that: The device is arranged in a terminal device, and comprises: A kinetic energy switch information acquisition module, used to open the Bluetooth scanning interface of the terminal device to perform Bluetooth scanning, or receive an instruction to start connecting the kinetic energy switch to the wireless mesh network, start the Bluetooth scanning process of the terminal device to obtain the Bluetooth broadcast data sent when the scanned kinetic energy switch is pressed, and the Bluetooth broadcast data carries the kinetic energy switch identifier of the kinetic energy switch; A data acquisition module, configured to pull the kinetic energy switch data registered by the kinetic energy switch from a server based on the kinetic energy switch identifier, wherein the kinetic energy switch data includes: the kinetic energy switch identifier and a key value of the kinetic energy switch; A proxy node determination module, used to determine a proxy node from device nodes in the target wireless mesh network; A setting module is used to obtain kinetic energy switch setting information of the kinetic energy switch determined based on the kinetic energy switch data through setting operations on the display interface of the terminal device, or through interaction between the terminal device and the server, and send the kinetic energy switch setting information to the proxy node.

11. A terminal device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Method for realizing control of wireless passive switch, wireless passive switch and proxy node

    CN111083654A

  • Bluetooth device control method, client, computer device and readable storage medium

    CN113271579A

  • Proxy node determination method, device and equipment and readable storage medium

    CN113676981A