Equipment network distribution method and device, electronic equipment and readable medium
Through mini programs, receiving natural language instructions and generating distribution solutions, the problem of cumbersome distribution process of smart home equipment is solved, fast and convenient network configuration is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202411812836.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-12-10
AI Technical Summary
The distribution process of smart home devices is relatively cumbersome and relies on dedicated applications and preset network configuration processes.
Receive users' natural language instructions through mini programs, obtain network status and device status, generate network distribution plans, and connect the devices to the network.
It enables users to quickly and conveniently complete the network configuration of smart home devices through small programs, without the need to install additional applications or perform complex network configuration, improving the convenience of network configuration.
Smart Images

Figure CN119835102A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a device network configuration method, a device network configuration apparatus, an electronic device and a computer-readable medium. Background Art
[0002] In the prior art, the network configuration of smart home devices usually relies on dedicated applications and preset network configuration processes. Generally speaking, users need to download a variety of different applications and gradually input network configuration-related information according to the instructions of the applications, making the network configuration process of smart home devices more complicated. Summary of the invention
[0003] The embodiments of the present invention provide a device network configuration method, apparatus, electronic device and computer-readable storage medium to solve the problem that the network configuration process of smart home devices is relatively complicated.
[0004] An embodiment of the present invention discloses a device network configuration method, the method comprising:
[0005] Receive natural language instructions from users through the mini program;
[0006] If the natural language instruction is used to instruct network configuration for a device, obtaining the network status and the device status of the device;
[0007] Generate a network configuration plan for the device based on the device status, the network status, and the natural language instruction;
[0008] Use the network distribution solution of the device to connect the device to the network.
[0009] Optionally, the method further comprises:
[0010] Using a preset language model to identify the intent of the natural language instruction;
[0011] If the intention of the natural language instruction is a network configuration intention, it is determined that the natural language instruction is used to indicate a preset device network configuration.
[0012] Optionally, the step of obtaining the network status and the device status of the device includes:
[0013] Using a preset language model, extracting device information from the natural language instruction;
[0014] Obtain the device status of the device corresponding to the device information.
[0015] Optionally, the step of generating a network configuration solution for the device based on the device state, the network state and the natural language instruction includes:
[0016] Using a preset language model, extracting the user's network configuration preference from the natural language instruction;
[0017] Based on the device status, the network status, the user network configuration preference, and the network status, a method for the device to access the network is determined as a network configuration solution for the device.
[0018] Optionally, the method further comprises:
[0019] If the device cannot access the network using the method in which the device accesses the network, based on the network status, the network frequency band is changed or the method in which the device accesses the network is changed to generate a new network configuration plan for the device.
[0020] Optionally, the step of adopting the network distribution solution of the device to connect the device to the network includes:
[0021] Based on the network configuration scheme of the device, a request for obtaining network configuration information is sent to the user;
[0022] Based on the network connection information fed back by the user in response to the network information acquisition request and the network configuration solution of the device, the device is connected to the network.
[0023] Optionally, the method further comprises:
[0024] Receiving a communication message sent by a first device using a first network protocol;
[0025] Based on a preset network conversion protocol, the communication message is sent to the second device using a second network protocol.
[0026] Optionally, the method further comprises:
[0027] Monitor the network status and obtain network monitoring data;
[0028] Based on the network monitoring data, network access parameters of devices that have accessed the network are adjusted.
[0029] Optionally, the method further comprises:
[0030] Monitor the operation of devices connected to the network and generate device monitoring data;
[0031] Based on the device monitoring data, device monitoring feedback information in natural language form is generated and fed back to the user.
[0032] The embodiment of the present invention further provides a device for network distribution, the device comprising:
[0033] An instruction receiving module, used to receive natural language instructions issued by the user through the mini program;
[0034] A status acquisition module, used for acquiring a network status and a device status of the device if the natural language instruction is used to indicate that the device is to be networked;
[0035] A network configuration scheme generating module, configured to generate a network configuration scheme for the device based on the device status, the network status and the natural language instruction;
[0036] The network access module is used to connect the device to the network by adopting the network distribution solution of the device.
[0037] Optionally, the device further comprises:
[0038] An intention recognition module, used to recognize the intention of the natural language instruction using a preset language model;
[0039] The intentional network configuration module is used to determine that the natural language instruction is used to indicate a preset device network configuration if the intention of the natural language instruction is a network configuration intention.
[0040] Optionally, the status acquisition module includes:
[0041] A device information extraction submodule, used to extract device information from the natural language instruction using a preset language model;
[0042] The device status acquisition submodule is used to acquire the device status of the device corresponding to the device information.
[0043] Optionally, the network distribution solution generating module includes:
[0044] A network configuration preference extraction submodule, used to extract the user network configuration preference from the natural language instruction using a preset language model;
[0045] The network access mode determination submodule is used to determine the mode in which the device accesses the network based on the device state, the network state, the user network configuration preference, and the network state, as a network configuration solution for the device.
[0046] Optionally, the device further comprises:
[0047] The network configuration plan update module is used to generate a new network configuration plan for the device by changing the network frequency band or changing the way the device accesses the network based on the network status if the device cannot access the network in the way the device accesses the network.
[0048] Optionally, the network access module includes:
[0049] A network configuration request issuing submodule, used to issue a network configuration information acquisition request to a user based on the network configuration solution of the device;
[0050] The device network access submodule is used to connect the device to the network based on the network connection information fed back by the user in response to the network information acquisition request and the network configuration solution of the device.
[0051] Optionally, the device further comprises:
[0052] A communication message receiving module, used to receive a communication message sent by a first device using a first network protocol;
[0053] The communication message forwarding module is used to send the communication message to the second device using the second network protocol based on a preset network conversion protocol.
[0054] Optionally, the device further comprises:
[0055] A network monitoring data acquisition module is used to monitor the network status and obtain network monitoring data;
[0056] The access parameter adjustment module is used to adjust the network access parameters of the device that has accessed the network based on the network monitoring data.
[0057] Optionally, the device further comprises:
[0058] The device monitoring data acquisition module is used to monitor the operation of the devices connected to the network and generate device monitoring data;
[0059] The information feedback module is used to generate device monitoring feedback information in natural language form based on the device monitoring data and provide feedback to the user.
[0060] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0061] The memory is used to store computer programs;
[0062] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0063] The embodiment of the present invention further discloses one or more computer-readable media on which instructions are stored. When executed by one or more processors, the processors are enabled to execute the method described in the embodiment of the present invention.
[0064] The embodiments of the present invention include the following advantages:
[0065] The device network configuration method provided by the embodiment of the present invention receives a natural language instruction issued by a user through a small program; if the natural language instruction is used to indicate device network configuration, obtain the network status and the device status of the device; based on the device status, the network status and the natural language instruction, generate a network configuration plan for the device; and use the network configuration plan of the device to connect the device to the network. As a result, users can issue natural language instructions through the small program, which can quickly and conveniently complete the network configuration of smart home devices. There is no need to install additional applications or perform complex network configuration, which can effectively improve the convenience of network configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 is a flowchart of a method for configuring a network for a device provided in an embodiment of the present invention;
[0067] Figure 2 is a flowchart of a method for configuring a network for a device provided in an embodiment of the present invention;
[0068] Figure 3 It is a flow chart of a device network configuration method provided in an embodiment of the present invention;
[0069] Figure 4 It is a structural block diagram of a device network distribution device provided in an embodiment of the present invention;
[0070] Figure 5 is a block diagram of an electronic device provided in an embodiment of the present invention;
[0071] Figure 6 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0072] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0073] Reference Figure 1 , shows a flow chart of the steps of a device network configuration method provided in an embodiment of the present invention, which may specifically include the following steps:
[0074] Step 101, receiving a natural language instruction issued by a user through a mini program;
[0075] In an embodiment of the present invention, a small program for configuring a network may be provided.
[0076] Among them, mini programs are applications that can be used without downloading and installing. Users can quickly open the application by scanning the QR code, searching or sharing the link. Mini programs can usually run on a preset platform. Generally speaking, the platform can provide users with applications that can be used for functions such as chatting and payment. The application can contain the necessary components to run the mini program, so that users can run the mini program without downloading and installing additional applications.
[0077] In this way, users can easily enter the network configuration related interface by opening the mini program.
[0078] In order to further reduce the complexity of network configuration for users, the applet can receive natural language instructions issued by users. Natural language instructions can refer to instructions issued by users to the system in natural language (such as Chinese, English, etc.). In this way, users can issue requests to configure the network without going through cumbersome operations.
[0079] Step 102: if the natural language instruction is used to indicate network configuration for a device, obtain the network status and the device status of the device;
[0080] After receiving the natural language instruction, the natural language instruction can be parsed to identify the user's current intention. When it is determined that the user's intention is to configure the network for the device, the network that can be used in the current home environment can be obtained, and its network status can be further analyzed and determined. At the same time, the device that currently needs to be configured can be obtained, and the device status of the current device can be determined to determine whether the current device supports automatic network configuration.
[0081] In the specific implementation, select a suitable wireless communication protocol, such as Wi-Fi, Bluetooth, Zigbee, etc., to scan nearby smart devices. Different protocols are suitable for different types of devices. For example, for WiFi, it can be suitable for high-speed data transmission and Internet-connected devices, such as smart TVs, smart speakers, smart cameras, etc. For Bluetooth, it can be suitable for short-distance data transmission and low-power devices, such as smart bulbs, etc. For Zigbee, it can be suitable for low-power, low-data-rate devices, such as smart sensors, smart switches, smart sockets, etc.
[0082] In the process of scanning nearby smart devices through wireless communication protocols, the device can send out broadcast information, so that the devices that can be currently discovered in the network can be identified.
[0083] In the broadcast information of the device, characteristics such as the device type, brand, and platform may be obtained as the device status of the device, so that it may be determined whether the device supports automatic configuration of the network according to the device status of the device.
[0084] At the same time, in the process of searching for devices, you can also detect the network status of different networks, confirm the network's signal strength, frequency band congestion, network load and other information, so as to better determine the device's network configuration plan in the future.
[0085] Step 103, generating a network configuration solution for the device based on the device status, the network status and the natural language instruction;
[0086] In the embodiment of the present invention, a network configuration solution suitable for the current device can be generated based on the device status, network status, and natural language instructions.
[0087] Specifically, when issuing a natural language instruction, the user can also indicate which network the device needs to access. Based on the device status, it can be analyzed whether the current device supports accessing the network using this network access method. If the current device supports accessing the network using the network access method specified by the user through natural language instructions, and it is determined based on the network status that the current network supports the addition of new devices, the network access method specified by the natural language instruction can be used as a network configuration solution.
[0088] Optionally, the same network can support different communication frequency bands, but some frequency bands may be relatively crowded, while some frequency bands may be relatively idle. Based on the network status, idle communication frequency bands can be selected to configure the network for the device, which can improve the success rate of network configuration and further improve the network communication flow of subsequent devices.
[0089] Step 104: Use the network distribution solution of the device to connect the device to the network.
[0090] Afterwards, the determined network configuration plan can be adopted to add the device to the network according to the network access method specified by the network configuration plan. In this way, users can issue natural language commands through the applet to quickly and conveniently complete the network configuration of smart home devices.
[0091] The device network configuration method provided by the embodiment of the present invention receives a natural language instruction issued by a user through a small program; if the natural language instruction is used to indicate device network configuration, obtain the network status and the device status of the device; based on the device status, the network status and the natural language instruction, generate a network configuration plan for the device; and use the network configuration plan of the device to connect the device to the network. As a result, users can issue natural language instructions through the small program, which can quickly and conveniently complete the network configuration of smart home devices. There is no need to install additional applications or perform complex network configuration, which can effectively improve the convenience of network configuration.
[0092] Reference Figure 2 , shows a flow chart of the steps of a device network configuration method provided in an embodiment of the present invention, which may specifically include the following steps:
[0093] Step 201, receiving a natural language instruction issued by a user through a mini program;
[0094] In an embodiment of the present invention, a small program for configuring a network may be provided.
[0095] Among them, mini programs are applications that can be used without downloading and installing. Users can quickly open the application by scanning the QR code, searching or sharing the link. Mini programs can usually run on a preset platform. Generally speaking, the platform can provide users with applications that can be used for functions such as chatting and payment. The application can contain the necessary components to run the mini program, so that users can run the mini program without downloading and installing additional applications.
[0096] In this way, users can easily enter the interface related to network configuration by opening the mini program.
[0097] In order to further reduce the complexity of network configuration for users, the applet can receive natural language instructions issued by users. Natural language instructions can refer to instructions issued by users to the system in natural language (such as Chinese, English, etc.). In this way, users can issue requests to configure the network without going through cumbersome operations.
[0098] Step 202, using a preset language model to identify the intent of the natural language instruction;
[0099] In an embodiment of the present invention, a language model may be preset, and the language model may be used to identify the intent of a natural language instruction.
[0100] In specific implementation, a language model is a computer model used to process and understand natural language. It can predict the next word or phrase based on the input natural language text, or identify the intent and sentiment of the text. Language models are widely used in the field of natural language processing (NLP), such as machine translation, speech recognition, text generation, sentiment analysis, intent recognition, etc.
[0101] Intent recognition can be used to identify the intention of natural language commands entered by users. Intent recognition can help the system understand the user's real needs and perform corresponding operations or provide corresponding services.
[0102] In a specific implementation, if a language model needs to be built, natural language instructions and the intent information corresponding to the natural language instructions can be collected in advance for training the language model. Natural language instructions can be voice instructions, text instructions, etc. of the user. Afterwards, models such as N-gram models, recurrent neural networks (RNN), long short-term memory networks (LSTM), Transformer, etc. can be selected as the language, and the language model can be trained using natural language instructions and the intent information corresponding to the natural language instructions to obtain a language model that can be used to identify the intent of natural language instructions.
[0103] Step 203: If the intention of the natural language instruction is network configuration intention, determine that the natural language instruction is used to indicate network configuration for a preset device.
[0104] In the example of the present invention, if the language model determines that the intention of the natural language instruction is the network configuration intention, it can be considered that the current user's demand is to configure the network for the preset device.
[0105] Step 204: if the natural language instruction is used to indicate network configuration for a device, obtain the network status and the device status of the device;
[0106] When it is determined that the user intends to configure a network for the device, the network available in the current home environment can be obtained, and its network status can be further analyzed and determined. At the same time, the device that currently needs to be configured can be obtained, and the device status of the current device can be determined to determine whether the current device supports automatic network configuration.
[0107] In the specific implementation, select the appropriate wireless communication protocol, such as Wi-Fi, Bluetooth, Zigbee, etc., to scan nearby smart devices. Different protocols are suitable for different types of devices. For example, for WiFi, it can be suitable for high-speed data transmission and Internet-connected devices, such as smart TVs, smart speakers, smart cameras, etc. For Bluetooth, it can be suitable for short-distance data transmission and low-power devices, such as smart bulbs, etc. For Zigbee, it can be suitable for low-power, low-data-rate devices, such as smart sensors, smart switches, smart sockets, etc.
[0108] In the process of scanning nearby smart devices through wireless communication protocols, the device can send out broadcast information, so that the devices that can be currently discovered in the network can be identified.
[0109] In the broadcast information of the device, characteristics such as the device type, brand, and platform may be obtained as the device status of the device, so that it may be determined whether the device supports automatic configuration of the network according to the device status of the device.
[0110] At the same time, in the process of searching for devices, you can also detect the network status of different networks, confirm the network's signal strength, frequency band congestion, network load and other information, so as to better determine the device's network configuration plan in the future.
[0111] In an embodiment of the present invention, the step of obtaining the network status and the device status of the device includes:
[0112] S11, extracting device information from the natural language instruction using a preset language model;
[0113] In the embodiment of the present invention, the language model may also be used to identify and extract device information from natural language instructions.
[0114] In a specific implementation, the language model may have the ability to identify named entities in natural language instructions, where named entities may refer to entities with specific meanings in the text, usually names of people, places, organizations, time, date, currency, percentage, etc.
[0115] In the embodiment of the present invention, the language model can identify the named entities of the natural language instructions, such as device type, brand, supported communication protocols, device function requirements, and user preferences, etc. The device type, brand, supported communication protocols, and device function requirements are used as device information of the device, so that the status information of the device can be better analyzed based on the device information.
[0116] S12, obtaining a device status of a device corresponding to the device information.
[0117] In a specific implementation, after obtaining the device information, it is possible to know which communication protocol should be used to find the device corresponding to the device information based on the device information, so as to determine the device that the user currently needs to configure the network and further obtain the device status of the device.
[0118] Specifically, in the process of scanning nearby smart devices through a wireless communication protocol, the device can send out broadcast information, so that the devices that can be currently found in the network can be identified.
[0119] In the broadcast information of the device, characteristics such as the device type, brand, and platform may be obtained as the device status of the device, so that it may be determined whether the device supports automatic configuration of the network according to the device status of the device.
[0120] Step 205, generating a network configuration solution for the device based on the device status, the network status and the natural language instruction;
[0121] In the embodiment of the present invention, a network configuration solution suitable for the current device can be generated based on the device status, network status, and natural language instructions.
[0122] Specifically, when issuing a natural language instruction, the user can also indicate which network the device needs to access. Based on the device status, it can be analyzed whether the current device supports accessing the network using this network access method. If the current device supports accessing the network using the network access method specified by the user through natural language instructions, and it is determined based on the network status that the current network supports the addition of new devices, the network access method specified by the natural language instruction can be used as a network configuration solution.
[0123] Optionally, the same network can support different communication frequency bands, but some frequency bands may be relatively crowded, while some frequency bands may be relatively idle. Based on the network status, idle communication frequency bands can be selected to configure the network for the device, which can improve the success rate of network configuration and further improve the network communication flow of subsequent devices.
[0124] In an embodiment of the present invention, the step of generating a network configuration solution for the device based on the device state, the network state, and the natural language instruction includes:
[0125] S21, extracting the user network configuration preference from the natural language instruction using a preset language model;
[0126] S22: Based on the device state, the network state, the user's network configuration preference, and the network state, determine a way for the device to access the network as a network configuration solution for the device.
[0127] Specifically, the natural language instruction may record the user's network configuration preference, which may be used to indicate the method in which the user currently expects to access the network.
[0128] In a specific implementation, the language model may have the ability to identify named entities in natural language instructions, where named entities may refer to entities with specific meanings in the text, usually names of people, places, organizations, time, date, currency, percentage, etc.
[0129] In an embodiment of the present invention, the language model can identify named entities of natural language instructions such as user network configuration preferences. Therefore, the language model can be used to extract user network configuration preferences from natural language instructions to find out how the user currently expects to access the network.
[0130] Afterwards, based on the device status, it can be analyzed whether the current device supports accessing the network using the network access method specified by the user's network configuration preference. If the current device supports accessing the network using the network access method specified by the user's network configuration preference, and it is determined based on the network status that the current network supports the addition of new devices, the network access method specified by the natural language instruction can be used as the network configuration solution.
[0131] In one embodiment of the present invention, the method further comprises:
[0132] S31, if the device cannot access the network in the manner in which the device accesses the network, based on the network status, the network frequency band is changed or the manner in which the device accesses the network is changed, and a new network configuration plan for the device is generated.
[0133] In an embodiment of the present invention, the device may not be able to access the network in the manner specified in the network configuration plan because the device cannot support the manner in which the device accesses the network specified in the network configuration plan, or because of abnormal signal transmission and other reasons. In this case, in order to ensure that the device can access the network as quickly as possible, a new network configuration plan can be regenerated based on the network status by changing the network frequency band or changing the device access network.
[0134] Specifically, if the current network frequency band signal is weak or the interference is large, you can switch to other network frequency bands, such as changing the WiFi network from 2.4GHz to 5GHz, or from 5GHz to 2.4GHz.
[0135] If the device does not support the current network access method, you can switch to another network access method, such as switching from Wi-Fi access to Bluetooth access, or from Bluetooth access to Zigbee access.
[0136] Step 206: Use the network configuration solution of the device to connect the device to the network.
[0137] Afterwards, the determined network configuration scheme can be adopted to add the device to the network according to the network access method specified by the network configuration scheme. In this way, users can issue natural language commands through the applet to quickly and conveniently complete the network configuration of smart home devices.
[0138] In a specific implementation, a temporary connection can be established with the device through low-power Bluetooth, the initial status information of the device can be obtained, and the device can be automatically connected to the appropriate network.
[0139] In an embodiment of the present invention, the step of using the network distribution solution of the device to connect the device to the network includes:
[0140] S41, based on the network configuration solution of the device, sending a network configuration information acquisition request to the user;
[0141] S42: Connect the device to the network based on the network connection information fed back by the user in response to the network information acquisition request and the network configuration solution of the device.
[0142] Specifically, during the network configuration process, some network configuration information, such as network access passwords, may need to be further provided by the user. In this case, the network configuration information that the user currently needs to provide can be determined based on the network configuration plan of the device, and a network configuration information acquisition request can be generated and sent to the user.
[0143] In a specific implementation, the request for obtaining the distribution network information may be expressed in natural language, so that the user can more easily understand the information that needs to be provided.
[0144] Afterwards, the user can feedback the network connection information such as the network access password in response to the network connection information acquisition request. After receiving the network connection information, the network access of the device can be completed according to the network connection plan of the device.
[0145] In one embodiment of the present invention, the method further comprises:
[0146] S51, receiving a communication message sent by a first device using a first network protocol;
[0147] S52: Based on a preset network conversion protocol, the communication message is sent to the second device using a second network protocol.
[0148] In the specific implementation, since smart home devices can use different communication protocols to communicate, it is difficult for smart home devices with different communication protocols to communicate and interact. To this end, the system can further set up cross-platform device interaction. A dynamic protocol adaptation layer can be introduced to automatically infer device functions by learning and parsing technical details such as device API documents and protocol stacks, and generate adaptation rules and conversion logic.
[0149] Specifically, the API document of the device can be parsed to obtain the command set, data format, status code and other information of the device. Thereafter, the protocol stack of the device can be parsed to obtain the communication protocol, data format, command set, status code and other information of the device. API documents and protocol stacks are usually provided in text or XML format and can be parsed by text parsing or XML parsing technology. Thereafter, the functions of the device can be automatically inferred based on the parsed API documents and protocol stack. Based on the inferred device functions, adaptation rules and conversion logic are generated. Adaptation rules and conversion logic are used to map device functions of different platforms to a unified interface and protocol to achieve cross-platform interoperability.
[0150] Therefore, when a communication message is received from a first device using a first network protocol, a network conversion protocol can be generated based on pre-learned adaptation rules and conversion logic, and based on the network conversion protocol, the communication message can be converted into a communication message suitable for a second network protocol, and the communication message can be sent to a second device using the second network protocol, thereby realizing communication interaction between cross-platform devices.
[0151] In one embodiment of the present invention, the method further comprises:
[0152] S61, monitor the network status and obtain network monitoring data;
[0153] S62: Adjust network access parameters of the device that has accessed the network based on the network monitoring data.
[0154] In a specific implementation, after the device is connected to the network, the network status can be continuously monitored to obtain network monitoring data such as Wi-Fi signal strength, network delay, and device connection status, and based on the network monitoring data, analyze whether the devices connected to the network can communicate and interact normally. If the network detection data indicates that the device connected to the network has communication anomalies, you can try to adjust the network access parameters of the device connected to the network, such as the network frequency band, access network type, etc., to improve the network performance of the device connected to the network.
[0155] At the same time, the network distribution plan can also be optimized through network monitoring data, so that the network distribution plan can be better applied to the rapid network distribution of equipment and the communication of the configured equipment can be smooth.
[0156] In one embodiment of the present invention, the method further comprises:
[0157] S71, monitoring the operation of the device connected to the network and generating device monitoring data;
[0158] S72: Generate device monitoring feedback information in natural language based on the device monitoring data and provide it to the user.
[0159] In a specific implementation, after the device accesses the network, the device status can be continuously monitored to obtain network monitoring data such as Wi-Fi signal strength, network delay, and device connection status. Based on the network monitoring data, it is analyzed whether the devices connected to the network can communicate and interact normally to generate device monitoring data.
[0160] Afterwards, the device monitoring feedback information in natural language format generated based on the device monitoring data can be fed back to the user, so that the user can better understand the network access status of the current device and it is easy to understand.
[0161] The device network configuration method provided by the embodiment of the present invention receives a natural language instruction issued by a user through a small program; if the natural language instruction is used to indicate device network configuration, obtain the network status and the device status of the device; based on the device status, the network status and the natural language instruction, generate a network configuration plan for the device; and use the network configuration plan of the device to connect the device to the network. Thus, the user can issue a natural language instruction through a small program, and the network configuration of the smart home device can be completed quickly and conveniently. There is no need to install additional applications or perform complex network configuration, which can effectively improve the convenience of network configuration.
[0162] Reference Figure 3 , shows a schematic diagram of a process of a device network configuration method provided in an embodiment of the present invention, which may specifically include the following steps:
[0163] (1) A user issues a natural language instruction through a mini program, receives the natural language instruction issued by the user through the mini program, identifies the intention of the natural language instruction, and if the intention of the natural language instruction is a network configuration intention, determines that the natural language instruction is used to indicate a preset device network configuration,
[0164] In the process of scanning nearby smart devices through wireless communication protocols, the device can send out broadcast information, so that the devices that can be found in the network can be identified. In the broadcast information of the device, the device type, brand, platform and other characteristics can be obtained as the device status of the device, so that it can be determined whether the device supports automatic configuration of the network according to the device status of the device.
[0165] (2) When issuing a natural language instruction, the user may also indicate which network the device needs to access. Based on the device status, it is possible to analyze whether the current device supports accessing the network using this network access method. If the current device supports accessing the network using the network access method specified by the user through the natural language instruction, and it is determined based on the network status that the current network supports the addition of new devices, the network access method specified by the natural language instruction can be used as the network configuration solution.
[0166] Optionally, the same network can support different communication frequency bands, but some frequency bands may be relatively crowded, while some frequency bands may be relatively idle. Based on the network status, idle communication frequency bands can be selected to configure the network for the device, which can improve the success rate of network configuration and further improve the network communication flow of subsequent devices.
[0167] (3) Using a certain network configuration scheme, establish a temporary connection with the device through Bluetooth low energy, obtain the initial status information of the device, and add the device to the network according to the network access method specified by the network configuration scheme.
[0168] During the network configuration process, some network configuration information, such as network access passwords, may need to be further provided by the user. In this case, the network configuration information that the user currently needs to provide can be determined based on the network configuration plan of the device, and a network configuration information acquisition request can be generated and sent to the user.
[0169] In a specific implementation, the request for obtaining the distribution network information may be expressed in natural language, so that the user can more easily understand the information that needs to be provided.
[0170] Afterwards, the user can feedback the network connection information such as the network access password in response to the network connection information acquisition request. After receiving the network connection information, the network access of the device can be completed according to the network connection plan of the device.
[0171] (4) The device's API documentation can be parsed to obtain the device's command set, data format, status code and other information. Subsequently, the device's protocol stack can be parsed to obtain the device's communication protocol, data format, command set, status code and other information. API documentation and protocol stacks are usually provided in text or XML format and can be parsed using text parsing or XML parsing techniques. Subsequently, the device's functions can be automatically inferred based on the parsed API documentation and protocol stack. Based on the inferred device functions, adaptation rules and conversion logic are generated. Adaptation rules and conversion logic are used to map device functions on different platforms to a unified interface and protocol to achieve cross-platform interoperability.
[0172] (5) After the device is connected to the network, the network status can be continuously monitored to obtain network monitoring data such as Wi-Fi signal strength, network delay, and device connection status. Based on the network monitoring data, analyze whether the devices connected to the network can communicate and interact normally. If the network detection data indicates that there is a communication anomaly in the device connected to the network, you can try to adjust the network access parameters of the device connected to the network, such as the network frequency band, access network type, etc., to improve the network performance of the device connected to the network. At the same time, the network monitoring data can also be used to optimize the network configuration plan so that the network configuration plan can be better suitable for fast network configuration of devices and the configured devices can communicate smoothly.
[0173] (6) After the device is connected to the network, the device status can be continuously monitored to obtain network monitoring data such as Wi-Fi signal strength, network delay, and device connection status. Based on the network monitoring data, the device connected to the network can be analyzed to see whether it can communicate normally and generate device monitoring data. Afterwards, the device monitoring feedback information generated in natural language based on the device monitoring data can be fed back to the user, so that the user can better understand the current network access status of the device and it is easy to understand.
[0174] The device network configuration method provided by the embodiment of the present invention receives a natural language instruction issued by a user through a small program; if the natural language instruction is used to indicate device network configuration, obtain the network status and the device status of the device; based on the device status, the network status and the natural language instruction, generate a network configuration plan for the device; and use the network configuration plan of the device to connect the device to the network. Thus, the user can issue a natural language instruction through a small program, and the network configuration of the smart home device can be completed quickly and conveniently. There is no need to install additional applications or perform complex network configuration, which can effectively improve the convenience of network configuration.
[0175] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0176] Reference Figure 4 , shows a structural block diagram of a device network configuration device provided in an embodiment of the present invention, which may specifically include the following modules:
[0177] The instruction receiving module 401 is used to receive the natural language instruction issued by the user through the mini program;
[0178] A status acquisition module 402, configured to acquire a network status and a device status of the device if the natural language instruction is used to indicate that the device is to be networked;
[0179] A network configuration scheme generating module 403, configured to generate a network configuration scheme for the device based on the device status, the network status and the natural language instruction;
[0180] The network access module 404 is used to connect the device to the network using the network configuration solution of the device.
[0181] Optionally, the device further comprises:
[0182] An intention recognition module, used to recognize the intention of the natural language instruction using a preset language model;
[0183] The intentional network configuration module is used to determine that the natural language instruction is used to indicate a preset device network configuration if the intention of the natural language instruction is a network configuration intention.
[0184] Optionally, the status acquisition module includes:
[0185] A device information extraction submodule, used to extract device information from the natural language instruction using a preset language model;
[0186] The device status acquisition submodule is used to acquire the device status of the device corresponding to the device information.
[0187] Optionally, the network distribution solution generating module includes:
[0188] A network configuration preference extraction submodule, used to extract the user network configuration preference from the natural language instruction using a preset language model;
[0189] The network access mode determination submodule is used to determine the mode in which the device accesses the network based on the device state, the network state, the user network configuration preference, and the network state, as a network configuration solution for the device.
[0190] Optionally, the device further comprises:
[0191] The network configuration plan update module is used to generate a new network configuration plan for the device by changing the network frequency band or changing the way the device accesses the network based on the network status if the device cannot access the network in the way the device accesses the network.
[0192] Optionally, the network access module includes:
[0193] A network configuration request issuing submodule, used to issue a network configuration information acquisition request to a user based on the network configuration solution of the device;
[0194] The device network access submodule is used to connect the device to the network based on the network connection information fed back by the user in response to the network information acquisition request and the network configuration solution of the device.
[0195] Optionally, the device further comprises:
[0196] A communication message receiving module, used to receive a communication message sent by a first device using a first network protocol;
[0197] The communication message forwarding module is used to send the communication message to the second device using the second network protocol based on a preset network conversion protocol.
[0198] Optionally, the device further comprises:
[0199] A network monitoring data acquisition module is used to monitor the network status and obtain network monitoring data;
[0200] The access parameter adjustment module is used to adjust the network access parameters of the device that has accessed the network based on the network monitoring data.
[0201] Optionally, the device further comprises:
[0202] The device monitoring data acquisition module is used to monitor the operation of the devices connected to the network and generate device monitoring data;
[0203] The information feedback module is used to generate device monitoring feedback information in natural language form based on the device monitoring data and provide feedback to the user.
[0204] The device network configuration device provided by the embodiment of the present invention receives the natural language instructions issued by the user through the applet; if the natural language instructions are used to indicate the network configuration of the device, the network status and the device status of the device are obtained; based on the device status, the network status and the natural language instructions, a network configuration plan for the device is generated; and the device is connected to the network using the network configuration plan for the device. Thus, the user can issue natural language instructions through the applet, and the network configuration of the smart home device can be completed quickly and conveniently. There is no need to install additional applications or perform complex network configuration, which can effectively improve the convenience of network configuration.
[0205] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0206] In addition, an embodiment of the present invention further provides an electronic device, such as Figure 5 As shown, it includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.
[0207] Memory 503, used for storing computer programs;
[0208] The processor 501 is used to execute the program stored in the memory 503, and implements the following steps:
[0209] Receive natural language instructions from users through the mini program;
[0210] If the natural language instruction is used to instruct network configuration for a device, obtaining the network status and the device status of the device;
[0211] Generate a network configuration plan for the device based on the device status, the network status, and the natural language instruction;
[0212] Use the network distribution solution of the device to connect the device to the network.
[0213] Optionally, the method further comprises:
[0214] Using a preset language model to identify the intent of the natural language instruction;
[0215] If the intention of the natural language instruction is a network configuration intention, it is determined that the natural language instruction is used to indicate a preset device network configuration.
[0216] Optionally, the step of obtaining the network status and the device status of the device includes:
[0217] Using a preset language model, extracting device information from the natural language instruction;
[0218] Obtain the device status of the device corresponding to the device information.
[0219] Optionally, the step of generating a network configuration solution for the device based on the device state, the network state and the natural language instruction includes:
[0220] Using a preset language model, extracting the user's network configuration preference from the natural language instruction;
[0221] Based on the device status, the network status, the user network configuration preference, and the network status, a method for the device to access the network is determined as a network configuration solution for the device.
[0222] Optionally, the method further comprises:
[0223] If the device cannot access the network using the method in which the device accesses the network, based on the network status, the network frequency band is changed or the method in which the device accesses the network is changed to generate a new network configuration plan for the device.
[0224] Optionally, the step of adopting the network distribution solution of the device to connect the device to the network includes:
[0225] Based on the network configuration scheme of the device, a request for obtaining network configuration information is sent to the user;
[0226] Based on the network connection information fed back by the user in response to the network information acquisition request and the network configuration solution of the device, the device is connected to the network.
[0227] Optionally, the method further comprises:
[0228] Receiving a communication message sent by a first device using a first network protocol;
[0229] Based on a preset network conversion protocol, the communication message is sent to the second device using a second network protocol.
[0230] Optionally, the method further comprises:
[0231] Monitor the network status and obtain network monitoring data;
[0232] Based on the network monitoring data, network access parameters of devices that have accessed the network are adjusted.
[0233] Optionally, the method further comprises:
[0234] Monitor the operation of devices connected to the network and generate device monitoring data;
[0235] Based on the device monitoring data, device monitoring feedback information in natural language form is generated and fed back to the user.
[0236] The electronic device provided by the embodiment of the present invention receives the natural language instructions issued by the user through the applet; if the natural language instructions are used to indicate the network configuration of the device, the network status and the device status of the device are obtained; based on the device status, the network status and the natural language instructions, a network configuration plan for the device is generated; and the device is connected to the network using the network configuration plan of the device. Thus, the user can issue natural language instructions through the applet, and the network configuration of the smart home device can be completed quickly and conveniently. There is no need to install additional applications or perform complex network configuration, which can effectively improve the convenience of network configuration.
[0237] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0238] The communication interface is used for communication between the above terminal and other devices.
[0239] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0240] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0241] like Figure 6 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 601 is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the device network configuration method described in the above embodiment.
[0242] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the device network configuration method described in the above embodiment.
[0243] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0244] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0245] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0246] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A device network configuration method, characterized in that: include: Receive natural language instructions from users through the mini program; If the natural language instruction is used to instruct network configuration for a device, obtaining the network status and the device status of the device; Generate a network configuration plan for the device based on the device status, the network status, and the natural language instruction; Use the network distribution solution of the device to connect the device to the network.
2. The method according to claim 1, characterized in that: The method further comprises: Using a preset language model to identify the intent of the natural language instruction; If the intention of the natural language instruction is a network configuration intention, it is determined that the natural language instruction is used to indicate a preset device network configuration.
3. The method according to claim 1, characterized in that The step of obtaining the network status and the device status of the device includes: Using a preset language model, extracting device information from the natural language instruction; Obtain the device status of the device corresponding to the device information.
4. The method according to claim 1, characterized in that The step of generating a network configuration solution for the device based on the device state, the network state, and the natural language instruction includes: Using a preset language model, extracting the user's network configuration preference from the natural language instruction; Based on the device status, the network status, the user network configuration preference, and the network status, a method for the device to access the network is determined as a network configuration solution for the device.
5. The method according to claim 4, characterized in that The method further comprises: If the device cannot access the network using the method in which the device accesses the network, based on the network status, the network frequency band is changed or the method in which the device accesses the network is changed to generate a new network configuration plan for the device.
6. The method according to claim 1, characterized in that The step of adopting the network distribution solution of the device to connect the device to the network includes: Based on the network configuration scheme of the device, a request for obtaining network configuration information is sent to the user; Based on the network connection information fed back by the user in response to the network information acquisition request and the network configuration solution of the device, the device is connected to the network.
7. The method according to claim 1, characterized in that The method further comprises: Receiving a communication message sent by a first device using a first network protocol; Based on a preset network conversion protocol, the communication message is sent to the second device using a second network protocol.
8. The method according to claim 1, characterized in that The method further comprises: Monitor the network status and obtain network monitoring data; Based on the network monitoring data, network access parameters of devices that have accessed the network are adjusted.
9. The method according to claim 1, characterized in that: The method further comprises: Monitor the operation of devices connected to the network and generate device monitoring data; Based on the device monitoring data, device monitoring feedback information in natural language form is generated and fed back to the user.
10. A device network distribution device, characterized in that: include: An instruction receiving module, used to receive natural language instructions issued by the user through the mini program; A status acquisition module, used for acquiring a network status and a device status of the device if the natural language instruction is used to indicate that the device is to be networked; A network configuration scheme generating module, configured to generate a network configuration scheme for the device based on the device status, the network status and the natural language instruction; The network access module is used to connect the device to the network by adopting the network distribution solution of the device.
11. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 9 when executing the program stored in the memory.
12. A computer-readable medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Network distribution method of intelligent equipment and related device
CN111431734A
Intelligent equipment network distribution method and system based on WeChat applet
CN111866995A
Method and system for configuring network for intelligent equipment by WeChat applet
CN112165726A
Air conditioner network distribution method based on WeChat applet Bluetooth communication
CN117255331A
Intelligent equipment network access method, device and system and electronic equipment
CN117938562A
Cited By
IoT (Internet of Things) equipment network distribution method and device with end-cloud combined large model
CN122496851A