Data transmission method and device, equipment and medium

By establishing a short-range wireless communication network in commercial laundry equipment and using mobile communication technology to connect with the server, the problem of equipment disconnection caused by weak WiFi signal was solved, and data interaction and stable transmission between the equipment and the server were realized.

CN121968058APending Publication Date: 2026-05-01QINGDAO HAIER WASHING MASCH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
QINGDAO HAIER WASHING MASCH CO LTD
Filing Date
2024-10-29
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Commercial laundry and care equipment experienced a network outage due to weak WiFi signal, preventing it from communicating and interacting with other devices and servers.

Method used

A target network based on near-field wireless communication technology is formed by a first intelligent device and multiple second intelligent devices, and data transmission and interaction are realized by connecting with the server using mobile communication technology.

Benefits of technology

It enables data interaction between smart devices and the server when the WiFi signal is unstable, reducing equipment costs and ensuring the stability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121968058A_ABST
    Figure CN121968058A_ABST
Patent Text Reader

Abstract

The invention relates to a data transmission method and device, equipment and a medium, the method is applied to first intelligent equipment, and the method comprises the following steps: building a target network together with at least one second intelligent equipment through a short-distance wireless communication technology; if the first intelligent device is a target intelligent device, when an uplink data packet sent by an adjacent second intelligent device through the target network is received, the uplink data packet is uploaded to a server side which is in communication connection with the first intelligent device through a mobile communication technology, the uplink data packet comprises address information of the target intelligent equipment, address information of adjacent or non-adjacent second intelligent equipment and local data. In the method, through a network formed by a first intelligent device and other intelligent devices, the first intelligent device receives an uplink data packet transmitted by an adjacent intelligent device through the network, and the uplink data packet is directly uploaded to a server side through a mobile communication network technology.
Need to check novelty before this filing date? Find Prior Art

Description

Data transmission methods, apparatus, equipment and media Technical Field

[0001] This application belongs to the field of intelligent electrical appliance technology, specifically relating to a data transmission method, device, equipment, and medium. Background Technology

[0002] With the development of the smart home industry, more and more smart appliances are appearing in people's lives, such as commercial laundry and care equipment. Commercial laundry and care equipment not only meets users' needs for laundry and care but also effectively integrates resources, rationally scheduling laundry and care times based on different users' pre-orders.

[0003] Commercial laundry and care equipment is typically deployed in public places such as schools, hotels, or hospitals. In these places, the laundry and care equipment mainly uses wireless local area network (WiFi) communication technology to ensure data transmission and interaction between devices and between devices and servers.

[0004] However, in actual operation, factors such as environmental factors, routing equipment quality issues, network congestion, and equipment compatibility issues often cause unstable WiFi networks, resulting in public washing and care equipment losing network access and being unable to communicate and interact with other washing and care equipment, servers, and user terminals. Summary of the Invention

[0005] This application provides a data transmission method, apparatus, device, and medium to solve the problem in the prior art that smart devices cannot communicate and interact with other smart devices, servers, and user terminals after disconnecting from the WiFi network.

[0006] In a first aspect, this application provides a data transmission method, the method being applied to a first smart device, the method comprising:

[0007] To jointly establish a target network with at least one second intelligent device via near-field wireless communication technology;

[0008] If the first smart device is the target smart device, then when receiving an uplink data packet sent by a neighboring second smart device through the target network, the uplink data packet is uploaded to the server connected to the first smart device via mobile communication technology;

[0009] The uplink data packet includes the address information of the target smart device, the address information of adjacent or non-adjacent second smart devices, and local data.

[0010] In one possible design, after uploading the uplink data packet to a server connected to the first smart device via mobile communication technology, the method further includes:

[0011] When receiving a downlink data packet sent by the server via mobile communication technology, it determines whether the final address information is its own address information. The downlink data packet includes the final address information and control information.

[0012] If so, then the corresponding operation is performed based on the control information;

[0013] If not, the downlink data packet is sent to the second intelligent device corresponding to the final address information through the target network, so that the second intelligent device corresponding to the final address information performs the corresponding operation based on the control information.

[0014] In one possible design, the method further includes:

[0015] If the first smart device is not the target smart device in the target network, then when it receives an uplink data packet sent by a neighboring second smart device through the target network, it sends the uplink data packet to the target smart device through the target network, so that the target smart device sends the uplink data packet to the server through mobile communication technology.

[0016] In one possible design, after sending the uplink data packet to the target smart device via the target network, the method further includes:

[0017] Upon receiving a downlink data packet sent by a neighboring second smart device through the target network, determine whether the final address information is its own address information;

[0018] If so, then the corresponding operation is performed based on the control information;

[0019] If not, the downlink data packet is sent to the second smart device corresponding to the final address information via the target network.

[0020] In one possible design, after establishing the target network with at least one second smart device via near-field wireless communication technology, the method further includes:

[0021] Based on the target network, a link table is established. The link table includes the links of the first intelligent device and each adjacent second intelligent device. The links also include all non-adjacent second intelligent devices that each adjacent second intelligent device can reach through the target network. The link table also includes the address information of all intelligent devices in each link.

[0022] In one possible design, sending the downlink data packet to the second smart device corresponding to the final address information via the target network includes:

[0023] Obtain its own link table;

[0024] Based on its own link table and the final address information, the second intelligent device corresponding to the final address information and the first target link where the second intelligent device corresponding to the final address information is located are determined.

[0025] The downlink data packet is sent to an adjacent second smart device located in the first target link, so that the adjacent second smart device can transmit the downlink data packet to the second smart device corresponding to the final address information through the first target link.

[0026] In one possible design, sending the uplink data packet to the target smart device via the target network includes:

[0027] Obtain its own link table;

[0028] Based on its own link table and the address information of the target smart device in the uplink data packet, the system determines the second target link where the target smart device is located, and sends the uplink data packet to the adjacent second smart device located in the second target link, so that the adjacent second smart device can transmit the uplink data packet to the target smart device through the second target link.

[0029] Secondly, this application provides a data transmission device applied to a first smart device, the data transmission device comprising:

[0030] A networking module, used to jointly establish a target network with at least one second intelligent device via short-range wireless communication technology;

[0031] The processing module is configured to, if the first smart device is the target smart device, upload the uplink data packet to a server connected to the first smart device via mobile communication technology when it receives an uplink data packet sent by a neighboring second smart device through the target network. The uplink data packet includes the address information of the target smart device, the address information of the neighboring or non-neighboring second smart device, and local data.

[0032] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0033] The memory stores computer-executed instructions;

[0034] The processor executes computer execution instructions stored in the memory to implement the data transfer method as described in the first aspect.

[0035] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a computer, are used to implement the data transmission method as described in the first aspect.

[0036] The data transmission method, apparatus, device, and medium provided in this application are applied to a first smart device, which together with at least one second smart device establishes a target network via near-field wireless communication technology. If the first smart device is the target smart device, when it receives an uplink data packet sent by a neighboring second smart device through the target network, it uploads the uplink data packet to a server connected to the first smart device via mobile communication technology. The uplink data packet includes the address information of the target smart device, the address information of a neighboring or non-neighboring second smart device, and local data.

[0037] In the above method, a target network is jointly constructed by a first smart device and multiple second smart devices. This target network is based on short-range wireless communication technology. Data transmission and interaction can be realized between the first smart device and the second smart devices, and between the second smart devices themselves, through the target network. If the first smart device is a target smart device connected to the server through mobile communication technology, then after receiving uplink data packets transmitted by adjacent second smart devices through the target network, the first smart device can directly upload the uplink data packets to the server through mobile communication technology. This uplink data packet may include local data of the second smart devices adjacent to the first smart device, or it may include local data of the second smart devices that are not adjacent to the first smart device. Attached Figure Description

[0038] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0039] Figure 1 is a schematic diagram of an application scenario provided by an embodiment of this application;

[0040] Figure 2 is a flowchart of a data transmission method provided in an embodiment of this application;

[0041] Figure 3 is a flowchart of a data transmission method provided in an embodiment of this application;

[0042] Figure 4 is a flowchart of a data transmission method provided in an embodiment of this application;

[0043] Figure 5 is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0044] Figure 6 is a hardware schematic diagram of an electronic device provided in an embodiment of the present invention.

[0045] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0047] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein.

[0048] In this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0049] With the development of technology and the improvement of people's living efficiency, people are using commercial laundry and care equipment more and more frequently. After users put their clothes into the commercial laundry and care equipment and place an order online, the server will receive the user's order, generate corresponding control instructions and send them to the laundry and care equipment. The equipment will then perform the corresponding laundry and care operations according to the control instructions.

[0050] However, commercial laundry and care equipment typically uses wireless local area network (WLAN) communication technology for data transmission and interaction. If the laundry and care equipment loses network access due to weak WiFi signal, it will not only be unable to receive control commands from the server and perform corresponding laundry and care operations based on those commands, but it will also be unable to send laundry and care process data to the server.

[0051] Therefore, this application proposes a method for configuring a network for smart devices. This method primarily involves a first smart device and multiple second smart devices jointly constructing a target network based on short-range wireless communication technology. Data transmission and interaction between the first and second smart devices, and among the second smart devices themselves, can be achieved through this target network. If the target smart device connected to the server via mobile communication technology is the first smart device, then upon receiving uplink data packets transmitted from neighboring second smart devices through the target network, the first smart device can directly upload these uplink data packets to the server via mobile communication technology. These uplink data packets may include local data from the second smart devices adjacent to the first smart device, or they may include local data from second smart devices not adjacent to the first smart device. In this way, the first smart device acts as a bridge, enabling indirect communication and interaction between numerous second smart devices and the server. This eliminates the need to equip each of the numerous second smart devices with separate mobile communication modules, significantly reducing equipment costs and effectively ensuring stable data transmission through short-range wireless communication technology.

[0052] The application scenarios of this application will be explained below with reference to Figure 1.

[0053] Figure 1 is a schematic diagram of an application scenario provided by an embodiment of this application. As shown in Figure 1, the scenario includes a server 101 and multiple smart devices that need to communicate and interact with the server 101. Exemplary smart devices in this embodiment include a smart washing machine 102, a smart bracelet 103, a smart camera 104, a desktop computer 105, and a smart TV 106.

[0054] Multiple devices to be networked, such as a smart washing machine 102, a smart bracelet 103, a smart camera 104, a desktop computer 105, and a smart TV 106, jointly form a target network through near-field wireless communication technology, such as through Bluetooth mesh.

[0055] Assuming the first smart device is a smart washing machine 102, and the smart washing machine 102 is a target smart device that communicates with the server 101 via mobile communication technology, for example, the smart washing machine 102 and the server 101 are connected via a 5G network, a Redcap module can be deployed on the smart washing machine 102 to achieve 5G communication.

[0056] When the smart washing machine 102 receives an uplink data packet sent by a neighboring second smart device (smart bracelet 103, smart camera 104, and desktop computer 105 in the figure) through the target network, it only needs to upload the uplink data packet to the server 101 that is connected to the smart washing machine 102 via mobile communication technology. The uplink data packet includes the address information of the target smart device, the address information of the neighboring or non-neighboring second smart device, and local data. At this time, the address information of the target smart device is consistent with the address information of the smart washing machine 102.

[0057] If the first smart device is not the smart washing machine 102 that is connected to the server 101 via mobile communication technology, but the smart camera 104, then when the smart camera 104 receives the uplink data packet sent by the adjacent second smart device (smart bracelet 103, desktop computer 105, smart TV 106) through the target network, it can only send the uplink data packet to the smart washing machine 102 through the target network, so that the smart washing machine 102 can send the uplink data packet to the server 101 via mobile communication technology; at this time, the address information of the target smart device is inconsistent with the address information of the smart camera 104.

[0058] Of course, for the smart washing machine 102 as the target smart device, if the smart washing machine 102 needs to upload its own local data, it only needs to send it to the server 101 by itself through mobile communication technology, without going through the target network and other smart devices in the target network.

[0059] Based on the cooperation between the above-mentioned devices, not only can data interaction between multiple smart devices be achieved through the target network, ensuring data transmission quality, but also communication and interaction between all smart devices in the target network and the server can be achieved through the target smart devices.

[0060] The technical solutions of this application and how they solve the aforementioned technical problems are described in detail below with specific embodiments. These specific embodiments may exist independently or in combination with each other. Identical or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0061] Figure 2 is a flowchart of a data transmission method provided in an embodiment of this application. As shown in Figure 2, the method is applied to a first smart device, and the method includes:

[0062] S201, To jointly establish a target network with at least one second intelligent device through near-field wireless communication technology.

[0063] In the above scheme, multiple smart devices form a target network through near-field wireless communication technology. The multiple smart devices include a first smart device and at least one second smart device. In this target network, each smart device has at least one neighboring smart device, and each smart device communicates with its neighboring smart devices through the target network.

[0064] S202. If the first smart device is the target smart device, when it receives an uplink data packet sent by a neighboring second smart device through the target network, it uploads the uplink data packet to the server connected to the first smart device via mobile communication technology. The uplink data packet includes the address information of the target smart device, the address information of the neighboring or non-neighboring second smart device, and local data.

[0065] In this step, if the first smart device is a target smart device that communicates with the server via mobile communication technology, then when the first smart device receives an uplink data packet sent by any adjacent second smart device through the target network, it only needs to send the uplink data packet to the server via mobile communication technology.

[0066] The first smart device may receive uplink data packets from multiple second smart devices sent through the target network at the same time. In this case, the first smart device can either package all the uplink data packets received during that time period into a single package and upload it to the server, or it can upload them to the server in batches. For example, it can upload them in batches based on the urgency of the uplink data packets, or based on the time when the uplink data packets arrive at the first smart device, or it can upload them in batches based on the special circumstances of the identity of the second smart device that actually provides the data. This embodiment does not impose any restrictions on this.

[0067] The address information of the target smart device in the uplink data packet can be used to verify whether the first smart device is the target smart device. The local data in the uplink data packet may be the local data of the adjacent second smart device that sent the uplink data packet to the first smart device, or it may be the local data of the second smart device that is not adjacent to the first smart device, but is transmitted by the second smart device that is adjacent to the first smart device. The address information of the second smart device in the uplink data packet can be used to indicate the actual source of the data.

[0068] In this embodiment, a target network is jointly constructed by a first smart device and multiple second smart devices. This target network is based on short-range wireless communication technology. Data transmission and interaction can be achieved between the first smart device and the second smart devices, and between the second smart devices themselves. If the first smart device is a target smart device connected to the server via mobile communication technology, then after receiving an uplink data packet transmitted by a neighboring second smart device through the target network, the first smart device can directly upload the uplink data packet to the server via mobile communication technology. This uplink data packet may include local data of the second smart device adjacent to the first smart device, or it may include local data of the second smart device not adjacent to the first smart device.

[0069] Figure 3 is a flowchart of a data transmission method provided in an embodiment of this application. As shown in Figure 3, this embodiment describes in detail, based on the previous embodiment, the specific data uplink and downlink transmission methods when the first smart device is or is not the target smart device. The method includes:

[0070] S301, To jointly establish a target network with at least one second intelligent device through near-field wireless communication technology.

[0071] S302. If the first smart device is the target smart device, when it receives an uplink data packet sent by a neighboring second smart device through the target network, it uploads the uplink data packet to the server connected to the first smart device via mobile communication technology. The uplink data packet includes the address information of the target smart device, the address information of the neighboring or non-neighboring second smart device, and local data.

[0072] S303. Receive downlink data packets sent by the server using mobile communication technology, wherein the downlink data packets include final address information and control information.

[0073] In the above scheme, after the uplink data packet of the second smart device is sent to the server, the server may send a corresponding downlink data packet containing control instructions to the first smart device. At this time, the downlink data packet will indicate the address information of the second smart device that executes the control instructions, which is the final address information. Based on this final address information, the first smart device as the target smart device and other second smart devices in the target network can determine how to transmit the downlink data packet.

[0074] S304. Determine whether the final address information is its own address information.

[0075] In this step, after the first smart device receives the downlink data packet sent by the server, it first needs to determine whether the downlink data packet was sent to it by the server. In this embodiment, the determination is based on the final address information in the downlink data packet.

[0076] S305. If so, then perform the corresponding operation based on the control information.

[0077] In the above scheme, if the final address information in the downlink data packet is the address information of the first smart device itself, it indicates that the downlink data packet was sent by the server to the first smart device, and the corresponding operation can be performed directly according to the control command information in the downlink data packet.

[0078] S306. If not, the downlink data packet is sent to the second intelligent device corresponding to the final address information through the target network, so that the second intelligent device corresponding to the final address information can perform the corresponding operation based on the control information.

[0079] In this step, if the final address information in the downlink data packet is not the address information of the first smart device itself, it indicates that the downlink data packet is not sent from the server to the first smart device, but is sent from the server to the second smart device in the target network. In this case, the first smart device can only send the downlink data packet to the second smart device corresponding to the final address information through the target network, so that the second smart device can perform the corresponding operation according to the control command information in the downlink data packet.

[0080] S307. If the first smart device is not the target smart device in the target network, when it receives the uplink data packet sent by the adjacent second smart device through the target network, it sends the uplink data packet to the target smart device through the target network, so that the target smart device sends the uplink data packet to the server through mobile communication technology.

[0081] In the above scheme, if the first smart device is not the target smart device that communicates with the server via mobile communication technology, since the first smart device does not communicate directly with the server, when the first smart device receives an uplink data packet sent by any adjacent second smart device through the target network, it can only send the uplink data packet to the target smart device through the target network, and then the target smart device will upload the uplink data packet to the server. At this time, the address information of the target smart device in the uplink data packet is inconsistent with the address information of the first smart device.

[0082] S308. Receive downlink data packets sent by a neighboring second smart device through the target network.

[0083] In this step, similarly, the first smart device transmits the uplink data packet from the second smart device to the target smart device. Then, the target smart device uploads the uplink data packet to the server. The server may then send a corresponding downlink data packet containing control commands to the target smart device. The target smart device will transmit the data packet in the target network based on the final address information in the downlink data packet. In this scenario, some downlink data packets may pass through the first smart device. At this time, it is also necessary to determine whether the downlink data packet was sent by the server. In this embodiment, the determination is based on the final address information in the downlink data packet.

[0084] S309. Determine whether the final address information is its own address information.

[0085] S310. If so, then perform the corresponding operation based on the control information.

[0086] S311. If not, the downlink data packet is sent to the second smart device corresponding to the final address information through the target network.

[0087] For steps that are the same as those in the foregoing embodiments, please refer to the description of the foregoing embodiments, and will not be repeated here. Steps S309-S311 are basically the same as those in the foregoing embodiments, except that the first smart device is not the target smart device in the target network at this time.

[0088] In this embodiment, after the first intelligent device and multiple second intelligent devices jointly establish a target network based on near-field wireless communication technology, if the target intelligent device connected to the server via mobile communication technology is the first intelligent device, then when the first intelligent device receives an uplink data packet transmitted from a neighboring second intelligent device through the target network, it can directly upload the uplink data packet to the server via mobile communication technology; when the first intelligent device receives a downlink data packet sent by the server, it can determine how to transmit the downlink data packet in the target network based on the final address information in the downlink data packet.

[0089] If the target smart device connected to the server via mobile communication technology is not the first smart device, then when the first smart device receives an uplink data packet transmitted from the adjacent second smart device through the target network, it can only pass the uplink data packet to the target smart device through the target network, and the target smart device will then upload the uplink data packet to the server via mobile communication technology. Similarly, when the first smart device receives a downlink data packet transmitted from the adjacent second smart device through the target network, it can determine how to transmit the downlink data packet in the target network based on the final address information in the downlink data packet.

[0090] Figure 4 is a flowchart of a data transmission method provided in an embodiment of this application. As shown in Figure 4, this embodiment describes in detail, based on the previous embodiment, a method for transmitting uplink data packets and downlink data packets through a target network when the first smart device is or is not the target smart device. The method includes:

[0091] S401, to jointly establish a target network with at least one second intelligent device through near-field wireless communication technology.

[0092] S402. Based on the target network, establish its own link table. The link table includes the links where the first intelligent device and each adjacent second intelligent device are located. The links also include all non-adjacent second intelligent devices that each adjacent second intelligent device can reach through the target network. The link table also includes the address information of all intelligent devices in each link.

[0093] In this step, each smart device establishes its own link table in the target network. This link table contains all links in the target network originating from itself, as shown in Figure 1. Taking the smart washing machine 102 as a simple example as the first smart device, the second smart devices adjacent to the smart washing machine 102 are a smart bracelet, a smart camera 104, and a desktop computer 105. The second smart device not adjacent to the smart washing machine 102 is a smart TV 106. At this time, the link table established by the smart washing machine 102 is as follows:

[0094] S403. If the first smart device is the target smart device, when it receives an uplink data packet sent by a neighboring second smart device through the target network, it uploads the uplink data packet to the server connected to the first smart device via mobile communication technology. The uplink data packet includes the address information of the target smart device, the address information of the neighboring or non-neighboring second smart device, and local data.

[0095] S404. Receive downlink data packets sent by the server using mobile communication technology, wherein the downlink data packets include final address information and control information.

[0096] S405. Determine whether the final address information is its own address information.

[0097] S406. If so, then perform the corresponding operation based on the control information.

[0098] S407. If not, obtain its own link table.

[0099] In the above scheme, as mentioned above, all intelligent devices in the target network have established their own link tables. Therefore, if the first intelligent device, which is the target intelligent device, determines that the downlink data packet was not sent to it by the server, it can determine how to transmit the downlink data packet in the target network through its own link table.

[0100] S408. Based on its own link table and final address information, determine the second intelligent device corresponding to the final address information, and the first target link where the second intelligent device corresponding to the final address information is located.

[0101] In this step, the second intelligent device corresponding to the final address information and the target link where the second intelligent device is located can be determined from the link table of the first intelligent device based on the final address information. In this embodiment, there may be many links where the second intelligent device is located, and it is necessary to determine a target link for the transmission of downlink data packets. The target link can be determined based on the length of the link or the distance between different devices in the link. This embodiment does not impose any restrictions on this.

[0102] S409. Send the downlink data packet to the adjacent second intelligent device located in the first target link, so that the adjacent second intelligent device can transmit the downlink data packet to the second intelligent device corresponding to the final address information through the first target link.

[0103] In the above scheme, after the target link is determined, the first intelligent device can pass the downlink data packet to the adjacent second intelligent device in the target link, and the adjacent second intelligent device can continue to pass it based on its own link table until it is passed to the second intelligent device corresponding to the final address information.

[0104] S410. If the first intelligent device is not the target intelligent device in the target network, then when it receives the uplink data packet sent by the adjacent second intelligent device through the target network, it obtains its own link table.

[0105] S411. Based on its own link table and the address information of the target smart device in the uplink data packet, it determines the second target link where the target smart device is located, and sends the uplink data packet to the adjacent second smart device located in the second target link, so that the adjacent second smart device can transmit the uplink data packet to the target smart device through the second target link.

[0106] In this step, as mentioned above, all intelligent devices in the target network have established their own link tables. Therefore, when the first intelligent device, which is not the target intelligent device, receives an uplink data packet sent by the adjacent second intelligent device, it can determine the target link where the target intelligent device is located from its own link table based on the address information of the target intelligent device in the uplink data packet. Then, it passes the uplink data packet to the adjacent second intelligent device in the target link, and the adjacent second intelligent device continues to pass it based on its own link table until it reaches the target intelligent device.

[0107] S412, Receive downlink data packets sent by a neighboring second smart device through the target network.

[0108] S413. Determine whether the final address information is its own address information.

[0109] S414. If so, then perform the corresponding operation based on the control information.

[0110] S415, Obtain its own link table.

[0111] S416. Based on its own link table and final address information, determine the second intelligent device corresponding to the final address information, and the first target link where the second intelligent device corresponding to the final address information is located.

[0112] S417. Send the downlink data packet to the adjacent second intelligent device located in the first target link, so that the adjacent second intelligent device can transmit the downlink data packet to the second intelligent device corresponding to the final address information through the first target link.

[0113] For steps that are the same as those in the foregoing embodiments, please refer to the description of the foregoing embodiments, and will not be repeated here. Steps S410 and S415-S417 are basically the same as those in the foregoing embodiments, except that the first smart device is not the target smart device in the target network at this time.

[0114] In this embodiment of the application, after the first smart device and at least one second smart device establish a target network, all smart devices in the target network can establish their own link table. This link table contains all links in the target network originating from itself. Each link leads to a certain second smart device in the target network. Based on the second smart devices contained in each link in the link table and the address information of the second smart devices, when the first smart device receives an uplink data packet or a downlink data packet, it can determine which link to use to transmit the uplink data packet or downlink data packet, so that the uplink data packet or downlink data packet is transmitted to the corresponding target smart device or second smart device through the target network.

[0115] In summary, the data transmission method provided in this application involves a first smart device and multiple second smart devices jointly constructing a target network based on near-field communication technology. Data transmission and interaction can be achieved between the first and second smart devices, and between the second smart devices themselves, through this target network. If the target smart device connected to the server via mobile communication technology is the first smart device, then after receiving an uplink data packet transmitted from a neighboring second smart device through the target network, the first smart device can directly upload the uplink data packet to the server via mobile communication technology. This uplink data packet may include local data from the second smart device adjacent to the first smart device, or it may include local data from a second smart device not adjacent to the first smart device.

[0116] Figure 5 is a schematic diagram of a data transmission device provided in an embodiment of the present invention. As shown in Figure 5, the data transmission device is applied to a first smart device. The data transmission device may include various functional modules for implementing the aforementioned data transmission method. Any functional module may be implemented by software / or hardware.

[0117] For example, the data transmission device may include: a networking module 501 and a processing module 502;

[0118] The networking module 501 is used to jointly establish a target network with at least one second intelligent device via short-range wireless communication technology.

[0119] The processing module 502 is configured to, if the first smart device is the target smart device, upload the uplink data packet to the server connected to the first smart device via mobile communication technology when it receives the uplink data packet sent by the adjacent second smart device through the target network. The uplink data packet includes the address information of the target smart device, the address information of the adjacent or non-adjacent second smart device, and local data.

[0120] Optionally, the processing module 502 can also be used to determine whether the final address information is its own address information when receiving a downlink data packet sent by the server through mobile communication technology, wherein the downlink data packet includes the final address information and control information; if yes, then perform corresponding operations based on the control information; if no, then send the downlink data packet to the second smart device corresponding to the final address information through the target network, so that the second smart device corresponding to the final address information can perform corresponding operations based on the control information.

[0121] Optionally, the processing module 502 can also be specifically used to: if the first smart device is not the target smart device in the target network, when receiving the uplink data packet sent by the adjacent second smart device through the target network, send the uplink data packet to the target smart device through the target network, so that the target smart device sends the uplink data packet to the server through mobile communication technology.

[0122] Optionally, the processing module 502 can also be used to determine whether the final address information is its own address information when receiving a downlink data packet sent by a neighboring second smart device through the target network; if yes, then perform the corresponding operation based on the control information; if no, then send the downlink data packet to the second smart device corresponding to the final address information through the target network.

[0123] Optionally, the networking module 501 can also be specifically used to: establish its own link table based on the target network. The link table includes the links where the first intelligent device and each adjacent second intelligent device are located. The links also include all non-adjacent second intelligent devices that each adjacent second intelligent device can reach through the target network. The link table also includes the address information of all intelligent devices in each link.

[0124] Optionally, the processing module 502 can also be used to obtain its own link table; based on its own link table and final address information, determine the second intelligent device corresponding to the final address information, and the first target link where the second intelligent device corresponding to the final address information is located; send the downlink data packet to the adjacent second intelligent device located in the first target link, so that the adjacent second intelligent device can transmit the downlink data packet to the second intelligent device corresponding to the final address information through the first target link.

[0125] Optionally, the processing module 502 can also be specifically used to: obtain its own link table; determine the second target link where the target smart device is located based on its own link table and the address information of the target smart device in the uplink data packet, and send the uplink data packet to the adjacent second smart device located in the second target link, so that the adjacent second smart device can transmit the uplink data packet to the target smart device through the second target link.

[0126] The data transmission device is used to execute the technical solution provided in the aforementioned data transmission method embodiments. Its implementation principle and technical effects are similar to those in the aforementioned method embodiments, and will not be repeated here.

[0127] This application also provides an electronic device, including: at least one processor and a memory;

[0128] The memory stores instructions that the computer executes;

[0129] At least one processor executes computer execution instructions stored in memory, causing at least one processor to perform a data transfer method.

[0130] Figure 6 is a hardware schematic diagram of an electronic device provided in an embodiment of the present invention. As shown in Figure 6, the electronic device 60 provided in this embodiment includes at least one processor 601 and a memory 602. The device 60 also includes a communication component 603. The processor 601, the memory 602, and the communication component 603 are connected via a bus 604.

[0131] The electronic device 60 provided in this embodiment can be a control device in a smart device, or it can be a smart device itself. When the electronic device 60 is a first smart device, it may further include at least one communication component for interacting with other devices. These other devices may include, for example, a second smart device, a server, or a Wi-Fi router. For instance, the communication component includes a Bluetooth mesh module, a Redcap module, and a Wi-Fi module. The Bluetooth mesh module enables communication between the first smart device and the second smart device, the Redcap module enables communication between the first smart device and the server, and the Wi-Fi module enables communication between the first smart device and the Wi-Fi router.

[0132] When the electronic device 60 is a second smart device, it may further include at least one communication component for interacting with other devices. These other devices may be, for example, the first smart device, other second smart devices, etc. For instance, the communication component may include a Bluetooth mesh module, which enables communication between the second smart device and the first smart device, as well as communication between the second smart device and other second smart devices.

[0133] In the specific implementation process, at least one processor 601 executes computer execution instructions stored in memory 602, causing at least one processor 601 to execute the data transmission method described above.

[0134] The specific implementation process of processor 601 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0135] In the embodiment shown in Figure 6 above, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0136] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0137] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0138] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the data transmission method described above.

[0139] The aforementioned computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0140] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0141] The division of units described herein is merely a logical functional division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0142] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0143] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0144] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0145] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0146] The technical solutions of this application have been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it is readily understood by those skilled in the art that the scope of protection of this application is obviously not limited to these specific embodiments. The above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A data transmission method, characterized in that, The method is applied to a first smart device, and the method includes: jointly establishing a target network with at least one second smart device via near-field wireless communication technology; if the first smart device is the target smart device, then when receiving an uplink data packet sent by a neighboring second smart device through the target network, uploading the uplink data packet to a server connected to the first smart device via mobile communication technology, wherein the uplink data packet includes the address information of the target smart device, the address information of a neighboring or non-neighboring second smart device, and local data.

2. The method according to claim 1, characterized in that, After uploading the uplink data packet to a server connected to the first smart device via mobile communication technology, the method further includes: upon receiving a downlink data packet sent by the server via mobile communication technology, determining whether the final address information is its own address information, wherein the downlink data packet includes the final address information and control information; if yes, then performing a corresponding operation based on the control information; if no, then sending the downlink data packet to the second smart device corresponding to the final address information through the target network, so that the second smart device corresponding to the final address information performs a corresponding operation based on the control information.

3. The method according to claim 2, characterized in that, The method further includes: if the first smart device is not a target smart device in the target network, then when receiving an uplink data packet sent by a neighboring second smart device through the target network, the uplink data packet is sent to the target smart device through the target network, so that the target smart device sends the uplink data packet to the server through mobile communication technology.

4. The method according to claim 3, characterized in that, After sending the uplink data packet to the target smart device through the target network, the method further includes: when receiving a downlink data packet sent by a neighboring second smart device through the target network, determining whether the final address information is its own address information; if yes, performing corresponding operations based on the control information; if no, sending the downlink data packet to the second smart device corresponding to the final address information through the target network.

5. The method according to claim 4, characterized in that, After establishing a target network with at least one second intelligent device through near-field wireless communication technology, the method further includes: establishing its own link table based on the target network. The link table includes the links of the first intelligent device and each adjacent second intelligent device. The links also include all non-adjacent second intelligent devices that each adjacent second intelligent device can reach through the target network. The link table also includes the address information of all intelligent devices in each link.

6. The method according to claim 5, characterized in that, The step of sending the downlink data packet to the second intelligent device corresponding to the final address information through the target network includes: obtaining its own link table; determining the second intelligent device corresponding to the final address information and the first target link where the second intelligent device corresponding to the final address information is located based on its own link table and the final address information; and sending the downlink data packet to an adjacent second intelligent device located on the first target link, so that the adjacent second intelligent device can transmit the downlink data packet to the second intelligent device corresponding to the final address information through the first target link.

7. The method according to claim 5, characterized in that, The step of sending the uplink data packet to the target smart device through the target network includes: obtaining its own link table; determining the second target link where the target smart device is located based on its own link table and the address information of the target smart device in the uplink data packet; and sending the uplink data packet to an adjacent second smart device located in the second target link, so that the adjacent second smart device can transmit the uplink data packet to the target smart device through the second target link.

8. A data transmission device, characterized in that, The data transmission device, applied to a first intelligent device, includes: a networking module for jointly establishing a target network with at least one second intelligent device via short-range wireless communication technology; and a processing module for, if the first intelligent device is the target intelligent device, uploading an uplink data packet sent by a neighboring second intelligent device through the target network to a server connected to the first intelligent device via mobile communication technology when receiving such an uplink data packet, wherein the uplink data packet includes address information of the target intelligent device, address information of neighboring or non-neighboring second intelligent devices, and local data.

9. An electronic device, characterized in that, include: At least one processor and memory; The memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, causing the at least one processor to perform the data transfer method as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the data transmission method as described in any one of claims 1 to 7.