Equipment distribution methods, devices, electronic equipment and readable media
By receiving natural language commands through a mini-program, using a language model to identify intent and generate a network configuration plan, smart home devices are automatically connected to the network, solving the cumbersome network configuration problem in existing technologies and achieving convenient device network configuration.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2026-04-03
AI Technical Summary
The network configuration process for existing smart home devices is cumbersome, requiring users to download multiple applications and manually enter network configuration information.
The system receives natural language commands from users via a mini-program, uses a language model to identify intent and obtain network and device status, generates a network configuration plan, and automatically connects devices to the network.
Users can quickly and easily configure the network of smart home devices using simple natural language commands without needing to install additional applications, thus improving the convenience of network configuration.
Smart Images

Figure CN119835102B_ABST
Abstract
Description
Technical Field
[0001] This 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 Technology
[0002] In existing technologies, network configuration for smart home devices typically relies on dedicated applications and preset network configuration procedures. Generally, users need to download multiple different applications and follow the instructions within each application to input network configuration information, making the network configuration process for smart home devices rather cumbersome. Summary of the Invention
[0003] The present invention provides a device configuration method, apparatus, electronic device, and computer-readable storage medium to solve the problem of cumbersome configuration process for smart home devices.
[0004] This invention discloses a device network distribution method, the method comprising:
[0005] Receive natural language commands from users via the mini-program;
[0006] If the natural language instruction is used to instruct the device to configure the network, obtain the network status and the device status of the device;
[0007] Based on the device status, the network status, and the natural language instructions, a network configuration scheme for the device is generated;
[0008] The device is connected to the network using the network configuration scheme described above.
[0009] Optionally, the method further includes:
[0010] The intent of the natural language command is identified using a pre-defined language model.
[0011] If the intent of the natural language instruction is network configuration intent, then the natural language instruction is determined to be used to indicate preset device network configuration.
[0012] Optionally, the step of obtaining the network status and the device status of the device includes:
[0013] A preset language model is used to extract device information from the natural language instructions;
[0014] Obtain the device status of the device corresponding to the device information.
[0015] Optionally, the step of generating a network configuration scheme for the device based on the device status, the network status, and the natural language instructions includes:
[0016] A preset language model is used to extract user network configuration preferences from the natural language instructions;
[0017] Based on the device status, the network status, the user's network configuration preferences, and the network status, the method by which the device accesses the network is determined, which serves as the network configuration scheme for the device.
[0018] Optionally, the method further includes:
[0019] If the device cannot access the network using the method described above, based on the network status, the network frequency band or the method of accessing the network by the device will be changed to generate a new network configuration scheme for the device.
[0020] Optionally, the step of connecting the device to the network using the network configuration scheme of the device includes:
[0021] Based on the network distribution scheme of the device, a network distribution information acquisition request is sent to the user;
[0022] Based on the distribution network connection information returned by the user in response to the distribution network information acquisition request, and the distribution network scheme of the device, the device is connected to the network.
[0023] Optionally, the method further includes:
[0024] Receive communication messages sent by the first device using the 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 includes:
[0027] The network status is monitored to obtain network monitoring data;
[0028] Based on the network monitoring data, adjust the network access parameters of devices that have already connected to the network.
[0029] Optionally, the method further includes:
[0030] Monitor the operation of devices already connected to the network and generate device monitoring data;
[0031] Based on the device monitoring data, device monitoring feedback information in natural language is generated and sent to the user.
[0032] This invention also provides a device for network distribution, the device comprising:
[0033] The instruction receiving module is used to receive natural language instructions issued by users through the mini-program;
[0034] The status acquisition module is used to acquire the network status and the device status of the device if the natural language instruction is used to indicate network configuration for the device.
[0035] The network distribution scheme generation module is used to generate a network distribution scheme for the device based on the device status, the network status, and the natural language instructions.
[0036] The network access module is used to connect the device to the network using the device's network configuration scheme.
[0037] Optionally, the device further includes:
[0038] An intent recognition module is used to recognize the intent of the natural language command using a preset language model;
[0039] The intent-based network configuration module is used to determine, if the intent of the natural language instruction is a network configuration intent, that the natural language instruction is used to indicate a preset device network configuration.
[0040] Optionally, the status acquisition module includes:
[0041] The device information extraction submodule is used to extract device information from the natural language instructions 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 distribution network scheme generation module includes:
[0044] The network distribution preference extraction submodule is used to extract user network distribution preferences from the natural language instructions using a preset language model.
[0045] The network access method determination submodule is used to determine the network access method of the device based on the device status, the network status, the user's network configuration preference, and the network status, as the network configuration scheme of the device.
[0046] Optionally, the device further includes:
[0047] The distribution network scheme update module is used to generate a new distribution network scheme for the device if the device cannot access the network in the manner in which it accesses the network, based on the network status, by changing the network frequency band or changing the way the device accesses the network.
[0048] Optionally, the network access module includes:
[0049] The network distribution request sending submodule is used to send a network distribution information acquisition request to the user based on the network distribution scheme of the device;
[0050] The device network access submodule is used to connect the device to the network based on the distribution network connection information returned by the user in response to the distribution network information acquisition request, and the distribution network scheme of the device.
[0051] Optionally, the device further includes:
[0052] A communication message receiving module is used to receive communication messages sent by the 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 a second network protocol based on a preset network conversion protocol.
[0054] Optionally, the device further includes:
[0055] The 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 devices that have already connected to the network based on the network monitoring data.
[0057] Optionally, the device further includes:
[0058] The device monitoring data acquisition module is used to monitor the operation of 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 it to the user.
[0060] This invention also discloses an electronic device, including 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;
[0061] The memory is used to store computer programs;
[0062] When the processor executes a program stored in the memory, it implements the method described in the embodiments of the present invention.
[0063] This invention also discloses one or more computer-readable media storing instructions that, when executed by one or more processors, cause the processors to perform the methods described in this invention.
[0064] The embodiments of the present invention have the following advantages:
[0065] The device configuration method provided in this invention receives natural language commands issued by a user via a mini-program; if the natural language command indicates device configuration, the method obtains the network status and the device status; based on the device status, the network status, and the natural language command, it generates a configuration scheme for the device; and using the configuration scheme, it connects the device to the network. Thus, users can quickly and conveniently complete network configuration of smart home devices by issuing natural language commands via a mini-program. No additional application installation or complex network configuration is required, effectively improving the convenience of network configuration. Attached Figure Description
[0066] Figure 1 This is a flowchart of the steps of a device network distribution method provided in an embodiment of the present invention;
[0067] Figure 2 This is a flowchart of the steps of a device network distribution method provided in an embodiment of the present invention;
[0068] Figure 3 This is a schematic flowchart of a device network distribution method provided in an embodiment of the present invention;
[0069] Figure 4 This is a structural block diagram of a device distribution network provided in an embodiment of the present invention;
[0070] Figure 5 This is a block diagram of an electronic device provided in an embodiment of the present invention;
[0071] Figure 6 This is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. Detailed Implementation
[0072] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0073] Reference Figure 1 The diagram illustrates a flowchart of a device network distribution method provided in an embodiment of the present invention, which may specifically include the following steps:
[0074] Step 101: Receive natural language commands from the user via the mini-program;
[0075] In this embodiment of the invention, a small program for configuring the network can be set up.
[0076] A mini-program is an application that can be used without downloading or installing it. Users can quickly open the application by scanning a QR code, searching, or sharing a link. Mini-programs typically run on a pre-set platform. Generally, this platform provides users with applications that offer functions such as chat and payment. This application can contain the necessary components to run the mini-program, allowing users to run it without having to download and install an additional application.
[0077] Therefore, users can conveniently access the network configuration interface by opening the mini-program.
[0078] To further simplify network configuration for users, the mini-program can accept natural language commands from users. Natural language commands refer to instructions issued by users to the system using natural language (such as Chinese, English, etc.). This allows users to submit network configuration requests without going through cumbersome procedures.
[0079] Step 102: If the natural language instruction is used to indicate network configuration for the device, obtain the network status and the device status of the device;
[0080] Upon receiving a natural language command, the system can parse it and identify the user's current intent. If the intent is to configure a network for a device, the system can identify available networks in the home environment and further analyze their status. Simultaneously, it can identify the devices requiring network configuration and determine their status to ascertain whether they support automatic network configuration.
[0081] In practical implementation, a suitable wireless communication protocol, such as Wi-Fi, Bluetooth, or Zigbee, is selected for scanning nearby smart devices. Different protocols are suitable for different device types. For example, Wi-Fi is suitable for devices with high-speed data transmission and internet connectivity, such as smart TVs, smart speakers, and smart cameras. Bluetooth is suitable for short-range data transmission and low-power devices, such as smart light bulbs. Zigbee is suitable for low-power, low-data-rate devices, such as smart sensors, smart switches, and smart sockets.
[0082] During the process of scanning for nearby smart devices via wireless communication protocols, devices can broadcast information, thereby identifying devices that can currently be found on the network.
[0083] The device's broadcast information can reveal characteristics such as device type, brand, and platform, which serve as the device's status. This allows us to determine whether the device supports automatic network configuration based on its status.
[0084] Meanwhile, during the process of locating the device, the network status of different networks can also be detected to confirm information such as network signal strength, frequency band congestion, and network load, so as to better determine the network configuration scheme for the device in the future.
[0085] Step 103: Generate a network configuration scheme for the device based on the device status, the network status, and the natural language instructions;
[0086] In this embodiment of the invention, a network configuration scheme suitable for the current device can be generated based on device status, network status, and natural language commands.
[0087] Specifically, when issuing natural language commands, users can also specify which network the device needs to connect to. Based on the device's status, the system can analyze whether the device supports that network access method. If the device supports the network access method specified by the user via natural language commands, and the network status indicates that the network supports new device additions, then the network access method specified by the natural language commands can be used as the network configuration scheme.
[0088] Optionally, the same network can support different communication frequency bands, but some frequency bands may be relatively congested while others may be relatively idle. Based on the network status, idle communication frequency bands can be selected for configuring the network for devices, which can improve the success rate of the distribution network and further enhance the network communication flow of subsequent devices.
[0089] Step 104: Connect the device to the network using the network configuration scheme described above.
[0090] Subsequently, a defined network configuration scheme can be adopted, and the devices can be added to the network according to the network access method specified in the scheme. Users can then quickly and conveniently complete the network configuration of smart home devices by issuing natural language commands through the mini-program.
[0091] The device configuration method provided in this invention receives natural language commands issued by a user via a mini-program; if the natural language command indicates device configuration, the method obtains the network status and the device status; based on the device status, the network status, and the natural language command, it generates a configuration scheme for the device; and using the configuration scheme, it connects the device to the network. Thus, users can quickly and conveniently complete network configuration of smart home devices by issuing natural language commands via a mini-program. No additional application installation or complex network configuration is required, effectively improving the convenience of network configuration.
[0092] Reference Figure 2 The diagram illustrates a flowchart of a device network distribution method provided in an embodiment of the present invention, which may specifically include the following steps:
[0093] Step 201: Receive natural language commands issued by the user through the mini-program;
[0094] In this embodiment of the invention, a small program for configuring the network can be set up.
[0095] A mini-program is an application that can be used without downloading or installing it. Users can quickly open the application by scanning a QR code, searching, or sharing a link. Mini-programs typically run on a pre-set platform. Generally, this platform provides users with applications that offer functions such as chat and payment. This application can contain the necessary components to run the mini-program, allowing users to run it without having to download and install an additional application.
[0096] Therefore, users can conveniently access the network configuration interface by opening the mini-program.
[0097] To further simplify network configuration for users, the mini-program can accept natural language commands from users. Natural language commands refer to instructions issued by users to the system using natural language (such as Chinese, English, etc.). This allows users to submit network configuration requests without going through cumbersome procedures.
[0098] Step 202: Using a preset language model, identify the intent of the natural language instruction;
[0099] In this embodiment of the invention, a language model can be pre-set, which can be used to identify the intent of natural language instructions.
[0100] In practical implementation, a language model is a computer model used to process and understand natural language. It can predict the next word or phrase, or identify the intent and sentiment of the text, based on the input natural language text. Language models are widely used in the field of Natural Language Processing (NLP), such as machine translation, speech recognition, text generation, sentiment analysis, and intent recognition.
[0101] Intent recognition can be used to identify the intent behind a user's natural language input. Intent recognition helps the system understand the user's true needs and perform corresponding operations or provide corresponding services.
[0102] In practical implementation, if a language model needs to be built, natural language commands and their corresponding intent information can be collected in advance for training the language model. Natural language commands can be user voice commands, text commands, etc. Subsequently, models such as N-gram models, recurrent neural networks (RNNs), long short-term memory networks (LSTMs), and Transformers can be selected as the language model, and the language model can be trained using natural language commands and their corresponding intent information to obtain a language model that can be used to recognize the intent of natural language commands.
[0103] Step 203: If the intent of the natural language instruction is a network configuration intent, determine that the natural language instruction is used to indicate a preset device network configuration.
[0104] In the example of this invention, if the language model determines that the intention of the natural language instruction is a network configuration intention, it can be assumed that the current user's need is to configure the network for the preset device.
[0105] Step 204: If the natural language instruction is used to indicate network configuration for the device, obtain the network status and the device status of the device;
[0106] If the user's intention is to configure a network for a device, the available networks in the current home environment can be identified, and their status can be further analyzed. Simultaneously, the devices requiring network configuration can be identified, and their current status can be determined to ascertain whether they support automatic network configuration.
[0107] In practical implementation, a suitable wireless communication protocol, such as Wi-Fi, Bluetooth, or Zigbee, is selected for scanning nearby smart devices. Different protocols are suitable for different device types. For example, Wi-Fi is suitable for devices with high-speed data transmission and internet connectivity, such as smart TVs, smart speakers, and smart cameras. Bluetooth is suitable for short-range data transmission and low-power devices, such as smart light bulbs. Zigbee is suitable for low-power, low-data-rate devices, such as smart sensors, smart switches, and smart sockets.
[0108] During the process of scanning for nearby smart devices via wireless communication protocols, devices can broadcast information, thereby identifying devices that can currently be found on the network.
[0109] The device's broadcast information can reveal characteristics such as device type, brand, and platform, which serve as the device's status. This allows us to determine whether the device supports automatic network configuration based on its status.
[0110] Meanwhile, during the process of locating the device, the network status of different networks can also be detected to confirm information such as network signal strength, frequency band congestion, and network load, so as to better determine the network configuration scheme for the device in the future.
[0111] In one embodiment of the present invention, the step of obtaining the network status and the device status of the device includes:
[0112] S11, using a preset language model, extract device information from the natural language instructions;
[0113] In this embodiment of the invention, the language model can also be used to identify and extract device information from natural language instructions.
[0114] In practical implementation, a language model can be capable of recognizing named entities in natural language instructions. Named entities refer to entities in text that have specific meanings, such as names of people, places, organizations, times, dates, currencies, percentages, etc.
[0115] In this embodiment of the invention, the language model can identify named entities of natural language instructions, such as device type, brand, supported communication protocols, device functional requirements, and user preferences. The device type, brand, supported communication protocols, and device functional requirements are then used as device information, allowing for better analysis of the device's status information later.
[0116] S12, obtain the device status of the device corresponding to the device information.
[0117] In practical implementation, after obtaining the device information, it is possible to determine which communication protocol should be used to find the corresponding device, thereby identifying the device that the user needs to configure in the network and further obtaining the device status.
[0118] Specifically, during the process of scanning for nearby smart devices via wireless communication protocols, the devices can broadcast information, thereby identifying devices that can currently be found in the network.
[0119] The device's broadcast information can reveal characteristics such as device type, brand, and platform, which serve as the device's status. This allows us to determine whether the device supports automatic network configuration based on its status.
[0120] Step 205: Generate a network configuration scheme for the device based on the device status, the network status, and the natural language instructions;
[0121] In this embodiment of the invention, a network configuration scheme suitable for the current device can be generated based on device status, network status, and natural language commands.
[0122] Specifically, when issuing natural language commands, users can also specify which network the device needs to connect to. Based on the device's status, the system can analyze whether the device supports that network access method. If the device supports the network access method specified by the user via natural language commands, and the network status indicates that the network supports new device additions, then the network access method specified by the natural language commands can be used as the network configuration scheme.
[0123] Optionally, the same network can support different communication frequency bands, but some frequency bands may be relatively congested while others may be relatively idle. Based on the network status, idle communication frequency bands can be selected for configuring the network for devices, which can improve the success rate of the distribution network and further enhance the network communication flow of subsequent devices.
[0124] In one embodiment of the present invention, the step of generating a network configuration scheme for the device based on the device status, the network status, and the natural language instructions includes:
[0125] S21, using a preset language model, extract user network configuration preferences from the natural language instructions;
[0126] S22, based on the device status, the network status, the user's network configuration preference, and the network status, determine the way the device accesses the network, which serves as the network configuration scheme for the device.
[0127] Specifically, natural language instructions can contain user network configuration preferences. These preferences can be used to indicate to the user what method they currently prefer for network access.
[0128] In practical implementation, a language model can be capable of recognizing named entities in natural language instructions. Named entities refer to entities in text that have specific meanings, such as names of people, places, organizations, times, dates, currencies, percentages, etc.
[0129] In this embodiment of the invention, the language model can identify named entities of natural language instructions, such as user network configuration preferences. Thus, the language model can be used to extract user network configuration preferences from natural language instructions to determine what method the user currently expects to use to access the network.
[0130] Subsequently, 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 the network status determines that the current network supports the addition of new devices, the network access method specified by the natural language command can be used as the network configuration scheme.
[0131] In one embodiment of the present invention, the method further includes:
[0132] S31. If the device cannot access the network using the method described above, based on the network status, change the network frequency band or change the method of accessing the network to generate a new network configuration scheme for the device.
[0133] In this embodiment of the invention, the device may be unable to access the network in accordance with the method specified in the distribution network plan because the device cannot support the method of device access to the network as specified in the distribution network plan, or the network may be unable to access the network in accordance with the method specified in the distribution network plan due to reasons such as abnormal signal transmission. In this case, in order to ensure that the device can access the network as quickly as possible, a new distribution network plan can be generated by changing the network frequency band or changing the device access to the network based on the network status.
[0134] Specifically, if the current network frequency band signal is weak or there is a lot of interference, you can switch to other network frequency bands, such as switching 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: Connect the device to the network using the network configuration scheme described above.
[0137] Subsequently, a defined network configuration scheme can be adopted, and the devices can be added to the network according to the network access method specified in the scheme. Users can then quickly and conveniently complete the network configuration of smart home devices by issuing natural language commands through the mini-program.
[0138] In practice, a temporary connection can be established with the device via Bluetooth Low Energy to obtain the device's initial state information and automatically connect the device to an appropriate network.
[0139] In one embodiment of the present invention, the step of connecting the device to the network using the network configuration scheme of the device includes:
[0140] S41, based on the network distribution scheme of the device, send a network distribution information acquisition request to the user;
[0141] S42, based on the distribution network connection information returned by the user in response to the distribution network information acquisition request, and the distribution network scheme of the device, the device is connected to the network.
[0142] Specifically, during the network configuration process, some network configuration information, such as network access passwords, may need to be provided by the user. In this case, based on the device's network configuration scheme, the network configuration information that needs to be provided by the user can be determined, and a network configuration information retrieval request can be generated and sent to the user.
[0143] In practice, requests for distribution network information can be expressed in natural language, making it easier for users to understand the information that needs to be provided.
[0144] Subsequently, the user can request feedback such as the network access password and network connection information in response to the network configuration information request. After receiving the network configuration connection information, the user can continue to complete the network access of the device according to the device's network configuration plan.
[0145] In one embodiment of the present invention, the method further includes:
[0146] S51, Receive a communication message sent by the first device using the 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 practical implementation, smart home devices can use different communication protocols to communicate, making it difficult for devices using different protocols to communicate and interact. To address this, the system can be further configured for cross-platform device interaction. A dynamic protocol adaptation layer can be introduced, which automatically infers device functions and generates adaptation rules and conversion logic by learning and parsing the device's API documentation, protocol stack, and other technical details.
[0149] Specifically, the device's API documentation can be parsed to obtain information such as the device's command set, data format, and status codes. Subsequently, the device's protocol stack can be parsed to obtain information such as the device's communication protocol, data format, command set, and status codes. API documentation and protocol stacks are typically provided in text or XML format, which can be parsed using text parsing or XML parsing techniques. Then, based on the parsed API documentation and protocol stack, the device's functionality can be automatically inferred. Based on the inferred device functionality, adaptation rules and conversion logic are generated. These adaptation rules and conversion logic are used to map device functions from different platforms to a unified interface and protocol, achieving cross-platform interoperability.
[0150] Therefore, upon receiving a communication message sent by the first device using the first network protocol, a network conversion protocol can be generated based on pre-learned adaptation rules and conversion logic. Based on the network conversion protocol, the communication message can be converted into a communication message suitable for the second network protocol, and the communication message can be sent to the second device using the second network protocol, thus enabling cross-platform device communication interaction.
[0151] In one embodiment of the present invention, the method further includes:
[0152] S61, perform network status monitoring and obtain network monitoring data;
[0153] S62, Based on the network monitoring data, adjust the network access parameters of the devices that have already connected to the network.
[0154] In practical implementation, after a device connects to the network, continuous network status monitoring can be maintained to obtain network monitoring data such as Wi-Fi signal strength, network latency, and device connection status. Based on this data, it can be analyzed whether the connected devices can communicate normally. If the network monitoring data indicates that a connected device is experiencing communication abnormalities, adjustments can be made to the device's network access parameters, such as network frequency band and network type, to improve its network performance.
[0155] At the same time, network monitoring data can be used to optimize the distribution network scheme, making it more suitable for rapid network configuration of devices, and ensuring smooth communication of the configured devices.
[0156] In one embodiment of the present invention, the method further includes:
[0157] S71 monitors the operation of devices connected to the network and generates device monitoring data;
[0158] S72, Based on the device monitoring data, generate device monitoring feedback information in natural language and provide it to the user.
[0159] In practical implementation, 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 latency, and device connection status. Based on the network monitoring data, it can be analyzed whether the device connected to the network can communicate and interact normally, and generate device monitoring data.
[0160] Subsequently, device monitoring feedback information in natural language can be generated based on device monitoring data and fed back to the user, allowing the user to better understand the current network access status of the device and making it easy to understand.
[0161] The device configuration method provided in this invention receives natural language commands issued by a user via a mini-program. If the natural language command indicates device configuration, the method acquires the network status and the device status. Based on the device status, the network status, and the natural language command, a configuration scheme for the device is generated. The device is then connected to the network using the configuration scheme. Thus, users can quickly and conveniently complete network configuration for smart home devices by issuing natural language commands via a mini-program. No additional application installation or complex network configuration is required, effectively improving the convenience of network configuration.
[0162] Reference Figure 3 The diagram illustrates a flowchart of a device network distribution method provided in an embodiment of the present invention, which may specifically include the following steps:
[0163] (1) The user issues a natural language command through the mini-program, the system receives the natural language command issued by the user through the mini-program, identifies the intent of the natural language command, and if the intent of the natural language command is a network configuration intent, it determines that the natural language command is used to indicate a preset device network configuration.
[0164] During the process of scanning for nearby smart devices via wireless communication protocols, devices can broadcast information, thereby identifying devices currently available on the network. The broadcast information reveals characteristics such as device type, brand, and platform, serving as the device's status. This status allows for determination of whether the device supports automatic network configuration.
[0165] (2) When issuing natural language commands, users can also specify which network the device needs to connect to. Based on the device status, it can be analyzed whether the current device supports accessing the network using that network access method. If the current device supports accessing the network using the network access method specified by the user through natural language commands, and the current network status determines that it supports the addition of new devices, the network access method specified by the natural language commands can be used as the network configuration scheme.
[0166] Optionally, the same network can support different communication frequency bands, but some frequency bands may be relatively congested while others may be relatively idle. Based on the network status, idle communication frequency bands can be selected for configuring the network for devices, which can improve the success rate of the distribution network and further enhance the network communication flow of subsequent devices.
[0167] (3) Using a defined network configuration scheme, establish a temporary connection with the device via Bluetooth Low Energy, obtain the device’s initial status information, and add the device to the network according to the network access method specified in the network configuration scheme.
[0168] During network configuration, some network configuration information, such as network access passwords, may need to be provided by the user. In this case, based on the device's network configuration plan, the required network configuration information can be determined and a network configuration information retrieval request can be generated and sent to the user.
[0169] In practice, requests for distribution network information can be expressed in natural language, making it easier for users to understand the information that needs to be provided.
[0170] Subsequently, the user can request feedback such as the network access password and network connection information in response to the network configuration information request. After receiving the network configuration connection information, the user can continue to complete the network access of the device according to the device's network configuration plan.
[0171] (4) The device's API documentation can be parsed to obtain information such as the device's command set, data format, and status codes. Subsequently, the device's protocol stack can be parsed to obtain information such as the device's communication protocol, data format, command set, and status codes. API documentation and protocol stacks are typically provided in text or XML format and can be parsed using text parsing or XML parsing techniques. Based on the parsed API documentation and protocol stack, the device's functions can be automatically inferred. Adaptation rules and conversion logic are generated based on the inferred device functions. These adaptation rules and conversion logic are used to map device functions from different platforms to a unified interface and protocol, achieving 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 latency, and device connection status. Based on the network monitoring data, it can be analyzed whether the connected devices can communicate normally. If the network monitoring data indicates that the connected devices have communication abnormalities, the network access parameters of the connected devices, such as network frequency band and network access type, can be adjusted to improve the network performance of the connected devices. At the same time, the network configuration scheme can also be optimized through network monitoring data, so that the configuration scheme can be better suited for rapid network configuration of devices, and the configured devices can communicate smoothly.
[0173] (6) After the device is connected to the network, its status can be continuously monitored to obtain network monitoring data such as Wi-Fi signal strength, network latency, and device connection status. Based on the network monitoring data, it can analyze whether the connected device can communicate and interact normally, and generate device monitoring data. Subsequently, device monitoring feedback information in natural language can be generated based on the device monitoring data and 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 configuration method provided in this invention receives natural language commands issued by a user via a mini-program. If the natural language command indicates device configuration, the method acquires the network status and the device status. Based on the device status, the network status, and the natural language command, a configuration scheme for the device is generated. The device is then connected to the network using the configuration scheme. Thus, users can quickly and conveniently complete network configuration for smart home devices by issuing natural language commands via a mini-program. No additional application installation or complex network configuration is required, effectively improving the convenience of network configuration.
[0175] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0176] Reference Figure 4 The diagram illustrates a structural block diagram of a device distribution network 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 natural language instructions issued by the user through the mini-program;
[0178] Status acquisition module 402 is used to acquire network status and device status of the device if the natural language instruction is used to indicate network configuration for the device;
[0179] The network distribution scheme generation module 403 is used to generate a network distribution scheme for the device based on the device status, the network status, and the natural language instructions.
[0180] The network access module 404 is used to connect the device to the network using the device's network configuration scheme.
[0181] Optionally, the device further includes:
[0182] An intent recognition module is used to recognize the intent of the natural language command using a preset language model;
[0183] The intent-based network configuration module is used to determine, if the intent of the natural language instruction is a network configuration intent, that the natural language instruction is used to indicate a preset device network configuration.
[0184] Optionally, the status acquisition module includes:
[0185] The device information extraction submodule is used to extract device information from the natural language instructions 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 distribution network scheme generation module includes:
[0188] The network distribution preference extraction submodule is used to extract user network distribution preferences from the natural language instructions using a preset language model.
[0189] The network access method determination submodule is used to determine the network access method of the device based on the device status, the network status, the user's network configuration preference, and the network status, as the network configuration scheme of the device.
[0190] Optionally, the device further includes:
[0191] The distribution network scheme update module is used to generate a new distribution network scheme for the device if the device cannot access the network in the manner in which it accesses the network, based on the network status, by changing the network frequency band or changing the way the device accesses the network.
[0192] Optionally, the network access module includes:
[0193] The network distribution request sending submodule is used to send a network distribution information acquisition request to the user based on the network distribution scheme of the device;
[0194] The device network access submodule is used to connect the device to the network based on the distribution network connection information returned by the user in response to the distribution network information acquisition request, and the distribution network scheme of the device.
[0195] Optionally, the device further includes:
[0196] A communication message receiving module is used to receive communication messages sent by the 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 a second network protocol based on a preset network conversion protocol.
[0198] Optionally, the device further includes:
[0199] The 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 devices that have already connected to the network based on the network monitoring data.
[0201] Optionally, the device further includes:
[0202] The device monitoring data acquisition module is used to monitor the operation of 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 it to the user.
[0204] The device configuration device provided in this embodiment of the invention receives natural language commands issued by a user via a mini-program. If the natural language command indicates device configuration, the device status and network status are obtained. Based on the device status, network status, and the natural language command, a configuration scheme for the device is generated. The device is then connected to the network using the configuration scheme. Thus, users can quickly and conveniently complete network configuration of smart home devices by issuing natural language commands via a mini-program. No additional application installation or complex network configuration is required, effectively improving the convenience of network configuration.
[0205] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0206] In addition, embodiments of the present invention also provide 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 is used to store computer programs;
[0208] When processor 501 executes the program stored in memory 503, it performs the following steps:
[0209] Receive natural language commands from users via the mini-program;
[0210] If the natural language instruction is used to instruct the device to configure the network, obtain the network status and the device status of the device;
[0211] Based on the device status, the network status, and the natural language instructions, a network configuration scheme for the device is generated;
[0212] The device is connected to the network using the network configuration scheme described above.
[0213] Optionally, the method further includes:
[0214] The intent of the natural language command is identified using a pre-defined language model.
[0215] If the intent of the natural language instruction is network configuration intent, then the natural language instruction is determined to be used to indicate preset device network configuration.
[0216] Optionally, the step of obtaining the network status and the device status of the device includes:
[0217] A preset language model is used to extract device information from the natural language instructions;
[0218] Obtain the device status of the device corresponding to the device information.
[0219] Optionally, the step of generating a network configuration scheme for the device based on the device status, the network status, and the natural language instructions includes:
[0220] A preset language model is used to extract user network configuration preferences from the natural language instructions;
[0221] Based on the device status, the network status, the user's network configuration preferences, and the network status, the method by which the device accesses the network is determined, which serves as the network configuration scheme for the device.
[0222] Optionally, the method further includes:
[0223] If the device cannot access the network using the method described above, based on the network status, the network frequency band or the method of accessing the network by the device will be changed to generate a new network configuration scheme for the device.
[0224] Optionally, the step of connecting the device to the network using the network configuration scheme of the device includes:
[0225] Based on the network distribution scheme of the device, a network distribution information acquisition request is sent to the user;
[0226] Based on the distribution network connection information returned by the user in response to the distribution network information acquisition request, and the distribution network scheme of the device, the device is connected to the network.
[0227] Optionally, the method further includes:
[0228] Receive communication messages sent by the first device using the 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 includes:
[0231] The network status is monitored to obtain network monitoring data;
[0232] Based on the network monitoring data, adjust the network access parameters of devices that have already connected to the network.
[0233] Optionally, the method further includes:
[0234] Monitor the operation of devices already connected to the network and generate device monitoring data;
[0235] Based on the device monitoring data, device monitoring feedback information in natural language is generated and sent to the user.
[0236] The electronic device provided in this embodiment of the invention receives natural language commands issued by a user via a mini-program. If the natural language command instructs the user to configure a device for network access, the device's network status and device status are obtained. Based on the device status, network status, and the natural language command, a network configuration scheme for the device is generated. The device is then connected to the network using the configured scheme. Thus, users can quickly and conveniently complete network configuration of smart home devices by issuing natural language commands via a mini-program. No additional application installation or complex network configuration is required, effectively improving the convenience of network configuration.
[0237] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0238] The communication interface is used for communication between the aforementioned terminal and other devices.
[0239] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0240] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0241] like Figure 6 As shown, in another embodiment of the present invention, a computer-readable storage medium 601 is also provided, which stores instructions that, when executed on a computer, cause the computer to perform the device network configuration method described in the above embodiment.
[0242] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute the device network configuration method described in the above embodiments.
[0243] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as 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, all or part of the processes or functions described in the embodiments of the present invention are generated. 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. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. 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 integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0244] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0245] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0246] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.
Claims
1. A method for equipment network distribution, characterized in that, include: Receive natural language commands from users via the mini-program; If the natural language instruction is used to instruct the device to configure the network, obtain the network status and the device status of the device; Based on the device status, the network status, and the natural language instructions, a network configuration scheme for the device is generated; The device is connected to the network using the network configuration scheme described above. The step of generating a network configuration scheme for the device based on the device status, the network status, and the natural language instructions includes: Using a preset language model, user network configuration preferences are extracted from the natural language instructions; these preferences indicate the user's current desired method for network access. Based on the device status, the network status, the user's network configuration preferences, and the network status, the method by which the device accesses the network is determined, which serves as the network configuration scheme for the device.
2. The method according to claim 1, characterized in that, The method further includes: The intent of the natural language command is identified using a pre-defined language model. If the intent of the natural language instruction is network configuration intent, then the natural language instruction is determined to be used to indicate preset device network configuration.
3. The method according to claim 1, characterized in that, The steps of obtaining the network status and the device status of the device include: A preset language model is used to extract device information from the natural language instructions; Obtain the device status of the device corresponding to the device information.
4. The method according to claim 1, characterized in that, The method further includes: If the device cannot access the network using the method described above, based on the network status, the network frequency band or the method of accessing the network by the device will be changed to generate a new network configuration scheme for the device.
5. The method according to claim 1, characterized in that, The step of connecting the device to the network using the network configuration scheme includes: Based on the network distribution scheme of the device, a network distribution information acquisition request is sent to the user; Based on the distribution network connection information returned by the user in response to the distribution network information acquisition request, and the distribution network scheme of the device, the device is connected to the network.
6. The method according to claim 1, characterized in that, The method further includes: Receive communication messages sent by the first device using the first network protocol; Based on a preset network conversion protocol, the communication message is sent to the second device using a second network protocol.
7. The method according to claim 1, characterized in that, The method further includes: The network status is monitored to obtain network monitoring data; Based on the network monitoring data, adjust the network access parameters of devices that have already connected to the network.
8. The method according to claim 1, characterized in that, The method further includes: Monitor the operation of devices already connected to the network and generate device monitoring data; Based on the device monitoring data, device monitoring feedback information in natural language is generated and sent to the user.
9. A device for power distribution, characterized in that, include: The instruction receiving module is used to receive natural language instructions issued by users through the mini-program; The status acquisition module is used to acquire the network status and the device status of the device if the natural language instruction is used to indicate network configuration for the device. The network distribution scheme generation module is used to generate a network distribution scheme for the device based on the device status, the network status, and the natural language instructions. A network access module is used to connect the device to the network using the device's network configuration scheme; Optionally, the distribution network scheme generation module includes: The network configuration preference extraction submodule is used to extract user network configuration preferences from the natural language instructions using a preset language model; the user network configuration preferences are used to indicate what method the user currently expects to use to access the network; The network access method determination submodule is used to determine the network access method of the device based on the device status, the network status, the user's network configuration preference, and the network status, as the network configuration scheme of the device.
10. 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; When the processor executes a program stored in the memory, it implements the method as described in any one of claims 1-8.
11. A computer-readable medium having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-8.
Citation Information
Patent Citations
Intelligent equipment network distribution method and system based on WeChat applet
CN111866995A
Intelligent equipment network access method, device and system and electronic equipment
CN117938562A
Network configuration method and device for smart device, and storage medium
WO2022016674A1