Network distribution method of intelligent equipment, equipment and storage medium

By subcontracting the method of sending and splicing the distribution network information data packets, the problem of the inability to quickly locate the cause of errors when the distribution network fails in the distribution network of smart devices, and the rapid distribution network and improved user experience are achieved.

CN119815414APending Publication Date: 2025-04-11FOSHAN SHUIBAODUN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411972390.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

When users use Bluetooth to connect to smart devices through mobile terminals, they often fail to distribute networks, and they cannot quickly locate the cause of errors, resulting in poor user experience.

Method used

By establishing a communication connection with the mobile terminal through Bluetooth, receiving and subcontracting distribution network information, the intelligent device receives and splices and combines distribution network information data packets in turn, generates complete distribution network information, and distributes the network based on this information.

Benefits of technology

When the distribution network fails, the mobile terminal can quickly locate the wrong distribution network information packets and corresponding field information, thereby adopting corresponding solutions to achieve rapid distribution network and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119815414A_ABST
    Figure CN119815414A_ABST
Patent Text Reader

Abstract

The invention discloses a network distribution method of intelligent equipment, equipment and a storage medium. The method comprises the following steps: establishing communication connection with a mobile terminal through Bluetooth; distribution network information sent by the mobile terminal is received, distribution network information data is received in a subpackage mode, and data in each distribution network information data package is complete field information and at least comprises one piece of complete field information; splicing and combining the distribution network information data of each distribution network information data packet to generate complete distribution network information; and performing network distribution according to the complete network distribution information. Compared with the prior art, the method and the device have the following effects: the error field information corresponding to the network distribution information data can be quickly positioned when the network distribution failure occurs in the intelligent equipment, so that a corresponding solution is made to realize quick network distribution, and the user experience is also improved while the network distribution failure is quickly solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things, and in particular to a network distribution method, device and storage medium for smart devices. Background Art

[0002] With the development of Internet of Things technology, users can conveniently and quickly remotely control smart home devices through mobile terminals. Before remote control, smart home devices need to be connected to the Internet of Things through wireless communication.

[0003] At present, a common method is to realize network configuration of smart devices through Bluetooth assistance, and to realize the transmission of Wi-Fi configuration information through a point-to-point Bluetooth connection between the smart device and the user terminal. However, in the prior art, network configuration failure often occurs during Bluetooth network configuration, and after the network configuration fails, the cause of the network configuration failure cannot be found in time, resulting in a poor user experience. Summary of the invention

[0004] The purpose of the present invention is to provide a network configuration method, device and storage medium for smart devices to solve the problem in the related art that when a user makes an error when connecting a smart device to the network via Bluetooth via a mobile terminal, the user cannot quickly locate the cause of the network error.

[0005] In order to achieve the above object, the present invention provides the following technical solutions:

[0006] In a first aspect, the present invention provides a network configuration method for a smart device, comprising: establishing a communication connection with a mobile terminal via Bluetooth; receiving network configuration information sent by the mobile terminal, wherein the network configuration information data is received in packets, and the data in each network configuration information data packet is complete field information and includes at least one complete field information; splicing and combining the network configuration information data of each network configuration information data packet to generate complete network configuration information; and performing network configuration according to the complete network configuration information.

[0007] Furthermore, after establishing a communication connection with the mobile terminal via Bluetooth and before receiving the network configuration information sent by the mobile terminal, it also includes: sending a first verification message to the mobile terminal. If a verification success message from the mobile terminal is received, the verification is successful; if a verification failure message from the mobile terminal is received, the Bluetooth connection is disconnected.

[0008] Furthermore, the first verification information includes: a MAC address, a device series, and a device model of the smart device.

[0009] Furthermore, after sending the first verification information to the mobile terminal, the method further includes: receiving second verification information sent by the mobile terminal, and if the second verification information passes, sending verification success information to the mobile terminal.

[0010] Furthermore, the second verification information includes: a MAC address and a manufacturer name of the smart device.

[0011] Further, the receiving of the network configuration information sent by the mobile terminal includes: receiving the network configuration information data packets sent sequentially by the mobile terminal; if the network configuration information data packet is received successfully, sending the information content of the network configuration information data packet to the mobile terminal; if the network configuration information data packet fails to be received, sending reception failure information to the mobile terminal.

[0012] Furthermore, establishing a communication connection with the mobile terminal via Bluetooth includes: the smart device turning on Bluetooth and sending a Bluetooth broadcast; receiving a Bluetooth connection request from the mobile terminal and establishing a Bluetooth communication connection.

[0013] Furthermore, after establishing a communication connection with the mobile terminal via Bluetooth and before receiving a network configuration information data packet sent by the mobile terminal, the method further includes:

[0014] An encrypted communication protocol is established with the mobile terminal, and network configuration information is transmitted according to the encrypted communication protocol.

[0015] In a second aspect, the present invention further provides a computer electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the network configuration method of any one of the above-mentioned smart devices when executing the computer program.

[0016] In a third aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the network configuration method for a smart device described in any one of the above are implemented.

[0017] The present invention provides a network configuration method, device and storage medium for smart devices, which establish a communication connection with a mobile terminal through Bluetooth; receive the network configuration information sent by the mobile terminal, wherein the network configuration information data is received in packets, and the data in each network configuration information data packet is complete field information and includes at least one complete field information; splice and combine the network configuration information data of each network configuration information data packet to generate complete network configuration information; and configure the network according to the complete network configuration information. Compared with the related art, the present invention has the following effects: the present invention divides the network configuration information into multiple network configuration information data packets according to complete fields, and sends the network configuration information data packets in packets, and the smart device receives the network configuration information data packets in turn and feeds back the information to the mobile terminal. When the network configuration fails, that is, the smart device fails to configure the network, the mobile terminal can quickly locate the network configuration information data packet that is wrong according to the information fed back by the smart device, and then find the corresponding field information in the network configuration information data packet, so as to make a corresponding solution to achieve fast network configuration, which can quickly solve the network configuration failure and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flowchart of a network configuration method for a smart device according to an embodiment of the present invention;

[0019] Figure 2 It is a structural schematic diagram of a computer electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. In contrast, when an element is referred to as being "directly on" another element, there is no intermediate element. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0022] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0023] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0024] The terms used in one or more embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present invention. The singular forms "a", "said" and "the" used in one or more embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates other meanings.

[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of the template are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the associated listed items.

[0026] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present invention, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present invention, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "when..." or "when...".

[0027] At present, when users connect their smart devices to the Internet, they generally need to use a mobile terminal as an intermediate medium, that is, the mobile terminal communicates with the smart device through Bluetooth, and then sends the corresponding network configuration information to the smart device, so that the smart device can connect to the Internet according to the network configuration information. However, due to the data limitation of a single Bluetooth transmission, the network configuration information data usually needs to be split into multiple data packets for packet transmission. The existing unpacking scheme generally splits the network configuration information according to a fixed byte length, and then waits for the smart device to receive all the network configuration data packets, and then splices the network configuration information into complete network configuration information to achieve network configuration. However, when there is error information in the network configuration information or packet loss occurs, this will cause network configuration failure, and it will take a long time to troubleshoot which part of the network configuration information is wrong and causes the network configuration failure.

[0028] The following specific embodiments are used to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes will not be repeated in some embodiments.

[0029] Please refer to Figure 1 The embodiment of the present invention provides a network configuration method for a smart device, which is applied to a smart device and includes at least the following steps:

[0030] S10. Establishing a communication connection with a mobile terminal via Bluetooth.

[0031] Specifically, in this embodiment, it is first necessary to establish a Bluetooth communication connection between the smart device and the mobile terminal.

[0032] In some optional embodiments, step S10, establishing a communication connection with the mobile terminal via Bluetooth, includes:

[0033] S101, the smart device turns on Bluetooth and sends a Bluetooth broadcast;

[0034] S102: Receive a Bluetooth connection request from the mobile terminal and establish a Bluetooth communication connection.

[0035] It is understandable that the control system of the smart device will send an instruction to turn on the Bluetooth broadcast to the WiFi module in the device. The WiFi module will broadcast the Bluetooth broadcast data composed of the serial number, model and Mac address of the smart device. When the mobile terminal receives the Bluetooth broadcast data, it will query the cloud based on the Bluetooth broadcast data. When the corresponding information is found, it proves that the device is a legal device. The mobile terminal will send a Bluetooth connection request to the smart device and establish a Bluetooth communication connection.

[0036] It should be noted that the Wi-Fi module of the smart device in this embodiment has a Bluetooth function. These modules usually use advanced chip technology to integrate the functions of Wi-Fi and Bluetooth into one chip or module, which can provide the device with more diverse wireless communication methods.

[0037] S20. Receive the network configuration information sent by the mobile terminal, wherein the network configuration information data is received in packets, and the data in each network configuration information data packet is complete field information and includes at least one complete field information.

[0038] Specifically, after the smart device establishes a Bluetooth communication connection with the mobile terminal, the mobile terminal will split the network configuration information into multiple network configuration information data packets and send them to the smart device, and the smart device will receive the multiple network configuration information data packets in sequence.

[0039] In some optional embodiments, step S20, receiving the network configuration information sent by the mobile terminal, includes:

[0040] S201. Receive network configuration information data packets sent sequentially by the mobile terminal.

[0041] Specifically, in this embodiment, the network configuration information data is sent in packets, and the information in each network configuration data packet is complete field information and includes at least one complete field information, exemplarily, one field information of a WiFi password in a network configuration information data packet, or one network configuration data includes two field information of a WiFi name and password.

[0042] S202: If the network configuration information data packet is received successfully, send the information content of the network configuration information data packet to the mobile terminal.

[0043] Specifically, when the smart device receives a network configuration information data packet, it will parse the information in the network configuration information data packet and send the parsed content to the mobile terminal. The mobile terminal compares the received content with the sent content. If the comparison is correct, the network configuration information data is sent successfully.

[0044] S203: If the network configuration information data packet fails to be received, sending a reception failure message to the mobile terminal.

[0045] Specifically, when the mobile terminal sends a network configuration information data packet, if the smart device does not receive it within a certain period of time, it means that the data may be lost, and a corresponding reception failure message needs to be sent to the mobile terminal so that the mobile terminal can resend it.

[0046] S30: splice and combine the network configuration information data of each network configuration information data packet to generate complete network configuration information, and perform network configuration according to the complete network configuration information.

[0047] Specifically, when all network configuration information is successfully received and verified, the smart device will combine the network configuration information in each network configuration information data packet into complete network configuration information, and then complete the network configuration according to the complete network configuration information.

[0048] The present invention provides a network configuration method for smart devices, which is applied to the smart device side. The method establishes a communication connection with a mobile terminal through Bluetooth; receives the network configuration information sent by the mobile terminal, wherein the network configuration information data is received in packets, and the data in each network configuration information data packet is complete field information and includes at least one complete field information; splices and combines the network configuration information data of each network configuration information data packet to generate complete network configuration information; and configures the network according to the complete network configuration information. Compared with the related art, the present invention has the following effects: the present invention divides the network configuration information into multiple network configuration information data packets according to complete fields, and sends the network configuration information data packets in packets, and the smart device receives the network configuration information data packets in turn and feeds back the information to the mobile terminal. When the network configuration fails, that is, the smart device fails to configure the network, the mobile terminal can quickly locate the network configuration information data packet that is wrong according to the information fed back by the smart device, and then find the corresponding field information in the network configuration information data packet, so as to make a corresponding solution to achieve fast network configuration, which can quickly solve the network configuration failure and improve the user experience.

[0049] In a certain embodiment of the present invention, after establishing a communication connection with the mobile terminal via Bluetooth and before receiving the network configuration information sent by the mobile terminal, the method further includes:

[0050] S11. Sending first verification information to the mobile terminal. If verification success information is received from the mobile terminal, the verification is successful; if verification failure information is received from the mobile terminal, disconnecting the Bluetooth connection.

[0051] It is understandable that after the smart device establishes a Bluetooth communication connection with the mobile terminal, in order to further ensure the security of the data, the smart device may also send first verification information to the mobile terminal to determine whether the mobile device is a legitimate device.

[0052] In a specific embodiment of the present invention, the first verification information includes: the MAC address, device series and device model of the smart device.

[0053] In one embodiment of the present invention, after sending the first verification information to the mobile terminal, the method further includes:

[0054] S12. Receive second verification information sent by the mobile terminal, and if the second verification information passes, send verification success information to the mobile terminal.

[0055] It can be understood that after the smart device establishes a Bluetooth communication connection with the mobile terminal, in order to further ensure the security of the data, the mobile terminal may also send first verification information to the smart device to determine whether the smart device is a legitimate device.

[0056] In a specific embodiment of the present invention, the MAC address and manufacturer name of the smart device.

[0057] In a certain embodiment of the present invention, after establishing a communication connection with the mobile terminal via Bluetooth and before receiving a network configuration information data packet sent by the mobile terminal, the method further includes:

[0058] S13: Establish an encrypted communication protocol with the mobile terminal, and transmit network configuration information according to the encrypted communication protocol.

[0059] It can be understood that in order to ensure the security of data transmission between the smart device and the mobile terminal, an encrypted communication protocol can be established between the smart device and the mobile terminal. For example, an encryption algorithm can be used for transmission. Exemplarily, the encryption algorithm can be a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash algorithm, etc.

[0060] See also Figure 2 The embodiment of the present invention further provides a computer electronic device 200, including a memory 203 and a processor 202, wherein the memory 203 stores a computer program, and when the processor executes the computer program, the steps of the network configuration method for the smart device described in any one of the above items are implemented.

[0061] Specifically, the electronic device 200 includes: a transceiver 201, a bus interface and a processor 202, wherein the processor 202 is used to establish a communication connection with a mobile terminal via Bluetooth;

[0062] Receiving network configuration information sent by the mobile terminal, wherein the network configuration information data is received in packets, and the data in each network configuration information data packet is complete field information and includes at least one complete field information;

[0063] The network configuration information data of each network configuration information data packet are spliced ​​and combined to generate complete network configuration information, and network configuration is performed according to the complete network configuration information.

[0064] In the embodiment of the present invention, the electronic device 200 further includes a memory 203. Figure 2In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 202 and memory represented by memory 203. The bus architecture may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 201 may be a plurality of components, i.e., including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 202 is responsible for managing the bus architecture and general processing, and the memory 203 may store data used by the processor 202 when performing operations.

[0065] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the network configuration method for a smart device described in any one of the above are implemented.

[0066] In this embodiment, the computer readable storage medium may be a non-volatile storage medium or a volatile storage medium. For example, the computer storage medium may include but is not limited to: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0067] In all examples shown and described herein, any specific values ​​should be interpreted as merely exemplary and not as limiting, and thus other examples of the exemplary embodiments may have different values.

[0068] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0069] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0070] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0071] If the functions are implemented in the form of software function modules 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 the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a terminal device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.

[0072] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A network configuration method for smart devices, characterized in that: include: Establishing a communication connection with a mobile terminal via Bluetooth; Receiving network configuration information sent by the mobile terminal, wherein the network configuration information data is received in packets, and the data in each network configuration information data packet is complete field information and includes at least one complete field information; The network configuration information data of each network configuration information data packet are spliced ​​and combined to generate complete network configuration information, and network configuration is performed according to the complete network configuration information.

2. The network distribution method according to claim 1, characterized in that: After establishing a communication connection with the mobile terminal via Bluetooth and before receiving network configuration information sent by the mobile terminal, the method further includes: The first verification information is sent to the mobile terminal. If verification success information is received from the mobile terminal, the verification is successful; if verification failure information is received from the mobile terminal, the Bluetooth connection is disconnected.

3. The network distribution method according to claim 2, characterized in that: The first verification information includes: the MAC address, device series and device model of the smart device.

4. The network distribution method according to claim 2, characterized in that: After sending the first verification information to the mobile terminal, the method further includes: The second verification information sent by the mobile terminal is received, and if the second verification information passes, verification success information is sent to the mobile terminal.

5. The network distribution method according to claim 4, characterized in that: The second verification information includes: the MAC address and manufacturer name of the smart device.

6. The network distribution method according to claim 1, characterized in that: The receiving the network configuration information sent by the mobile terminal includes: Receiving network configuration information data packets sent sequentially by the mobile terminal; If the network configuration information data packet is received successfully, sending the information content of the network configuration information data packet to the mobile terminal; If the network configuration information data packet fails to be received, a reception failure message is sent to the mobile terminal.

7. The network configuration method for smart devices according to claim 1, characterized in that: The establishing of a communication connection with the mobile terminal via Bluetooth includes: The smart device turns on Bluetooth and sends Bluetooth broadcasts; A Bluetooth connection request from the mobile terminal is received, and a Bluetooth communication connection is established.

8. The network configuration method for smart devices according to claim 1, characterized in that: After establishing a communication connection with the mobile terminal via Bluetooth and before receiving a network configuration information data packet sent by the mobile terminal, the method further includes: An encrypted communication protocol is established with the mobile terminal, and network configuration information is transmitted according to the encrypted communication protocol.

9. A computer electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the network configuration method of the smart device described in any one of claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the network configuration method for a smart device according to any one of claims 1 to 8 are implemented.