Network configuration method of audio device and related apparatus thereof
Patent Information
- Application Number
- CN202611060139.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-16
- Publication Date
- 2026-10-13
AI Technical Summary
现代智能音频设备普遍支持Wi-Fi、蓝牙低功耗、软件接入点、云端账号绑定以及局域网设备发现等多种连接方式,使得配网过程越来越复杂
本申请的一种音频设备的配网方法及其相关装置,应用于配网控制系统,配网控制系统至少包括配置终端和待配网的音频设备,方法包括:构建音频设备对应的配网过程阶段模型,配网过程阶段模型包括多个按时序排列的配网诊断阶段;当音频设备处于配网状态时,获取配置终端的第一配网数据和音频设备的第二配网数据;当检测到配网失败事件时,基于配网失败事件对应的当前配网诊断阶段、第一配网数据和第二配网数据,通过预设的配网诊断模型进行诊断分析,确定音频设备对应的目标配网失败类型;基于目标配网失败类型,从预设的修复数据库中确定目标修复方案,并将目标修复方案发送至配置终端,以根据目标修复方案在配置终端进行修复操作。该方式中,通过构建配网过程阶段模型并结合多源数据进行诊断分析,对配网失败原因的进行定位和针对性修复,能够精准诊断配网失败原因并提供针对性修复方案,提升了配网成功率和用户体验。
Smart Images

Figure CN122909052A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio equipment technology, and in particular to a network distribution method for audio equipment and related apparatus. Background Technology
[0002] As the functionality of smart audio devices continues to expand, their network configuration process has evolved from a simple Wi-Fi password input to a complex process involving multiple steps. Modern smart audio devices generally support multiple connection methods such as Wi-Fi, Bluetooth Low Energy, software access points, cloud account binding, and LAN device discovery, making the network configuration process increasingly complex.
[0003] In practical applications, when a fault occurs during the network configuration process, only conventional prompts such as "connection failed," "incorrect password," or "device not found" are usually provided. This makes it impossible to accurately diagnose the specific cause of the failure, which reduces the success rate of network configuration and increases the user's operational burden. Summary of the Invention
[0004] To address or partially address the problems existing in related technologies, this application provides a network distribution method and related apparatus for audio devices. By constructing a phased model of the network distribution process and combining it with multi-source data for diagnostic analysis, the method can locate and specifically repair the causes of network distribution failures. This enables accurate diagnosis of network distribution failure causes and provides targeted repair solutions, thereby improving the network distribution success rate and user experience.
[0005] This application provides a method for network distribution of audio devices, applied to a network distribution control system. The network distribution control system includes at least a configuration terminal and audio devices to be networked. The method includes: constructing a network distribution process stage model corresponding to the audio devices, the network distribution process stage model including multiple network distribution diagnostic stages arranged in chronological order; when the audio devices are in a network distribution state, acquiring first network distribution data from the configuration terminal and second network distribution data from the audio devices; when a network distribution failure event is detected, performing diagnostic analysis based on the current network distribution diagnostic stage corresponding to the network distribution failure event, the first network distribution data, and the second network distribution data, using a preset network distribution diagnostic model to determine the target network distribution failure type corresponding to the audio devices; based on the target network distribution failure type, determining a target repair scheme from a preset repair database, and sending the target repair scheme to the configuration terminal for repair operation on the configuration terminal according to the target repair scheme.
[0006] In conjunction with the first aspect, in one possible implementation of the first aspect, constructing the network distribution process stage model corresponding to the audio device includes: dividing the network distribution process of the audio device into multiple network distribution diagnostic stages; wherein the network distribution diagnostic stages include at least an environment preparation stage, a device discovery stage, a temporary communication stage, a network credential writing stage, a network access stage, an address acquisition stage, a local area network discovery stage, and a cloud binding stage; determining the status information and timing information of each network distribution diagnostic stage; wherein the status information includes at least a status code, a success determination condition, a failure determination condition, and a timeout determination condition; and constructing the network distribution process stage model corresponding to the audio device based on the status information and timing information corresponding to the network distribution diagnostic stages.
[0007] In conjunction with the first aspect, in one possible implementation of the first aspect, the step of acquiring the first network configuration data of the configuration terminal and the second network configuration data of the audio device when the audio device is in network configuration status includes: acquiring the system permission status, current network status, and user input characteristics of the configuration terminal when the audio device is in network configuration status, and using them as the first network configuration data; wherein, the system permission status includes at least Bluetooth permission, location permission, and LAN permission, and the current network status includes at least the wireless LAN frequency band, service set identifier, and gateway information; based on a preset communication channel between the configuration terminal and the audio device, acquiring the current network configuration stage information, error log information, network quality information, and device information of the audio device, and using them as the second network configuration data; wherein, the network quality information includes at least the signal strength, operating frequency band, domain name information, encryption protocol type, device identifier, and authentication information of the target network.
[0008] In conjunction with the first aspect, in one possible implementation of the first aspect, the power distribution network diagnostic model is configured with multiple preset failure types. When a power distribution network failure event is detected, based on the current power distribution network diagnostic stage corresponding to the power distribution network failure event, the first power distribution network data, and the second power distribution network data, a diagnostic analysis is performed through the preset power distribution network diagnostic model to determine the target power distribution network failure type corresponding to the audio device. This includes: when a power distribution network failure event is detected, inputting the current power distribution network diagnostic stage corresponding to the power distribution network failure event, the first power distribution network data, and the second power distribution network data into the power distribution network diagnostic model to obtain the candidate confidence level, investigation cost, and repair success rate corresponding to each preset failure type; if there is only one candidate failure type with a candidate confidence level greater than a preset threshold, then the candidate failure type is determined as the target power distribution network failure type; if there are at least two candidate failure types with a candidate confidence level greater than the preset threshold, then the candidate failure types are sorted according to the investigation cost and the repair success rate, and the candidate failure type with the highest ranking is determined as the target power distribution network failure type.
[0009] In conjunction with the first aspect, in one possible implementation of the first aspect, the preset failure types include at least the following: permission exception type, terminal not found type, password error type, enterprise network authentication restriction type, guest network isolation type, encryption protocol incompatibility type, frequency band conflict type, and network service exception type.
[0010] In conjunction with the first aspect, in one possible implementation of the first aspect, the step of performing diagnostic analysis based on the current network distribution diagnosis stage corresponding to the network distribution failure event, the first network distribution data, and the second network distribution data, and determining the target network distribution failure type corresponding to the audio device through a preset network distribution diagnosis model, includes: extracting network distribution failure features from the error log information; wherein, the network distribution failure features include at least authentication failure features and handshake failure features; extracting the target network password from the user input features, and determining whether the target network password has any abnormal features; the abnormal features include at least the target network password having abnormal leading and trailing spaces, abnormal capitalization, and abnormal special characters; and determining the target network distribution failure type corresponding to the audio device as a password error type based on the network distribution failure features and the abnormal features.
[0011] In conjunction with the first aspect, in one possible implementation of the first aspect, based on the current distribution network diagnostic stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, a diagnostic analysis is performed using a preset distribution network diagnostic model to determine the target distribution network failure type corresponding to the audio device. This includes: determining whether the target network is an enterprise network based on the service set identifier, the authentication information, and the encryption protocol type; if the target network is an enterprise network, determining whether the device information of the audio device matches the authentication information of the enterprise network; if they do not match, determining that the target distribution network failure type corresponding to the audio device is an enterprise network authentication restriction type.
[0012] In conjunction with the first aspect, in one possible implementation of the first aspect, based on the current distribution network diagnosis stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, a diagnostic analysis is performed using a preset distribution network diagnosis model to determine the target distribution network failure type corresponding to the audio device. This includes: if the current distribution network diagnosis stage is the local area network discovery stage, determining whether the audio device is in a visitor isolation state based on the service set identifier, the device identifier, and the communication status of the preset communication channel; if the audio device is in a visitor isolation state, then determining the target distribution network failure type corresponding to the audio device as a visitor network isolation type.
[0013] In conjunction with the first aspect, in one possible implementation of the first aspect, the step of performing diagnostic analysis based on the current distribution network diagnostic stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, and determining the target distribution network failure type corresponding to the audio device through a preset distribution network diagnostic model, includes: determining whether the audio device matches the current encryption protocol of the configuration terminal based on the encryption protocol type and device information of the audio device; if they do not match, then determining that the target distribution network failure type corresponding to the audio device is an encryption protocol incompatibility type.
[0014] In conjunction with the first aspect, in one possible implementation of the first aspect, the step of performing diagnostic analysis based on the current distribution network diagnostic stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, and determining the target distribution network failure type corresponding to the audio device through a preset distribution network diagnostic model, includes: determining whether the operating frequency band of the audio device matches the wireless local area network frequency band of the configuration terminal; if they do not match, then determining that the target distribution network failure type corresponding to the audio device is a frequency band conflict type.
[0015] In conjunction with the first aspect, in one possible implementation of the first aspect, the step of performing diagnostic analysis based on the current network distribution diagnosis stage corresponding to the network distribution failure event, the first network distribution data, and the second network distribution data, and determining the target network distribution failure type corresponding to the audio device through a preset network distribution diagnosis model, includes: when the current network distribution diagnosis stage is the address acquisition stage, determining whether there is an anomaly in the gateway information of the configuration terminal; if there is an anomaly, determining that the target network distribution failure type corresponding to the audio device is a network service anomaly type; and / or, when the current network distribution diagnosis stage is the cloud binding stage, determining whether the domain name information of the audio device matches the gateway information of the configuration terminal; if they do not match, determining that the target network distribution failure type corresponding to the audio device is a network service anomaly type.
[0016] A second aspect of this application provides a network distribution device for audio equipment, applied to a network distribution control system. The network distribution control system includes at least a configuration terminal and audio equipment to be networked. The device includes: a construction module for constructing a network distribution process stage model corresponding to the audio equipment, the network distribution process stage model including multiple network distribution diagnostic stages arranged in chronological order; an acquisition module for acquiring first network distribution data of the configuration terminal and second network distribution data of the audio equipment when the audio equipment is in a network distribution state; a processing module for performing diagnostic analysis based on the current network distribution diagnostic stage corresponding to the network distribution failure event, the first network distribution data, and the second network distribution data, using a preset network distribution diagnostic model, to determine the target network distribution failure type corresponding to the audio equipment when a network distribution failure event is detected; and a determination module for determining a target repair scheme from a preset repair database based on the target network distribution failure type, and sending the target repair scheme to the configuration terminal for performing repair operations on the configuration terminal according to the target repair scheme.
[0017] A third aspect of this application provides an electronic device, comprising: Processor; and A memory that stores executable code, which, when executed by the processor, causes the processor to perform the method described above.
[0018] A fourth aspect of this application provides a computer-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to perform the method described above.
[0019] The technical solution provided in this application may include the following beneficial effects: This application discloses a method and related apparatus for network distribution of audio devices, applied to a network distribution control system. The network distribution control system includes at least a configuration terminal and audio devices to be networked. The method includes: constructing a network distribution process stage model corresponding to the audio devices, the network distribution process stage model including multiple network distribution diagnostic stages arranged in chronological order; when the audio devices are in network distribution state, acquiring first network distribution data from the configuration terminal and second network distribution data from the audio devices; when a network distribution failure event is detected, performing diagnostic analysis based on the current network distribution diagnostic stage, the first network distribution data, and the second network distribution data corresponding to the network distribution failure event, using a preset network distribution diagnostic model to determine the target network distribution failure type corresponding to the audio devices; based on the target network distribution failure type, determining a target repair scheme from a preset repair database, and sending the target repair scheme to the configuration terminal for repair operation according to the target repair scheme. In this method, by constructing a network distribution process stage model and combining multi-source data for diagnostic analysis, the causes of network distribution failures can be located and targeted repairs can be performed, accurately diagnosing the causes of network distribution failures and providing targeted repair schemes, thereby improving the network distribution success rate and user experience.
[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0021] The above and other objects, features and advantages of this application will become more apparent from the more detailed description of exemplary embodiments thereof in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments thereof.
[0022] Figure 1 This is a schematic flowchart illustrating the network configuration method for audio devices according to an embodiment of this application; Figure 2 This is a schematic diagram of the network distribution device for an audio device shown in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of an electronic device shown in an embodiment of this application. Detailed Implementation
[0023] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While embodiments of this application are shown in the drawings, it should be understood that this application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to make this application more thorough and complete, and to fully convey the scope of this application to those skilled in the art.
[0024] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0025] It should be understood that although the terms "first," "second," "third," etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0026] As the functionality of smart audio devices continues to expand, their network configuration process has evolved from a simple Wi-Fi password input to a complex process involving multiple steps. Modern smart audio devices generally support multiple connection methods such as Wi-Fi, Bluetooth Low Energy, software access points, cloud account binding, and LAN device discovery, making the network configuration process increasingly complex.
[0027] In practical applications, when a fault occurs during the network distribution process, only conventional prompts such as "connection failed," "incorrect password," or "device not found" are usually provided. The system cannot accurately diagnose the specific cause of the failure. Because the system cannot distinguish the specific failure type, users will perform invalid operations such as repetitive password input and device reset, which increases the interruption rate of the network distribution process, increases the user's operational burden, reduces the success rate of network distribution, and further increases the user's operational burden.
[0028] For example, in a corporate office environment, a user attempts to connect a smart audio device to the company's Wi-Fi network, which uses the 802.1X authentication mechanism. After the user enters network credentials through the configuration terminal, the device returns an authentication failure error code, but the configuration terminal only displays a "connection failed" message. This is because the configuration terminal failed to detect the target network's service set identifier characteristics and authentication information type, and also failed to collect detailed error logs returned by the device, thus failing to recognize that the network is an enterprise authentication scenario. Consequently, the user mistakenly assumes that the password was entered incorrectly, repeatedly modifying and retrying the password, without realizing that the device hardware does not support enterprise-level authentication protocols. This leads to the user continuously making invalid network configuration attempts, ultimately causing the user to abandon the configuration process.
[0029] To address the aforementioned issues, this application provides a network distribution method and related apparatus for audio devices. By constructing a phased model of the network distribution process and combining it with multi-source data for diagnostic analysis, the method can locate and specifically repair the causes of network distribution failures. This enables accurate diagnosis of network distribution failure causes and provides targeted repair solutions, thereby improving the network distribution success rate and user experience.
[0030] The technical solutions of the embodiments of this application are described in detail below with reference to the accompanying drawings.
[0031] Figure 1 This is a schematic flowchart illustrating the network configuration method for audio devices according to an embodiment of this application.
[0032] See Figure 1 A method for configuring audio devices for network distribution, applied to a network distribution control system, wherein the network distribution control system includes at least a configuration terminal and audio devices to be configured, including: S110: Construct a distribution network process stage model corresponding to the audio equipment. The distribution network process stage model includes multiple distribution network diagnostic stages arranged in chronological order.
[0033] Specifically, the configuration terminal is a device used by users to configure the network of audio devices, such as smartphones and tablets. This configuration terminal can communicate with the audio devices, send network configuration commands, and receive diagnostic information and repair solutions. The audio device to be configured is a smart audio product that needs to access the network, such as a smart speaker, wireless headphones, or streaming media player. This audio device has wireless communication capabilities, can receive network configuration commands, and can connect to the target network.
[0034] Specifically, audio devices require a certain number of processes when configuring a network. This configuration process can be broken down into multiple sequential network configuration diagnostic phases. For example, this model can simply divide the configuration process into three main phases: device initialization, network connection attempt, and service registration. In the device initialization phase, the audio device performs a self-test; in the network connection attempt phase, the device attempts to connect to the specified wireless network; and in the service registration phase, the device attempts to register with the cloud service. This configuration process phase model can be configured for specific audio devices or for a broad category of audio devices. Different configuration process phase models can be configured with different network configuration diagnostic phases. Each network configuration diagnostic phase is an independent diagnostic process; for example, device discovery, network connection, and address acquisition are all part of a network configuration diagnostic phase. By decomposing the configuration process into diagnosable phases, more specific repair solutions can be obtained based on different phases, improving network configuration efficiency.
[0035] S120: When the audio device is in the network configuration state, obtain the first network configuration data of the configuration terminal and the second network configuration data of the audio device.
[0036] Specifically, when the audio device is in the network configuration state, it means that the audio device is trying to connect to the target network. The target network can be the target network provided by the network configuration control system. At this time, the configuration terminal can obtain the wireless network name (SSID) and password manually entered by the user as the first network configuration data. At the same time, the configuration terminal can obtain the current connection status information of the audio device through the temporary communication channel established with the audio device, such as attempting to connect or connection failure, as the second network configuration data.
[0037] S130: When a distribution network failure event is detected, based on the current distribution network diagnostic stage, the first distribution network data, and the second distribution network data corresponding to the distribution network failure event, a diagnostic analysis is performed using a preset distribution network diagnostic model to determine the target distribution network failure type corresponding to the audio device.
[0038] Specifically, a network configuration failure event occurs when an audio device fails to successfully connect to the target network or complete a preset network configuration task during the network configuration process. The network configuration diagnostic model can be a pre-trained neural network model, such as an LSTM network model, capable of comprehensively analyzing the first network configuration data, the second network configuration data, and the current network configuration diagnostic stage to identify the specific type of network configuration failure. The target network configuration failure type is the specific reason for the failure obtained after analysis by the network configuration diagnostic model, such as incorrect password, network incompatibility, or insufficient permissions.
[0039] S140: Based on the target network failure type, determine the target repair plan from the preset repair database and send the target repair plan to the configuration terminal so that the repair operation can be performed on the configuration terminal according to the target repair plan.
[0040] Specifically, the repair database is a pre-stored database containing various network configuration failure types and their corresponding repair solutions. For example, if the determined target network configuration failure type is a password error, the repair database may store the text message "Please check if your password is correct and re-enter it" as a repair solution. After the repair solution is sent to the configuration terminal, the configuration terminal displays the text message to the user. The user then manually re-enters the password according to the prompt and tries to configure the network again. This method can provide a clear reason for failure and a repair solution, improving the efficiency of users in solving network configuration problems and reducing the frustration users feel when facing network configuration failures.
[0041] For example, a user is configuring a smart speaker for network setup using a smartphone. First, the network configuration control system can construct a phased model of the smart speaker's configuration process. This could include, for example, a device discovery and initialization phase, a network credential writing and connection phase, and a cloud service registration phase, each executed sequentially. When the smart speaker enters the configuration state, the configuration terminal begins acquiring configuration data. The user enters their home Wi-Fi network's SSID (e.g., "HomeWiFi") and password (e.g., "password123") on the configuration terminal, which serves as the first configuration data. Simultaneously, the configuration terminal establishes a temporary connection with the smart speaker via Bluetooth to obtain its current configuration status information, such as "attempting to connect to HomeWiFi," which serves as the second configuration data. During the configuration process, the smart speaker attempts to connect to "HomeWiFi," but because the user accidentally entered "Password123" instead of "password123" when entering the password, the connection fails, and the smart speaker sends an "authentication failed" error message to the configuration terminal. At this point, the network distribution control system detects a network distribution failure event and identifies the current network distribution diagnosis stage as the "network credential writing and connection" stage. Based on the current network distribution diagnosis stage, the first network distribution data, and the second network distribution data, the control system analyzes the data using a preset network distribution diagnosis model and determines that the target network distribution failure type for the smart speaker is a password error. Subsequently, based on the password error type, the control system retrieves the corresponding repair solution from a preset repair database. The repair solution for the password error type in the database is: "The Wi-Fi password you entered may be incorrect. Please check the capitalization and re-enter." This target repair solution is sent to the user's configuration terminal. After receiving the repair solution, the configuration terminal displays this prompt message on the screen. After seeing the prompt message, user A realizes that the password may have been entered incorrectly and re-enters the correct password "password123". Based on user A's repair operation, the configuration terminal sends the corrected network credentials to the smart speaker again. The smart speaker re-attempts to connect and finally successfully connects to the "HomeWiFi" network, completing the network distribution.
[0042] In one possible implementation, constructing a network distribution process stage model corresponding to the audio device includes: dividing the network distribution process of the audio device into multiple network distribution diagnostic stages; wherein the network distribution diagnostic stages include at least an environment preparation stage, a device discovery stage, a temporary communication stage, a network credential writing stage, a network access stage, an address acquisition stage, a local area network discovery stage, and a cloud binding stage; determining the status information and timing information of each network distribution diagnostic stage; wherein the status information includes at least a status code, a success determination condition, a failure determination condition, and a timeout determination condition; and constructing a network distribution process stage model corresponding to the audio device based on the status information and timing information corresponding to the network distribution diagnostic stages.
[0043] Specifically, by dividing the distribution network process of audio equipment into multiple distribution network diagnostic stages, a distribution network process stage model corresponding to the audio equipment can be constructed. Different distribution network diagnostic stages can be pre-set in the distribution network control system, and each stage is assigned a unique identifier. After being divided into multiple distribution network diagnostic stages, the status information of each distribution network diagnostic stage is used to determine the execution result of the stage (success, failure, timeout). The status information includes at least a status code, success determination condition, failure determination condition, and timeout determination condition, which can be used to evaluate the execution result of each distribution network diagnostic stage. For example, it can determine whether a stage is completed as expected, whether a fault occurs, or whether it takes too long. The status code is the unique coding information corresponding to each distribution network diagnostic stage, and the timing information is the time sequence between different distribution network diagnostic stages. By integrating the divided distribution network diagnostic stages, the determined status information, and the timing information, the corresponding distribution network process stage model is obtained. When a distribution network failure event occurs, the distribution network control system can quickly and accurately locate the specific stage where the fault occurred.
[0044] For example, the environment preparation phase can involve checking the system permission status of the configuration terminal, such as Bluetooth and location permissions. The status information can be: the corresponding status code is "0x01", the success condition is "all necessary permissions are enabled", the failure condition is "any necessary permission is not enabled", and the timeout condition is "permission check exceeds 5 seconds". The device discovery phase can involve the configuration terminal scanning for audio devices to be configured via Bluetooth or LAN. The corresponding status information can be: the status code is "0x02", the success condition is "broadcast signal of the target audio device is found", the failure condition is "no target device is found", and the timeout condition is "scan exceeds 30 seconds". The network credential writing phase can involve the configuration terminal sending the user-inputted Wi-Fi credentials (service set identifier, password, etc.) to the audio device through a temporary communication channel. The corresponding status information can be: the status code is "0x04", the success condition is "0x05", the failure condition is "0x06", the timeout condition is "0x07", the device discovery phase is "0x08", the device discovery phase is "0x09", the device discovery phase is "0x0 ... The first stage is the connection attempt phase. The status code is "Audio device confirms receipt and stores credentials." The failure condition is "transmission failed or device refused," and the timeout condition is "write operation exceeds 10 seconds." The second stage is the network access phase. The audio device can attempt to connect to the target Wi-Fi network using the received credentials. The corresponding status information is: status code "0x05." The success condition is "Audio device successfully obtains an IP address," and the failure condition is "authentication failed, DHCP failed, network unreachable, etc." The timeout condition is "connection attempt exceeds 20 seconds." The third stage is the cloud binding phase. After successfully accessing the network, the audio device attempts to establish a connection with the cloud server and complete device binding. The corresponding status information is: status code "0x08." The success condition is "device successfully registered and bound to user account," and the failure condition is "cloud authentication failed, domain name resolution failed, etc." The timeout condition is "binding operation exceeds 60 seconds."
[0045] In one possible implementation, when the audio device is in network configuration mode, acquiring first network configuration data from the configuration terminal and second network configuration data from the audio device includes: acquiring the system permission status, current network status, and user input characteristics of the configuration terminal as the first network configuration data; wherein, the system permission status includes at least Bluetooth permission, location permission, and LAN permission, and the current network status includes at least the wireless LAN frequency band, service set identifier, and gateway information; based on a preset communication channel between the configuration terminal and the audio device, acquiring the current network configuration stage information, error log information, network quality information, and device information of the audio device as the second network configuration data; wherein, the network quality information includes at least the signal strength, operating frequency band, domain name information, encryption protocol type, device identifier, and authentication information of the target network.
[0046] Specifically, the system permission status refers to the current authorized status of various permissions related to network configuration operations in the configuration terminal, which may include Bluetooth permission, location permission, and LAN permission; the current network status refers to the detailed information of the network currently connected to the configuration terminal. For example, the network interface of the configuration terminal can be used to query services to obtain information such as the currently connected wireless LAN frequency band as 2.4GHz, the service set identifier as MyHomeWiFi, and gateway information; when the audio device is in network configuration mode, data can be transmitted through a preset communication channel between the configuration terminal and the audio device. The preset communication channel can be pre-set, for example, through Bluetooth communication, and the current network configuration stage information of the audio device can be obtained through the preset communication channel. The system collects error log information, network quality information, and device information. The current network configuration stage information indicates the diagnostic phase the audio device is in during the entire network configuration process. Error log information provides detailed records of various errors, warnings, or abnormal events recorded by the audio device during network configuration. Network quality information includes network environment parameters obtained when the audio device connects to the target network; for example, the device's built-in wireless module can scan surrounding networks to obtain signal strength, operating frequency band, domain name information, encryption protocol type, device identification, and authentication information. Device information includes the audio device's own hardware and software information, such as model number, serial number, firmware version, and supported Wi-Fi standards. By acquiring this first and second network configuration data, the root cause of network configuration failure can be more accurately identified, facilitating the generation of accurate repair solutions.
[0047] In one possible implementation, the power distribution network diagnostic model is configured with multiple preset failure types. When a power distribution network failure event is detected, based on the current power distribution network diagnostic stage, first power distribution network data, and second power distribution network data corresponding to the failure event, a diagnostic analysis is performed using the preset power distribution network diagnostic model to determine the target power distribution network failure type corresponding to the audio device. This includes: when a power distribution network failure event is detected, inputting the current power distribution network diagnostic stage, first power distribution network data, and second power distribution network data corresponding to the failure event into the power distribution network diagnostic model to obtain the candidate confidence level, investigation cost, and repair success rate corresponding to each preset failure type; if there is only one candidate failure type with a candidate confidence level greater than a preset threshold, then the candidate failure type is determined as the target power distribution network failure type; if there are at least two candidate failure types with a candidate confidence level greater than the preset threshold, then the candidate failure types are sorted according to the investigation cost and repair success rate, and the candidate failure type with the highest ranking is determined as the target power distribution network failure type.
[0048] Specifically, the current distribution network diagnosis stage, the first distribution network data, and the second distribution network data corresponding to the distribution network failure event are input into the distribution network diagnosis model. This allows the model to obtain the specific context of the distribution network failure through the current diagnosis stage, the environmental information of the configuration terminal side through the first distribution network data, and the detailed status of the audio device side through the second distribution network data. After receiving this data, the model outputs corresponding diagnostic results for each preset failure type, namely, the candidate confidence level, troubleshooting cost, and repair success rate for each preset failure type. The diagnostic model can be a preset neural network model. The candidate confidence level represents the probability that the model considers the failure type to be the actual cause of the failure; for example, the value range can be 0-1. The troubleshooting cost is the complexity of user operations and time consumption required to resolve the failure type. For example, a password input error may have a low troubleshooting cost, while a network environment configuration problem may have a high troubleshooting cost. The repair success rate is the probability of successfully resolving the problem after taking corrective measures for the failure type. When the confidence level of only one failure type exceeds the preset threshold, it indicates that the distribution network diagnostic model has a high degree of certainty regarding the cause of the failure, and therefore this failure type can be used as the target distribution network failure type. When the confidence levels of multiple failure types all exceed the preset threshold, it indicates that there may be failure causes that the model cannot ultimately determine. In this case, the investigation cost and repair success rate can be combined and weighted, and then ranked. The candidate failure type with the highest ranking can be determined as the target distribution network failure type. For example, the candidate failure type with the highest ranking can be a failure type with low investigation cost and high repair success rate.
[0049] For example, during the network configuration process of audio equipment, the network configuration control system detects a network configuration failure event, and the current network configuration diagnosis stage is the "network access stage". At this time, the network configuration control system inputs the first network configuration data of the configuration terminal and the second network configuration data of the audio equipment into the network configuration diagnosis model. After model analysis, the following candidate failure types and their corresponding information may be output: Password error type, candidate confidence 0.9, low troubleshooting cost (user re-enters password), high repair success rate; Encryption protocol incompatibility type, candidate confidence 0.7, medium troubleshooting cost (may need to adjust router settings or device firmware), medium repair success rate; Network service anomaly type, candidate confidence 0.6, high troubleshooting cost (may need to check router or ISP), low repair success rate. Assume the preset threshold is 0.65. If the confidence of both the password error type and the encryption protocol incompatibility type is greater than the preset threshold, the system will further sort these two types according to the troubleshooting cost and repair success rate. Since the password error type has the lowest troubleshooting cost and the highest repair success rate, it is ranked highest, and the system finally determines the password error type as the target network configuration failure type.
[0050] Furthermore, regarding the first There are several preset failure types, and the candidate confidence level output by the distribution network diagnostic model is [value missing]. The cost of investigation is The repair success rate is The set of candidate failure types with a confidence level exceeding a preset threshold is: We can first normalize the screening cost of candidate failure types in the candidate set:
[0051] in, For the first The normalized investigation cost for each candidate failure type ranges from [0,1]. For the first The original screening cost for each candidate failure type; , Candidate sets Minimum and maximum costs of internal investigation; It is a very small positive number that can be preset, for example, e; After obtaining the normalized investigation cost, the priority score for each candidate failure type can be calculated. :
[0052] in, For the first Priority scoring for each candidate failure type; For the first Candidate confidence levels corresponding to each candidate failure type; For the first The repair success rate corresponding to each candidate failure type; This is a weighting factor, with a value range of [0,1]. Examine cost sensitivity factors. >0, which can be preset to control the rate at which the investigation cost decays on the priority score; The normalized screening cost; Then in the candidate failure type set The highest priority score will be used as the target network failure type.
[0053] in, The sequence number of the target distribution network failure type determined from the set; For the first Priority scoring for each candidate failure type.
[0054] For example, the distribution network diagnostic model outputs different parameters for three preset failure types: password error type: candidate confidence level =0.90, investigation cost =1, success rate of repair =0.95; Encryption protocol incompatibility type: Candidate confidence level =0.70, investigation cost =3, Repair success rate =0.60; Network service anomaly type: candidate confidence level =0.60, which is lower than the preset threshold (0.65), so the network service anomaly type is excluded, therefore the candidate failure type set is... =
Password error type, encryption protocol incompatibility type
[0055] In one possible implementation, the preset failure types include at least the following: permission error type, terminal not found type, password error type, enterprise network authentication restriction type, guest network isolation type, encryption protocol incompatibility type, frequency band conflict type, and network service error type.
[0056] Specifically, permission anomalies include network configuration failures caused by the lack of necessary system or application permissions when the configuration terminal or audio device performs the network configuration operation. For example, the configuration terminal may not have permission to access Bluetooth, location, or the local area network. Terminal not discovered type occurs when the configuration terminal cannot detect the audio device to be configured or the audio device cannot be discovered by the network during the network configuration process. For example, the audio device may not be in network configuration mode or the distance may be too far. Password error type occurs when the network credentials (such as Wi-Fi password) entered by the user during the network configuration process do not match the actual password of the target network. For example, user input errors, case sensitivity issues, improper input of special characters, etc. Enterprise network authentication restriction type occurs when the audio device attempts to connect to an enterprise-level network, but the audio device is not supported due to the more complex authentication mechanisms (such as 802.1X, MAC address binding, RADIUS authentication, etc.) employed by the enterprise network. Network configuration failures can be categorized into several types: failure to pass authentication, failure to obtain an IP address, failure to resolve a domain name, or failure to access the internet. These categories can improve the accuracy and efficiency of troubleshooting subsequent network configuration issues. For example, the audio device may fail to connect to a guest network, where client isolation is typically enabled, preventing communication between devices connected to the same network, thus preventing subsequent network configuration interaction between the configuration terminal and the audio device. Other types of network configuration failures include: failure to obtain an IP address, resolve a domain name, or access the internet after successfully connecting to the wireless network. The incompatibility of the audio device with the target network's encryption protocol (such as WEP, WPA, WPA2, WPA3) can also cause problems. Additionally, the incompatibility of the audio device with the target network can improve the accuracy and efficiency of troubleshooting.
[0057] In one possible implementation, based on the current network distribution diagnosis stage corresponding to the network distribution failure event, the first network distribution data, and the second network distribution data, a diagnostic analysis is performed using a preset network distribution diagnosis model to determine the target network distribution failure type corresponding to the audio device. This includes: extracting network distribution failure features from error log information; wherein, the network distribution failure features include at least authentication failure features and handshake failure features; extracting the target network password from user input features and determining whether the target network password has any abnormal features; the abnormal features include at least the presence of leading and trailing spaces in the target network password, the presence of capitalization errors in the target network password, and the presence of special characters in the target network password; and determining the target network distribution failure type corresponding to the audio device as a password error type based on the network distribution failure features and the abnormal features.
[0058] Specifically, information related to connection failures can be identified from these error logs. For example, authentication failure characteristics, such as "AuthenticationFailed" and "Invalid PSK," can be identified by parsing specific error codes, keywords, or event sequences in the logs; handshake failure characteristics, such as "WPA Handshake Timeout" and "EAPH Handshake Failed," can also be identified. User input characteristics refer to data related to user input obtained by the configuration terminal when the user performs network configuration operations, including the password entered by the user for the target network. When the device log shows authentication failure or handshake failure, and the user-entered password exhibits the above-mentioned abnormal characteristics, the target network configuration failure type can be considered a password error type, which can improve the accuracy and reliability of password error diagnosis.
[0059] For example, when an audio device connects to a wireless network, if the password entered by the user does not match the default password of the wireless access point (AP), the device log may record "Authentication Failed (InvalidPSK)" or "WPA Handshake Failed with reason code 14". The network configuration control system can parse these error log information, identify "authentication failure characteristics" and "handshake failure characteristics", obtain the password entered by the user from the user input characteristics, such as "MyPassword", and find that it has a case sensitivity issue. Finally, based on the authentication failure characteristics and the case sensitivity detected by the configuration terminal, the network configuration failure type is determined to be a password error type.
[0060] In one possible implementation, based on the current distribution network diagnostic stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, a diagnostic analysis is performed using a preset distribution network diagnostic model to determine the target distribution network failure type corresponding to the audio device. This includes: determining whether the target network is an enterprise network based on the service set identifier, authentication information, and encryption protocol type; if the target network is an enterprise network, determining whether the device information of the audio device matches the authentication information of the enterprise network; if they do not match, determining that the target distribution network failure type corresponding to the audio device is an enterprise network authentication restriction type.
[0061] Specifically, the Service Set Identifier (SSID) is the name used to identify the wireless LAN, which can be obtained from the list of available networks scanned by the configuration terminal. The authentication information is the credentials or protocol type used by the wireless network to verify the connection of devices, such as WPA2-PSK, WPA2-Enterprise, etc. Based on the SSID, authentication information, and encryption protocol type, it can be determined whether the target network is an enterprise network. For example, if the authentication information shows WPA2-Enterprise or 802.1X authentication, it can be determined that the network is an enterprise network. Then, it is determined whether the audio device has the credentials required to connect to the enterprise network. For example, whether the audio device supports the 802.1X authentication protocol and EAP type required by the enterprise network. If the device information of the audio device does not match the authentication information of the enterprise network, for example, if the audio device does not support the authentication protocol required by the enterprise network, it can be determined that the network configuration failure type is the enterprise network authentication restriction type.
[0062] In one possible implementation, based on the current distribution network diagnosis stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, a diagnostic analysis is performed using a preset distribution network diagnosis model to determine the target distribution network failure type corresponding to the audio device. This includes: if the current distribution network diagnosis stage is the local area network discovery stage, determining whether the audio device is in a visitor isolation state based on the service set identifier, device identifier, and the communication status of the preset communication channel; if the audio device is in a visitor isolation state, then determining the target distribution network failure type corresponding to the audio device as a visitor network isolation type.
[0063] Specifically, after an audio device connects to a wireless network and obtains an IP address, when attempting to discover other devices (such as a configuration terminal) within the local area network, it can determine whether the audio device is in guest isolation mode based on the name of the wireless network, the device identifier of the audio device, and the operational status of the communication link between the configuration terminal and the audio device. For example, if the configuration terminal and the audio device are connected to the same service set identifier and the preset communication channel is maintaining normal communication, but the configuration terminal cannot discover the audio device through the LAN discovery protocol or cannot directly access the audio device through its IP address, it can be determined that the network has enabled the guest isolation function, and the target network configuration failure type can be identified as the guest network isolation type.
[0064] In one possible implementation, based on the current distribution network diagnostic stage, first distribution network data, and second distribution network data corresponding to the distribution network failure event, a diagnostic analysis is performed using a preset distribution network diagnostic model to determine the target distribution network failure type corresponding to the audio device. This includes: determining whether the audio device matches the current encryption protocol of the configuration terminal based on the encryption protocol type and device information of the audio device; if they do not match, the target distribution network failure type corresponding to the audio device is determined to be an encryption protocol incompatibility type.
[0065] Specifically, it can be compared whether the encryption protocols supported or used by the audio device are compatible with the encryption protocols of the network currently connected to by the configuration terminal. For example, if the audio device only supports WPA2 encryption, but the configuration terminal is connected to a network that forces the use of WPA3 encryption, it is judged as a mismatch; if the audio device supports both WPA2 and WPA3, but the configuration terminal is connected to a WPA2 network, it is judged as a match. This can be used to determine whether the target network configuration failure type is due to encryption protocol incompatibility.
[0066] In one possible implementation, based on the current distribution network diagnosis stage, first distribution network data, and second distribution network data corresponding to the distribution network failure event, a diagnostic analysis is performed using a preset distribution network diagnosis model to determine the target distribution network failure type corresponding to the audio device. This includes: determining whether the operating frequency band of the audio device matches the wireless LAN frequency band of the configuration terminal; if they do not match, the target distribution network failure type corresponding to the audio device is determined to be a frequency band conflict type.
[0067] Specifically, when a network configuration failure occurs, the network configuration failure type can be determined in the preset network configuration diagnostic model using the first network configuration data (including the wireless LAN frequency band of the configuration terminal) and the second network configuration data (including the operating frequency band of the audio device). If it is found that the wireless LAN frequency band of the configuration terminal is inconsistent with the operating frequency band of the audio device, for example, the configuration terminal is connected to a 5GHz network while the audio device only supports 2.4GHz, then the target network configuration failure type can be determined to be a frequency band conflict type.
[0068] In one possible implementation, based on the current network distribution diagnosis stage, first network distribution data, and second network distribution data corresponding to the network distribution failure event, a diagnostic analysis is performed using a preset network distribution diagnosis model to determine the target network distribution failure type corresponding to the audio device. This includes: when the current network distribution diagnosis stage is the address acquisition stage, determining whether there is an anomaly in the gateway information of the configuration terminal; if an anomaly exists, determining that the target network distribution failure type corresponding to the audio device is a network service anomaly type; and / or, when the current network distribution diagnosis stage is the cloud binding stage, determining whether the domain name information of the audio device matches the gateway information of the configuration terminal; if they do not match, determining that the target network distribution failure type corresponding to the audio device is a network service anomaly type.
[0069] In one possible implementation, if the diagnosed failure type is a password error, the interactive repair guidance path in the repair strategy library includes: checking for leading and trailing spaces in the user-entered password, providing case sensitivity hints, and supporting interactive functions to display the password for user verification; after the user confirms or changes the password, only the stages related to password writing and / or network authentication are re-executed for retry; if the diagnosed failure type is an enterprise network authentication failure, the interactive repair guidance path in the repair strategy library includes: prompting the target device that it does not support the current network's enterprise-level authentication method, and providing interactive functions to export or send the target device's network identification information to the network administrator; the network identification information includes the target device's MA C address; If the diagnostic failure type is guest network isolation, the interactive repair guide path in the repair strategy library includes: prompting that the current network may have client isolation enabled, and guiding the user to connect the terminal device and the target device to the same non-isolated network; providing interactive control for detecting the reachability of communication between the terminal device and the target device, and updating the interactive repair guide path based on the detection results; If the diagnostic failure type is encryption protocol incompatibility, the interactive repair guide path in the repair strategy library includes: querying the compatibility database between the target device's firmware version and the target network's encryption protocol; generating suggested steps, including adjusting the target network's security mode or upgrading the target device's firmware, based on the compatibility database. If the diagnostic failure type is network band incompatibility or service anomaly, the interactive repair guide path in the repair strategy library includes: when the failure type is band incompatibility, guiding the user to switch the terminal device to a network with a frequency band that matches the target device; when the failure type is network service anomaly, guiding the user to check the Dynamic Host Configuration Protocol (DHCP) service status, Domain Name System (DNS) configuration, or Internet access permissions, and providing corresponding troubleshooting steps.
[0070] In one possible implementation, the method further includes converting the target distribution network failure type into natural language explanation text and displaying it on the interactive interface of the configuration terminal; generating an execution step containing multiple repair steps according to the interactive repair guidance strategy, and arranging the multiple repair steps in ascending order according to the operation difficulty and success probability; rendering the multiple repair steps sequentially on the interactive interface, and configuring a corresponding status confirmation control and automatic detection trigger control for each repair step; when receiving an automatic detection trigger instruction for the current repair step, only re-executing the distribution network diagnosis stage associated with the current repair step, and automatically jumping to the next distribution network diagnosis stage if the detection passes.
[0071] In one possible implementation, the method further includes: acquiring the audio device model, firmware version, diagnostic stage of failure, error code, network characteristics corresponding to the configuration terminal, system permission status of the configuration terminal, and repair steps attempted by the user, and generating a diagnostic data packet; uploading the diagnostic data packet to a cloud server and displaying a one-click submission control for customer service on the interface of the configuration terminal, allowing the user to send the diagnostic data packet to the customer service system; in the cloud server, anonymized failure stage data, failure type data, network access device characteristic data, repair path data, retry count data, and final network configuration result data can be transmitted back and stored; based on the stored data, high-frequency failure reasons are statistically analyzed according to preset dimensions; preset dimensions include region, device model, configuration terminal system version, firmware version, etc.; according to the high-frequency failure reasons, the pre-configuration permission check rules of the configuration terminal before network configuration are dynamically adjusted, and / or, the repair guidance text in the repair knowledge base is dynamically updated.
[0072] This application discloses a method for configuring audio devices for network distribution, applied to a network distribution control system. The network distribution control system includes at least a configuration terminal and audio devices to be configured. The method includes: constructing a network distribution process stage model corresponding to the audio devices, the network distribution process stage model including multiple network distribution diagnostic stages arranged in chronological order; when the audio devices are in network distribution state, acquiring first network distribution data from the configuration terminal and second network distribution data from the audio devices; when a network distribution failure event is detected, performing diagnostic analysis based on the current network distribution diagnostic stage, the first network distribution data, and the second network distribution data corresponding to the network distribution failure event, using a preset network distribution diagnostic model to determine the target network distribution failure type corresponding to the audio devices; based on the target network distribution failure type, determining a target repair solution from a preset repair database, and sending the target repair solution to the configuration terminal for repair operation according to the target repair solution. In this method, by constructing a network distribution process stage model and combining multi-source data for diagnostic analysis, the causes of network distribution failures can be located and targeted repairs can be performed, accurately diagnosing the causes of network distribution failures and providing targeted repair solutions, thereby improving the network distribution success rate and user experience.
[0073] Corresponding to the aforementioned application function implementation method embodiments, this application also provides a network distribution device for audio equipment, an electronic device, and corresponding embodiments.
[0074] Figure 2 This is a schematic diagram of the network distribution device for an audio device shown in an embodiment of this application.
[0075] See Figure 2 A distribution network device 200 for audio equipment is applied to a distribution network control system. The distribution network control system includes at least a configuration terminal and audio equipment to be distributed. The device includes: Module 210 is used to build a distribution network process stage model corresponding to the audio device. The distribution network process stage model includes multiple distribution network diagnostic stages arranged in time sequence. The acquisition module 220 is used to acquire the first network configuration data of the configuration terminal and the second network configuration data of the audio device when the audio device is in the network configuration state; The processing module 230 is used to determine the target network failure type corresponding to the audio device by performing diagnostic analysis based on the current network diagnostic stage, first network data and second network data corresponding to the network failure event when a network failure event is detected; The determination module 240 is used to determine the target repair scheme from the preset repair database based on the target network failure type, and send the target repair scheme to the configuration terminal so that the repair operation can be performed on the configuration terminal according to the target repair scheme.
[0076] In one possible implementation, the construction module 210 is further configured to divide the network configuration process of the audio device into multiple network configuration diagnostic stages; wherein, the network configuration diagnostic stages include at least an environment preparation stage, a device discovery stage, a temporary communication stage, a network credential writing stage, a network access stage, an address acquisition stage, a local area network discovery stage, and a cloud binding stage; determine the status information and timing information of each network configuration diagnostic stage; wherein, the status information includes at least a status code, a success determination condition, a failure determination condition, and a timeout determination condition; and construct a network configuration process stage model corresponding to the audio device based on the status information and timing information corresponding to the network configuration diagnostic stages.
[0077] In one possible implementation, the acquisition module 220 is further configured to acquire the system permission status, current network status, and user input characteristics of the configuration terminal when the audio device is in the network configuration state, and use these as first network configuration data; wherein, the system permission status includes at least Bluetooth permission, location permission, and LAN permission, and the current network status includes at least the wireless LAN frequency band, service set identifier, and gateway information; and based on a preset communication channel between the configuration terminal and the audio device, acquire the current network configuration stage information, error log information, network quality information, and device information of the audio device, and use these as second network configuration data; wherein, the network quality information includes at least the signal strength, operating frequency band, domain name information, encryption protocol type, device identifier, and authentication information of the target network.
[0078] In one possible implementation, the processing module 230 is further configured to, when a distribution network failure event is detected, input the current distribution network diagnosis stage, the first distribution network data, and the second distribution network data corresponding to the distribution network failure event into the distribution network diagnosis model to obtain the candidate confidence level, investigation cost, and repair success rate corresponding to each preset failure type; if there is only one candidate failure type with a candidate confidence level greater than a preset threshold, then the candidate failure type is determined as the target distribution network failure type; if there are at least two candidate failure types with a candidate confidence level greater than the preset threshold, then the candidate failure types are sorted according to the investigation cost and repair success rate, and the candidate failure type with the highest ranking is determined as the target distribution network failure type.
[0079] In one possible implementation, the processing module 230 is further configured to preset failure types, including at least permission exception type, terminal not found type, password error type, enterprise network authentication restriction type, guest network isolation type, encryption protocol incompatibility type, frequency band conflict type, and network service exception type.
[0080] In one possible implementation, the processing module 230 is further configured to extract network configuration failure features from error log information; wherein, the network configuration failure features include at least authentication failure features and handshake failure features; extract the target network password from user input features, and determine whether the target network password has any abnormal features; the abnormal features include at least the presence of leading and trailing spaces in the target network password, the presence of capitalization errors in the target network password, and the presence of special characters in the target network password; based on the network configuration failure features and the abnormal features, determine that the target network configuration failure type corresponding to the audio device is a password error type.
[0081] In one possible implementation, the processing module 230 is further configured to determine whether the target network is an enterprise network based on the service set identifier, authentication information, and encryption protocol type; if the target network is an enterprise network, then determine whether the device information of the audio device matches the authentication information of the enterprise network; if they do not match, then determine that the target network configuration failure type corresponding to the audio device is an enterprise network authentication restriction type.
[0082] In one possible implementation, the processing module 230 is further configured to determine whether the audio device is in a visitor isolation state based on the service set identifier, device identifier, and communication status of the preset communication channel if the current network configuration diagnosis stage is the local area network discovery stage; if the audio device is in a visitor isolation state, then the target network configuration failure type corresponding to the audio device is determined to be the visitor network isolation type.
[0083] In one possible implementation, the processing module 230 is further configured to determine whether the audio device matches the current encryption protocol of the configuration terminal based on the encryption protocol type and device information of the audio device; if they do not match, the target network configuration failure type corresponding to the audio device is determined to be an encryption protocol incompatibility type.
[0084] In one possible implementation, the processing module 230 is further configured to determine whether the operating frequency band of the audio device matches the wireless local area network frequency band of the configuration terminal; if they do not match, the target network configuration failure type corresponding to the audio device is determined to be a frequency band conflict type.
[0085] In one possible implementation, the processing module 230 is further configured to determine whether there is an anomaly in the gateway information of the configuration terminal when the current network configuration diagnosis stage is the address acquisition stage; if there is an anomaly, determine that the target network configuration failure type corresponding to the audio device is a network service anomaly type; and / or, when the current network configuration diagnosis stage is the cloud binding stage, determine whether the domain name information of the audio device matches the gateway information of the configuration terminal; if they do not match, determine that the target network configuration failure type corresponding to the audio device is a network service anomaly type.
[0086] This application discloses a network distribution device for audio equipment, applied to a network distribution control system. The network distribution control system includes at least a configuration terminal and audio equipment to be distributed. The device comprises: a construction module for constructing a network distribution process stage model corresponding to the audio equipment, the network distribution process stage model including multiple network distribution diagnostic stages arranged in chronological order; an acquisition module for acquiring first network distribution data of the configuration terminal and second network distribution data of the audio equipment when the audio equipment is in a network distribution state; a processing module for performing diagnostic analysis based on the current network distribution diagnostic stage, the first network distribution data, and the second network distribution data corresponding to the network distribution failure event, using a preset network distribution diagnostic model, to determine the target network distribution failure type corresponding to the audio equipment when a network distribution failure event is detected; and a determination module for determining a target repair scheme from a preset repair database based on the target network distribution failure type, and sending the target repair scheme to the configuration terminal for repair operation on the configuration terminal according to the target repair scheme. This approach constructs a phased model of the distribution network process and combines it with multi-source data for diagnostic analysis. It can locate the causes of distribution network failures and provide targeted repairs, thereby accurately diagnosing the causes of distribution network failures and providing targeted repair solutions, thus improving the success rate of distribution network operation and user experience.
[0087] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated further here.
[0088] This application also provides an electronic device. Figure 3 This is a schematic diagram of the hardware structure of an embodiment of the electronic device of this application. The electronic device includes a memory 320 and at least one processor 310. The memory 320 is electrically connected to the at least one processor 310. The memory 320 stores instructions. The at least one processor 310 calls the instructions in the memory 320 to cause the electronic device to execute the network configuration method of the audio device according to any of the foregoing embodiments of this application.
[0089] Specifically, the processor 310 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0090] Memory 320 may include a mass storage device for data or instructions. For example, and not limitingly, memory 320 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 320 may include removable or non-removable (or fixed) media. Where appropriate, memory 320 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 320 is non-volatile solid-state memory. In a particular embodiment, memory 320 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0091] In one example, the control device may also include a communication interface 330 and a bus 340. The processor 310, memory 320, and communication interface 330 are connected via the bus 340 and communicate with each other.
[0092] The communication interface 330 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0093] Bus 340 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 340 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.
[0094] Furthermore, in conjunction with the audio device network configuration method in the above embodiments, this application embodiment can provide a computer-readable storage medium for implementation. This computer-readable storage medium stores executable code, which, when executed by a processor, implements any of the audio device network configuration methods in the above embodiments.
[0095] This application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0096] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0097] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0098] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A network configuration method for audio devices, characterized in that, Applied to a power distribution network control system, the power distribution network control system including at least a configuration terminal and an audio device to be distributed, the method includes: Construct a distribution network process stage model corresponding to the audio device, wherein the distribution network process stage model includes multiple distribution network diagnostic stages arranged in chronological order; When the audio device is in network configuration mode, acquire the first network configuration data of the configuration terminal and the second network configuration data of the audio device; When a distribution network failure event is detected, based on the current distribution network diagnosis stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, a diagnostic analysis is performed using a preset distribution network diagnosis model to determine the target distribution network failure type corresponding to the audio device. Based on the target network failure type, a target repair plan is determined from a preset repair database and sent to a configuration terminal so that a repair operation can be performed on the configuration terminal according to the target repair plan.
2. The method according to claim 1, characterized in that, The construction of the network distribution process stage model corresponding to the audio device includes: The network configuration process of the audio device is divided into multiple network configuration diagnostic stages; wherein, the network configuration diagnostic stages include at least the environment preparation stage, device discovery stage, temporary communication stage, network credential writing stage, network access stage, address acquisition stage, local area network discovery stage, and cloud binding stage. Determine the status information and timing information for each stage of the distribution network diagnosis; wherein the status information includes at least a status code, a success determination condition, a failure determination condition, and a timeout determination condition; Based on the status information and timing information corresponding to the distribution network diagnosis stage, a distribution network process stage model corresponding to the audio device is constructed.
3. The method according to claim 1, characterized in that, When the audio device is in a network configuration state, acquiring the first network configuration data of the configuration terminal and the second network configuration data of the audio device includes: When the audio device is in network configuration mode, the system permission status, current network status, and user input characteristics of the configuration terminal are obtained and used as the first network configuration data; wherein, the system permission status includes at least Bluetooth permission, location permission, and LAN permission, and the current network status includes at least the wireless LAN frequency band, service set identifier, and gateway information; Based on the preset communication channel between the configuration terminal and the audio device, the current network configuration stage information, error log information, network quality information and device information of the audio device are obtained and used as the second network configuration data; wherein, the network quality information includes at least the signal strength, operating frequency band, domain name information, encryption protocol type, device identifier and authentication information of the target network.
4. The method according to claim 1, characterized in that, The power distribution network diagnostic model is configured with multiple preset failure types. When a power distribution network failure event is detected, based on the current power distribution network diagnostic stage corresponding to the failure event, the first power distribution network data, and the second power distribution network data, a diagnostic analysis is performed using the preset power distribution network diagnostic model to determine the target power distribution network failure type corresponding to the audio device, including: When a distribution network failure event is detected, the current distribution network diagnosis stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data are input into the distribution network diagnosis model to obtain the candidate confidence, investigation cost, and repair success rate corresponding to each preset failure type. If there is only one candidate failure type with a confidence level greater than a preset threshold, then the candidate failure type is determined as the target distribution network failure type. If there are at least two candidate failure types with a confidence level greater than the preset threshold, the candidate failure types are sorted according to the investigation cost and the repair success rate, and the candidate failure type with the highest ranking is determined as the target distribution network failure type.
5. The method according to claim 4, characterized in that, The preset failure types include at least the following: permission error type, terminal not found type, password error type, enterprise network authentication restriction type, guest network isolation type, encryption protocol incompatibility type, frequency band conflict type, and network service error type.
6. The method according to claim 3, characterized in that, The diagnostic analysis, based on the current distribution network diagnostic stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, is performed using a preset distribution network diagnostic model to determine the target distribution network failure type corresponding to the audio device, including: Network distribution failure features are extracted from the error log information; wherein, the network distribution failure features include at least authentication failure features and handshake failure features; The target network password is extracted from the user input features, and it is determined whether the target network password has any abnormal features; the abnormal features include at least the presence of leading and trailing spaces in the target network password, the presence of capitalization errors in the target network password, and the presence of special characters in the target network password. Based on the network configuration failure characteristics and the abnormal characteristics, the target network configuration failure type corresponding to the audio device is determined to be a password error type.
7. The method according to claim 3, characterized in that, The diagnostic analysis, based on the current distribution network diagnostic stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, is performed using a preset distribution network diagnostic model to determine the target distribution network failure type corresponding to the audio device, including: Based on the service set identifier, the authentication information, and the encryption protocol type, determine whether the target network is an enterprise network; If the target network is an enterprise network, then determine whether the device information of the audio device matches the authentication information of the enterprise network; If they do not match, the target network configuration failure type corresponding to the audio device is determined to be the enterprise network authentication restriction type.
8. The method according to claim 3, characterized in that, The diagnostic analysis, based on the current distribution network diagnostic stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, is performed using a preset distribution network diagnostic model to determine the target distribution network failure type corresponding to the audio device, including: If the current network configuration diagnosis stage is the local area network discovery stage, determine whether the audio device is in a visitor isolation state based on the service set identifier, the device identifier, and the communication status of the preset communication channel; If the audio device is in a visitor isolation state, then the target network configuration failure type corresponding to the audio device is determined to be the visitor network isolation type.
9. The method according to claim 3, characterized in that, The diagnostic analysis, based on the current distribution network diagnostic stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, is performed using a preset distribution network diagnostic model to determine the target distribution network failure type corresponding to the audio device, including: Based on the encryption protocol type and device information of the audio device, determine whether the audio device matches the current encryption protocol of the configured terminal; If there is no match, the target network configuration failure type corresponding to the audio device is determined to be an encryption protocol incompatibility type.
10. The method according to claim 3, characterized in that, The diagnostic analysis, based on the current distribution network diagnostic stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, is performed using a preset distribution network diagnostic model to determine the target distribution network failure type corresponding to the audio device, including: Determine whether the operating frequency band of the audio device matches the wireless local area network frequency band of the configured terminal; If there is a mismatch, the target network configuration failure type corresponding to the audio device is determined to be a frequency band conflict type.
11. The method according to claim 3, characterized in that, The diagnostic analysis, based on the current distribution network diagnostic stage corresponding to the distribution network failure event, the first distribution network data, and the second distribution network data, is performed using a preset distribution network diagnostic model to determine the target distribution network failure type corresponding to the audio device, including: When the current network configuration diagnosis stage is the address acquisition stage, it is determined whether there is any abnormality in the gateway information of the configuration terminal. If there is an abnormality, the target network configuration failure type corresponding to the audio device is determined to be the network service abnormality type. And / or, when the current network configuration diagnosis stage is the cloud binding stage, determine whether the domain name information of the audio device matches the gateway information of the configuration terminal. If they do not match, determine that the target network configuration failure type corresponding to the audio device is a network service abnormality type.
12. A network distribution device for audio equipment, characterized in that, An apparatus applied to a power distribution network control system, the power distribution network control system including at least a configuration terminal and an audio device to be distributed, the apparatus comprising: A construction module is used to construct a distribution network process stage model corresponding to the audio device. The distribution network process stage model includes multiple distribution network diagnostic stages arranged in chronological order. The acquisition module is used to acquire the first network configuration data of the configuration terminal and the second network configuration data of the audio device when the audio device is in the network configuration state; The processing module is used to determine the target network failure type corresponding to the audio device by performing diagnostic analysis based on the current network diagnostic stage corresponding to the network failure event, the first network data and the second network data, through a preset network diagnostic model when a network failure event is detected. The determination module is used to determine a target repair scheme from a preset repair database based on the target network failure type, and send the target repair scheme to the configuration terminal so that a repair operation can be performed on the configuration terminal according to the target repair scheme.
13. An electronic device, characterized in that, include: processor; as well as A memory having executable code stored thereon, which, when executed by the processor, causes the processor to perform the method as described in any one of claims 1-11.
14. A computer-readable storage medium, characterized in that, It stores executable code that, when executed by a processor of an electronic device, causes the processor to perform the method as described in any one of claims 1-11.