Network distribution method and device of intelligent equipment, storage medium and electronic device
By detecting and turning on the hotspot function of the mobile terminal, the problem of smart home appliance distribution network failure caused by the user not turning on the position switch is solved, and the distribution network success rate and user experience are improved.
Patent Information
- Application Number
- CN202411265804.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-12-06
AI Technical Summary
In the prior art, when relies on Wi-Fi information to distribute smart home appliances, the user fails to turn on the precise position switch, resulting in the distribution failure, which fails to effectively solve this problem.
When receiving the binding request, check whether the position position of the mobile terminal is enabled. If it is not enabled, send a prompt message to enable the hotspot function, configure the hotspot parameter information, and obtain and issue configuration data to the smart device for distribution network.
By using personal hotspots enabled by mobile phones to configure and bind, the success rate of distribution network of smart home appliances is improved and the user experience is improved.
Smart Images

Figure CN119095139A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to a network configuration method, device, storage medium and electronic device for smart devices. Background Art
[0002] With the increasing popularity of smart home appliances, more and more companies are investing in this new business wave, and the competition is becoming increasingly fierce. The current situation is that companies are investing more energy in the development of new functions or technology grafting, but ignoring the optimization of the binding process, which hinders the better popularization of smart home appliances. As the most commonly used IoT carrier, mobile phones, in order to achieve remote control of smart home appliances, the first thing is to establish a binding relationship between mobile phones and smart home appliances. However, due to the increase in privacy and security awareness, many users are unwilling to turn on the precise location switch when using APP, which makes it impossible to complete the configuration and binding of smart home appliances.
[0003] Therefore, no effective solution has been proposed for the problem of relying on Wi-Fi information for network configuration of smart home appliances in related technologies. Summary of the invention
[0004] The embodiments of the present application provide a network configuration method, device, storage medium and electronic device for a smart device, so as to at least solve the problem of relying on Wi-Fi information for network configuration of smart home appliances in the related art.
[0005] According to an embodiment of the present application, a network configuration method for a smart device is provided, comprising: upon receiving a binding request, detecting whether the location positioning of a mobile terminal is turned on; if the location positioning is not turned on, sending a first prompt message to the current operation object, wherein the first prompt message is used to instruct the operation object to turn on the hotspot function of the mobile terminal and configure parameter information corresponding to the hotspot function; obtaining configuration data fed back by the operation object according to the first prompt message, wherein the configuration data at least includes: target parameter information of the configured hotspot function; sending the configuration data to the smart device, and instructing the smart device to perform network configuration based on the configuration data.
[0006] In an exemplary embodiment, after the configuration data is sent to the smart device and the smart device is instructed to perform network configuration based on the configuration data, the above method also includes: obtaining a network configuration result message sent back by the smart device; when the network configuration result message indicates that the smart device has successfully configured the network, updating the visual display interface of the target application in real time according to the network configuration result; when the network configuration result message indicates that the smart device has failed to configure the network, displaying an exception message on the visual interface of the target application, wherein the exception message is used for the current smart device to fail to configure the network and wait for the configuration data to be re-downloaded.
[0007] In an exemplary embodiment, after obtaining the network configuration result message sent back by the smart device, the above method also includes: switching the display content of the visualization display page to the binding progress page; calling the target software development kit associated with the binding progress page to provide a binding interface, and setting the binding interface as the configuration data sending interface.
[0008] In an exemplary embodiment, when a binding request is received, before detecting whether the location positioning of the mobile terminal is turned on, the above method also includes: when entering the binding process corresponding to the smart device for the first time according to the binding request, sending dynamic indication information of the binding process to the operation object that issued the binding request; obtaining the model information of the smart device added by the operation object based on the dynamic indication information; and entering the mobile hotspot configuration page corresponding to the smart device according to the model information.
[0009] In an exemplary embodiment, when a binding request is received, after detecting whether the location positioning of the mobile terminal is turned on, the above method also includes: when the location positioning is turned on, sending a second prompt message to the current operation object, wherein the second prompt message is used to instruct the operation object to synchronize the network configuration information of the mobile hotspot to which the current mobile terminal is connected; obtaining the target network configuration information fed back by the current operation object; using the target network configuration information to configure the smart device, and updating the binding progress of the visual display page that is in the binding progress page.
[0010] In an exemplary embodiment, after the configuration data is sent to the smart device and the smart device is instructed to perform network configuration based on the configuration data, the above method also includes: if the network configuration is successful, recording the configuration data, and binding the configuration data with the smart device to obtain the historical network configuration record of the smart device; synchronizing the historical network configuration record data to the cloud database of the target application for storage.
[0011] In an exemplary embodiment, after the configuration data is sent to the smart device and the smart device is instructed to perform network configuration based on the configuration data, the method further includes: in the event of a network configuration failure, determining the number of network configuration failures of the same smart device within a preset time period; in the event that the number of network configuration failures is greater than or equal to the preset number, identifying the smart device as an abnormally operating device; in the event that the number of network configuration failures is less than the preset number, identifying the smart device as a device to be reconfigured.
[0012] According to another embodiment of the embodiment of the present application, a network configuration device for a smart device is also provided, including: a detection module, used to detect whether the location positioning of the mobile terminal is turned on when a binding request is received; a first sending module, used to send a first prompt message to the current operation object when the location positioning is not turned on, wherein the first prompt message is used to instruct the operation object to turn on the hotspot function of the mobile terminal and configure parameter information corresponding to the hotspot function; a first acquisition module, used to obtain configuration data fed back by the operation object according to the first prompt message, wherein the configuration data at least includes: target parameter information that the hotspot function has been configured; an indication module, used to send the configuration data to the smart device and instruct the smart device to perform network configuration based on the configuration data.
[0013] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned network configuration method for smart devices when running.
[0014] According to another aspect of the embodiments of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the network configuration method of the smart device through the computer program.
[0015] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above-mentioned embodiments of the network configuration method for smart devices are implemented.
[0016] In an embodiment of the present application, when a binding request is received, it is detected whether the location positioning of the mobile terminal is turned on; when the location positioning is not turned on, a first prompt message is sent to the current operation object, wherein the first prompt message is used to instruct the operation object to turn on the hotspot function of the mobile terminal and configure the parameter information corresponding to the hotspot function; the configuration data fed back by the operation object according to the first prompt message is obtained, wherein the configuration data at least includes: the target parameter information of the configured hotspot function; the configuration data is sent to the smart device, and the smart device is instructed to configure the network based on the configuration data. The above technical solution solves the problem of relying on Wi-Fi information for network configuration of smart home appliances. Furthermore, by using the personal hotspot turned on by the mobile phone, the smart home appliances are configured and bound, the success rate of configuration binding is improved, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 It is a hardware environment diagram of a network configuration method for a smart device according to an embodiment of the present application;
[0020] Figure 2 is a flow chart of a network configuration method for a smart device according to an embodiment of the present application;
[0021] Figure 3 is a timing diagram of a method for optimizing a smart home appliance network distribution process according to an embodiment of the present application;
[0022] Figure 4 is a flow chart of a method for optimizing a smart home appliance network distribution process according to an embodiment of the present application;
[0023] Figure 5 is a structural block diagram of a network distribution device for a smart device according to an embodiment of the present application;
[0024] Figure 6 is a block diagram of a computer system structure of an electronic device according to an embodiment of the present application;
[0025] Figure 7 It is an electronic device for implementing a network configuration method for a smart device according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] According to one aspect of an embodiment of the present application, a network configuration method for a smart device is provided. The network configuration method for a smart device is widely used in smart home, smart home, smart home device ecosystem, smart residential (Intelligence House) ecosystem and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the network configuration method for the smart device can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0029] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0030] In this embodiment, a network configuration method for a smart device is provided, which can be applied to a mobile terminal. Figure 2 : is a flow chart of a network configuration method for a smart device according to an embodiment of the present application, the process comprising the following steps:
[0031] Step S202, upon receiving the binding request, detecting whether the location positioning of the mobile terminal is turned on;
[0032] Step S204: sending a first prompt message to the current operation object when the location positioning is not turned on, wherein the first prompt message is used to instruct the operation object to turn on the hotspot function of the mobile terminal and configure parameter information corresponding to the hotspot function;
[0033] Simply put, when the smart home appliance APP receives a binding request, it detects whether the location positioning of the mobile terminal is turned on. If it is found that the location positioning is not turned on, it sends the first prompt message to the current operation object. The prompt message content is: Please turn on the hotspot function of the mobile terminal and configure the hotspot name as "SmartHome" and the password as "123456". After the user follows the prompts, the smart home appliance and the mobile terminal are successfully bound, and the smart home appliance can be remotely controlled through the hotspot connection of the mobile terminal.
[0034] Step S206, obtaining the configuration data fed back by the operation object according to the first prompt message, wherein the configuration data at least includes: the target parameter information configured for the hotspot function; wherein the configuration data at least includes: the target parameter information configured for the hotspot function.
[0035] Step S208: Send the configuration data to the smart device, and instruct the smart device to perform network configuration based on the configuration data.
[0036] For example, if a user wants to remotely control a smart lamp, when using the smart home APP, the system will directly send the network configuration data to the smart lamp, instructing the smart lamp to perform network configuration operations based on the configuration data. The smart lamp successfully connects to the network provided by the mobile terminal according to the configuration information, and the user can remotely control the switch and brightness of the lamp through the mobile phone APP, realizing the convenience and comfort of the smart home. The whole process is simple and fast, which improves the user experience and configuration accuracy.
[0037] Through the above steps, when a binding request is received, it is detected whether the location positioning of the mobile terminal is turned on; when the location positioning is not turned on, a first prompt message is sent to the current operation object, wherein the first prompt message is used to instruct the operation object to turn on the hotspot function of the mobile terminal and configure the parameter information corresponding to the hotspot function; the configuration data fed back by the operation object according to the first prompt message is obtained, wherein the configuration data at least includes: the target parameter information of the configured hotspot function; the configuration data is sent to the smart device, and the smart device is instructed to configure the network based on the configuration data. The above technical solution solves the problem of relying on Wi-Fi information for network configuration of smart home appliances. Furthermore, by using the personal hotspot turned on by the mobile phone, the smart home appliances are configured and bound, the success rate of configuration binding is improved, and the user experience is improved.
[0038] In an exemplary embodiment, after the configuration data is sent to the smart device and the smart device is instructed to perform network configuration based on the configuration data, the above method also includes: obtaining a network configuration result message sent back by the smart device; when the network configuration result message indicates that the smart device has successfully configured the network, updating the visual display interface of the target application in real time according to the network configuration result; when the network configuration result message indicates that the smart device has failed to configure the network, displaying an exception message on the visual interface of the target application, wherein the exception message is used for the current smart device to fail to configure the network and wait for the configuration data to be re-downloaded.
[0039] Exemplarily, a user controls the smart air conditioning device at home through a mobile phone APP. When a user wants to add a new smart air conditioning device, he first needs to connect the air conditioning device to the network for network configuration. The user chooses to add a new device in the mobile phone APP and performs network configuration operations according to the prompts. When the smart air conditioning device is successfully connected to the network, it will send a network configuration result message to the mobile phone APP to indicate the success of the network configuration. In the visual display interface of the mobile phone APP, the newly added air conditioning device will be updated and displayed in real time, and a prompt message of successful network configuration will be displayed. If the network configuration fails, the smart air conditioning device will send a message of network configuration failure to the mobile phone APP. On the visual interface of the mobile phone APP, an abnormal message will be displayed, prompting the user that the current smart device network configuration has failed and the data needs to be re-downloaded. Through this embodiment, users can easily add new smart air conditioning devices, understand the network configuration status of the device in real time, ensure that the device is normally connected to the network, and thus realize remote control and management of smart air conditioning devices.
[0040] In an exemplary embodiment, after obtaining the network configuration result message sent back by the smart device, the above method also includes: switching the display content of the visualization display page to the binding progress page; calling the target software development kit associated with the binding progress page to provide a binding interface, and setting the binding interface as the configuration data sending interface.
[0041] For example, when a user uses a smart lighting device to perform network configuration operations, and the device sends back a network configuration result message, the system automatically switches the display content of the visual display page to the binding progress page. On this page, the user can see the network configuration progress of the device, and the system will call the binding interface provided by the target software development kit associated with the page to send the configuration data. In this way, the user can easily complete the network configuration and binding operation of the device without having to go through tedious setup steps. This improves the user experience and also ensures that the device is successfully connected to the user's personal hotspot.
[0042] In an exemplary embodiment, when a binding request is received, before detecting whether the location positioning of the mobile terminal is turned on, the above method also includes: when entering the binding process corresponding to the smart device for the first time according to the binding request, sending dynamic indication information of the binding process to the operation object that issued the binding request; obtaining the model information of the smart device added by the operation object based on the dynamic indication information; and entering the mobile hotspot configuration page corresponding to the smart device according to the model information.
[0043] For example, a smart air conditioner wants to be bound and configured through a mobile phone APP. When the user first enters the binding process, the APP sends the user dynamic instructions for the binding process, telling the user how to bind. After the user follows the instructions, the air conditioner is successfully added and the model information of the device is obtained. According to the device model information, the user directly enters the mobile hotspot configuration page corresponding to the smart air conditioner, quickly completes the configuration process, and realizes remote control of the smart air conditioner. The whole process is simple and clear, and the user experience is good.
[0044] In an exemplary embodiment, when a binding request is received, after detecting whether the location positioning of the mobile terminal is turned on, the above method also includes: when the location positioning is turned on, sending a second prompt message to the current operation object, wherein the second prompt message is used to instruct the operation object to synchronize the network configuration information of the mobile hotspot to which the current mobile terminal is connected; obtaining the target network configuration information fed back by the current operation object; using the target network configuration information to configure the smart device, and updating the binding progress of the visual display page that is in the binding progress page.
[0045] It is understandable that, assuming that the user initiates a binding request for the smart lighting device on the APP, the system detects that the user has turned on the location positioning function. The system sends a second prompt message to the user, prompting the user to synchronize the network configuration information of the mobile hotspot to which the current mobile terminal is connected. The user obtains the target network configuration information based on the prompt information and enters it into the APP. The system uses the target network configuration information to configure the smart lighting device, and updates the binding progress in the visual display page in real time, so that the user can understand the progress of the binding at any time. Finally, the user successfully binds the smart lighting device to the mobile terminal, making the operation more convenient and efficient.
[0046] In an exemplary embodiment, after the configuration data is sent to the smart device and the smart device is instructed to perform network configuration based on the configuration data, the above method also includes: if the network configuration is successful, recording the configuration data, and binding the configuration data with the smart device to obtain the historical network configuration record of the smart device; synchronizing the historical network configuration record data to the cloud database of the target application for storage.
[0047] For example, to configure a smart lamp, first send the configuration data (personal hotspot name and password) to the smart lamp, so that it can automatically connect to the wireless network. After the smart lamp is successfully connected to the network, the configuration data is recorded and bound to the smart lamp to obtain the historical network configuration record of the smart lamp. Then the historical network configuration record data is synchronized to the cloud database of the target application for storage, so that users can view and manage the network configuration history of the smart lamp at any time. Data backup and remote access can be achieved to ensure data security and reliability.
[0048] In an exemplary embodiment, after the configuration data is sent to the smart device and the smart device is instructed to perform network configuration based on the configuration data, the method further includes: in the event of a network configuration failure, determining the number of network configuration failures of the same smart device within a preset time period; in the event that the number of network configuration failures is greater than or equal to the preset number, identifying the smart device as an abnormally operating device; in the event that the number of network configuration failures is less than the preset number, identifying the smart device as a device to be reconfigured.
[0049] It is understandable that in the above embodiment, if the preset number of network configuration failures is 3, if the smart device fails 2 out of 3 network configuration attempts, the system will identify it as a device to be reconfigured; if the smart device fails 4 out of 3 network configuration attempts, the system will identify it as an abnormally operating device. In this way, the smart device that fails to configure the network can be identified and processed in time to ensure its normal operation.
[0050] In order to better understand the process of the network configuration method of the above-mentioned smart device, the network configuration method process of the above-mentioned smart device is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.
[0051] In the related art, remote control of smart home appliances first requires the mobile phone to establish a binding relationship with the smart home appliances. When users configure smart home appliances, the mobile phone may not turn on the precise location switch, which will cause the Smart Home APP to be unable to obtain the Wi-Fi information currently connected to the mobile phone, and then make it impossible to configure and bind the smart home appliances, and ultimately make it impossible for users to remotely control the smart home appliances.
[0052] In order to solve the above problems, an optional embodiment of the present application proposes a method for optimizing the network configuration process of smart home appliances. Specifically, after entering the Wi-Fi settings page, the user first checks whether the precise location switch of the mobile phone is turned on. If it is not turned on, the user is prompted to turn on the personal hotspot and enter the hotspot name and password. Click Next to enter the binding progress page, call the uSDK interface to send the hotspot information to uSDK, and then uSDK sends it to the device for network configuration. After the device completes the network configuration, it returns the result to uSDK, uSDK completes the binding and returns the result to the binding module, and finally the binding module returns the result to the Smart Home APP to complete the UI update.
[0053] Optionally, the uSDK interface is a business library used to support the binding module to perform device configuration and binding. It provides a series of APIs to implement the device configuration and binding process, including device search, device information acquisition, device authentication, device binding and other functions. By calling the uSDK interface, the binding module can easily interact with the device to implement device configuration and binding operations. The uSDK interface is usually provided by device manufacturers as a software development tool for the device. Developers can use the uSDK interface for development according to specific device types and protocol specifications to quickly implement device configuration and binding functions. At the same time, the uSDK interface also provides some common interfaces and tools to simplify the development process and improve development efficiency.
[0054] Optionally, the binding module is a function library in the Smart Home APP for implementing device binding services. Its main function is to implement the binding relationship between smart devices and user accounts, so that users can control and manage the devices through the APP.
[0055] Optional, Figure 3 It is a timing diagram of a method for optimizing a smart home appliance network distribution process according to an embodiment of the present application; specifically, it includes the following steps:
[0056] Step 1: The APP enters the binding process, and the user enters the Wi-Fi settings page by self-discovery, scanning the code, or manually obtaining the model.
[0057] Step 2: Enter the Wi-Fi settings page to determine whether the precise location switch of the mobile phone is turned on. If the precise location switch of the mobile phone is not turned on, it will prompt you to turn on the mobile phone personal hotspot and prompt the user to enter the name and password of the hotspot.
[0058] Step 3: Enter the binding progress page, call the binding interface provided by uSDK, and send the hotspot information to uSDK. After receiving the binding request, uSDK sends the hotspot information to the device. After the device receives the hotspot information, the network configuration is completed.
[0059] Step 4: Return the network configuration result to uSDK. After receiving the network configuration result, uSDK completes the binding.
[0060] Step 5: Return the binding result to the binding module.
[0061] Step 6: After receiving the binding result, the binding module returns the result to the Zhijia APP, and the Zhijia APP completes the UI update.
[0062] Optional, Figure 4 It is a flow chart of a method for optimizing the network distribution process of smart home appliances according to an embodiment of the present application, which specifically includes two processes: Optionally, one process is to start the APP to enter the Wi-Fi settings page; then, determine whether the precise location switch of the mobile phone is turned on. If the precise location switch of the mobile phone is not turned on, it will prompt to turn on the personal hotspot of the mobile phone, and prompt the user to enter the name and password of the hotspot. Finally, enter the binding progress page to complete the binding. Another process is to start the APP to enter the Wi-Fi settings page; then, determine whether the precise location switch of the mobile phone is turned on. If the precise location switch of the mobile phone is turned on, directly enter the name and password of the Wi-Fi to which the mobile phone is connected. Finally, enter the binding progress page to complete the binding.
[0063] It should be noted that when determining whether the precise location switch of the mobile phone is turned on, it is necessary to consider the differences between different mobile phone brands and system versions to ensure that the location setting status of the mobile phone can be accurately identified. If the precise location switch of the mobile phone is turned on, it is necessary to ensure that the user enters the Wi-Fi name and password correctly to avoid connection failure. When entering the binding progress page to complete the binding, clear feedback information needs to be provided to let the user know whether the binding is successful and provide further operation instructions.
[0064] Through the above solution, after entering the Wi-Fi settings page, the user first checks whether the precise location switch of the mobile phone is turned on. If not, the user is prompted to turn on the personal hotspot and enter the hotspot name and password. Click Next to enter the binding progress page, call the uSDK interface to send the hotspot information to uSDK, and then uSDK sends it to the device for network configuration. The automated network configuration process is realized, which simplifies the user operation steps and improves the user experience. After the device completes the network configuration, it returns the result to uSDK, uSDK completes the binding and returns the result to the binding module, and finally the binding module returns the result to the Smart Home APP to complete the UI update. Real-time result feedback is achieved, allowing users to understand the network configuration status in a timely manner, improving users' trust and satisfaction with smart devices.
[0065] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0066] Figure 5 is a structural block diagram of a network distribution device for a smart device according to an embodiment of the present application; Figure 5 As shown, including:
[0067] A detection module 52, configured to detect whether the location positioning of the mobile terminal is turned on when receiving a binding request;
[0068] A first sending module 54 is used to send a first prompt message to the current operation object when the position positioning is not turned on, wherein the first prompt message is used to instruct the operation object to turn on the hotspot function of the mobile terminal and configure parameter information corresponding to the hotspot function;
[0069] A first acquisition module 56 is used to acquire configuration data fed back by the operation object according to the first prompt message, wherein the configuration data at least includes: target parameter information configured for the hotspot function;
[0070] The instruction module 58 is used to send the configuration data to the smart device and instruct the smart device to perform network configuration based on the configuration data.
[0071] Through the above-mentioned device, when a binding request is received, it is detected whether the location positioning of the mobile terminal is turned on; when the location positioning is not turned on, a first prompt message is sent to the current operation object, wherein the first prompt message is used to instruct the operation object to turn on the hotspot function of the mobile terminal and configure the parameter information corresponding to the hotspot function; the configuration data fed back by the operation object according to the first prompt message is obtained, wherein the configuration data at least includes: the target parameter information of the configured hotspot function; the configuration data is sent to the smart device, and the smart device is instructed to configure the network based on the configuration data. The above-mentioned technical solution solves the problem of relying on Wi-Fi information for network configuration of smart home appliances. Furthermore, by using the personal hotspot turned on by the mobile phone, the smart home appliances are configured and bound, the success rate of configuration binding is improved, and the user experience is improved.
[0072] In an exemplary embodiment, the above-mentioned device also includes: a second acquisition module, which is used to send the configuration data to the smart device, and instruct the smart device to perform network configuration based on the configuration data, and then obtain the network configuration result message sent back by the smart device; when the network configuration result message indicates that the smart device has successfully configured the network, the visual display interface of the target application is updated in real time according to the network configuration result; when the network configuration result message indicates that the smart device has failed to configure the network, an exception message is displayed on the visual interface of the target application, wherein the exception message is used for the current smart device to fail to configure the network and wait for the configuration data to be re-downloaded.
[0073] In an exemplary embodiment, the above-mentioned second acquisition module also includes: a calling unit, which is used to switch the display content of the visual display page to the binding progress page after obtaining the network configuration result message sent back by the smart device; calling the target software development kit associated with the binding progress page to provide a binding interface, and setting the binding interface as the configuration data sending interface.
[0074] In an exemplary embodiment, the above-mentioned device also includes: a second sending module, which is used to, when receiving a binding request, detect whether the location positioning of the mobile terminal is turned on before entering the binding process corresponding to the smart device for the first time according to the binding request, send dynamic indication information of the binding process to the operation object that issued the binding request; obtain the model information of the smart device added by the operation object based on the dynamic indication information; and enter the mobile hotspot configuration page corresponding to the smart device according to the model information.
[0075] In an exemplary embodiment, the above-mentioned device also includes: a third sending module, which is used to detect whether the location positioning of the mobile terminal is turned on after receiving a binding request, and if the location positioning is turned on, send a second prompt message to the current operation object, wherein the second prompt message is used to instruct the operation object to synchronize the network configuration information of the mobile hotspot connected to the current mobile terminal; obtain the target network configuration information fed back by the current operation object; use the target network configuration information to configure the smart device, and update the binding progress of the visual display page in the binding progress page.
[0076] In an exemplary embodiment, the above-mentioned device also includes: a recording module, which is used to send configuration data to the smart device and instruct the smart device to perform network configuration based on the configuration data. If the network configuration is successful, the configuration data is recorded and bound to the smart device to obtain a historical network configuration record of the smart device; the historical network configuration record data is synchronized to the cloud database of the target application for storage.
[0077] In an exemplary embodiment, the above-mentioned device also includes: a determination module, which is used to send configuration data to the smart device and instruct the smart device to perform network configuration based on the configuration data. In the event of network configuration failure, the module determines the number of network configuration failures of the same smart device within a preset time period; if the number of network configuration failures is greater than or equal to the preset number, the smart device is identified as an abnormally operating device; if the number of network configuration failures is less than the preset number, the smart device is identified as a device to be reconfigured.
[0078] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0079] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0080] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.
[0081] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0082] S1, upon receiving a binding request, detecting whether the location positioning of the mobile terminal is turned on;
[0083] S2, when the position positioning is not turned on, sending a first prompt message to the current operation object, wherein the first prompt message is used to instruct the operation object to turn on the hotspot function of the mobile terminal and configure parameter information corresponding to the hotspot function;
[0084] S3, obtaining configuration data fed back by the operation object according to the first prompt message, wherein the configuration data at least includes: target parameter information configured for the hotspot function;
[0085] S4: Send the configuration data to the smart device, and instruct the smart device to perform network configuration based on the configuration data.
[0086] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0087] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0088] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0089] S1, upon receiving a binding request, detecting whether the location positioning of the mobile terminal is turned on;
[0090] S2, when the position positioning is not turned on, sending a first prompt message to the current operation object, wherein the first prompt message is used to instruct the operation object to turn on the hotspot function of the mobile terminal and configure parameter information corresponding to the hotspot function;
[0091] S3, obtaining configuration data fed back by the operation object according to the first prompt message, wherein the configuration data at least includes: target parameter information configured for the hotspot function;
[0092] S4: Send the configuration data to the smart device, and instruct the smart device to perform network configuration based on the configuration data.
[0093] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0094] Figure 6 The computer system structure block diagram of the electronic device used to implement the embodiment of the present application is schematically shown. It should be noted that: Figure 6 The computer system 600 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application. Figure 6As shown, the computer system 500 includes a central processing unit 601 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 602 (ROM) or the program loaded from the storage part 608 to the random access memory 503 (RAM). Various programs and data required for system operation are also stored in the random access memory 603. The central processing unit 601, the read-only memory 602 and the random access memory 603 are connected to each other through a bus 604. The input / output interface 605 (Input / Output interface, i.e., I / O interface) is also connected to the bus 604.
[0095] The following components are connected to the input / output interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 606 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a local area network card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read therefrom is installed into the storage section 608 as needed.
[0096] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processor 601, various functions defined in the system of the present application are executed.
[0097] According to another aspect of the embodiment of the present application, an electronic device for implementing the network distribution of the above-mentioned smart device is also provided. Figure 7 As shown, the electronic device includes a memory 702 and a processor 704. The memory 702 stores a computer program, and the processor 704 is configured to execute the steps in any of the above method embodiments through the computer program.
[0098] Optionally, in this embodiment, the electronic device may be located in at least one of a plurality of network devices of a computer network. A person skilled in the art may understand that Figure 7 The structure shown is for illustration only, and the electronic device may also be a device including the above-mentioned flash memory. Figure 7 The structure of the electronic device is not limited. Figure 7 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 7 Different configurations are shown.
[0099] Among them, the memory 702 can be used to store software programs and modules, such as the program instructions / modules corresponding to the network configuration and device of the smart device in the embodiment of the present application. The processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, that is, realizing the network configuration of the above-mentioned smart device. The memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 702 may further include a memory remotely arranged relative to the processor 704, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 702 can be specifically, but not limited to, used for information such as logs containing modeling data. As an example, such as Figure 7 As shown, the memory 702 may include but is not limited to the modules in the network distribution device of the smart device. In addition, it may also include but is not limited to other module units in the network distribution device of the smart device, which will not be repeated in this example.
[0100] Optionally, the transmission device 706 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 706 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 706 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0101] In addition, the electronic device further includes: a display 707; and a connection bus 710, which is used to connect various module components in the electronic device.
[0102] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0103] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0104] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.
[0105] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0106] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0107] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A network configuration method for smart devices, characterized in that: include: Upon receiving the binding request, detecting whether the location positioning of the mobile terminal is turned on; In the case where the position positioning is not turned on, sending a first prompt message to the current operation object, wherein the first prompt message is used to instruct the operation object to turn on the hotspot function of the mobile terminal and configure parameter information corresponding to the hotspot function; Acquire configuration data fed back by the operation object according to the first prompt message, wherein the configuration data at least includes: target parameter information configured for the hotspot function; The configuration data is sent to the smart device, and the smart device is instructed to perform network configuration based on the configuration data.
2. The network configuration method for smart devices according to claim 1, characterized in that: After sending the configuration data to the smart device and instructing the smart device to perform network configuration based on the configuration data, the method further includes: Obtain the network configuration result message sent back by the smart device; When the network configuration result message indicates that the network configuration of the smart device is successful, the visual display interface of the target application is updated in real time according to the network configuration result; When the network configuration result message indicates that the network configuration of the smart device has failed, an exception message is displayed on the visual interface of the target application, wherein the exception message is used for the current smart device network configuration failure and the configuration data needs to be re-downloaded.
3. The network configuration method for smart devices according to claim 2, characterized in that: After obtaining the network configuration result message returned by the smart device, the method further includes: Switching the display content of the visual display page to the binding progress page; The target software development kit associated with the binding progress page is called to provide a binding interface, and the binding interface is set as a sending interface for the configuration data.
4. The network configuration method for smart devices according to claim 1, characterized in that: In the case of receiving the binding request, before detecting whether the location positioning of the mobile terminal is turned on, the method further includes: In the case of entering the binding process corresponding to the smart device for the first time according to the binding request, sending dynamic indication information of the binding process to the operation object that issued the binding request; Acquire the model information of the smart device added by the operation object based on the dynamic indication information; Enter the mobile hotspot configuration page corresponding to the smart device according to the model information.
5. The network configuration method for smart devices according to claim 1, characterized in that: In the case of receiving the binding request, after detecting whether the location positioning of the mobile terminal is turned on, the method further includes: When the location positioning is turned on, sending a second prompt message to the current operation object, wherein the second prompt message is used to instruct the operation object to synchronize the network configuration information of the mobile hotspot to which the current mobile terminal is connected; Obtaining target network configuration information fed back by the current operation object; The target network configuration information is used to configure the smart device, and the binding progress of the binding progress page on the visualization display page is updated.
6. The network configuration method for smart devices according to claim 1, characterized in that: After sending the configuration data to the smart device and instructing the smart device to perform network configuration based on the configuration data, the method further includes: If the network configuration is successful, the configuration data is recorded, and the configuration data is bound to the smart device to obtain a historical network configuration record of the smart device; The historical distribution network record data is synchronized to the cloud database of the target application for storage.
7. The network configuration method for smart devices according to claim 1, characterized in that: After sending the configuration data to the smart device and instructing the smart device to perform network configuration based on the configuration data, the method further includes: In case of network configuration failure, determine the number of network configuration failures for the same smart device within a preset time period; When the number of network configuration failures is greater than or equal to a preset number, marking the smart device as an abnormally operating device; When the number of network configuration failures is less than a preset number, the smart device is identified as a device to be reconfigured.
8. A network distribution device for smart devices, characterized in that: include: A detection module, used to detect whether the location positioning of the mobile terminal is turned on when receiving a binding request; A first sending module, configured to send a first prompt message to a current operation object when the position positioning is not turned on, wherein the first prompt message is used to instruct the operation object to turn on a hotspot function of the mobile terminal and configure parameter information corresponding to the hotspot function; The first acquisition module is used to obtain the configuration data fed back by the operation object according to the first prompt message, wherein the configuration data at least includes: the target parameter information of the configured hotspot function; the instruction module is used to send the configuration data to the smart device and instruct the smart device to perform network configuration based on the configuration data.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
