Intelligent equipment unified network distribution method and device, electronic equipment and storage medium

Through intelligent and automated distribution networking methods, the user operation complexity and developer difficulty caused by the diversity and complexity of IoT devices are solved, and an efficient and transparent distribution networking process is achieved, which improves user experience and distribution networking efficiency. Reduces the workload of developers.

CN119135536APending Publication Date: 2024-12-13JIAXING DERUCCI SMART HOME CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411371495.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

Due to different brands and manufacturers, existing IoT devices have led to diversity in communication protocols and configuration processes, increasing user operation complexity and time cost, reducing user experience, and increasing the difficulty of developers and maintenance difficulties.

Method used

A method of unified distribution network for intelligent devices is proposed, and the target device type is obtained by responding to distribution network instructions. Based on the preset distribution network tool class collection, the target device distribution network is inherited, and the multi-step distribution network operation is performed, and each step is allocated. Network progress notification simplifies user operations and improves network distribution efficiency.

Benefits of technology

Simplify user operations, improve user experience, improve distribution network efficiency, reduce developer difficulty, and promote the standardization and standardization of IoT technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135536A_ABST
    Figure CN119135536A_ABST
Patent Text Reader

Abstract

The invention discloses a unified network distribution method and device for intelligent equipment, electronic equipment and a storage medium, and the method comprises the steps: obtaining a target equipment type of target equipment to be subjected to network distribution in response to a network distribution instruction of a target object; inheriting a target equipment distribution network class from a preset distribution network tool class set based on the target equipment type; and carrying out multi-step network distribution operation on the target equipment through the target equipment network distribution class, and carrying out network distribution progress notification on each step of network distribution operation. According to the intelligent and automatic network distribution method, the problems existing in the network distribution process of existing IoT equipment are effectively solved, the user experience and the network distribution efficiency are improved, the difficulty and workload of developers are reduced, a solid foundation is laid for sustainable development and popularization of the IoT technology, and the method can be widely applied to the technical field of data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for unified network distribution of intelligent devices. Background Art

[0002] With the rapid development of Internet of Things (IoT) technology, a large number of IoT devices from different brands and manufacturers have emerged on the market. While these devices bring convenience and intelligence to users, they also cause a series of problems due to their diversity and complexity. Specifically, because different brands and manufacturers use different communication protocols and communication processes for network configuration during design, users face great challenges when adding and configuring new devices.

[0003] When using these IoT devices, users have to frequently switch between different applications to adapt to the configuration requirements of different devices. This not only increases the complexity of user operations, but also greatly increases time costs and reduces user experience. For non-technical users, it is necessary to invest a lot of time and energy to learn and understand the configuration process of various devices, which undoubtedly increases the difficulty of popularizing IoT technology.

[0004] At the same time, from the developer's perspective, this diversity and complexity also brings them a lot of trouble. When designing and developing IoT devices, developers need to consider compatibility and interoperability with various existing devices, which undoubtedly increases the difficulty of development and maintenance. When updating and upgrading devices, they need to be handled with caution to avoid adverse effects on existing systems. Summary of the invention

[0005] The main purpose of the embodiments of the present invention is to propose a method, device, electronic device and storage medium for unified network configuration of smart devices, in order to solve at least one problem of the prior art. The present invention can efficiently perform unified network configuration of smart devices.

[0006] To achieve the above object, an embodiment of the present invention provides a method for unified network configuration of smart devices, the method comprising:

[0007] In response to the network configuration instruction of the target object, obtaining the target device type of the target device to be configured;

[0008] Based on the target device type, inherit the target device network configuration class from the preset network configuration tool class collection;

[0009] Perform multi-step network configuration operations on the target device through the target device network configuration class, and notify the network configuration progress of each step of the network configuration operation.

[0010] In some embodiments, the method further comprises the following steps:

[0011] Obtain the network configuration function requirements and device types of all devices to be managed;

[0012] The network distribution function requirements are determined based on the brand model and / or communication protocol of the equipment to be managed;

[0013] Pre-build corresponding network configuration tool classes based on the network configuration function requirements of different devices to be managed;

[0014] The device type and network configuration tool class corresponding to each device to be managed are associated and sorted to obtain a collection of network configuration tool classes.

[0015] In some embodiments, the network configuration instruction includes a preparation instruction and a selection instruction; in response to the network configuration instruction of the target object, obtaining the device type of the target device to be configured includes the following steps:

[0016] In response to the preparation instruction, determining a target device to be networked;

[0017] In response to the selection instruction, a device type of the target device is determined.

[0018] In some embodiments, the network configuration tool class collection includes associated data of multiple devices, and the associated data includes device types and network configuration tool classes; based on the target device type, inheriting the target device network configuration class from the preset network configuration tool class collection includes the following steps:

[0019] Based on the target device type, traverse and match the device types of all associated data to obtain the target associated data;

[0020] The device type of the target associated data is the same as the target device type;

[0021] The network configuration tool class of the target associated data is used as the target device network configuration class.

[0022] In some embodiments, when the target device is of the first type, performing a multi-step network configuration operation on the target device through the target device network configuration class, and notifying the network configuration progress of each step of the network configuration operation, includes the following steps:

[0023] Call the start method corresponding to the target device network configuration class;

[0024] In response to the start method, a communication connection is established with the target device; a first network configuration progress notification method corresponding to the network configuration class of the target device is called to perform a first type of notification to the target object;

[0025] In response to the communication connection, the first network configuration information is sent to the target device so that the target device performs the first network configuration connection; the first network configuration progress notification method is called to perform the second type of notification to the target object;

[0026] When the result of the first network configuration connection is successful, the first network configuration progress notification method is called to perform a third type of notification to the target object to complete the network configuration of the target device.

[0027] In some embodiments, when the target device is of the second type, performing a multi-step network configuration operation on the target device through the target device network configuration class, and notifying the network configuration progress of each step of the network configuration operation, includes the following steps:

[0028] Call the start method corresponding to the target device network configuration class;

[0029] In response to the start method, a communication connection is established with the target device; a second network configuration progress notification method corresponding to the network configuration class of the target device is called to perform a fourth type of notification to the target object;

[0030] In response to the communication connection, the second network configuration information and the third network configuration information are sent to the target device, so that the target device performs the second network configuration connection and the third network configuration connection; the second network configuration progress notification method is called to perform the fifth type of notification to the target object;

[0031] When the result of the second network configuration connection is successful, the second network configuration progress notification method is called to perform the sixth type of notification to the target object;

[0032] When the result of the third network configuration connection is successful, the second network configuration progress notification method is called to perform the seventh type of notification to the target object to complete the network configuration of the target device.

[0033] In some embodiments, the method further comprises the following steps:

[0034] When the final result of the network configuration operation is failure, re-detect the network configuration instruction of the target object;

[0035] When the network configuration instruction of the target object is detected, the step of returning to execute the step of responding to the network configuration instruction of the target object and obtaining the target device type of the target device to be configured is performed until the network configuration of the target device is completed.

[0036] To achieve the above-mentioned purpose, another aspect of an embodiment of the present invention provides a unified network distribution device for smart devices, the device comprising:

[0037] The first module is used to obtain the target device type of the target device to be networked in response to the network configuration instruction of the target object;

[0038] The second module is used to inherit the target device network configuration class from the preset network configuration tool class collection based on the target device type;

[0039] The third module is used to perform multi-step network configuration operations on the target device through the target device network configuration class, and to notify the network configuration progress of each step of the network configuration operation.

[0040] In some embodiments, the apparatus further comprises:

[0041] The fourth module is used to obtain the network configuration function requirements and device types of all devices to be managed;

[0042] The network distribution function requirements are determined based on the brand model and / or communication protocol of the equipment to be managed;

[0043] The fifth module is used to pre-build corresponding network configuration tool classes based on the network configuration function requirements of different devices to be managed;

[0044] The sixth module is used to associate and organize the device type and network configuration tool class corresponding to each device to be managed to obtain a collection of network configuration tool classes.

[0045] In some embodiments, the apparatus further comprises:

[0046] The seventh module is used to re-detect the network configuration instruction of the target object when the final result of the network configuration operation is failure;

[0047] The eighth module is used to return to execute the first module when a network configuration instruction of the target object is detected until the network configuration of the target device is completed.

[0048] To achieve the above objective, another aspect of an embodiment of the present invention provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above method when executing the computer program.

[0049] To achieve the above objective, another aspect of an embodiment of the present invention 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 above method is implemented.

[0050] The present invention provides a method, device, electronic device and storage medium for unified network configuration of intelligent devices. The solution obtains the target device type of the target device to be configured by responding to the network configuration instruction of the target object; based on the target device type, the target device network configuration class is inherited from the preset network configuration tool class collection; multiple steps of network configuration operations are performed on the target device through the target device network configuration class, and the network configuration progress notification is issued for each step of the network configuration operation. The embodiments of the present invention include at least the following beneficial effects:

[0051] Simplify user operations and improve user experience: By responding to the network configuration instructions of the target object and automatically obtaining the device type of the target device to be configured, this solution can intelligently select the corresponding network configuration tool class, thereby avoiding the tedious process of users frequently switching between different applications and learning different configuration processes. This improvement significantly simplifies the user's operation steps, reduces the complexity of operation, and improves the user experience.

[0052] Improve network configuration efficiency and reduce time cost: The present invention realizes rapid identification and network configuration of various IoT devices through a preset collection of network configuration tools. By inheriting the network configuration class of the target device and performing multi-step network configuration operations on the target device, and notifying the network configuration progress in real time, the entire network configuration process is made more efficient and transparent, and the network configuration time is shortened.

[0053] Reduce the difficulty for developers and promote technological innovation: For developers, this solution provides a unified network configuration framework and interface, so that they no longer have to worry about compatibility and interoperability when designing and developing IoT devices. This greatly reduces the difficulty and workload of developers, allowing them to focus more on functional innovation and performance improvement of devices. At the same time, this unified network configuration method also helps promote the standardization and normalization of IoT technology.

[0054] In summary, the present invention effectively solves the problems existing in the network configuration process of existing IoT devices through an intelligent and automated network configuration method, which not only improves the user experience and network configuration efficiency, but also reduces the difficulty and workload of developers, laying a solid foundation for the continuous development and popularization of IoT technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is a flow chart of a method for unified network configuration of intelligent devices provided by an embodiment of the present invention;

[0056] Figure 2 It is an extended flow chart of a unified network configuration method for intelligent devices provided by an embodiment of the present invention;

[0057] Figure 3 An example diagram of the overall process of the unified network configuration method for smart devices provided by an embodiment of the present invention;

[0058] Figure 4 A schematic diagram of the structure of a unified network distribution device for smart devices provided by an embodiment of the present invention;

[0059] Figure 5 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present invention. They are only examples of devices and methods consistent with some aspects of the embodiments of the present invention as detailed in the attached claims.

[0061] It is understood that the terms "first", "second", etc. used in the present invention may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0062] The terms "at least one", "multiple", "each", "any", etc. used in the present invention, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0063] 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 the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.

[0064] The unified network configuration method for smart devices provided in the embodiment of the present invention relates to the field of data processing technology. The unified network configuration method for smart devices provided in the embodiment of the present invention can be applied to a terminal, can be applied to a server, or can be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a vehicle-mounted terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements the unified network configuration method for smart devices, etc., but is not limited to the above forms.

[0065] The present invention can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0066] Figure 1 is an optional flow chart of a unified network configuration method for smart devices provided by an embodiment of the present invention. Figure 1 The method may include but is not limited to steps S100 to S300.

[0067] S100, in response to a network configuration instruction of a target object, obtaining a target device type of a target device to be network configured;

[0068] It should be noted that the network configuration instruction includes a preparation instruction and a selection instruction; in some embodiments, in response to the network configuration instruction of the target object, obtaining the device type of the target device to be configured may include the following steps: in response to the preparation instruction, determining the target device to be configured; in response to the selection instruction, determining the device type of the target device.

[0069] For example, in some specific implementations, in a specific application interaction scenario, it is assumed that a user wants to configure the network for his smart home device (such as a smart mattress) through an application on a smartphone. The whole process can be divided into the following steps:

[0070] Respond to the preparation instruction and determine the device to be configured:

[0071] The user first opens the smart home application on the smartphone and selects "add device" or a similar option, which can be regarded as issuing a preparation instruction.

[0072] The application responds to this command, starts the device scanning function, and searches for nearby smart home devices that can be connected to the network.

[0073] The application lists the scanned devices, and the user selects the smart mattress to be networked from the list. At this time, the application determines the target device to be networked.

[0074] In response to a select command, determine the device type:

[0075] After selecting a smart mattress, the application may ask the user to further confirm or select the specific type of device (for example, different types of smart mattresses may have different configuration requirements).

[0076] According to the prompt, the user selects "a type of mattress" as the device type in the application; the application responds to the selection instruction and determines that the device type of the target device is a type of mattress. The application can also automatically identify it as a type of mattress based on the device information.

[0077] By responding to the user's instructions, the device type of the device to be configured is gradually determined, and preparations are made for subsequent configuration operations.

[0078] S200, based on the target device type, inherit the target device network configuration class from the preset network configuration tool class collection;

[0079] It should be noted that the network configuration tool class collection includes associated data of multiple devices, and the associated data includes device types and network configuration tool classes; in some embodiments, based on the target device type, the target device network configuration class is inherited from the preset network configuration tool class collection, which may include the following steps: based on the target device type, traversing and matching the device types of all associated data to obtain target associated data; wherein the device type of the target associated data is the same as the target device type; and the network configuration tool class of the target associated data is used as the target device network configuration class.

[0080] For example, in some specific implementations, it is assumed that there is a network configuration tool class collection, which contains the associated data of multiple devices. Each associated data consists of a device type and a corresponding network configuration tool class, for example:

[0081] Related data 1: device type = "Class 1 mattress", network configuration tool class = "SmartMattress1ConfigClass";

[0082] Related data 2: Device type = "Class II mattress", network configuration tool class = "SmartMattress2ConfigClass";

[0083] Related data 3: Device type = "Class 1 socket", network configuration tool class = "SmartPlug1ConfigClass";

[0084] (Associated data of other devices);

[0085] Now, the user wants to configure a new smart mattress. According to the previous process, the application has determined that the device type of the device to be configured is "Class I mattress". Next, the application will perform the following steps to inherit the target device configuration class:

[0086] Traversing matching device types: The application starts to traverse all the associated data in the network distribution tool class collection, checking whether the device type in each associated data matches "Class I mattress". In this process, the application will compare the device type of each associated data in turn until it finds the associated data that matches "Class I mattress".

[0087] Finally, the target association data is obtained: When the application finds the association data with the device type "a type of mattress", it will mark this data as the target association data. In this example, the target association data is "device type = 'a type of mattress', network configuration tool class = 'SmartMattress1ConfigClass'".

[0088] Inherit the target device network configuration class: The application uses the network configuration tool class "SmartMattress1ConfigClass" in the target association data as the target device network configuration class. This means that in the subsequent network configuration process, the application will use the methods and properties defined in "SmartMattress1ConfigClass" to complete the network configuration operation of the smart bulb.

[0089] In some embodiments, the method may further include the following steps: obtaining the network configuration function requirements and device types of all devices to be managed; wherein the network configuration function requirements are determined based on the brand model and / or communication protocol of the devices to be managed; pre-constructing corresponding network configuration tool classes based on the network configuration function requirements of different devices to be managed; associating and arranging the device type and network configuration tool class corresponding to each device to be managed to obtain a collection of network configuration tool classes.

[0090] For example, in some specific implementations, IoT devices of different brands usually use different communication protocols to achieve communication. When performing network configuration, the steps of network configuration are usually inconsistent, so an abstract class <Network Configuration Tool Class> is written to unify the network configuration process for all devices:

[0091] (1) All devices have a process of starting network configuration, so the abstract method <start network configuration> is defined.

[0092] (2) All devices need to inform the UI of the real-time progress of network configuration. Therefore, an abstract method <Network Configuration Progress Notification (N / M)> is defined. Since the network configuration process and steps of different devices may be different, dynamic steps are used when reporting the network configuration progress. M indicates the total number of steps required for the device to configure the network, and N indicates the step at which the device is currently configuring the network.

[0093] In some specific application scenarios, the entire network configuration logic can be based on the data exchange between the App and the communication device (such as a Bluetooth device). Taking a Bluetooth device as an example, it can be implemented as follows:

[0094] 1. First, you need to establish a connection with Bluetooth;

[0095] 2. After the Bluetooth connection is successful, you also need to use a set of specific string UUIDs to obtain two Bluetooth characteristic values ​​defined by the Bluetooth device manufacturer. <Notification characteristic value> is used to receive device data, and <Write characteristic value> is used to send data to the device. The UUID will be given in the specific network configuration class;

[0096] 3. After establishing communication with the device, the network configuration data (wifi account password, etc.) needs to be packaged into the format defined by the manufacturer and then sent to the Bluetooth device. The data replied by the Bluetooth device also needs to be parsed in the format defined by the manufacturer. Therefore, this involves parsing and packaging of data. Data parsing and packaging are also defined in the network configuration class.

[0097] It should be understood that different Bluetooth device manufacturers usually have different UUIDs and data formats. Specifically, according to the corresponding requirements of different device manufacturers, the <Network Configuration Tool Class> abstract class of each device can be pre-adapted and constructed. If new devices are added later, it is only necessary to expand the <Network Configuration Tool Class> subclass and implement specific functions.

[0098] S300, performing multi-step network configuration operations on the target device through the target device network configuration class, and notifying the network configuration progress of each step of the network configuration operation.

[0099] It should be noted that, in some embodiments, when the target device is of the first type, a multi-step network configuration operation is performed on the target device through the target device network configuration class, and a network configuration progress notification is made for each step of the network configuration operation, including the following steps: calling the start method corresponding to the target device network configuration class; in response to the start method, establishing a communication connection with the target device; calling the first network configuration progress notification method corresponding to the target device network configuration class to make a first type of notification to the target object; in response to the communication connection, sending the first network configuration information to the target device so that the target device performs a first network configuration connection; calling the first network configuration progress notification method to make a second type of notification to the target object; when the result of the first network configuration connection is successful, calling the first network configuration progress notification method to make a third type of notification to the target object to complete the network configuration of the target device.

[0100] For example, in some specific implementations, take <De Rucci Equipment Network Distribution Class> (the name is only used for example, not to limit specific brands / equipment types, and it is not an enumeration of specific brands / equipment types) as an example:

[0101] (1) First, inherit <Network Distribution Tool Class>;

[0102] (2) Implement the <Start Network Configuration> method:

[0103] 1. Start to establish a Bluetooth connection with the device and call <Network Configuration Progress Notification (1 / 3)> to inform the outside world that the current device network configuration is in step 1. The current device network configuration requires a total of 3 steps.

[0104] 2. After the connection is successfully established, the WIFI account and password are sent to the device. At the same time, <Network Configuration Progress Notification (2 / 3)> is called to inform the outside world that the current device network configuration is in step 2, and the current device network configuration requires a total of 3 steps.

[0105] 3. After waiting for the device to feedback that the WIFI connection is successful, call <Network Configuration Progress Notification (3 / 3)> to inform the outside world that the current device network configuration is in step 3, and the current device network configuration requires a total of 3 steps. At this point, the network configuration is completed.

[0106] It should be noted that, in some embodiments, when the target device is of the second type, a multi-step network configuration operation is performed on the target device through the target device network configuration class, and a network configuration progress notification is performed for each step of the network configuration operation, including the following steps: calling the start method corresponding to the target device network configuration class; in response to the start method, establishing a communication connection with the target device; calling the second network configuration progress notification method corresponding to the target device network configuration class to perform a fourth type of notification to the target object; in response to the communication connection, sending the second network configuration information and the third network configuration information to the target device, so that the target device performs a second network configuration connection and a third network configuration connection; calling the second network configuration progress notification method to perform a fifth type of notification to the target object; when the result of the second network configuration connection is successful, calling the second network configuration progress notification method to perform a sixth type of notification to the target object; when the result of the third network configuration connection is successful, calling the second network configuration progress notification method to perform a seventh type of notification to the target object to complete the network configuration of the target device.

[0107] For example, in some specific implementations, take <Xiaomi device network configuration class> (the name is only used for example, not to limit specific brands / device types, and it is not an enumeration of specific brands / device types) as an example:

[0108] (1) First, inherit <Network Distribution Tool Class>;

[0109] (2) Implement the <Start Network Configuration> method:

[0110] 1. Start to establish a Bluetooth connection with the device and call <Network Configuration Progress Notification (1 / 4)> to inform the outside world that the current device network configuration is in step 1. The current device network configuration requires a total of 4 steps.

[0111] 2. After the connection is successfully established, send the WIFI account password and MQTT account password to the device. At the same time, call <Network Configuration Progress Notification (2 / 4)> to inform the outside world that the current device network configuration is in step 2, and the current device network configuration requires a total of 4 steps.

[0112] 3. After waiting for the device to feedback that the WIFI connection is successful, call <Network Configuration Progress Notification (3 / 4)> at the same time to inform the outside world that the current device network configuration is in step 3, and the current device network configuration requires a total of 4 steps.

[0113] 4. After waiting for the device to feedback that the connection to MQTT is successful, call <Network Configuration Progress Notification (4 / 4)> to inform the outside world that the current device network configuration is in step 4, and the current device network configuration requires a total of 4 steps. At this point, the network configuration is completed.

[0114] Among them, in some embodiments, reference Figure 2The method may further include the following steps: S400, when the final result of the network configuration operation is failure, re-detecting the network configuration instruction of the target object; S500, when the network configuration instruction of the target object is detected, returning to execute the step of responding to the network configuration instruction of the target object, obtaining the target device type of the target device to be configured, until the network configuration of the target device is completed.

[0115] In order to explain the principle of the technical solution of the present invention in detail, the overall process of the present invention is described below in combination with some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and cannot be regarded as a limitation of the present invention.

[0116] First of all, it should be noted that many existing Internet of Things (IoT) devices come from different brands and manufacturers. These devices usually use different communication protocols and different communication processes for network configuration. This brings great inconvenience to users when adding and configuring new devices. Users need to switch between different applications and learn different configuration processes, which increases the complexity and time cost of operations. At the same time, for developers, it also increases the difficulty of development and maintenance.

[0117] In view of this, refer to Figure 3 The embodiment of the present invention provides a unified network configuration method for smart devices, and the process steps and principles can be implemented as follows:

[0118] 1. Usually, IoT devices of different brands use different communication protocols to achieve communication. When configuring the network, the steps of network configuration are usually inconsistent. Therefore, an abstract class <Network Configuration Tool Class> is written to unify the network configuration process for all devices:

[0119] (1) All devices have a process of starting network configuration, so the abstract method <start network configuration> is defined.

[0120] (2) All devices need to inform the UI of the real-time progress of network configuration. Therefore, an abstract method <Network Configuration Progress Notification (N / M)> is defined. Since the network configuration process and steps of different devices may be different, dynamic steps are used when reporting the network configuration progress. M indicates the total number of steps required for the device to configure the network, and N indicates the step at which the device is currently configuring the network.

[0121] It is understandable that the entire network configuration logic can be performed based on the data exchange between the App and the Bluetooth device. For example:

[0122] 1. First, you need to establish a connection with Bluetooth;

[0123] 2. After the Bluetooth connection is successful, you also need to use a set of specific string UUIDs to obtain two Bluetooth characteristic values ​​defined by the Bluetooth device manufacturer. <Notification characteristic value> is used to receive device data, and <Write characteristic value> is used to send data to the device. The UUID will be given in the specific network configuration class.

[0124] 3. After establishing communication with the device, the data (wifi account password, etc.) needs to be packaged into the format defined by the manufacturer and then sent to the Bluetooth device. The data replied by the Bluetooth device also needs to be parsed in the format defined by the manufacturer. Therefore, this involves parsing and packaging of data. Parsing and packaging of data are also defined in the network configuration class.

[0125] It should be noted that different Bluetooth device manufacturers usually have different UUIDs and data formats.

[0126] 2. Figure 3 Take <De Rucci Equipment Network Distribution Category> as an example:

[0127] (1) First, inherit <Network Distribution Tool Class>;

[0128] (2) Implement the <Start Network Configuration> method:

[0129] 1. Start to establish a Bluetooth connection with the device and call <Network Configuration Progress Notification (1 / 3)> to inform the outside world that the current device network configuration is in step 1. The current device network configuration requires a total of 3 steps.

[0130] 2. After the connection is successfully established, the WIFI account and password are sent to the device. At the same time, <Network Configuration Progress Notification (2 / 3)> is called to inform the outside world that the current device network configuration is in step 2, and the current device network configuration requires a total of 3 steps.

[0131] 3. After waiting for the device to feedback that the WIFI connection is successful, call <Network Configuration Progress Notification (3 / 3)> to inform the outside world that the current device network configuration is in step 3, and the current device network configuration requires a total of 3 steps. At this point, the network configuration is completed.

[0132] 3. Figure 3 Take <Xiaomi Device Network Configuration Category> as an example:

[0133] (1) First, inherit <Network Distribution Tool Class>;

[0134] (2) Implement the <Start Network Configuration> method:

[0135] 1. Start to establish a Bluetooth connection with the device and call <Network Configuration Progress Notification (1 / 4)> to inform the outside world that the current device network configuration is in step 1. The current device network configuration requires a total of 4 steps.

[0136] 2. After the connection is successfully established, send the WIFI account password and MQTT account password to the device. At the same time, call <Network Configuration Progress Notification (2 / 4)> to inform the outside world that the current device network configuration is in step 2, and the current device network configuration requires a total of 4 steps.

[0137] 3. After waiting for the device to feedback that the WIFI connection is successful, call <Network Configuration Progress Notification (3 / 4)> at the same time to inform the outside world that the current device network configuration is in step 3, and the current device network configuration requires a total of 4 steps.

[0138] 4. After waiting for the device to feedback that the connection to MQTT is successful, call <Network Configuration Progress Notification (4 / 4)> to inform the outside world that the current device network configuration is in step 4, and the current device network configuration requires a total of 4 steps. At this point, the network configuration is completed.

[0139] 4. Enter the network configuration UI interface to start network configuration;

[0140] 5. First, select the device that needs to be networked and get the device type;

[0141] 6. Obtain the corresponding <network configuration tool class> by device type;

[0142] 7. After obtaining the <network configuration tool class>, call the <start network configuration> method to start network configuration for the device;

[0143] 8. Simultaneously monitor the progress report of the <Network Configuration Progress Notification N / M> method, and display the real-time progress on the network configuration UI interface;

[0144] 9. Wait for network configuration to be completed;

[0145] 10. The above is the specific implementation of two network configuration tool classes, which completes the encapsulation of network configuration functions for devices of different brands, different communication protocols and different network configuration steps, and outputs the results in a unified manner. If new devices are added in the future, you only need to expand the <Network Configuration Tool Class> subclass and implement specific functions. When users configure the network for new devices, the operation steps and UI display do not need to be changed.

[0146] In summary, the present invention aims to provide a method that can provide a unified network configuration method for smart devices of different brands and different communication protocols. By using a policy pattern and a unified user interface design, users can configure various devices in a consistent manner through one application, which simplifies the user's operating process and improves the user experience. In addition, the method also provides a unified framework for developers, simplifying development and maintenance work. Based on the technical solution of the embodiment of the present invention, users can configure various devices in a consistent manner through one application, which simplifies the user's operating process and improves the user experience. In addition, the method also provides a unified framework for developers, simplifying development and maintenance work.

[0147] See also Figure 4 The embodiment of the present invention further provides a smart device unified network configuration device 900, which can implement the above-mentioned smart device unified network configuration method, and the device includes:

[0148] The first module 901 is used to obtain the target device type of the target device to be networked in response to the network configuration instruction of the target object;

[0149] The second module 902 is used to inherit the target device network configuration class from the preset network configuration tool class collection based on the target device type;

[0150] The third module 903 is used to perform multi-step network configuration operations on the target device through the target device network configuration class, and to notify the network configuration progress of each step of the network configuration operation.

[0151] In some embodiments, the apparatus may further include:

[0152] The fourth module is used to obtain the network configuration function requirements and device types of all devices to be managed;

[0153] The network distribution function requirements are determined based on the brand model and / or communication protocol of the equipment to be managed;

[0154] The fifth module is used to pre-build corresponding network configuration tool classes based on the network configuration function requirements of different devices to be managed;

[0155] The sixth module is used to associate and organize the device type and network configuration tool class corresponding to each device to be managed to obtain a collection of network configuration tool classes.

[0156] In some embodiments, the apparatus may further include:

[0157] The seventh module is used to re-detect the network configuration instruction of the target object when the final result of the network configuration operation is failure;

[0158] The eighth module is used to return to execute the first module when a network configuration instruction of the target object is detected until the network configuration of the target device is completed.

[0159] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0160] The embodiment of the present invention further provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned smart device unified network configuration method when executing the computer program. The electronic device can be any smart terminal including a tablet computer, a car computer, etc.

[0161] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0162] See also Figure 5 , Figure 5 The hardware structure of an electronic device 1000 of another embodiment is illustrated. The electronic device includes:

[0163] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention;

[0164] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the unified network configuration method for smart devices in the embodiment of the present invention;

[0165] Input / output interface 1003, used to implement information input and output;

[0166] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0167] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );

[0168] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .

[0169] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned smart device unified network configuration method is implemented.

[0170] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0171] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0172] The embodiment of the present invention provides a unified network configuration method for smart devices, a unified network configuration device for smart devices, an electronic device and a storage medium, which, by responding to the test authorization instruction of the target object, powers on the target mattress; the target mattress is provided with a communication module, and the communication module includes a first communication unit and a second communication unit; the first communication unit of the target mattress is scanned and processed, and when the result of the scanning process is successful, the network configuration information is transmitted to the first communication unit; the second communication unit is used to perform network configuration processing on the target mattress according to the network configuration information; a test report is generated based on the result of the network configuration processing; the test report includes a test result, and the test result is a network configuration success or a network configuration failure; when the test result is a network configuration failure, the test report also includes the failure reason. The embodiment of the present invention establishes communication with the mattress through relevant instruction data, and then sends the specified network configuration information to realize the automatic network configuration test of the mattress, and generates a test report based on the network configuration processing process to assist in reviewing the correctness and consistency of the mattress function. The embodiment of the present invention can efficiently realize the test of the mattress network configuration.

[0173] The embodiments described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. Those skilled in the art can appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.

[0174] Those skilled in the art will appreciate that the technical solutions shown in the figures do not limit the embodiments of the present invention and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0175] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0176] Those skilled in the art will appreciate that all or some of the steps, devices, and functional modules / units in the above disclosed methods may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0177] The terms "first", "second", "third", "fourth", etc. (if any) in the description of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0178] It should be understood that in the present invention, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can represent: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0179] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0181] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0182] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including multiple instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store programs.

[0183] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the embodiments of the present invention is not limited thereby. Any modification, equivalent substitution and improvement made by those skilled in the art without departing from the scope and essence of the embodiments of the present invention shall be within the scope of the rights of the embodiments of the present invention.

Claims

1. A method for unified network distribution of intelligent devices, characterized in that: The method comprises the following steps: In response to the network configuration instruction of the target object, obtaining the target device type of the target device to be configured; Based on the target device type, inherit the target device network configuration class from the preset network configuration tool class collection; The target device is subjected to a multi-step network configuration operation through the target device network configuration class, and a network configuration progress notification is provided for each step of the network configuration operation.

2. The method for unified network distribution of smart devices according to claim 1, characterized in that: The method further comprises the following steps: Obtain the network configuration function requirements and device types of all devices to be managed; Wherein, the network distribution function requirement is determined based on the brand model and / or communication protocol of the device to be managed; Pre-constructing the corresponding network configuration tool class based on the network configuration function requirements of different devices to be managed; The device type corresponding to each of the devices to be managed and the network configuration tool class are associated and sorted to obtain a collection of the network configuration tool classes.

3. The method for unified network distribution of smart devices according to claim 1, characterized in that: The network configuration instruction includes a preparation instruction and a selection instruction; the step of obtaining the device type of the target device to be configured in response to the network configuration instruction of the target object includes the following steps: In response to the preparation instruction, determining the target device to be networked; In response to the selection instruction, the device type of the target device is determined.

4. The method for unified network distribution of smart devices according to claim 1, characterized in that: The network configuration tool class collection includes association data of multiple devices, and the association data includes device type and network configuration tool class; the target device network configuration class is inherited from the preset network configuration tool class collection based on the target device type, including the following steps: Based on the target device type, traverse and match the device types of all the associated data to obtain target associated data; Wherein, the device type of the target associated data is the same as the target device type; The network configuration tool class of the target associated data is used as the target device network configuration class.

5. The method for unified network configuration of smart devices according to claim 1, characterized in that: When the target device is of the first type, performing a multi-step network configuration operation on the target device through the target device network configuration class and notifying the network configuration progress of each step of the network configuration operation includes the following steps: Call the start method corresponding to the network configuration class of the target device; In response to the start method, a communication connection is established with the target device; a first network configuration progress notification method corresponding to the network configuration class of the target device is called to perform a first type of notification to the target object; In response to the communication connection, the first network configuration information is sent to the target device so that the target device performs the first network configuration connection; the first network configuration progress notification method is called to perform the second type of notification to the target object; When the result of the first network configuration connection is successful, the first network configuration progress notification method is called to perform a third type of notification to the target object to complete the network configuration of the target device.

6. The method for unified network configuration of smart devices according to claim 1, characterized in that: When the target device is of the second type, performing a multi-step network configuration operation on the target device through the target device network configuration class and notifying the network configuration progress of each step of the network configuration operation includes the following steps: Call the start method corresponding to the network configuration class of the target device; In response to the start method, a communication connection is established with the target device; a second network configuration progress notification method corresponding to the network configuration class of the target device is called to perform a fourth type of notification to the target object; In response to the communication connection, the second network configuration information and the third network configuration information are sent to the target device, so that the target device performs the second network configuration connection and the third network configuration connection; the second network configuration progress notification method is called to perform the fifth type of notification to the target object; When the result of the second network configuration connection is successful, calling the second network configuration progress notification method to perform a sixth type of notification to the target object; When the result of the third network configuration connection is successful, the second network configuration progress notification method is called to perform the seventh type of notification to the target object to complete the network configuration of the target device.

7. The method for unified network distribution of smart devices according to any one of claims 1 to 6, characterized in that: The method further comprises the following steps: When the final result of the network configuration operation is failure, re-detecting the network configuration instruction of the target object; When the network configuration instruction of the target object is detected, the step of returning to execute the network configuration instruction in response to the target object and obtaining the target device type of the target device to be network configured is performed until the network configuration of the target device is completed.

8. A unified network distribution device for intelligent devices, characterized in that: The device comprises: The first module is used to obtain the target device type of the target device to be networked in response to the network configuration instruction of the target object; The second module is used to inherit the target device network configuration class from the preset network configuration tool class collection based on the target device type; The third module is used to perform multi-step network configuration operations on the target device through the target device network configuration class, and to notify the network configuration progress of each step of the network configuration operation.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.