Data transmission method and apparatus, and electronic device, storage medium and self-organizing network system

Through the electronic devices in the self-organizing network system, regular or relay nodes are judged and set as them, and the Bluetooth communication channel is used to realize data interaction between the atomization device and the mobile terminal, which solves the problem of low communication frequency of users in outdoor scenes and improves communication efficiency and information transmission capabilities.

WO2025218010A1PCT designated stage Publication Date: 2025-10-23HG INNOVATION LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/101702
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-19
Filing Date
2024-06-26
Publication Date
2025-10-23

AI Technical Summary

Technical Problem

When using existing atomization equipment in outdoor scenes, it is difficult for users to establish effective communication with other users who are not visually observable, and the communication frequency is low.

Method used

Through the electronic devices in the self-organizing network system, it is determined whether there is a relay node nearby, and it is set as a regular node or relay node to establish a Bluetooth communication channel with it to achieve data interaction, including data transmission between nodes including atomization devices and mobile terminals.

Benefits of technology

It increases the frequency of communication between users, facilitates users to communicate based on atomization devices, expands the scope of social circles, and realizes the effective transmission of information and software updates of devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024101702_23102025_PF_FP_ABST
    Figure CN2024101702_23102025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to a data transmission method and apparatus, and an electronic device, a storage medium and a self-organizing network system. The method and apparatus are applied to an electronic device in a self-organizing network system, and the electronic device includes an atomization device or a mobile terminal. The method comprises: determining whether there is a relay node in the vicinity of an electronic device; if so, configuring the electronic device as a regular node, and establishing a Bluetooth communication channel with the relay node, such that the electronic device can perform data interaction with the relay node; and if not, configuring the electronic device as a relay node, and establishing a Bluetooth communication channel with a regular node, such that the electronic device can perform data interaction with the regular node.
Need to check novelty before this filing date? Find Prior Art

Description

Data transmission method and device, electronic equipment, storage medium and ad hoc network system TECHNICAL FIELD

[0001] The present application relates to the field of intelligent atomization equipment, in particular to a data transmission method and device, electronic equipment, storage medium and ad hoc network system. BACKGROUND

[0002] The existing atomization equipment uses outdoor open-air scenes as the main scene, and the starting point of establishing communication is mainly that users observe other users using atomization equipment nearby through visual observation, and it is not easy to establish contact or initiate chat with users who cannot be observed visually. Therefore, the industry needs to develop a set of technical solutions to facilitate users to communicate based on atomization equipment and improve communication frequency. SUMMARY

[0003] The present application mainly provides a data transmission method, which can facilitate users to communicate based on atomization equipment and improve communication frequency.

[0004] In a first aspect, a data transmission method is provided in an embodiment, applied to an electronic device in an ad hoc network system, the electronic device comprising an atomization device or a mobile terminal, the method comprising: determining whether there is a relay node near the electronic device; if there is, setting the electronic device as a regular node and establishing a Bluetooth communication channel with the relay node, so that the electronic device and the relay node can interact with each other; if there is not, setting the electronic device as a relay node and establishing a Bluetooth communication channel with a regular node, so that the electronic device can interact with the regular node.

[0005] Further technical solutions are that before setting the electronic device as a regular node, or before setting the electronic device as a relay node, the method further comprises: outputting a selection setting of setting the electronic device as a regular node or a relay node to a user; and determining whether to set the electronic device as a regular node or a relay node according to the selection setting instruction of the user.

[0006] Further technical solutions are that after a preset time interval, it is determined whether the electronic device remains connected with the relay node or the regular node, or whether the electronic device is powered off and restarted; if the electronic device does not remain connected with the relay node or the regular node, or the electronic device is powered off and restarted, the step of determining whether there is a relay node near the electronic device is re-executed.

[0007] Further, the step of the electronic device interacting with the relay node or the step of the electronic device interacting with the regular node further comprises: receiving and executing data sent by the relay node or the regular node, or setting and sending the data to the relay node or the regular node; wherein the data comprises one or more of the following: display screen data, power parameter data, software installation / update data, atomization data, opening instruction, closing instruction and adjustment instruction.

[0008] Further, the method further comprises: downloading a software installation package through the mobile terminal set as the relay node; or the method further comprises: obtaining a software version of the mobile terminal set as the relay node, determining whether the software version carried by the electronic device is consistent with the software version of the mobile terminal, and downloading a software update package through the mobile terminal set as the relay node if the software versions are inconsistent.

[0009] In a second aspect, an embodiment provides a data transmission device applied to an electronic device in an ad hoc network system, the electronic device comprising an atomization device or a mobile terminal, and the device comprising: a first determining unit configured to determine whether there is a relay node near the electronic device; a first transmission unit configured to set the electronic device as a regular node when there is a relay node near the electronic device, and establish a Bluetooth communication channel with the relay node, so that the electronic device and the relay node can perform data transmission; and a second transmission unit configured to set the electronic device as a relay node when there is no relay node near the electronic device, and establish a Bluetooth communication channel with a regular node, so that the electronic device can interact with the regular node.

[0010] In a third aspect, an embodiment provides an electronic device, comprising: a memory configured to store a computer program; and a processor connected to the memory, wherein the processor executes the computer program to implement the method of the first aspect.

[0011] In a fourth aspect, an embodiment provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method of the first aspect.

[0012] In a fifth aspect, an embodiment provides an ad hoc network system, wherein each node in the ad hoc network system is connected through Bluetooth, the ad hoc network system comprises at least one relay node and a plurality of regular nodes, and a mobile terminal or an atomization device can be formed as the relay node or the regular node in the ad hoc network system.

[0013] Further, the network structure of the ad hoc network system is a tree topology or a star topology.

[0014] According to the data transmission method of the embodiment, it is firstly judged whether there is a relay node near the electronic device, if there is a relay node, the electronic device is set as a regular node and data interaction is performed, if there is no relay node, the electronic device is set as a relay node and data interaction is performed. The electronic device of the scheme can perform data interaction with the atomization device or the mobile terminal based on the ad hoc network system, realize information transmission, and then the user can conveniently communicate based on the atomization device, and the communication frequency is improved. BRIEF DESCRIPTION OF DRAWINGS

[0015] Fig. 1 is a structural block diagram of an ad hoc network system provided by an embodiment of the present application;

[0016] Fig. 2 is an architecture example diagram of an ad hoc network system provided by an embodiment of the present application;

[0017] Fig. 3 is an architecture example diagram of the ad hoc network system after part of nodes of Fig. 2 are disconnected and reconnected;

[0018] Fig. 4 is a flow diagram of a data transmission method provided by an embodiment of the present application;

[0019] Fig. 5 is another flow diagram of a data transmission method provided by an embodiment of the present application;

[0020] Fig. 6 is another flow diagram of a data transmission method provided by an embodiment of the present application;

[0021] Fig. 7 is another flow diagram of a data transmission method provided by an embodiment of the present application;

[0022] Fig. 8 is another flow diagram of a data transmission method provided by an embodiment of the present application;

[0023] Fig. 9 is another flow diagram of a data transmission method provided by an embodiment of the present application;

[0024] Fig. 10 is another flow diagram of a data transmission method provided by an embodiment of the present application;

[0025] Fig. 11 is a flow diagram of a mobile terminal in a data transmission method provided by an embodiment of the present application;

[0026] Fig. 12 is a structural block diagram of a data transmission device provided by an embodiment of the present application;

[0027] Fig. 13 is another structural block diagram of a data transmission device provided by an embodiment of the present application;

[0028] Fig. 14 is an electronic block diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0029] The application will be further described below in detailed description with reference to the drawings. Like elements in different embodiments are denoted by like reference numerals. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the application. However, it will be apparent to one skilled in the art that some features that are not recited in detail can be omitted, or can be substituted by other elements, materials, methods, etc. In some cases, some operations related to the application are not shown or described in the specification in order to avoid the core of the application being overwhelmed by excessive description, and it is not necessary for one skilled in the art to describe these related operations in detail according to the description in the specification and general technical knowledge in the art.

[0030] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various embodiments. Meanwhile, the steps or actions in the method description can also be sequentially adjusted or adjusted in a manner that is apparent to one skilled in the art. Therefore, the various sequences in the specification and drawings are only for the purpose of clearly describing a certain embodiment, and do not mean that the sequence is necessary, unless otherwise stated that a certain sequence must be followed.

[0031] The serial numbers of components in this paper, such as "first", "second", etc., are only used to distinguish the described objects, and do not have any sequence or technical meaning. The "connection" and "coupling" in this application include direct and indirect connection (coupling) unless otherwise specified.

[0032] Embodiment 1:

[0033] The embodiment of the application provides a self-organizing network system, Fig. 1 is a structural block diagram of the self-organizing network system, Figs. 2 and 3 are a frame example, including a relay node and a conventional node, each node in the self-organizing network system is connected through Bluetooth, the self-organizing network system includes at least one relay node and a plurality of conventional nodes, among the plurality of conventional nodes, at least one atomization device node is included, wherein each node in the self-organizing network system is connected through Bluetooth and forms a hierarchy of at least two layers, the self-organizing network system includes a mobile terminal and an atomization device, the mobile terminal or the atomization device can form a relay node, and the mobile terminal or the atomization device can also form a conventional node.

[0034] In the self-organizing network system of the tree network structure shown in FIGS. 1-3, the relay node, i.e., the root node, is usually the parent node, which has a higher level than the child node; the relay node can be set by default, which can be an atomization device or a mobile terminal or other products with wireless communication function. The regular node, i.e., the child node, can also be set by default, which can be an atomization device or a mobile terminal or other products with wireless communication function. There are usually two ways to define the relay node: the first way is to set it through an atomization device, such as a default atomization device that is a child node when it leaves the factory, which becomes a root node after a certain time triggered by the user, manually presses the combination key, or automatically upgrades to a root node after unlocking a certain function; the second way is that the user can also set the root node through the mobile phone APP when the mobile terminal such as a mobile phone is wirelessly connected with the atomization device. In other embodiments, the self-organizing network system can also be other forms of network structure, for example, it can also be a star network structure, in which the center node of the star network structure is the relay node, and the edge node connected only with the center node in the star network topology is the regular node, and the star network structure can be realized by BLE multi-connection technology.

[0035] In the above scheme, the relay node or the regular node can be an atomization device, a mobile terminal such as a mobile phone, a tablet computer, or a server such as a cloud server; the atomization device node as the parent node can access two types of child nodes, including other atomization devices not connected to the network as child nodes, and regular nodes as child nodes.

[0036] In an embodiment, the self-organizing network system of the present application is realized by Bluetooth Mesh network, i.e., BLE Mesh system framework, each node in the Mesh network communicates through low-power Bluetooth wireless connection, and these devices in the Bluetooth Mesh network are called nodes. Each node can send and receive messages, activate a certain UI interface through the transmitted data, activate a certain power output mode, etc. Further, information can also be relayed between nodes, so that messages can be transmitted to a location farther than the normal transmission distance of radio waves, thereby expanding the social circle range. The Mesh communication applied in the present application is a broadcast data transmission, which can theoretically be relayed infinitely without level restriction, so it can be transmitted farther.

[0037] Please refer to FIG. 2, a self-organizing network system provided by the present application, as described above, the present application establishes a communication system between nodes based on Mesh network, and adopts a tree network topology as shown in FIG. 2 to establish each level of the self-organizing network system. In FIG. 2, R is a relay node, which is in communication connection with an external terminal, the relay node R can be set by the external terminal C, the external terminal C can be a smart electronic device such as a mobile phone, a tablet, a computer, etc.; the next level of the relay node R is connected with nodes 1 to 16, that is, the relay node R is the parent node, root node of nodes 1 to 16, and nodes 1 to 16 are the child nodes of the relay node R; the next level of node 1 is connected with nodes 17 to 32, and the next level of node 16 is connected with nodes 257 to 272. It can be understood that at this time, node 1 is the parent node, relay node of nodes 17 to 32, and nodes 17 to 32 are the child nodes of node 1, while node 16 is the parent node, relay node of nodes 257 to 272, and nodes 257 to 272 are the child nodes of node 16. In this way, as shown in FIG. 2, four network levels are formed, and each regular node in each level can serve as a relay node for the regular nodes in the next level, the regular nodes connected to the same relay node can realize Bluetooth communication, and the relay node and the regular nodes connected thereto can also realize Bluetooth communication. Further, the regular nodes can also communicate with the lower-level regular nodes of another relay node through the relay node, for example, the regular nodes 17 to 32 can communicate with the relay node 16 through the relay node 1, and forward the information to the regular nodes 257 to 272 in the next level of the relay node 16 through the relay node 16.

[0038] Further, in actual environment, multiple atomization devices connected in a system can have multiple states, for example, a user using an atomization device can be in a moving state, or the user repeatedly turns on or off the networking function of the atomization device, or the atomization device node has a power failure phenomenon, etc., which can cause the atomization device to be disconnected from the ad hoc network system. For the atomization device disconnected from the ad hoc network system, the application also provides a scheme for the atomization device to re-establish connection with the ad hoc network system. Specifically, in the ad hoc network system provided by the application, the association between the new parent node of the atomization device node and the relay node is shown in FIG. 2 and FIG. 3. After node 1 is powered off, all nodes under node 1 are disconnected from the network, and the Bluetooth connection is actively disconnected, and the state is converted to a non-networked state. The recovery process is shown in the figure. Node 32 is connected by node R and becomes a secondary node. Further, nodes 17 to 31 and node 288 are connected by node 32 and become tertiary nodes. Further, nodes 273 to 287 are connected by node 288 and become quaternary nodes. Node R is a relay node, node R is a new parent node for node 32, node 32 is a new parent node for nodes 17 to 31, and node 288 is a new parent node for nodes 273 to 287.

[0039] In the above scheme, the information transmission between the atomization device nodes includes the information transmission of the UI interface and the information transmission of the power curve. Those skilled in the art know that the level of the relay node is higher than that of the conventional node. In an embodiment, the relay node of the ad hoc network system is connected to an external peripheral terminal. In another embodiment, referring to FIG. 2 and FIG. 3, the ad hoc network system itself includes a peripheral terminal, and the relay node and the peripheral terminal are connected to each other.

[0040] Embodiment 2:

[0041] Referring to FIG. 1 to FIG. 7, FIG. 4 is a flowchart of a data transmission method provided by an embodiment of the application. The application provides a data transmission method applied to an electronic device in an ad hoc network system. When the electronic device is an atomization device, the data transmission method at least includes the following steps:

[0042] Step S101, determining whether there is a relay node near the atomization device.

[0043] If there is a relay node, jump to step S102, set the atomization device as a conventional node, and establish a Bluetooth communication channel with the relay node, so that the atomization device and the relay node can interact with each other. If there is no relay node, jump to step S103, set the atomization device as a relay node, and establish a Bluetooth communication channel with a conventional node, so that the atomization device can interact with the conventional node.

[0044] In the above scheme, the relay node acts as a network medium to enable the un-networked atomization device to change state to a networked atomization device. Further, referring to FIG. 2 and FIG. 3, taking node 1 as an example, the vicinity of the atomization device can be set by the user through the interface of the atomization device, or can be determined by the attribute of the atomization device itself, for example, it can be five meters; it is determined whether there is a relay node that can establish a connection within the five-meter communication range centered on the un-networked atomization device node 1, that is, whether the relay node R is within five meters of the atomization device node 1; if there is a relay node, jump to step S102, if there is no relay node, jump to step S103.

[0045] In step S102, the atomization device is set as a regular node, and a Bluetooth communication channel is established with the relay node, so that the atomization device and the relay node can interact with each other.

[0046] In the above scheme, taking node 1 as an example, the un-networked atomization device node 1 is incorporated into the relay node R of the ad hoc network system as a regular node in the mode of a sub-node, at this time the atomization device node 1 changes state, that is, from the un-networked state to the networked state. Among them, in the mode of a sub-node, that is, node 1 as a sub-node accesses the parent node of the relay node R, the definitions of the sub-node and the parent node are known to those skilled in the art.

[0047] In step S103, the atomization device is set as a relay node, and a Bluetooth communication channel is established with a regular node, so that the atomization device can interact with the regular node.

[0048] When there is no relay node in the vicinity of the atomization device, the atomization device can also act as a relay node to access networked or un-networked regular nodes, which can be atomization devices, mobile terminals, tablets, computers, servers, and other electronic devices. Further, after setting the atomization device as a relay node, a Bluetooth communication channel can also be established with other relay nodes, so that the atomization device can interact with other relay nodes.

[0049] The data transmission method provided by the embodiment firstly judges whether a relay node exists near the atomization device, sets the atomization device as a regular node and performs data interaction if the relay node exists, and sets the atomization device as a relay node and performs data interaction if the relay node does not exist. The atomization device can perform data interaction with other atomization devices or mobile terminals based on an ad hoc network system, realize information transmission, and thus can facilitate users to communicate based on the atomization device and improve the communication frequency. The data transmission method can make users more easily find atomization device enthusiasts around them and improve the communication frequency between people. The method can also make multiple atomization devices establish communication within a certain range, realize data interaction, and improve the communication frequency by establishing or joining an ad hoc network.

[0050] In an embodiment, the step of setting the atomization device as a regular node in step S102 and the step of setting the atomization device as a relay node in step S103 can be set by default by the device or can be determined by the user. When the user needs to manually confirm whether to set the atomization device as a regular node or a relay node, please refer to FIG. 5 and FIG. 6. Before setting the atomization device as a regular node or before setting the atomization device as a relay node, the method further comprises:

[0051] Step S11, outputting a selection setting of setting the atomization device as a regular node or a relay node to the user;

[0052] Step S12, determining whether to set the atomization device as a regular node or a relay node according to the selection setting instruction of the user.

[0053] The technical effect of the above embodiment is that the user of the atomization device can select whether to set the atomization device as a regular mode or a relay mode. Specifically, after determining that the atomization device needs to be set as a regular node or a relay node, a prompt window is popped up on the display screen, or a prompt light effect is started, or a prompt voice is outputted to prompt the user that the atomization device can be selected and set. The user sets the atomization device as a regular node or a relay node through a virtual button on the screen, an entity button on the device, or voice input, and the atomization device sets the atomization device as a regular node or a relay node according to the selection setting instruction of the user.

[0054] In an embodiment, the user carries the atomization device to other areas, or the user turns off the Bluetooth function of the atomization device, or the network is unstable, which may cause disconnection. Therefore, it is necessary to monitor these situations and re-enter the network when the network is disconnected. Please refer to FIG. 7. The data transmission method further comprises:

[0055] Step S201, after the interval of the preset time length, it is judged whether the atomization equipment keeps connection with the relay node or the conventional node, or whether the atomization equipment restarts after power-off;

[0056] Step S202, if the atomization equipment does not keep connection with the relay node or the conventional node, or the atomization equipment restarts after power-off, the step of judging whether there is a relay node near the atomization equipment is re-executed, that is, jump to step S101.

[0057] The technical effect of the above embodiment is that after the atomization equipment enters the disconnection state or the un-networked state, the disconnection reconnection can be realized, and the atomization equipment can rejoin the ad hoc network system. In an embodiment, when the atomization equipment is set as a conventional node, after the interval of the preset time length, it is judged whether the atomization equipment keeps connection with the relay node; if yes, keep connection and continue to wait for the next judgment; if no, search for other relay nodes or other conventional nodes closest to the atomization equipment as new relay nodes of the atomization equipment. Taking node 1 as an example, referring to FIG. 3, the relay node R is the original parent node, after the interval of the preset time length, it is judged whether the atomization equipment node 1 keeps connection with the relay node R, if no, continue to search for other relay nodes or other conventional nodes closest to the atomization equipment node 1 as new parent nodes of the atomization equipment node 1. Or, when the atomization equipment is set as a relay node, after the interval of the preset time length, it is judged whether the atomization equipment keeps connection with the conventional node or other relay nodes; if yes, keep connection and continue to wait for the next judgment; if no, search for other relay nodes or other conventional nodes closest to the atomization equipment and establish a Bluetooth communication channel. Taking node 1 as an example, referring to FIG. 3, after the interval of the preset time length, it is judged whether the other un-networked atomization equipment and / or other conventional nodes, such as node 17 to node 32, keep connection with the atomization equipment node 1; since node 1 has been disconnected, the result is no, search for other relay nodes or other conventional nodes closest to the atomization equipment, such as node 32, and establish a Bluetooth communication channel with them; the technical effect is to realize the function of network recovery, in the scene of frequent user movement and uncertain location, the unstable system communication caused by the departure of a single user from the networking range can be avoided, that is, the influence of the communication time slot after network disconnection on the user is eliminated, and effective connection between nodes is realized with smaller communication cost. In the above scheme, the search range can be consistent with the communication range near the atomization equipment in step S101. In an embodiment, if the re-networking fails within the search distance, the search range is expanded; the specific way of expanding the search range can be to gradually increase the radius corresponding to the search range by a preset proportion until the number of gradual increases reaches a preset upper limit.

[0058] In an embodiment, the step of the atomization device interacting with the relay node or the step of the atomization device interacting with the regular node further comprises: receiving and executing data sent by the relay node or the regular node, or setting and sending the data to the relay node or the regular node. The data comprises one or more of the following: display screen data, power parameter data, software installation / update data, atomization data, an opening instruction, a closing instruction, and an adjustment instruction.

[0059] In an embodiment, after the ad hoc network system is established or the atomization device is added to the ad hoc network system through the above steps, the nodes can communicate with each other, and the atomization device node can transmit data with other regular nodes or relay nodes connected thereto. Referring to FIG. 8, another flow of a data transmission scheme in a data transmission method provided by an embodiment of the present application is provided. When the atomization device node is a data receiver, the data transmission method further comprises: receiving a data packet or an instruction sent by the relay node or another regular node in communication connection with the atomization device node; and analyzing the data packet or executing the instruction. The technical effect of the above scheme is that, after the atomization device node establishes communication with other regular nodes or relay nodes, the atomization device node can receive data or instructions sent by other nodes, analyze the data packet or execute the instruction, and realize the function of data interaction.

[0060] In an embodiment, referring to FIG. 9, another flow of a data transmission scheme in a data transmission method provided by an embodiment of the present application is provided. When the atomization device node is a data sender, the data transmission method further comprises: packaging pre-sent data into a data packet, or setting a command parameter to obtain a pre-sent instruction; and sending the pre-sent data packet or the pre-sent instruction to the relay node or another regular node in communication connection with the atomization device node. The technical effect of the above scheme is that, after the atomization device node establishes communication with other regular nodes or relay nodes, the atomization device node can also send data or instructions to other nodes after packaging the data packet or generating the instruction, thereby realizing the function of data interaction. For example, the atomization device node can package atomization data such as puffing duration, puffing count, and the like into a data packet and send the data packet to a relay node such as a mobile terminal or a server, or to another atomization device node.

[0061] In the above scheme, in the first case, the atomization device node receives the data packet or instruction sent by the relay node or another conventional node in communication connection with the atomization device node, and analyzes the data packet or executes the instruction; in the second case, the atomization device node packages the pre-transmitted data into a data packet, or sets a command parameter to obtain a pre-transmitted instruction, and transmits the pre-transmitted data packet or instruction to the relay node or another conventional node in communication connection with the atomization device node. The data transmission method can include information interaction between atomization devices, or information interaction between an atomization device and a mobile terminal.

[0062] For example, when matching pairs and identifying identities are required between two atomization devices, one atomization device node can send an instruction containing identity identification information to another atomization device node, and the other atomization device node sends a response after determining that the two devices can be paired, thereby realizing the matching of the two atomization devices; when power adjustment is required between two atomization devices, one atomization device node can send an instruction containing power adjustment information to another atomization device node, and the other atomization device node sends a response after determining that the two devices can be adjusted, and executes the adjustment instruction, thereby realizing the function of power adjustment.

[0063] In an embodiment, in addition to realizing information transmission within the network, the atomization device can also obtain more valuable information from a public network to meet the user's online needs. To realize the above needs, the atomization device of the embodiment of the present application can also realize data transmission with a mobile terminal, at this time, the plurality of conventional nodes further include at least one mobile terminal node, and the atomization device node and the mobile terminal node are in communication connection based on a Bluetooth channel.

[0064] In an embodiment, in addition to realizing information transmission within the network, the atomization device also needs to rely on the public network to realize function upgrade, that is, to meet the demand of user software version update. Specifically, referring to FIG. 10, one flow of a software update scheme of the atomization device in the data transmission method provided by the embodiment of the present application includes: obtaining the latest software version or the software version of the mobile terminal node by the mobile terminal node; judging whether the software version carried by the atomization device node is consistent with the latest software version or the software version of the mobile terminal node; if consistent, no update is needed, and the next judgment is waited for; if inconsistent, judging whether the atomization device node is in a data interaction state with other normal nodes. When a certain software needs to be downloaded in the atomization device, that is, when the data is software installation data in the step of data interaction between the atomization device and the relay node or the normal node, the method further includes: downloading the software installation package by the mobile terminal set as the relay node. Alternatively, when a certain software needs to be updated in the atomization device, that is, when the data is software update data in the step of data interaction between the atomization device and the relay node or the normal node, the method further includes: obtaining the software version of the mobile terminal set as the relay node; judging whether the software version carried by the electronic device is consistent with the software version of the mobile terminal; if inconsistent, downloading the software update package by the mobile terminal set as the relay node; if consistent, waiting for the next judgment whether update is needed. Further, in an embodiment, judging whether the atomization device node is in a data interaction state with other normal nodes; if not, receiving the software installation package issued by the mobile terminal node and updating the software version of the atomization device node; if yes, waiting for the atomization device node to be in an idle state after the interaction with other normal nodes is completed, receiving the software installation package issued by the mobile terminal node and updating the software version of the atomization device node.

[0065] In the present application, the atomization device node can periodically access whether the mobile terminal node has downloaded or detected a new version of software, or the mobile terminal node can also send a download instruction to the atomization device node after downloading the new version, and the atomization device node connects the mobile terminal node and downloads the update package and updates in the idle time when it does not need to interact with other normal nodes, for example, updating of the UI interface or updating of the power curve, so as to make the function of the atomization device more diversified.

[0066] In an embodiment, referring to FIG. 11, a flow diagram of another data transmission method provided by the embodiment of the present application. The present application provides a data transmission method applied to an electronic device in an ad hoc network system. When the electronic device is a mobile terminal, the data transmission method at least includes the following steps:

[0067] Step S501, judging whether there is a relay node near the mobile terminal.

[0068] Step S502, setting the mobile terminal as a regular node, and establishing a Bluetooth communication channel with the relay node, so that the mobile terminal and the relay node can interact with data.

[0069] Step S503, setting the mobile terminal as a relay node, and establishing a Bluetooth communication channel with a regular node, so that the mobile terminal can interact with data with the regular node.

[0070] In the above scheme, at least one of the regular nodes is a mobile terminal. If there is a relay node, jump to step S502, set the mobile terminal as a regular node, and establish a Bluetooth communication channel with the relay node, so that the mobile terminal and the relay node can interact with data. If there is no relay node, jump to step S503, set the mobile terminal as a relay node, and establish a Bluetooth communication channel with a regular node, so that the mobile terminal can interact with data with the regular node.

[0071] Further, before setting the mobile terminal as a regular node, or before setting the mobile terminal as a relay node, the method further comprises: outputting the selection setting of setting the mobile terminal as a regular node or a relay node to the user; according to the selection setting instruction of the user, determining whether to set the mobile terminal as a regular node or a relay node.

[0072] Further, after a predetermined time interval, it is judged whether the mobile terminal is connected with a relay node or a regular node, or whether the mobile terminal is powered off and restarted; if the mobile terminal is not connected with a relay node or a regular node, or the mobile terminal is powered off and restarted, the step of judging whether there is a relay node near the mobile terminal is re-executed.

[0073] Further, the step of the mobile terminal interacting with the relay node, or the step of the mobile terminal being able to interact with the regular node, further comprises: receiving and executing the data sent by the relay node or the regular node, or setting and sending the data to the relay node or the regular node; wherein the data includes one or more of the following: display screen data, power parameter data, software installation / update data, atomization data, opening instruction, closing instruction and adjustment instruction.

[0074] The technical effect of the above scheme is that the mobile terminal of the scheme can interact with the atomization equipment based on the ad hoc network system, realize information transmission, and then can facilitate users to communicate based on the atomization equipment, and improve the communication frequency.

[0075] Embodiment 3

[0076] Referring to FIG. 12, FIG. 12 is a structural block diagram of a data transmission apparatus provided by an embodiment of the present application, which corresponds to the above data transmission method. The data transmission apparatus 90 at least includes a first judging unit 91, a first transmission unit 92, and a second transmission unit 93.

[0077] The first judging unit 91 is configured to judge whether there is a relay node near the atomization equipment.

[0078] The first transmission unit 92 is configured to, when there is a relay node near the atomization equipment, set the atomization equipment as a regular node, and establish a Bluetooth communication channel with the relay node, so that the atomization equipment and the relay node can perform data transmission.

[0079] The second transmission unit 93 is configured to, when there is no relay node near the atomization equipment, set the atomization equipment as a relay node, and establish a Bluetooth communication channel with a regular node, so that the atomization equipment can perform data interaction with the regular node.

[0080] In an embodiment, the data transmission apparatus 90 is further configured to, when there is a relay node near the atomization equipment, set the atomization equipment as a regular node, and establish a Bluetooth communication channel with the relay node, so that the atomization equipment and the relay node can perform data transmission, and output a selection setting of setting the atomization equipment as a regular node or a relay node to a user before setting the atomization equipment as a regular node; and determine whether to set the atomization equipment as a regular node or a relay node according to a selection setting instruction of the user.

[0081] In an embodiment, the data transmission apparatus 90 is further configured to, when there is no relay node near the atomization equipment, set the atomization equipment as a relay node, and establish a Bluetooth communication channel with a regular node, so that the atomization equipment can perform data interaction with the regular node, and output a selection setting of setting the atomization equipment as a regular node or a relay node to a user before setting the atomization equipment as a relay node; and determine whether to set the atomization equipment as a regular node or a relay node according to a selection setting instruction of the user.

[0082] In an embodiment, the data transmission apparatus 90 is further configured to, after an interval of a preset time length, judge whether the atomization equipment remains connected with a relay node or a regular node, or whether the atomization equipment is powered off and restarted; and if the atomization equipment does not remain connected with a relay node or a regular node, or the atomization equipment is powered off and restarted, re-perform the step of judging whether there is a relay node near the atomization equipment.

[0083] In an embodiment, the data transmission apparatus 90 is further configured to receive and execute data transmitted by the relay node or the regular node, or set and transmit the data to the relay node or the regular node; wherein the data comprises one or more of the following: display screen data, power parameter data, software installation / update data, atomization data, opening instruction, closing instruction, and adjustment instruction.

[0084] Further, referring to FIG. 13, which is another structural block diagram of the data transmission apparatus provided by the embodiments of the present application, the data transmission apparatus 90 can further comprise a second judging unit 94, a third transmission unit 95, and a fourth transmission unit 96.

[0085] The second judging unit 94 is configured to judge whether there is a relay node near the mobile terminal.

[0086] The third transmission unit 95 is configured to, when there is a relay node near the mobile terminal, set the mobile terminal as a regular node, and establish a Bluetooth communication channel with the relay node, so that the mobile terminal and the relay node can interact with each other.

[0087] The fourth transmission unit 96 is configured to, when there is no relay node near the mobile terminal, set the mobile terminal as a relay node, and establish a Bluetooth communication channel with a regular node, so that the mobile terminal and the regular node can interact with each other.

[0088] In the above scheme, at least one of the regular nodes is an atomization device.

[0089] In an embodiment, the data transmission apparatus 90 is further configured to, when there is a relay node near the mobile terminal, set the mobile terminal as a regular node, and establish a Bluetooth communication channel with the relay node, so that the mobile terminal and the relay node can interact with each other, and output a selection setting of setting the mobile terminal as a regular node or a relay node to a user before setting the mobile terminal as a regular node; and determine whether to set the mobile terminal as a regular node or a relay node according to the selection setting instruction of the user.

[0090] In an embodiment, the data transmission apparatus 90 is further configured to, when there is a relay node near the mobile terminal, set the mobile terminal as a regular node, and establish a Bluetooth communication channel with the relay node, so that the mobile terminal and the relay node can interact with each other, and output a selection setting of setting the mobile terminal as a regular node or a relay node to a user before setting the mobile terminal as a relay node; and determine whether to set the mobile terminal as a regular node or a relay node according to the selection setting instruction of the user.

[0091] In an embodiment, the data transmission device 90 is further configured to determine whether the mobile terminal is connected to a relay node or a regular node or whether the mobile terminal is restarted after a preset time interval, and if the mobile terminal is not connected to a relay node or a regular node or the mobile terminal is restarted, the step of determining whether a relay node exists near the mobile terminal is re-executed.

[0092] In an embodiment, the data transmission device 90 is further configured to receive and execute data transmitted by the relay node or the regular node, or set and transmit the data to the relay node or the regular node, wherein the data includes one or more of the following: display screen data, power parameter data, software installation / update data, atomization data, opening instruction, closing instruction and adjustment instruction.

[0093] Embodiment 4:

[0094] Referring to FIG. 14, a block diagram of an electronic device 100 according to an embodiment of the present application is shown. The electronic device 100 can be a terminal and has a communication function, such as an atomization device or a mobile terminal. The electronic device 100 specifically includes a processor 111, a communication interface 112, a memory 113 and a communication bus 114. The processor 111, the communication interface 112 and the memory 113 communicate with each other through the communication bus 114. The memory 113 is configured to store a computer program. The atomization device 100 can be the atomization device node in the embodiment 1, can execute the functions described in the embodiment 2 and has all units in the data transmission device described in the embodiment 3.

[0095] In an embodiment of the present application, the processor 111 is configured to execute the program stored in the memory 113 to implement the method provided in any one of the preceding method embodiments.

[0096] Those skilled in the art can understand that all or part of the processes in the above-mentioned method embodiments can be completed by a computer program instructing related hardware. The computer program can be stored in a storage medium, which is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the above-mentioned method embodiments.

[0097] Therefore, the embodiments of the present application further provide a computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the steps of the method provided in any one of the preceding method embodiments.

[0098] The storage medium is a physical, non-transient storage medium, for example, can be a U disk, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, and various physical storage media that can store program codes. The computer readable storage medium can be non-volatile or volatile.

[0099] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been described in the above description in a general manner. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions, but such implementation should not be considered beyond the scope of the present application.

[0100] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the apparatus embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and actual implementation can have another division manner. For example, a unit or component can be combined or integrated into another system, or some features can be ignored or not executed.

[0101] The steps in the method embodiments of the present application can be adjusted, combined and deleted according to actual needs. The units in the apparatus embodiments of the present application can be combined, divided and deleted according to actual needs. In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.

[0102] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a storage medium. Based on such understanding, the technical solutions of the present application essentially or say the parts that make contributions to the prior art, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a plurality of instructions to make a computer device (which can be a personal computer, a terminal or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application.

[0103] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can refer to the related description of other embodiments.

[0104] Various exemplary embodiments are described herein. However, those skilled in the art will recognize that changes and modifications can be made thereto without departing from the scope of the present teachings. For example, the various steps and components involved in the operation of the system can be implemented in a different order, or omitted, modified, or combined with other steps or components depending on the particular application or to achieve particular cost, performance, or other results.

[0105] Additionally, as will be appreciated by those skilled in the art, the present principles can be reflected in a computer program product residing on a computer readable medium having computer readable program code embodied therein. Any tangible, non-transitory computer readable storage media can be utilized, including magnetic storage devices (hard disks, floppy disks, etc.), optical storage devices (CD-ROMs, DVDs, Blu Ray discs, etc.), flash memory, and / or the like. These computer program instructions can be loaded onto a general purpose computer, a special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions that execute on the computer or other programmable data processing apparatus create means for implementing the functions specified in the flowcharts block or blocks. These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including an implementation to

[0106] While the present principles have been illustrated with respect to various embodiments, many modifications, alterations, and permutations can be made by those skilled in the art from the preceding description and illustrations without departing from the scope of the present disclosure. The above modifications and other changes or modifications will be included within the scope of the present disclosure.

[0107] As used herein, the terms "comprises," "comprising," "includes," "including," and the like can be used to include and refer to elements, components, processes, steps, and the like that are encompassed by the stated compositions or processes without limitations. Additionally, the terms "coupled," "coupling," and the like as used herein can refer to physical connections, electrical connections, magnetic connections, optical connections, communicative connections, functional connections, and / or any other connections.

Claims

1. A data transmission method, characterized by, An electronic device applied to a self-organizing network system, the electronic device comprising an atomization device or a mobile terminal, the method comprising: determining whether a relay node exists near the electronic device; if a relay node exists, setting the electronic device as a regular node and establishing a Bluetooth communication channel with the relay node, so that the electronic device and the relay node can interact with each other; if a relay node does not exist, setting the electronic device as a relay node and establishing a Bluetooth communication channel with a regular node, so that the electronic device and the regular node can interact with each other.

2. The data transmission method of claim 1, wherein, before setting the electronic device as a regular node, or before setting the electronic device as a relay node, the method further comprises: outputting a selection setting of setting the electronic device as a regular node or a relay node to a user; determining whether to set the electronic device as a regular node or a relay node according to the selection setting instruction of the user.

3. The data transmission method of claim 1 or 2, wherein, after a preset time interval, determining whether the electronic device remains connected with a relay node or a regular node, or whether the electronic device is restarted after power failure; if the electronic device does not remain connected with a relay node or a regular node, or the electronic device is restarted after power failure, re-executing the step of determining whether a relay node exists near the electronic device.

4. The data transmission method of any one of claims 1 to 3, wherein, the step of the electronic device interacting with the relay node, or the step of the electronic device being able to interact with the regular node, further comprises: receiving and executing data sent by the relay node or the regular node, or setting and sending data to the relay node or the regular node; wherein, the data comprises one or more of the following: display screen data, power parameter data, software installation / update data, atomization data, opening instruction, closing instruction and adjustment instruction.

5. The data transmission method of claim 4, wherein, the method further comprises: downloading a software installation package through the mobile terminal set as a relay node; or, the method further comprises: obtaining the software version of the mobile terminal set as a relay node, determining whether the software version carried by the electronic device is consistent with the software version of the mobile terminal, if not consistent, downloading a software update package through the mobile terminal set as a relay node. An electronic device applied to a self-organizing network system, the electronic device comprising an atomization device or a mobile terminal, the device comprising: a first determination unit for determining whether a relay node exists near the electronic device; a first transmission unit for setting the electronic device as a regular node and establishing a Bluetooth communication channel with the relay node when a relay node exists near the electronic device, so that the electronic device and the relay node can interact with each other. ​ 6. A data transmission apparatus characterized by comprising: ​ ​ ​ A second transmission unit is configured to set the electronic device as a relay node and establish a Bluetooth communication channel with a regular node when no relay node exists in the vicinity of the electronic device, so that the electronic device can interact with the regular node for data exchange.

7. An electronic device, comprising: The application further provides a computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method according to any one of claims 1 to 5. The application further provides a computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method according to any one of claims 1 to 5. The nodes in the ad hoc network system are connected through Bluetooth, and the ad hoc network system comprises at least one relay node and a plurality of regular nodes, and a mobile terminal or an atomization device can be formed as the relay node or the regular node in the ad hoc network system.

8. A computer-readable storage medium, characterized in that, The network structure of the ad hoc network system is a tree topology or a star topology.

9. A self-organizing network system, characterized by ​ 10. The ad hoc network system of claim 9, wherein, ​

Citation Information

Patent Citations

  • Mesh network networking method and device, and computer readable storage medium

    CN112752264A

  • Method and device for configuring fog node device, and computer readable medium

    CN113169996A

  • Self-organizing network establishing method and intelligent system based on self-organizing network

    CN115515126A

  • Configuring wireless sensor network paths

    US20220110003A1