Control method and device of network connection equipment, equipment, medium and product
By receiving voice commands and converting them into text commands, and querying or generating parameter commands to control the wireless router, the problem of complex wireless router operation interfaces is solved, achieving the effects of simplified operation and improved management efficiency.
Patent Information
- Application Number
- CN202511377571.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-23
- Publication Date
- 2025-12-12
AI Technical Summary
The existing wireless router backend system has complex technical terminology and deeply nested functional layers, which leads to significant usage obstacles for non-professional parents in network management and results in low network management efficiency.
By receiving voice commands from target users, converting them into text commands, and querying or generating corresponding parameter commands in the database, the system can directly control network-connected devices, simplifying operation processes and improving management efficiency.
It reduces the cognitive burden on parents or home network administrators, improves the efficiency of network management, and enables voice control of network-connected devices, simplifying complex operating procedures.
Smart Images

Figure CN121125802A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network management technology, and more specifically to control methods, devices, equipment, media, and products for network connection devices. Background Technology
[0002] As society continues to develop, more and more families are connecting to wired networks, and modern wireless routers, as the central hub of home networks, have transformed from simple signal forwarding devices into smart terminals. Currently, a single wireless router can support the simultaneous connection of hundreds of terminal devices. In recent years, an increasing number of children's devices have also been incorporated into home networks, making the management of these devices, especially children's devices, a key focus for parents.
[0003] However, the user interfaces of existing wireless routers generally suffer from complex technical terminology and deeply nested functionalities, posing significant obstacles to use for non-expert parents. The excessive use of technical jargon in these interfaces forces ordinary users to repeatedly consult documentation to complete basic configurations. Furthermore, some critical management functions require navigating multiple layers of paths, making access overly difficult. These two issues result in less than half of current users being able to successfully configure wireless router network management functions, despite their awareness of them. Summary of the Invention
[0004] In view of this, the present invention provides a control method, apparatus, device, medium and product for network connection devices to solve the problems of high cognitive cost, difficult operation and low efficiency of network management.
[0005] In a first aspect, the present invention provides a control method for a network connection device, the method comprising:
[0006] Receive voice commands from the target user;
[0007] The voice command is converted into the corresponding text command;
[0008] The target parameter instruction corresponding to the text instruction is queried in the first database; the first database is used to store preset parameter instructions.
[0009] If a target parameter instruction corresponding to the text instruction exists in the first database, the target parameter instruction is sent to the controlled network connection device to instruct the network connection device to control the network connection permissions of the corresponding terminal device according to the target parameter instruction.
[0010] By receiving voice commands from the target user, converting the voice commands into text commands, querying a first database, and sending the retrieved target parameter commands to the controlled network connection device, the network connection device executes the target parameter commands, thereby achieving the effect of controlling the network connection permissions of the corresponding terminal device. The network connection device control method provided in this embodiment can reduce the cognitive cost of network management for parents or family network administrators, allowing them to control the corresponding network connection devices via voice, simplifying operation and enhancing the efficiency of network management.
[0011] In one optional implementation, the method further includes:
[0012] If no target parameter instruction corresponding to the text instruction exists in the first database, then a target parameter instruction corresponding to the text instruction is generated based on the large model, and the target parameter instruction is sent to the controlled network connection device.
[0013] In one optional implementation, generating the target parameter instruction corresponding to the text instruction based on the large model includes:
[0014] The text instruction is parsed to determine the first control parameter in the text instruction, and the first parameter type corresponding to the first control parameter is determined.
[0015] If the text instruction is missing a control parameter corresponding to the second parameter type, then the second database is queried according to the second parameter type; the second parameter type is one of the other parameter types besides the first parameter type among the multiple parameter types necessary for generating the parameter instruction; the second database is used to store the second control parameter corresponding to the second parameter type.
[0016] Based on the second control parameter corresponding to the second parameter type retrieved from the second database, the text instruction is completed, and a target parameter instruction corresponding to the completed text instruction is generated based on the large model.
[0017] In an optional implementation, after querying the second database according to the second parameter type, the method further includes:
[0018] If no second control parameter corresponding to the second parameter type is found in the second database, a prompt message is generated to prompt the target user to input the second control parameter.
[0019] After receiving the second control parameter input by the target user, the text instruction is completed according to the second control parameter to generate a target parameter instruction corresponding to the completed text instruction based on the large model;
[0020] The second control parameter input by the target user, and the second parameter type corresponding to the second control parameter, are stored in the second database.
[0021] In one optional implementation, the method further includes:
[0022] If the text instruction does not contain a missing second parameter type, then a target parameter instruction corresponding to the text instruction is generated based on the large model.
[0023] In one optional implementation, the method further includes:
[0024] The voice command is subjected to voiceprint recognition, and a target user identifier is determined based on the result of the voiceprint recognition. The target user identifier is used to query the second database for a second control parameter that belongs to the second parameter type and corresponds to the target user identifier.
[0025] In one optional implementation, the method further includes:
[0026] Perform vector operations on the text instructions to obtain the vectors corresponding to the text instructions;
[0027] The vector corresponding to the text instruction and the target parameter instruction are stored in the first database.
[0028] In an optional implementation, the first database further includes a first vector corresponding to the parameter instruction; the step of querying the first database for the target parameter instruction corresponding to the text instruction includes:
[0029] Perform vector operations on the text instructions to obtain a second vector;
[0030] Based on the second vector and one or more first vectors, calculate one or more matching degrees between one or more first vectors and the second vector;
[0031] If the maximum matching degree is greater than a preset threshold, it is determined that there exists a target parameter instruction in the first database that corresponds to the text instruction; the target parameter instruction is the parameter instruction in the first database that corresponds to the maximum matching degree.
[0032] If the maximum matching degree is less than a preset threshold, it is determined that there is no target parameter instruction corresponding to the text instruction in the first database.
[0033] In one optional implementation, the target parameter instructions in the first database are provided with a corresponding user identifier;
[0034] The method further includes:
[0035] Voiceprint recognition is performed on the voice command, and a target user identifier is determined based on the result of the voiceprint recognition; the target user identifier is used to query the first database for a target parameter command corresponding to the text command and the target user identifier.
[0036] In an optional implementation, the method further includes:
[0037] Receive the voice of the target user and identify the voiceprint in the voice;
[0038] The voiceprint is assigned a user identifier for the target user and stored in a voiceprint database; the voiceprint database is used to determine the corresponding user identifier based on the voiceprint recognition result.
[0039] In one optional implementation, sending the target parameter instruction to the controlled network connection device includes:
[0040] The target parameter instruction and the network connection device identifier are encapsulated and uploaded to the server; the server is instructed to identify the network connection device identifier and forward the target parameter instruction to the network connection device corresponding to the network connection device identifier.
[0041] By receiving voice commands from the target user, the voice commands are converted into text commands and queried in a first database. If the command is not found, a target parameter command corresponding to the text command is generated using a large model. Furthermore, during the generation of the target parameter command based on the large model, if some control parameters are missing in the text command converted from the target user's voice command, the control parameters can be supplemented by querying a second database or by inputting them from the target user. The control parameters input by the target user are stored in the second database, enabling the generation of the corresponding target parameter command based on the large model. The target parameter command is then sent to the controlled network connection device, which executes the command to control the network connection permissions of the corresponding terminal device. The network connection device control method provided in this embodiment reduces the cognitive cost for parents or family network administrators regarding network management. When there are errors in the voice input by parents or family network administrators, the command can be automatically queried from the second database or manually supplemented, thus enhancing the efficiency of network management.
[0042] In a second aspect, the present invention provides a control device for a network connection device, the device comprising:
[0043] The receiving module is used to receive voice commands from the target user.
[0044] The conversion module is used to convert the voice command into the corresponding text command.
[0045] The query module is used to query the target parameter instruction corresponding to the text instruction in the first database; the first database is used to store preset parameter instructions.
[0046] The forwarding module is configured to send the target parameter instruction to the controlled network connection device if a target parameter instruction corresponding to the text instruction exists in the first database, so as to instruct the network connection device to control the network connection permissions of the corresponding terminal device according to the target parameter instruction.
[0047] Thirdly, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the control method of the network connection device described in the first aspect or any corresponding embodiment thereof.
[0048] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing an electronic device to perform the control method of the network connection device described in the first aspect or any corresponding embodiment thereof.
[0049] Fifthly, the present invention provides a computer program product, including computer instructions for causing an electronic device to execute the control method of a network connection device described in the first aspect or any corresponding embodiment thereof. Attached Figure Description
[0050] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0051] Figure 1 This is a flowchart illustrating a control method for a network connection device according to an embodiment of the present invention;
[0052] Figure 2 This is a flowchart illustrating a control method for another network connection device according to an embodiment of the present invention;
[0053] Figure 3 This is a flowchart illustrating a control method for another network connection device according to an embodiment of the present invention;
[0054] Figure 4 This is a flowchart illustrating a control method for another network connection device according to an embodiment of the present invention;
[0055] Figure 5 This is a schematic diagram of a control method for a network connection device according to an embodiment of the present invention;
[0056] Figure 6 This is a control logic topology diagram of a network connection device according to an embodiment of the present invention;
[0057] Figure 7 This is a structural block diagram of a control device for a network connection device according to an embodiment of the present invention;
[0058] Figure 8 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0059] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0060] Currently, the back-end system operation interface of wireless routers generally suffers from problems such as complex technical terminology and excessively deep nested functional layers, which pose significant obstacles to the use of wireless routers by non-professional parents in the process of network management.
[0061] The back-end system operation interface of wireless routers uses too many technical terms, such as SSID (Service Set Identifier), DHCP (Dynamic Host Configuration Protocol), port forwarding, etc. This means that most parents need to repeatedly refer to the instruction manual to complete the basic configuration during the network management process.
[0062] Meanwhile, some functions require accessing multiple paths, and some critical control functions typically require clicking through multiple menus to configure and manage them, making their entry points overly hidden. For example, the "online class whitelist" function in a mainstream router application requires users to click "Advanced Settings → Security Protection → Application Management" sequentially to configure and manage it.
[0063] This invention provides a method for controlling network connection devices, which reduces the cognitive burden on parents or family network administrators by controlling network connection devices through voice, while enhancing the efficiency of network management.
[0064] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in an electronic device such as a set of executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0065] This embodiment provides a control method for a network connection device, which can be used in the aforementioned electronic devices, such as mobile phones, tablets, and computer devices. Figure 1 This is a flowchart of a control method for a network connection device according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:
[0066] Step S101: Receive voice commands from the target user.
[0067] Electronic devices can receive voice commands from target users via one or more microphones. After receiving the voice command, the microphone converts it into a digital signal and transmits it to the electronic device. This voice command can be used by the target user for network management, such as: "Prohibit A's mobile phone from accessing the internet after 10 PM."
[0068] The voice command is used to control the network connection permissions of the terminal device connected to the network. Therefore, under normal circumstances, the voice command needs to include the terminal identifier of the corresponding terminal device, such as "A's mobile phone" mentioned above. In addition, the voice command can also include permission information related to permissions, such as "prohibit" and "internet access after 10 o'clock" mentioned above.
[0069] Step S102: Convert the voice command to obtain the corresponding text command.
[0070] After receiving a voice command in digital signal form, the electronic device converts the voice command into a corresponding text command. In this embodiment, ASR (Automatic Speech Recognition) technology deployed on a cloud platform can be used to convert a segment of audio digital signal into a corresponding segment of text. Simultaneously, normalization processing can be performed. During the conversion using ASR, the model can be optimized for a specific domain (network control in this embodiment) to enhance ASR's domain-specific bias. For example, in the network control domain, ASR will be more inclined to output network control-related terms such as "disconnect," "connect," and "allow." After obtaining the corresponding text command, the text command can also be further normalized. For example, network control terms such as "prohibit," "disconnect," and "close" can be normalized and represented by a single word, "disable." It is understood that the text command in this step can be the original text command or a normalized text command.
[0071] Step S103: Query the target parameter instruction corresponding to the text instruction in the first database; the first database is used to store preset parameter instructions.
[0072] When sending a command to a corresponding network-connected device, the device needs to be able to recognize the command. In this case, the command sent to the network-connected device can be a parameter command. After receiving a voice command and converting it into a text command, the corresponding target parameter command can be searched in a first database. In this embodiment, the first database can be a quick command database, which can store some parameter commands to quickly determine the currently needed target parameter command. The quick command database can be built on a cloud platform, and after obtaining a text command, it can be queried within the quick command database on the cloud platform.
[0073] Step S104: If a target parameter instruction corresponding to the text instruction exists in the first database, the target parameter instruction is sent to the controlled network connection device to instruct the network connection device to control the network connection permissions of the corresponding terminal device according to the target parameter instruction.
[0074] As mentioned earlier, network connection devices require parameter commands to correctly recognize instruction content. Therefore, after querying the target parameter command corresponding to the text command in the first database, the target parameter command can be used directly, i.e., sent directly to the controlled network connection device. The target parameter command contains one or more control parameters, such as a MAC address, used to control the terminal device corresponding to that MAC address. These control parameters contain all the information required for the network connection device to execute the corresponding control function. The network connection device can adjust the corresponding terminal device and its network connection permissions based on the control parameters in the parameter command.
[0075] The network connection device control method provided in this embodiment receives voice commands from a target user, converts the voice commands into text commands, queries a first database, and sends the retrieved target parameter commands to the controlled network connection device. The network connection device executes the target parameter commands, thereby controlling the network connection permissions of the corresponding terminal device. This control method reduces the cognitive cost of network management for parents or family network administrators, allowing them to control the corresponding network connection devices via voice, simplifying operation and enhancing network management efficiency.
[0076] This embodiment provides a control method for a network connection device, which can be used in the aforementioned electronic devices, such as mobile phones, tablets, and computer devices. Figure 2 This is a flowchart of a control method for a network connection device according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:
[0077] Step S201: Receive voice commands from the target user.
[0078] Please see details Figure 1 Step S101 of the illustrated embodiment will not be described again here.
[0079] Step S202: Convert the voice command to obtain the corresponding text command.
[0080] Please see details Figure 1 Step S102 of the illustrated embodiment will not be described again here.
[0081] Step S203: Query the target parameter instruction corresponding to the text instruction in the first database; the first database is used to store preset parameter instructions.
[0082] Please see details Figure 1 Step S103 of the illustrated embodiment will not be described again here.
[0083] Step S204: If a target parameter instruction corresponding to the text instruction exists in the first database, the target parameter instruction is sent to the controlled network connection device to instruct the network connection device to control the network connection permissions of the corresponding terminal device according to the target parameter instruction.
[0084] Please see details Figure 1 Step S104 of the illustrated embodiment will not be described again here.
[0085] Step S205: If there is no target parameter instruction corresponding to the text instruction in the first database, then generate the target parameter instruction corresponding to the text instruction according to the large model, and send the target parameter instruction to the controlled network connection device.
[0086] Understandably, the first database cannot retrieve all text commands converted from voice commands. When a target parameter command corresponding to a text command does not exist in the first database, it is necessary to generate the corresponding target parameter command using the text command based on the large model. During the generation of the target parameter command, an LLM (Large Language Model) approach can be used. The text command is input as a prompt word into the LLM, causing the LLM to output a target parameter command. For example, the prompt word could be: "You are the router's child internet control assistant. Help me extract the target parameter command for the network connection device from the text command entered by the user. The text command is: 'Do not watch TV before 9 PM.'" In this case, the LLM will output a target parameter command corresponding to the text command.
[0087] In some optional implementations, step S205, "generating target parameter instructions corresponding to text instructions based on the large model," includes steps S2051 to S2058.
[0088] Step S2051: Parse the text instruction, determine the first control parameter in the text instruction, and determine the first parameter type corresponding to the first control parameter.
[0089] In this embodiment, the text instruction generally includes parameters used to control the network connection permissions of the terminal device, i.e., control parameters. For ease of description, the control parameters already present in the text instruction (i.e., the control parameters contained within the text instruction itself) are referred to as the first control parameters. The text instruction can be parsed by a large model to determine each of the first control parameters in the text instruction. Obviously, by obtaining the first control parameters, the large model can generate the corresponding target parameter instruction based on the first control parameters.
[0090] At the same time, the large model needs to determine the parameter type corresponding to the first control parameter, i.e., the first parameter type. Each control parameter will correspond to a parameter type. For example, the control parameter can be "9:00~18:00", and its corresponding parameter type is time range; the control parameter can also be "allow", and its corresponding parameter type is operation type.
[0091] In this embodiment, parameter types may include MAC (Media Access Control) address (also known as physical address), time range, operation type, weekday information (i.e., which day of the week it takes effect), and rule validity value (used to determine whether the rule is effective), etc.
[0092] In this embodiment, it can be determined at this time whether a second parameter type other than the first parameter type is missing from the text instruction; the control parameter corresponding to the second parameter type is used to generate the parameter instruction. If the second parameter type is missing from the text instruction, the subsequent step S2052 is executed; conversely, if the second parameter type is not missing from the text instruction, the subsequent step S2057 is executed.
[0093] Step S2052: If the control parameter corresponding to the second parameter type is missing in the text instruction, then the second database is queried according to the second parameter type. The second parameter type is one of the other parameter types besides the first parameter type among the multiple parameter types necessary for generating the parameter instruction; the second database is used to store the second control parameter corresponding to the second parameter type.
[0094] It's understandable that some voice commands provided by non-professional parents, when converted to text, may not include all the control parameters required for the target parameter command. Alternatively, some parents or network administrators may omit certain control parameters in the voice commands for various reasons. In such cases, the first control parameter in the text command cannot generate a complete target parameter command. Therefore, it's necessary to determine the types of missing control parameters in the text command. This determines which parameter type(s) are missing after the user-provided voice command is converted to text. The missing parameter type is called the second parameter type, and the missing control parameter (i.e., the control parameter corresponding to the second parameter type) is called the second control parameter. For example, if the user-provided voice command is converted to text as "Restrict Xiaohua from playing games on the computer," then it's necessary to determine the types of missing control parameters. The missing control parameter types in this text command might be: time range and day of the week information.
[0095] Once it is determined which parameter type(s) of control parameters are missing from the text command, i.e., the second parameter type is determined, a query can be performed in the second database based on the second parameter type. In this embodiment, the second database can be an external knowledge base that stores various parameter types and their corresponding control parameters. In actual use, when a user causes control parameters to be missing for some reason, the missing parameters can be filled by querying the external knowledge base.
[0096] Step S2053: Based on the second control parameter corresponding to the second parameter type found in the second database, complete the text instruction, and generate the target parameter instruction corresponding to the completed text instruction based on the large model.
[0097] In the previous step, a query was performed in the second database based on the second parameter type to obtain the second control parameters corresponding to the second parameter type. These second control parameters, together with the first control parameters parsed from the text command, form a complete target parameter command. Therefore, in this step, the second control parameters are used to complete the text command, resulting in a completed text command (including the first and second control parameters). Based on the large model, the completed text command is used to generate the corresponding target parameter command. For example, after the user-provided voice command is converted into a text command, the text command is: "Restrict Xiaohua's computer from playing games." The missing control parameter types in this text command are: time range and weekday information. At this time, in the plug-in knowledge base, it can be found that the second parameter type corresponding to the weekday information is daily (i.e., Monday to Sunday), and the time range is 18:00-19:00. Based on the content found in the plug-in knowledge base, the text command after completing the original text command is: "Restrict Xiaohua's computer from 18:00-19:00 to play games, daily." After completing the text instruction, it can be converted into prompt words based on the large model to generate corresponding target parameter instructions. In this embodiment, the prompt words converted from the text instruction can be: "You are the router's child internet control assistant. Help me extract control instructions for the terminal device from the natural language input by the user. Please ensure the correctness of the extracted control instructions and extract the control instructions for the terminal device in a rigorous manner. Text instruction: Restrict Xiaohua's computer from playing games from 18:00 to 19:00 every day; Please parse the text instruction according to the following format and return the control instruction: {"mac":"0C-33-4F-5D-FA-66","list":[{"status":"enable","action":"off","timeRange":"","week":[]}]}."
[0098] In this embodiment, the target parameter instruction generated based on "restricting Xiaohua's computer to play games from 18:00 to 19:00 every day" can be as follows:
[0099]
[0100] It is understandable that in some cases, the second parameter type may be missing in the text instruction, and the second control parameter corresponding to the second parameter type may not be found in the second database. If the second parameter type cannot be found in the second database, or the second control parameter corresponding to the second parameter type cannot be found, then the subsequent steps S2054 to S2056 shall be executed.
[0101] Step S2054: If no second control parameter corresponding to the second parameter type is found in the second database, a prompt message is generated to prompt the target user to input the second control parameter.
[0102] In some cases, the text command may lack a second parameter type, and the corresponding second control parameter may not be stored in the second database. In such situations, a query cannot be performed, and the user needs to input it. A prompt message can be generated to encourage the target user to input the second control parameter, and this input can be received. In practice, the second control parameter can be categorized for input. For example, the user can be notified that two second parameter types—time range and operation type—are currently missing, and two input fields can be provided, allowing the user to input the corresponding control parameters for each of the two second parameter types in separate fields.
[0103] Step S2055: After receiving the second control parameter input by the target user, the text instruction is completed according to the second control parameter to generate a target parameter instruction corresponding to the completed text instruction based on the large model.
[0104] As mentioned earlier, in some cases, the user needs to input a second control parameter. After the user completes the input, the second control parameter, together with the first control parameter parsed from the text instruction, can form a complete text instruction, which in turn generates the target parameter instruction.
[0105] In this step, the text command is completed using the second control parameter entered by the user.
[0106] Step S2056: Store the second control parameter input by the target user and the second parameter type corresponding to the second control parameter into the second database.
[0107] After the target user completes the input of the second control parameters, the second control parameters and their corresponding types can be stored in the second database, thus updating the second database. When the target user subsequently uses voice control to connect to the network device, if any second control parameters are missing, the second database can be used to directly complete the missing parameters, eliminating the need for the target user to re-enter them.
[0108] As mentioned earlier, when determining whether a second parameter type other than the first parameter type is missing in the text instruction, if no second parameter type is missing in the text instruction, the subsequent step S2057 is executed.
[0109] Step S2057: Based on the large model, generate target parameter instructions corresponding to the text instructions.
[0110] When the first control parameter in the text command converted from the target user's voice command has a complete first parameter type, that is, the second parameter type is not missing, the first control parameter in the text command can be directly used to generate the target parameter command corresponding to the text command through the large model.
[0111] In this embodiment, upon receiving a text command converted from a user's voice command, a multi-threaded command conversion process can be performed simultaneously to ensure the efficiency of command conversion. The multi-threaded process may include the following threads:
[0112] Thread 1: Terminal Identification
[0113] Based on the number of currently connected devices on the wireless router, a terminal list is generated, including terminal identifiers and their corresponding physical addresses. In the terminal list, users can modify terminal identifiers and more conveniently control terminals via voice.
[0114] Call the large model and extract the terminal identifier (such as "Xiaohua's computer") from the terminal list.
[0115] Thread 2: Instruction Verification
[0116] Based on the large model, determine whether control parameters can be extracted through text commands. For text commands that cannot extract control parameters, return a prompt to the user and guide the user on how to use the command based on its content.
[0117] Thread 3: Parameter Instruction Conversion
[0118] The large model parsing instructions generate parameter instructions, including key fields such as status, action, timeRange, and week.
[0119] The network connection device control method provided in this embodiment receives voice commands from a target user, converts the voice commands into text commands, and queries a first database. If the text command is not found, a target parameter command corresponding to the text command is generated using a large model. Furthermore, during the generation of the target parameter command based on the large model, if some control parameters are missing in the text command converted from the target user's voice command, the control parameters can be supplemented by querying a second database or by inputting them from the target user. The control parameters input by the target user are stored in the second database, enabling the generation of the corresponding target parameter command based on the large model. The target parameter command is then sent to the controlled network connection device, which executes the target parameter command to achieve the effect of controlling the network connection permissions of the corresponding terminal device. This network connection device control method can reduce the cognitive cost for parents or family network administrators in network management. When there are errors in the voice input by parents or family network administrators, the command can be automatically queried from the second database or manually supplemented, thus improving the efficiency of network management.
[0120] This embodiment provides a control method for a network connection device, which can be used in the aforementioned electronic devices, such as mobile phones, tablets, and computer devices. Figure 3 This is a flowchart of a control method for a network connection device according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps:
[0121] Step S301: Receive voice commands from the target user.
[0122] Please see details Figure 1 Step S101 of the illustrated embodiment will not be described again here.
[0123] Step S302: Convert the voice command to obtain the corresponding text command.
[0124] Please see details Figure 1 Step S102 of the illustrated embodiment will not be described again here.
[0125] Step S303: Query the target parameter instruction corresponding to the text instruction in the first database; the first database is used to store preset parameter instructions.
[0126] Please see details Figure 1 Step S103 of the illustrated embodiment will not be described again here.
[0127] In some optional implementations, the first database may further include a first vector corresponding to the parameter instruction, in which case step S303 may include steps S3031 to S3034.
[0128] Step S3031: Perform vector operations on the text instructions to obtain the second vector.
[0129] When performing a query, the voice command issued by the target user needs to be converted into a corresponding text command, which is then used for vector operations to transform the text command into a vector pattern. For example, a vector is an array of length 768 or 1024. By comparing the vector corresponding to the text command with other vectors, the computer can calculate semantic similarity. In this embodiment, an embedding model can be used to generate the vector corresponding to the text command during vector operations.
[0130] Step S3032: Based on the second vector and one or more first vectors, calculate one or more matching degrees between one or more first vectors and the second vector.
[0131] One or more parameter commands are stored in the first database, and each parameter command corresponds to a first vector. Then, a second vector is used to compare each of the stored first vectors with the second vector to obtain the matching degree of the second vector with each first vector. The matching degree is, for example, a value between 0 and 1, where a larger value indicates a higher similarity between the two vectors. For example, when the text command is "Turn off the Wi-Fi in the living room," the vector obtained after vector operation on this text command has a relatively high matching degree with the vector corresponding to "Turn off the network in the living room," but a lower matching degree with the vector corresponding to "The weather is nice today."
[0132] Step S3033: If the maximum matching degree is greater than the preset threshold, it is determined that there is a target parameter instruction corresponding to the text instruction in the first database; the target parameter instruction is the parameter instruction corresponding to the maximum matching degree in the first database.
[0133] After obtaining the matching degree of the second vector with respect to all first vectors, a maximum matching degree and the first vector corresponding to that maximum matching degree can be selected. However, in some cases, such as when the number of first vectors stored in the first database is small, the maximum matching degree may also be relatively low. That is, the text command issued by the target user has a low similarity to the text command corresponding to the first vector stored in the first database. In this case, outputting the target parameter command corresponding to the first vector with the maximum matching degree will not meet the user's needs. Therefore, in this step, it is also necessary to calculate whether the maximum matching degree is greater than a preset threshold. In this embodiment, the preset threshold can be 0.95. Only when the maximum matching degree is greater than the preset threshold can the parameter command corresponding to the maximum matching degree be determined as the target parameter command.
[0134] Step S3034: If the maximum matching degree is less than the preset threshold, it is determined that there is no target parameter instruction corresponding to the text instruction in the first database.
[0135] As mentioned earlier, if the maximum matching degree is less than the preset threshold, it can be determined that the maximum matching degree is relatively low. That is, the target parameter instruction corresponding to the first vector with the maximum matching degree cannot meet the user's needs. Therefore, in this step, if the maximum matching degree is less than the preset threshold, it is determined that there is no target parameter instruction corresponding to the text instruction in the first database.
[0136] Step S304: If a target parameter instruction corresponding to the text instruction exists in the first database, the target parameter instruction is sent to the controlled network connection device to instruct the network connection device to control the network connection permissions of the corresponding terminal device according to the target parameter instruction.
[0137] Please see details Figure 1 Step S104 of the illustrated embodiment will not be described again here.
[0138] Step S305: If there is no target parameter instruction corresponding to the text instruction in the first database, then generate the target parameter instruction corresponding to the text instruction according to the large model, and send the target parameter instruction to the controlled network connection device.
[0139] Please see details Figure 2 Step S205 of the illustrated embodiment will not be described again here.
[0140] In some alternative implementations, steps S306 and 307 may be included after the target parameter instructions generated based on the large model, for example, after step S305.
[0141] Step S306: Perform vector operations on the text instructions to obtain the vectors corresponding to the text instructions.
[0142] When storing the target parameter instructions generated by the large model, it is also necessary to store the corresponding text instructions so that the target parameter instructions can be retrieved from the first database later based on similar text instructions. During the storage of text instructions, vector operations can be performed on them. Vector operations take a piece of text as input and output a corresponding text vector, which is the vector in this step. It can be understood that the vector corresponding to this text instruction is the second vector mentioned above.
[0143] Step 307: Store the vector corresponding to the text instruction and the target parameter instruction generated based on the large model into the first database.
[0144] When a large model is needed to generate target parameter commands, it's clear that the target parameter command corresponding to the text command cannot be found in the first database. Therefore, the large model is required to generate the target parameter command. After the large model generates the target parameter command, it can be stored in the first database. This allows users to directly call the corresponding target parameter command in the first database when performing similar voice control operations, without needing to rely on the large model for calculations, thus improving the efficiency of generating target parameter commands.
[0145] After performing vector operations on the text instructions, the vector corresponding to the text instructions is stored as the first vector mentioned earlier, along with its corresponding target parameter instruction. In the first database, the vector corresponding to the text instruction can be used as a key, and the corresponding target parameter instruction as a value. When querying the first database, the corresponding value can be found using the key.
[0146] The network connection device control method provided in this embodiment receives voice commands from a target user, converts the voice commands into text commands, queries a first database, generates a vector corresponding to the text command through vector operations, compares it with the vectors in the first database, and uses mathematical methods to calculate the semantic similarity between the text commands. In this way, when a user issues a voice command, they no longer need to match word by word; instead, they can match and find the corresponding operation through similar expressions. This reduces the cognitive cost of network management for parents or family network administrators, while enhancing the efficiency of network management.
[0147] This embodiment provides a control method for a network connection device, which can be used in the aforementioned electronic devices, such as mobile phones, tablets, and computer devices. Figure 4 This is a flowchart of a control method for a network connection device according to an embodiment of the present invention, such as... Figure 4 As shown, the process includes the following steps:
[0148] Step S401: Receive the voice of the target user and identify the voiceprint in the voice.
[0149] Before receiving a user's voice command, the system can first perform voice recognition and storage, that is, receive the target user's voice and identify the voiceprint in the voice. In this embodiment, the voiceprint recording function can be enabled, voiceprint recognition can be selected, and the target user can input the corresponding voice command by voice. For example, the corresponding voice command could be "Xiaoming Xiaoming". After recording multiple times, the system will prompt the user that the voiceprint recording is successful. At this time, the voiceprint of the target user can be identified.
[0150] Step S402: Set the user identifier for the target user for the voiceprint and store it in the voiceprint database; the voiceprint database is used to determine the corresponding user identifier based on the voiceprint recognition result.
[0151] After identifying the target user's voiceprint, a voiceprint database is established to store the voiceprint and the target user's identifier, ensuring a one-to-one correspondence between the user identifier and the voiceprint. In subsequent use, the target user's identifier can be directly determined through the voiceprint in voice commands.
[0152] Step S403: Receive voice commands from the target user.
[0153] Please see details Figure 1 Step S101 of the illustrated embodiment will not be described again here.
[0154] Step S404: Convert the voice command to obtain the corresponding text command.
[0155] Please see details Figure 1 Step S102 of the illustrated embodiment will not be described again here.
[0156] Step S405: Query the target parameter instruction corresponding to the text instruction in the first database; the first database is used to store preset parameter instructions.
[0157] Please see details Figure 1 Step S103 of the illustrated embodiment will not be described again here.
[0158] In some optional implementations, the first database further includes a first vector corresponding to the parameter instruction, and the target parameter instruction is provided with a corresponding user identifier. In this case, step S405 may include steps S4051 to S4055.
[0159] Step S4051: Perform voiceprint recognition on the voice command and determine the target user identifier based on the voiceprint recognition result.
[0160] When querying within the first database, voice commands can first undergo voiceprint recognition to identify the target user currently issuing the command. Then, a subsequent comparison process can be performed: first, the first vector belonging to the target user identifier is filtered within the first database, and then further steps are applied to this filtered first vector. This process supports the invocation of target parameter commands by multiple users, ensuring that each user can only invoke the target parameter commands corresponding to that user.
[0161] Step S4052: Perform vector operations on the text instructions to obtain the second vector.
[0162] Please see details Figure 3Step S3031 of the illustrated embodiment will not be described again here.
[0163] Step S4053: Based on the second vector and one or more first vectors, calculate one or more matching degrees between one or more first vectors and the second vector.
[0164] Please see details Figure 3 Step S3032 of the illustrated embodiment will not be described again here.
[0165] Step S4054: If the maximum matching degree is greater than the preset threshold, it is determined that there is a target parameter instruction corresponding to the text instruction in the first database; the target parameter instruction is the parameter instruction corresponding to the maximum matching degree in the first database.
[0166] Please see details Figure 3 Step S3033 of the illustrated embodiment will not be described again here.
[0167] Step S4055: If the maximum matching degree is less than the preset threshold, it is determined that there is no target parameter instruction corresponding to the text instruction in the first database.
[0168] Please see details Figure 3 Step S3034 of the illustrated embodiment will not be described again here.
[0169] Step S406: If a target parameter instruction corresponding to the text instruction exists in the first database, the target parameter instruction is sent to the controlled network connection device to instruct the network connection device to control the network connection permissions of the corresponding terminal device according to the target parameter instruction.
[0170] Please see details Figure 1 Step S104 of the illustrated embodiment will not be described again here.
[0171] In some alternative implementations, step S406, "sending the target parameter instruction to the controlled network connection device," includes step b1.
[0172] Step b1: Encapsulate the target parameter instruction and the network connection device identifier, and upload them to the server; instruct the server to identify the network connection device identifier and forward the target parameter instruction to the network connection device corresponding to the network connection device identifier.
[0173] The target parameter command and the network connection device identifier can be encapsulated and uploaded to the server. The server then uses the network connection device identifier to forward the target parameter command to the corresponding network connection device. In this embodiment, the network connection device identifier can be the network connection device's SN (Serial Number). Each network connection device corresponds to a unique SN. The corresponding network connection device can be found through the SN, and the target parameter command can be forwarded.
[0174] Step S407: If there is no target parameter instruction corresponding to the text instruction in the first database, then generate the target parameter instruction corresponding to the text instruction according to the large model, and send the target parameter instruction to the controlled network connection device.
[0175] Please see details Figure 2 Step S205 of the illustrated embodiment will not be described again here.
[0176] In some optional implementations, step S407, "generating target parameter instructions corresponding to text instructions based on the large model," includes steps c1 to c4.
[0177] Step c1: Perform voiceprint recognition on the voice command and determine the target user identifier based on the voiceprint recognition result; the target user identifier is used to query the second control parameter corresponding to the target user identifier in the second database in the corresponding second parameter type.
[0178] When querying the second database, voice commands can first undergo voiceprint recognition to identify the target user currently issuing the command. This involves filtering the second control parameters belonging to that target user from the second parameter type within the second database. This step supports the invocation of control parameters by multiple users, ensuring that each user can only access the second control parameters corresponding to their own user.
[0179] Step c2: Parse the text instruction, determine the first control parameter in the text instruction, and determine the first parameter type corresponding to the first control parameter.
[0180] Please see details Figure 2 Step S2051 of the illustrated embodiment will not be described again here.
[0181] Step c3: If the text instruction lacks a control parameter corresponding to the second parameter type, then query the second database based on the second parameter type. The second parameter type is one of the multiple parameter types necessary for generating the parameter instruction, excluding the first parameter type; the second database is used to store the second control parameter corresponding to the second parameter type.
[0182] Please see details Figure 2Step S2052 of the illustrated embodiment will not be described again here.
[0183] As mentioned earlier, after voiceprint recognition of the voice command, the identifier of the target user issuing the command can be obtained. In this embodiment, the target user identifier can be used to query the second database according to the second parameter type.
[0184] Step c4: Based on the second control parameter corresponding to the second parameter type found in the second database, complete the text instruction, and generate the target parameter instruction corresponding to the completed text instruction based on the large model.
[0185] Please see details Figure 2 Step S2053 of the illustrated embodiment will not be described again here.
[0186] In some alternative implementations, step S407, "sending the target parameter instruction to the controlled network connection device," further includes step d1.
[0187] Step d1: Encapsulate the target parameter instruction and the network connection device identifier, and upload them to the server; instruct the server to identify the network connection device identifier and forward the target parameter instruction to the network connection device corresponding to the network connection device identifier.
[0188] Please see details Figure 4 Step b1 of the illustrated embodiment will not be repeated here.
[0189] The network connection device control method provided in this embodiment pre-stores the user's voiceprint and generates a corresponding user identifier. After receiving a voice command from the target user, it searches for the corresponding user identifier based on the voiceprint in the voice command. In subsequent queries, it searches for the corresponding target parameter command in a first database using the user identifier, or searches for the corresponding second control parameter in a second database using the user identifier. This network connection device control method allows parents or family network administrators to reduce query costs and enhance network management efficiency when performing voice network management using user identifiers.
[0190] This embodiment provides a control method for a network connection device. The method pre-stores the user's voiceprint and generates a corresponding user identifier. After receiving the voice command from the target user, the method searches for the corresponding user identifier based on the voiceprint in the voice command, processes the voice command, generates a corresponding parameter command, and sends the parameter command to the corresponding network connection device, thereby achieving access control. Figure 5 This is a schematic diagram of the flow structure of a control method for a network connection device according to an embodiment of the present invention.
[0191] First, voiceprint acquisition is performed to record voiceprint information. Input voice commands are obtained through a mobile application. A user identifier (which may be a user number in this embodiment) is obtained through voiceprint recognition. The voice command is then converted into a text command via an ASR service. Upon recognition of the user identifier, the first database (i.e., the quick command database) is queried based on the user identifier and the text command, and the corresponding parameter command is obtained (for example, a quick command from the quick command database can be directly used as a parameter command). The mobile application forwards the parameter command to the server. The server obtains the network connection device identifier from the parameter command format and forwards the parameter command to the designated network connection device. The network connection device executes the corresponding parameter command, completing voice network management. In this embodiment, the server can be a cloud platform used to forward the corresponding parameter commands. The first database is the quick command database mentioned earlier, and the parameter commands can be in JSON (JavaScript Object Notation) format.
[0192] If the corresponding parameter command cannot be obtained from the first database, the text command is parsed based on the large model to determine its completeness. If the text command is incomplete, the second database is queried to supplement the missing control parameters. If the missing control parameters cannot be found in the second database either, the user is prompted to input them manually. In this embodiment, the second database can be an external knowledge base used to store the user's default control parameters. Finally, the prompt words are encapsulated based on the completed text command, and the large model converts the text command into a parameter command that the network connection device can process. The parameter command is then forwarded to the server. The server obtains the network connection device identifier from the parameter command format and forwards the parameter command to the designated network connection device. The network connection device executes the corresponding parameter command to complete the voice network management.
[0193] Figure 6 This is a control logic topology diagram of a network connection device according to an embodiment of the present invention. In the mobile application software, functions such as voice command receiving and processing and large model client can be deployed. The large model, ASR service, voiceprint database, fast command database and plug-in database can all be deployed in the cloud platform to reduce the size of the mobile application software.
[0194] This embodiment also provides a control device for a network connection device, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0195] This embodiment provides a control device for a network connection device, such as... Figure 7 As shown, it includes:
[0196] The receiving module 701 is used to receive voice commands from the target user.
[0197] The conversion module 702 is used to convert the voice command to obtain the corresponding text command.
[0198] The query module 703 is used to query the target parameter instruction corresponding to the text instruction in the first database; the first database is used to store preset parameter instructions.
[0199] The forwarding module 704 is configured to send the target parameter instruction to the controlled network connection device if a target parameter instruction corresponding to the text instruction exists in the first database, so as to instruct the network connection device to control the network connection permissions of the corresponding terminal device according to the target parameter instruction.
[0200] In some alternative implementations, the receiving module 701 includes:
[0201] The user identifier determination unit is used to perform voiceprint recognition on voice commands and determine the target user identifier based on the result of the voiceprint recognition.
[0202] In some optional implementations, the user identifier determination unit includes:
[0203] The voiceprint recognition subunit is used to receive the voice of the target user and recognize the voiceprint in the voice.
[0204] The voiceprint recording subunit is used to set the user identifier of the target user for the voiceprint and store it in the voiceprint database.
[0205] In some alternative implementations, the query module 703 includes:
[0206] The vector operation unit is used to perform vector operations on the text instructions to obtain a second vector.
[0207] A vector matching unit is used to calculate one or more matching degrees between one or more first vectors and the second vector based on the second vector and one or more first vectors.
[0208] The parameter instruction determination unit is used to determine, if the maximum matching degree is greater than a preset threshold, that there exists a target parameter instruction in the first database that corresponds to the text instruction.
[0209] If the maximum matching degree is less than a preset threshold, the missing parameter instruction unit determines that there is no target parameter instruction corresponding to the text instruction in the first database.
[0210] In some alternative implementations, the forwarding module 704 includes:
[0211] The parameter instruction generation unit is used to generate a target parameter instruction corresponding to the text instruction based on a large model if no target parameter instruction corresponding to the text instruction exists in the first database, so as to send the target parameter instruction to the controlled network connection device.
[0212] The parameter instruction encapsulation unit is used to encapsulate the target parameter instruction and the network connection device identifier, and upload them to the server; instruct the server to identify the network connection device identifier and forward the target parameter instruction to the network connection device corresponding to the network connection device identifier.
[0213] In some optional implementations, the parameter instruction generation unit includes:
[0214] The parsing subunit is used to parse the text instruction, determine the first control parameter in the text instruction, and determine the first parameter type corresponding to the first control parameter.
[0215] The judgment subunit is used to determine whether the text instruction is missing a second parameter type other than the first parameter type.
[0216] The query subunit is used to query the second database based on the second parameter type if the control parameter corresponding to the second parameter type is missing in the text instruction.
[0217] The first completion generation subunit is used to complete the text instruction based on the second control parameter corresponding to the second parameter type found in the second database, and to generate a target parameter instruction corresponding to the completed text instruction based on the large model.
[0218] The prompt information subunit is used to generate prompt information to prompt the target user to input the second control parameter if no second control parameter corresponding to the second parameter type is found in the second database.
[0219] The second completion generation subunit is used to complete the text instruction according to the second control parameter input by the target user after receiving the second control parameter, so as to generate a target parameter instruction corresponding to the completed text instruction according to the large model.
[0220] The control parameter storage subunit is used to store the second control parameter input by the target user and the second parameter type corresponding to the second control parameter into the second database.
[0221] The parameter instruction generation subunit is used to generate a target parameter instruction corresponding to the text instruction based on the large model if the text instruction does not contain a missing second parameter type.
[0222] The user identifier determination subunit is used to perform voiceprint recognition on the voice command and determine the target user identifier based on the result of the voiceprint recognition.
[0223] The parameter instruction storage subunit is used to perform vector operations on the text instruction to obtain the vector corresponding to the text instruction; and to store the vector corresponding to the text instruction and the target parameter instruction in the first database.
[0224] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0225] In this embodiment, the control device of the network connection device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0226] This invention also provides an electronic device having the above-described features. Figure 7 The control device for the network connection equipment shown.
[0227] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an optional embodiment of the present invention, such as... Figure 8 As shown, the electronic device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise as required. The processors can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 8 Take a processor 10 as an example.
[0228] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0229] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.
[0230] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the electronic device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0231] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0232] The electronic device also includes an input device 30 and an output device 40. The processor 10, memory 20, input device 30, and output device 40 can be connected via a bus or other means. Figure 8 Taking the example of a connection between China and Israel via a bus.
[0233] Input device 30 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 40 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touch screen.
[0234] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0235] A portion of this invention can be applied to computer program products, such as computer program instructions, which, when executed by an electronic device, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the electronic device. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the electronic device directly executing the instructions; or the electronic device compiling the instructions and then executing the corresponding compiled program; or the electronic device reading and executing the instructions; or the electronic device reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available electronically readable storage medium or communication medium accessible to the electronic device.
[0236] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A control method for a network connection device, characterized in that, The method includes: Receive voice commands from the target user; The voice command is converted into the corresponding text command; The target parameter instruction corresponding to the text instruction is queried in the first database; the first database is used to store preset parameter instructions. If a target parameter instruction corresponding to the text instruction exists in the first database, the target parameter instruction is sent to the controlled network connection device to instruct the network connection device to control the network connection permissions of the corresponding terminal device according to the target parameter instruction.
2. The method according to claim 1, characterized in that, The method further includes: If no target parameter instruction corresponding to the text instruction exists in the first database, then a target parameter instruction corresponding to the text instruction is generated based on the large model, and the target parameter instruction is sent to the controlled network connection device.
3. The method according to claim 2, characterized in that, The step of generating the target parameter instruction corresponding to the text instruction based on the large model includes: The text instruction is parsed to determine the first control parameter in the text instruction, and the first parameter type corresponding to the first control parameter is determined. If the text instruction is missing a control parameter corresponding to the second parameter type, then the second database is queried according to the second parameter type; the second parameter type is one of the other parameter types besides the first parameter type among the multiple parameter types necessary for generating the parameter instruction; the second database is used to store the second control parameter corresponding to the second parameter type. Based on the second control parameter corresponding to the second parameter type retrieved from the second database, the text instruction is completed, and a target parameter instruction corresponding to the completed text instruction is generated based on the large model.
4. The method according to claim 3, characterized in that, After querying the second database based on the second parameter type, the method further includes: If no second control parameter corresponding to the second parameter type is found in the second database, a prompt message is generated to prompt the target user to input the second control parameter. After receiving the second control parameter input by the target user, the text instruction is completed according to the second control parameter to generate a target parameter instruction corresponding to the completed text instruction based on the large model; The second control parameter input by the target user, and the second parameter type corresponding to the second control parameter, are stored in the second database.
5. The method according to claim 3, characterized in that, The method further includes: If the text instruction does not contain a missing second parameter type, then a target parameter instruction corresponding to the text instruction is generated based on the large model.
6. The method according to claim 3, characterized in that, The method further includes: The voice command is subjected to voiceprint recognition, and a target user identifier is determined based on the result of the voiceprint recognition. The target user identifier is used to query the second database for a second control parameter that belongs to the second parameter type and corresponds to the target user identifier.
7. The method according to claim 2, characterized in that, The method further includes: Perform vector operations on the text instructions to obtain the vectors corresponding to the text instructions; The vector corresponding to the text instruction and the target parameter instruction generated based on the large model are stored in the first database.
8. The method according to claim 1, characterized in that, The first database also includes a first vector corresponding to the parameter instruction; the step of querying the target parameter instruction corresponding to the text instruction in the first database includes: Perform vector operations on the text instructions to obtain a second vector; Based on the second vector and one or more first vectors, calculate one or more matching degrees between one or more first vectors and the second vector; If the maximum matching degree is greater than a preset threshold, it is determined that there exists a target parameter instruction in the first database that corresponds to the text instruction; the target parameter instruction is the parameter instruction in the first database that corresponds to the maximum matching degree. If the maximum matching degree is less than a preset threshold, it is determined that there is no target parameter instruction corresponding to the text instruction in the first database.
9. The method according to claim 1, characterized in that, The target parameter instructions in the first database are equipped with corresponding user identifiers; The method further includes: Voiceprint recognition is performed on the voice command, and a target user identifier is determined based on the result of the voiceprint recognition; the target user identifier is used to query the first database for a target parameter command corresponding to the text command and the target user identifier.
10. The method according to claim 6 or 10, characterized in that, The method further includes: Receive the voice of the target user and identify the voiceprint in the voice; The voiceprint is assigned a user identifier for the target user and stored in a voiceprint database; the voiceprint database is used to determine the corresponding user identifier based on the voiceprint recognition result.
11. The method according to claim 1, characterized in that, Sending the target parameter instruction to the controlled network connection device includes: The target parameter instruction and the network connection device identifier are encapsulated and uploaded to the server; the server is instructed to identify the network connection device identifier and forward the target parameter instruction to the network connection device corresponding to the network connection device identifier.
12. A control device for a network connection device, characterized in that, The device includes: The receiving module is used to receive voice commands from the target user; The conversion module is used to convert the voice command into the corresponding text command; The query module is used to query the target parameter instruction corresponding to the text instruction in the first database; the first database is used to store preset parameter instructions. The forwarding module is configured to send the target parameter instruction to the controlled network connection device if a target parameter instruction corresponding to the text instruction exists in the first database, so as to instruct the network connection device to control the network connection permissions of the corresponding terminal device according to the target parameter instruction.
13. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the control method of the network connection device according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the electronic device to perform the control method of the network connection device according to any one of claims 1 to 11.
15. A computer program product, characterized in that, Includes computer instructions for causing an electronic device to perform the control method of the network connection device according to any one of claims 1 to 11.