Multimedia sound source box supporting multiple network connection modes and network configuration method thereof
By using a multimedia audio source box that supports multiple network connection methods and its network configuration method, intelligent switching and security authentication of multiple network configuration modes are achieved, solving the problems of complex network configuration process, poor user experience and insufficient security in existing technologies, and improving the success rate and efficiency of network configuration.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- LIUZHOU ZHEHUA AUDIO CO LTD
- Filing Date
- 2026-03-17
- Publication Date
- 2026-06-26
AI Technical Summary
The existing configuration process for multimedia devices is complex, resulting in a poor user experience, a lack of intelligent switching mechanisms, insufficient security, and low configuration efficiency. In particular, configuration for Bluetooth Mesh networks is complex to implement and unsuitable for all device types.
Design a multimedia audio source box that supports multiple network connection methods, including a main control chip, wired network interface, wireless network module, memory storage module, power management module, network connection management, network distribution protocol processing, security authentication, and network distribution state machine, to realize intelligent switching and security authentication of multiple network distribution modes and optimize the network distribution protocol between the device and the mobile terminal.
Simplify the network distribution process, improve the convenience and experience of users configuring equipment, increase the success rate and efficiency of network distribution, enhance the security of the network distribution process, optimize the network distribution protocol between equipment and mobile terminals, and improve stability.
Smart Images

Figure CN122293648A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of multimedia equipment technology, and in particular to a multimedia audio source box that supports multiple network connection methods and its network configuration method. Background Technology
[0002] With the rapid development of IoT technology, smart multimedia devices are becoming increasingly popular, and network connectivity has become a basic requirement for these devices. Traditional multimedia devices typically only support a single wired network connection (such as Ethernet) or basic Wi-Fi connection, and often face many difficulties when configuring the network for the first time.
[0003] In existing technologies, the main methods for configuring smart devices for network distribution include: Wired network distribution: Devices are directly connected to the router via Ethernet interface. It is simple to configure but lacks flexibility and requires physical cabling.
[0004] Hotspot network configuration: The device itself creates a Wi-Fi hotspot. After the user's device connects to this hotspot, network parameters are configured via a webpage or app. This method has a high success rate, but requires the user to manually switch network connections on their mobile device, which is a cumbersome process.
[0005] BLE configuration: Devices communicate with mobile terminals via Bluetooth Low Energy (BLE) technology to receive Wi-Fi configuration information. BLE configuration offers low power consumption and good compatibility, but traditional implementations have shortcomings in stability and security, particularly in its integration with existing Wi-Fi modules, which requires improvement.
[0006] The main problems with existing technologies include: complex network configuration processes and poor user experience; lack of intelligent switching mechanisms between various network configuration modes; insufficient security guarantees during the network configuration process; and inefficient network configuration protocols between devices and mobile terminals. Furthermore, in Bluetooth Mesh network configuration, existing technologies typically require multiple complex processes, including beacon phases, invitation phases, public key exchange phases, authentication phases, and network configuration data distribution phases. While these processes offer high security, they are complex to implement and unsuitable for all device types. Summary of the Invention
[0007] The purpose of this invention is to provide a multimedia audio source box that supports multiple network connection methods and its network configuration method, so as to realize intelligent switching between multiple network configuration modes, improve the success rate and efficiency of network configuration, simplify the network configuration process, and improve the convenience and experience of users in configuring equipment.
[0008] The technical solution to the above problems is: a multimedia audio source box supporting multiple network connection methods, including a main control chip, a wired network interface, a wireless network module, a memory storage module, a multimedia processing unit, and a power management module. The main control chip is connected to the wired network interface, the wireless network module, the memory storage module, the multimedia processing unit, and the power management module respectively. It also includes a network connection management module, a network distribution protocol processing module, a security authentication module, and a network distribution state machine connected to the main control chip; the network connection management module, the network distribution protocol processing module, the security authentication module, and the network distribution state machine synchronize information with each other. The network connection management module is used to manage wired and wireless network connections, and is responsible for monitoring network status and switching connection methods; The distribution network protocol processing module is used to process different distribution network protocols; the distribution network protocols include BLE distribution network protocol and hotspot distribution network protocol. The security authentication module is responsible for identity verification and data encryption during the power distribution process; The distribution network state machine controls the state transitions of the distribution network process and selects the optimal distribution network method based on the current state and environmental conditions.
[0009] Another related technical solution is: a network configuration method for a multimedia audio source box supporting multiple network connection methods, wherein the network configuration method includes the following steps: Step 1, Initialization: After the multimedia audio source box starts up, the network connection management module reads the configuration, loads the drivers for all available network interfaces, and reads a local network configuration file; then it returns the status of all available network interfaces and the local configuration to the network configuration state machine; the network configuration state machine intelligently selects the best network configuration method according to the environmental conditions. Step 2, Device Discovery: The distribution network protocol processing module obtains the list of currently enabled distribution network modes and their weights from the distribution network state machine. Then, the distribution network protocol processing module loads the corresponding protocol stacks in order of weight or in parallel, and starts broadcasting device discovery information. Step 3: The distribution network protocol processing module parses and transmits the network credentials to the distribution network state machine; Step 4, Network Connection: The network connection management module obtains network credentials from the network configuration state machine and uses the network credentials to connect to the router; Step 5, Security Authentication: After the network connection management module reports successful network connection to the distribution network state machine, security authentication is triggered. Step 6, Network configuration successful: The security authentication module performs security authentication. Once the security authentication is passed, the network configuration is successful. Step 7, Routine Network Management: After successful network configuration, the network connection management module continuously monitors and dynamically adjusts routes, entering the routine network management phase.
[0010] A further technical solution is as follows: During the network distribution process, the network distribution state machine intelligently selects the optimal network distribution method based on environmental conditions: if the network connection management module detects that a wired network is available, it prioritizes using the wired connection; if there is no wired connection, it simultaneously enables BLE and hotspot network distribution modes; if the network connection management module detects a BLE network distribution request, it prioritizes processing the BLE network distribution; if the network distribution is not completed through BLE within a certain time, it strengthens the hotspot broadcast to remind the user.
[0011] A further technical solution is as follows: The normal network management includes a distribution network state machine controlling the state transition of the distribution network process. The state transition method is as follows: After the network is connected, the network connection management module continuously monitors the link quality, network performance, load, and historical connection success rate of each active interface. Based on these indicators, a real-time "weight" score is dynamically calculated for each available network. The network connection management module combines the static rules in the configuration file with the real-time calculated network weight to dynamically adjust the system's routing strategy and default gateway to ensure that application traffic is always transmitted through the optimal path. The static rule content is: application traffic preferentially uses Ethernet.
[0012] A further technical solution is to use a wired network connection: after the network connection management module detects that the Ethernet interface is inserted and effectively connected, it automatically obtains an IP address through the DHCP protocol to complete the network connection.
[0013] Its further technical solution is: the BLE distribution network process is divided into the following five stages: Phase 1: Device Broadcast. After power-on, the BLE module in the wireless network module enters BLE broadcast mode and sends broadcast packets containing information such as device name, device UUID, device type and signal strength. Phase 2: The external network source discovers the device and establishes a BLE connection. The external network source starts BLE scanning, and after discovering the target device, it sends a connection request. The device acts as a BLE peripheral, and the external network source acts as a BLE master device. The two parties exchange data through the GATT protocol. Phase 3: BLE transmission of Wi-Fi account and password. The device receives the Wi-Fi SSID and password sent by the external network source via BLE, and stores them in encrypted form in the memory storage module or the Flash memory of the main control chip. Phase 4: Device connects to Wi-Fi: The device disables BLE connection, enters Wi-Fi station mode to connect to the router, and the network connection management module sends a DHCP request to obtain an IP address; after successful connection, the device attempts to access the Internet and reports its status to the external network source or cloud server; Phase 5: Verify successful network configuration: The external network configuration source queries the server for device status via HTTP / MQTT to confirm that the device has successfully connected to the network; the device registers in the cloud and completes user binding.
[0014] A further technical solution is that during the device broadcasting phase, the broadcast interval is adjustable between 100ms and 1s, balancing discovery speed and power consumption.
[0015] A further technical solution is as follows: The hotspot network configuration mode is as follows: the device starts in AP mode and creates a Wi-Fi hotspot; after the user's mobile device connects to this hotspot, it enters the identity authentication information of the target Wi-Fi network through a web page or App interface; after receiving the configuration, the device switches to STA mode to connect to the specified Wi-Fi network.
[0016] Its further technical solution is: to design for the security and reliability of the distribution network process, including the following methods: Two-way authentication: During network configuration, two-way authentication is performed between the device and the mobile terminal. The method of two-way authentication is as follows: First, pre-shared key: Before communication begins, both parties have shared a pre-set, identical secret key through a secure channel; then, key challenge-response: One party, as the verifier, sends a random number as a challenge, and the other party, as the verifier, uses the shared key to perform a specific calculation on the challenge, generates a response, and returns it; finally, the verifier performs the same calculation to verify whether the response is correct. The specific steps of this two-way authentication are as follows: S1. Initiate a challenge: The server generates a random number and sends it to the client; this random number is different for each authentication to prevent replay attacks. S2. Calculate the response: After receiving the challenge, the client takes the pre-shared key and the random number as input, calculates it through a one-way hash function, and generates a message authentication code as the response. S3. Return Response: The client sends the calculated response back to the server; S4. Verify Response: The server also uses the same key and the previously sent random number to perform the exact same one-way hash function calculation. If the calculation result is completely consistent with the response returned by the client, it proves that the client has the correct key and the authentication is successful; if they are inconsistent, the authentication fails. Data encryption transmission: AES-128 / 256 encryption algorithm is used to encrypt distribution network data; Brute-force protection: The number of consecutive distribution network attempts is limited to prevent unauthorized access; Secure storage: Network configuration parameters are encrypted and stored in non-volatile memory.
[0017] Its further technical solution includes measures to enhance security during the power distribution network process, including: Connection timeout retry: Automatically retry when a failure occurs during network configuration; Heartbeat monitoring mechanism: Maintain a long-term connection between the device and the cloud to monitor the device status in real time; Fault recovery: When a configuration error occurs, the device automatically restores to its initial state.
[0018] By adopting the above technical solution, the multimedia audio source box and its network configuration method supporting multiple network connection methods of the present invention have the following advantages compared with the prior art: This invention provides a multimedia audio source box that supports multiple network connection methods, offering flexible wired and wireless network connection options, and supporting various wireless network configuration methods such as BLE configuration and hotspot configuration. The configuration method of this multimedia audio source box simplifies the configuration process, improving the convenience and experience for users configuring devices; it enables intelligent switching between multiple configuration modes, improving configuration success rate and efficiency; it enhances the security of the configuration process, preventing configuration information leakage and unauthorized access; and it optimizes the configuration protocol between the device and the mobile terminal, improving configuration efficiency and stability.
[0019] The technical features of a multimedia audio source box supporting multiple network connection methods and its network configuration method according to the present invention will be further described below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0020] Figure 1 This is a flowchart illustrating the principle of the power distribution network method of the present invention. Detailed Implementation Example 1:
[0021] A multimedia audio source box supporting multiple network connection methods and its network configuration method are disclosed. The box includes a main control chip, a wired network interface, a wireless network module, a memory storage module, a multimedia processing unit, and a power management module. It also includes a network connection management module, a network configuration protocol processing module, a security authentication module, and a network configuration state machine connected to the main control chip. The main control chip is connected to the wired network interface, the wireless network module, the memory storage module, the multimedia processing unit, and the power management module. The network connection management module, the network configuration protocol processing module, the security authentication module, and the network configuration state machine synchronize information with each other.
[0022] Main control chip: responsible for overall equipment control and data processing; Wired network interface: Supports Ethernet wired connection; Wireless network module: Supports Wi-Fi and Bluetooth communication, with the Bluetooth module supporting the BLE protocol; Memory storage: Stores network configuration parameters and device firmware; Multimedia processing unit: responsible for the processing and output of audio and video data; Power management module: Provides stable power to all components of the device.
[0023] The network connection management module manages wired and wireless network connections, and is responsible for monitoring network status and switching connection methods. This module is the executor and manager of network connections, playing the roles of "configuration loader" and "status maintainer" in the network configuration process; it has the following functions: (1) Initialization and Configuration: After the multimedia audio source box starts up, the network connection management module loads the drivers for all available network interfaces (Wi-Fi, Ethernet) and reads a local network configuration file. This file may be generated from factory settings or the last successful network configuration and contains policies such as "prioritize Wi-Fi" and "disable cellular network", as well as optional static IP information. The module configures the network parameters for the interfaces accordingly (via DHCP or static settings).
[0024] (2) Status monitoring and weight calculation: After networking, the network connection management module continuously monitors the link quality (signal strength, packet loss rate), network performance (latency, bandwidth), load status, and historical connection success rate of each active interface. It integrates these indicators to dynamically calculate a real-time "weight" score for each available network.
[0025] (3) Dynamic policy execution: The network connection management module combines the static rules in the configuration file (such as "video streams take priority to Ethernet") with the network weights calculated in real time to dynamically adjust the system's routing policy and default gateway, ensuring that application traffic is always transmitted through the optimal path.
[0026] The distribution network protocol processing module is used to process different distribution network protocols, including BLE distribution network protocol and hotspot distribution network protocol. This module is the implementer and executor of the distribution network protocol, responsible for interacting with external distribution network sources (such as mobile APP) to obtain network credentials; it has the following functions: (1) Protocol loading and broadcasting: The distribution network protocol processing module obtains the list of currently enabled distribution network modes and their weights (e.g., BLE: 70%, Hotspot: 30%) from the distribution network state machine. Then, it loads the corresponding protocol stacks in order of weight or in parallel and begins broadcasting device discovery information.
[0027] BLE Network Configuration: The device's Bluetooth Low Energy module broadcasts a specific Service UUID and device identifier, waiting for the mobile app to connect. After connection, it receives the Wi-Fi SSID and password through an encrypted channel.
[0028] Hotspot network configuration: The device itself enables a Soft-AP (for example, SSID is "Device-Config-XXXX"). After the mobile phone connects to this hotspot, it receives network configuration information through the built-in web server or a specific TCP / UDP port.
[0029] (2) Information reception and parsing: The module listens for and receives information packets from the distribution network source, verifies their format and integrity, and then parses out the core credentials such as the target network's SSID, password, and encryption method, and passes them to the distribution network state machine.
[0030] The security authentication module is responsible for identity verification and data encryption during the network configuration process. This module verifies the legitimacy of devices, ensuring that only authorized devices can access the business cloud. (1) Trigger: Once the network connection management module confirms that the device has successfully obtained an IP address and can access the Internet (such as the authentication server address preset by Ping), the system will automatically and forcibly call this security authentication module.
[0031] (2) Key (PSK) Challenge-Response Verification: The security authentication module establishes a secure connection (such as TLS) with the authentication server. The server issues a random number challenge. The device uses the pre-set or pre-shared key distributed during initial activation to calculate the response code using a one-way hash function such as Hash Message Authentication Code (HMAC) and sends it back. The server performs the same calculation and compares the results to complete the authentication.
[0032] (3) Token Acquisition: After successful authentication, the server issues a time-limited access token to the device. This token will be stored by the device and carried in all subsequent communications with the business server for requesting authentication.
[0033] The power distribution network state machine controls the state transitions of the power distribution network process and selects the optimal power distribution mode based on the current state and environmental conditions. This state machine is the "brain" and coordinator of the entire power distribution network process, controlling state transitions and synchronizing information; it has the following functions: (1) State and Coordination: It maintains a clear state diagram (e.g., initialization -> device discovery -> network connection -> security authentication -> network configuration success / failure), and calls the corresponding sub-modules according to the current state and events (e.g. timeout, success, failure), and receives their callbacks to update its own state.
[0034] (2) Information hub: It acts as an information relay station, collecting key information from various modules (such as network interface list, received SSID, authentication results) and synchronizing it with other modules that need this information. Example 2:
[0035] like Figure 1As shown, a network configuration method for a multimedia audio source box supporting multiple network connection methods is described in Embodiment 1. The network configuration method includes the following steps: Step 1, Initialization: After the multimedia audio source box starts up, the network connection management module reads the configuration, loads the drivers for all available network interfaces, and reads a local network configuration file; then it returns the status of all available network interfaces and the local configuration to the network configuration state machine; the network configuration state machine intelligently selects the best network configuration method according to the environmental conditions. Step 2, Device Discovery: The distribution network protocol processing module obtains the list of currently enabled distribution network modes and their weights from the distribution network state machine. Then, the distribution network protocol processing module loads the corresponding protocol stacks in order of weight or in parallel, and starts broadcasting device discovery information. Step 3: The distribution network protocol processing module parses and transmits the network credentials to the distribution network state machine; Step 4, Network Connection: The network connection management module obtains network credentials from the network configuration state machine and uses the network credentials to connect to the router; Step 5, Security Authentication: After the network connection management module reports successful network connection to the distribution network state machine, security authentication is triggered. Step 6, Network configuration successful: The security authentication module performs security authentication. Once the security authentication is passed, the network configuration is successful. Step 7, Routine Network Management: After successful network configuration, the network connection management module continuously monitors and dynamically adjusts routes, entering the routine network management phase.
[0036] In the network distribution method of the present invention, the network distribution state machine intelligently selects the optimal network distribution method according to environmental conditions as follows: if the network connection management module detects that a wired network is available, it prioritizes the use of wired connection; if there is no wired connection, it simultaneously enables BLE and hotspot network distribution modes; if the network connection management module detects a BLE network distribution request, it prioritizes the processing of BLE network distribution; if the network distribution is not completed through BLE within a certain period of time, it strengthens the hotspot broadcast to remind the user.
[0037] Routine network management includes the distribution network state machine controlling the state transitions of the distribution network process. The state transition method is as follows: After the network is connected, the network connection management module continuously monitors the link quality (signal strength, packet loss rate), network performance (latency, bandwidth), load, and historical connection success rate of each active interface. Based on these indicators, a real-time "weight" score is dynamically calculated for each available network. The network connection management module combines the static rules in the configuration file with the real-time calculated network weight to dynamically adjust the system's routing strategy and default gateway to ensure that application traffic is always transmitted through the optimal path. The static rule content is: application traffic is given priority to Ethernet (e.g., "video streams are given priority to Ethernet").
[0038] Wired network connection method: After the network connection management module detects that the Ethernet interface is inserted and effectively connected, it automatically obtains an IP address through the DHCP protocol to complete the network connection.
[0039] The BLE distribution network process is divided into the following five stages: Phase 1: Device Broadcast. After power-on, the BLE module in the wireless network module enters BLE broadcast mode and sends broadcast packets containing information such as device name, device UUID, device type and signal strength. The broadcast interval is adjustable between 100ms and 1s, balancing discovery speed and power consumption.
[0040] Phase Two: The external network source discovers the device and establishes a BLE connection. The external network source starts BLE scanning, and after discovering the target device, it sends a connection request. The device acts as a BLE peripheral, and the external network source acts as a BLE central. The two parties exchange data through the GATT protocol.
[0041] Phase 3: BLE transmission of Wi-Fi account and password. The device receives the Wi-Fi SSID and password sent by the external network source via BLE, and stores them in encrypted form in the memory storage module or the Flash memory of the main control chip.
[0042] Phase 4: Device connects to Wi-Fi: The device disables BLE connection, enters Wi-Fi station mode to connect to the router, and the network connection management module sends a DHCP request to obtain an IP address; after successful connection, the device attempts to access the Internet and reports its status to the external network source or cloud server.
[0043] Phase 5: Verify successful network configuration: The external network configuration source queries the server for device status via HTTP / MQTT to confirm that the device has successfully connected to the network; the device registers in the cloud and completes user binding.
[0044] The hotspot network configuration mode is as follows: The device activates AP mode to create a Wi-Fi hotspot; after the user's mobile device connects to this hotspot, it enters the target Wi-Fi network's authentication information through a web page or app interface. The core function of AP mode is to act as an access point to transmit Wi-Fi signals for other devices to connect to.
[0045] After receiving the configuration, the device switches to STA mode to connect to the specified Wi-Fi network. The core function of STA mode is to act as a client to access the Wi-Fi networks of other devices.
[0046] The design addresses the security and reliability of the power distribution network process, including the following approaches: Two-way authentication: During network configuration, two-way authentication is performed between the device and the mobile terminal. The method of two-way authentication is as follows: First, pre-shared key: Before communication begins, both parties have shared a pre-set, identical secret key through a secure channel; then, key challenge-response: One party, as the verifier (e.g., the server), sends a random number as a challenge, and the other party, as the verifier (e.g., the device), uses the shared key to perform a specific calculation on the challenge, generates a response, and returns it; finally, the verifier performs the same calculation to verify whether the response is correct. The specific steps of this two-way authentication are as follows: S1. Initiating a Challenge: The server generates a random number and sends it to the client. This random number is different for each authentication to prevent replay attacks.
[0047] S2. Calculate the response: After receiving the challenge, the client takes the pre-shared key (PSK) and the random number as input, and calculates it using a one-way hash function (such as HMAC-SHA256) to generate a message authentication code as a response.
[0048] S3. Return Response: The client sends the calculated response back to the server.
[0049] S4. Verify the response: The server also uses the same key (PSK) and the previously sent random number to perform the exact same one-way hash function (HMAC) calculation. If the calculation result is exactly the same as the response returned by the client, it proves that the client has the correct key (PSK), and authentication is successful. If they do not match, authentication fails.
[0050] Data encryption transmission: AES-128 / 256 encryption algorithm is used to encrypt the distribution network data.
[0051] Anti-brute-force attack: Limit the number of consecutive network configuration attempts to prevent unauthorized access.
[0052] Secure storage: Network configuration parameters are encrypted and stored in non-volatile memory.
[0053] Measures to enhance security during power distribution network operation include: Connection timeout retry: Automatically retry when a failure occurs during network configuration; Heartbeat monitoring mechanism: Maintain a long-term connection between the device and the cloud to monitor the device status in real time; Fault recovery: When a configuration error occurs, the device automatically restores to its initial state.
[0054] The equipment mentioned in the above power distribution process generally refers to the multimedia audio source box of the present invention.
[0055] All parts not covered in this invention are the same as or can be implemented using existing technology. The above description is a further detailed explanation of this invention in conjunction with specific preferred embodiments. It should not be construed that the specific implementation of this invention is limited to the descriptions of the above embodiments. For those skilled in the art, several simple deductions or substitutions can be made without departing from the concept of this invention, and all such deductions or substitutions should be considered to fall within the patent protection scope defined by the submitted claims.
Claims
1. A multimedia audio source box supporting multiple network connection methods, comprising a main control chip, a wired network interface, a wireless network module, a memory storage module, a multimedia processing unit, and a power management module, wherein the main control chip is connected to the wired network interface, the wireless network module, the memory storage module, the multimedia processing unit, and the power management module respectively; characterized in that: It also includes a network connection management module, a distribution network protocol processing module, a security authentication module, and a distribution network state machine that are connected to the main control chip; the network connection management module, the distribution network protocol processing module, the security authentication module, and the distribution network state machine synchronize information with each other; The network connection management module is used to manage wired and wireless network connections, and is responsible for monitoring network status and switching connection methods; The distribution network protocol processing module is used to process different distribution network protocols; the distribution network protocols include BLE distribution network protocol and hotspot distribution network protocol. The security authentication module is responsible for identity verification and data encryption during the power distribution process; The distribution network state machine controls the state transitions of the distribution network process and selects the optimal distribution network method based on the current state and environmental conditions.
2. A network configuration method for a multimedia audio source box supporting multiple network connection methods, the network configuration method being the network configuration method for a multimedia audio source box supporting multiple network connection methods as described in claim 1, the network configuration method comprising the steps of: Step 1, Initialization: After the multimedia audio source box starts up, the network connection management module reads the configuration, loads the drivers for all available network interfaces, and reads a local network configuration file; then it returns the status of all available network interfaces and the local configuration to the network configuration state machine; the network configuration state machine intelligently selects the best network configuration method according to the environmental conditions. Step 2, Device Discovery: The distribution network protocol processing module obtains the list of currently enabled distribution network modes and their weights from the distribution network state machine. Then, the distribution network protocol processing module loads the corresponding protocol stacks in order of weight or in parallel, and starts broadcasting device discovery information. Step 3: The distribution network protocol processing module parses and transmits the network credentials to the distribution network state machine; Step 4, Network Connection: The network connection management module obtains network credentials from the network configuration state machine and uses the network credentials to connect to the router; Step 5, Security Authentication: After the network connection management module reports successful network connection to the distribution network state machine, security authentication is triggered. Step 6, Network configuration successful: The security authentication module performs security authentication. Once the security authentication is passed, the network configuration is successful. Step 7, Routine Network Management: After successful network configuration, the network connection management module continuously monitors and dynamically adjusts routes, entering the routine network management phase.
3. The network configuration method for a multimedia audio source box supporting multiple network connection methods according to claim 2, characterized in that: During the network configuration process, the network configuration state machine intelligently selects the optimal network configuration method based on environmental conditions: if the network connection management module detects that a wired network is available, it prioritizes the use of wired connections; if there is no wired connection, it simultaneously enables BLE and hotspot network configuration modes; if the network connection management module detects a BLE network configuration request, it prioritizes processing BLE network configuration; if the network configuration is not completed through BLE within a certain time, it strengthens the hotspot broadcast to remind users.
4. The network configuration method for a multimedia audio source box supporting multiple network connection methods according to claim 3, characterized in that: The routine network management includes a distribution network state machine controlling the state transitions of the distribution network process. The state transition method is as follows: After connecting to the network, the network connection management module continuously monitors the link quality, network performance, load, and historical connection success rate of each active interface. Based on these indicators, a real-time "weight" score is dynamically calculated for each available network. The network connection management module combines the static rules in the configuration file with the real-time calculated network weight to dynamically adjust the system's routing strategy and default gateway, ensuring that application traffic is always transmitted through the optimal path. The static rule content is: application traffic preferentially uses Ethernet.
5. The network configuration method for a multimedia audio source box supporting multiple network connection methods according to claim 4, characterized in that: The method of using a wired network connection is as follows: after the network connection management module detects that the Ethernet interface is inserted and effectively connected, it automatically obtains an IP address through the DHCP protocol to complete the network connection.
6. The network configuration method for a multimedia audio source box supporting multiple network connection methods according to claim 4, characterized in that: The BLE distribution network process is divided into the following five stages: Phase 1: Device Broadcast. After power-on, the BLE module in the wireless network module enters BLE broadcast mode and sends broadcast packets containing information such as device name, device UUID, device type and signal strength. Phase 2: The external network source discovers the device and establishes a BLE connection. The external network source starts BLE scanning, and after discovering the target device, it sends a connection request. The device acts as a BLE peripheral, and the external network source acts as a BLE master device. The two parties exchange data through the GATT protocol. Phase 3: BLE transmission of Wi-Fi account and password. The device receives the Wi-Fi SSID and password sent by the external network source via BLE, and stores them in encrypted form in the memory storage module or the Flash memory of the main control chip. Phase 4: Device connects to Wi-Fi: The device disables BLE connection, enters Wi-Fi station mode to connect to the router, and the network connection management module sends a DHCP request to obtain an IP address; After a successful connection, the device attempts to access the Internet and report its status to the external network source or cloud server; Phase 5: Verify successful network configuration: The external network configuration source queries the server for device status via HTTP / MQTT to confirm that the device has successfully connected to the network; the device registers in the cloud and completes user binding.
7. The network configuration method for a multimedia audio source box supporting multiple network connection methods according to claim 6, characterized in that: During the device broadcast phase, the broadcast interval is adjustable between 100ms and 1s, balancing discovery speed and power consumption.
8. The network configuration method for a multimedia audio source box supporting multiple network connection methods according to claim 4, characterized in that: The hotspot configuration mode works as follows: the device starts in AP mode and creates a Wi-Fi hotspot; after the user's mobile device connects to this hotspot, it enters the identity authentication information of the target Wi-Fi network through a web page or app interface; after receiving the configuration, the device switches to STA mode to connect to the specified Wi-Fi network.
9. A network configuration method for a multimedia audio source box supporting multiple network connection methods according to any one of claims 6-8, characterized in that: The design addresses the security and reliability of the power distribution network process, including the following approaches: Two-way authentication: During network configuration, two-way authentication is performed between the device and the mobile terminal. The method of two-way authentication is as follows: First, pre-shared key: Before communication begins, both parties have shared a pre-set, identical secret key through a secure channel; then, key challenge-response: One party, as the verifier, sends a random number as a challenge, and the other party, as the verifier, uses the shared key to perform a specific calculation on the challenge, generates a response, and returns it; finally, the verifier performs the same calculation to verify whether the response is correct. The specific steps of this two-way authentication are as follows: S1. Initiate a challenge: The server generates a random number and sends it to the client; this random number is different for each authentication to prevent replay attacks. S2. Calculate the response: After receiving the challenge, the client takes the pre-shared key and the random number as input, calculates it through a one-way hash function, and generates a message authentication code as the response. S3. Return Response: The client sends the calculated response back to the server; S4. Verify Response: The server also uses the same key and the previously sent random number to perform the exact same one-way hash function calculation. If the calculation result is completely consistent with the response returned by the client, it proves that the client has the correct key and the authentication is successful; if they are inconsistent, the authentication fails. Data encryption transmission: AES-128 / 256 encryption algorithm is used to encrypt distribution network data; Brute-force protection: The number of consecutive distribution network attempts is limited to prevent unauthorized access; Secure storage: Network configuration parameters are encrypted and stored in non-volatile memory.
10. A network configuration method for a multimedia audio source box supporting multiple network connection methods according to claim 9, characterized in that: Measures to enhance security during power distribution network operation include: Connection timeout retry: Automatically retry when a failure occurs during network configuration; Heartbeat monitoring mechanism: Maintain a long-term connection between the device and the cloud to monitor the device status in real time; Fault recovery: When a configuration error occurs, the device automatically restores to its initial state.