Method and device for quickly acquiring and recovering IP network

By using USB bridge devices and heartbeat mechanisms in home smart devices such as TVs, the problem of poor user experience during network switching is solved, and the IP network is quickly acquired and restored, improving the performance and user experience of the device.

CN119449583APending Publication Date: 2025-02-14SHENZHEN IPANEL TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411562000.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

Home smart devices such as TVs have poor user experience when switching networks, including slow network acquisition speed, failure to renew IP addresses in time, and the need for a permanent front desk for private network applications.

Method used

After the dedicated network application is started and the USB bridge device is powered up successfully, the network acquisition process of home smart devices will be started and an IP network is established. Establish a heartbeat mechanism for private network applications and USB bridge devices, cache network connection parameters, and realize rapid acquisition and recovery of IP networks.

Benefits of technology

This greatly advances the start time of network acquisition, saves the time for private network applications to acquire networks, simplifies network parameter configuration, improves user experience, and reduces the cost and failure rate of USB bridge devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449583A_ABST
    Figure CN119449583A_ABST
Patent Text Reader

Abstract

According to the method and the device for quickly acquiring and recovering the IP network, provided by the invention, compared with the situation that a television starts to acquire the network after being turned on and entering a private network application, USB network bridge equipment generally can finish initialization and start a network acquisition process after a USB is powered on for about 1 second; the starting time of acquiring the network is greatly advanced, and the time of acquiring the network by the private network application is saved; after the application is restarted and enters the private network application, the network is obtained again, the USB network bridge equipment has completed the network obtaining process, the application directly reads the network parameter configuration protocol stack, and the network obtaining time is saved; the private network application completes complex network parameter configuration acquisition possibly existing in different network environments, and the firmware program of the bridging network equipment is greatly simplified; the USB network bridge equipment is low in cost, low in power consumption, low in heating, low in failure rate and high in throughput of special hardware.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network switching, and in particular to a method and device for quickly acquiring and restoring an IP network. Background Art

[0002] Smart home devices such as televisions access the Internet or operator interactive networks through the network. Usually, the operator's private network application is installed on the television to connect to the network.

[0003] Operators have a class of USB external devices to switch networks under program control. USB external devices include network cables and USB network cards. By entering or exiting private network applications to control the on and off of the network cables, the same effect as plugging and unplugging the network cables can be achieved. Network switching is based on USB. The external USB device is a bridge-type device, which does not have complex functions and is low-cost.

[0004] First, the timing of starting the private network application is relatively late. Second, the network is acquired after the application is started. Third, it takes a long time to connect to the network and obtain data to display to the user, resulting in a poor user experience. When the private network application retreats to the background, the renewal of the network IP is not completed by the main body, and the IP address will be disconnected. If the private network application is opened again, the IP network needs to be acquired again, which leads to a very poor user experience. In summary, the network switching of home smart devices such as TVs has the following problems:

[0005] Generally, you should choose a simple bridge USB device, but it also has the disadvantage of simple functions;

[0006] A private network application is needed to complete the work of acquiring and driving the network;

[0007] Private network applications on TV sets generally cannot stay in the background;

[0008] The private network application needs to obtain an IP address again every time it enters;

[0009] The acquisition of IP addresses by private network applications is limited by the network and protocol itself, resulting in a slow speed;

[0010] There will be a significant delay when private network applications access intranet services;

[0011] When using private network applications, users need to wait for a while before they can use them normally when entering for the first time, exiting, and re-entering, which results in a poor experience. Summary of the invention

[0012] The present invention provides a method and device for quickly acquiring and restoring an IP network, so as to solve the problems raised in the background technology.

[0013] A method for quickly acquiring and restoring an IP network, comprising:

[0014] S1: After the private network application is started and the USB bridge device is powered on successfully, the USB bridge device starts the network acquisition process of the home smart device and establishes an IP network;

[0015] S2: After the private network application obtains the IP network, it determines the network configuration parameters and sends the network configuration parameters to the USB bridge device, and the USB bridge device replicates the message for obtaining the network;

[0016] S3: Establish a heartbeat mechanism between the private network application and the USB bridge device;

[0017] S4: When a private network application needs to access the home smart device again, the USB bridge device sends a message based on the network acquisition process and establishes a connection with the server, and caches the network connection parameters returned by the server;

[0018] S5: After the private network application is restarted, based on the heartbeat mechanism, the private network application obtains the network connection parameters of the USB bridge device.

[0019] Preferably, when a change in the network environment is detected, steps S1-S5 are repeated to modify the parameter configuration.

[0020] Preferably, in S1, after the private network application is started and the USB bridge device is powered on successfully, the USB bridge device starts the network acquisition process of the home smart device and establishes an IP network, including:

[0021] After the private network application is started and the USB bridge device is powered on successfully, the USB bridge device is initialized;

[0022] After initialization, a bridge structure of the USB bridge device is obtained, and based on the network connection information of the home smart device, node function information of each node in the bridge structure is set, and based on the node function information, a network acquisition process of the home smart device is determined to start;

[0023] Establish an IP network according to the network acquisition process.

[0024] Preferably, based on the node function information, determining to start a network acquisition process for a home smart device includes:

[0025] Obtain node function information to determine function characteristics, and obtain structural characteristics of each node in the bridge structure;

[0026] The node function information is integrated based on the functional characteristics and structural characteristics to determine the start of the network acquisition process of the home smart device.

[0027] Preferably, in S2, after the private network application obtains the IP network, the network configuration parameters are determined, and the network configuration parameters are sent to the USB bridge device, and the USB bridge device replicates the message for obtaining the network, including:

[0028] Get the network connection process of the private network application to the IP network, and obtain the network configuration parameters required in the network connection process;

[0029] After the network configuration parameters are sent to the USB bridge device, the playback mode is determined based on the message requirements of the USB bridge device;

[0030] The USB bridge device starts online playback in a playback mode based on the network configuration parameters, and obtains network messages according to the playback results.

[0031] Preferably, in S3, a heartbeat mechanism between the private network application and the USB bridge device is established, including:

[0032] Obtain first operation information of the private network application and second operation information of the USB bridge device, obtain a first difference between the first operation information and a preset operation amount of the private network application, and obtain a second difference between the second operation information and a preset operation amount of the USB bridge device;

[0033] Based on the first difference and the second difference, a heartbeat connection strategy is established, specifically:

[0034] When the first difference is greater than the second difference, the private network application is selected to send a heartbeat packet to the USB bridge device, and the USB bridge device responds to the private network application to confirm the connection after receiving the heartbeat packet;

[0035] When the first difference is not greater than the second difference, the USB bridge device is selected to send a heartbeat packet to the private network application, and the private network application marks the heartbeat packet after receiving it, and returns the marking result to the private network application;

[0036] Based on the application attribute information of the private network application and the device attribute information of the USB bridge device, a mapping relationship between the private network application and the USB bridge device is established, and a heartbeat connection channel between the private network application and the USB bridge device is established according to the mapping relationship;

[0037] Determine the initial heartbeat frequency based on the historical disconnection frequency and data interaction frequency between the private network application and the USB bridge device;

[0038] According to the heartbeat connection strategy, the heartbeat connection channel and the initial heartbeat frequency establish an initial heartbeat mechanism between the private network application and the USB bridge device;

[0039] Obtain the heartbeat timeout frequency and heartbeat timeout period between the private network application and the USB bridge device under the initial heartbeat mechanism, and obtain the target heartbeat timeout frequency and target heartbeat timeout period without disconnection from the heartbeat timeout frequency and heartbeat timeout period;

[0040] Obtain load information between the private network application and the USB bridge device under the target heartbeat timeout frequency and the target heartbeat timeout period, and establish an intelligent adjustment strategy for the initial heartbeat frequency based on the load information, the target heartbeat timeout frequency and the target heartbeat timeout period to obtain an adjustable heartbeat frequency;

[0041] Based on the adjustable heartbeat frequency, the initial heartbeat mechanism is adjusted in real time to obtain the final heartbeat mechanism of the private network application and the USB bridge device.

[0042] Preferably, in S4, when a private network application needs to enter the home smart device again, the process further includes:

[0043] After the private network application is started, the private network application is monitored online, and whether the private network application is offline is determined based on the monitoring results;

[0044] If so, issue a first warning reminder;

[0045] Otherwise, when the private network application actively exits, a second warning reminder is issued;

[0046] Based on the first warning reminder and the second warning reminder, it is determined that the private network application needs to enter the home smart device again.

[0047] Preferably, in S4, when a private network application needs to access the home smart device again, the USB bridge device sends a message based on the network acquisition process and establishes a connection with the server, and caches the network connection parameters returned by the server, including:

[0048] When a private network application needs to access the home smart device again, the USB bridge device retrieves the network configuration parameters from the network acquisition process;

[0049] The USB bridge device sends a message to the server using the network configuration parameters to establish a connection with the server;

[0050] After the server interaction establishes a connection, the network connection parameters related to establishing the connection are retrieved from the server and sent to the USB bridge device for caching.

[0051] Preferably, in S5, after the private network application is restarted, based on the heartbeat mechanism, the private network application obtains the network connection parameters of the USB bridge device, including:

[0052] After the private network application is restarted, the network connection parameters are retrieved from the USB bridge device;

[0053] Based on the heartbeat mechanism, the interactive channel between the private network application and the USB bridge is obtained, and the network connection parameters are sent to the USB bridge device based on the interactive channel.

[0054] A device for quickly acquiring and restoring an IP network, comprising:

[0055] The acquisition process module is used to start the network acquisition process of the home smart device and establish an IP network after the private network application is started and the USB bridge device is powered on successfully;

[0056] The message replication module is used to determine the network configuration parameters after the private network application obtains the IP network, and send the network configuration parameters to the USB bridge device, and the USB bridge device replicates the message of obtaining the network;

[0057] Mechanism establishment module, used to establish the heartbeat mechanism between the private network application and the USB bridge device;

[0058] The parameter cache module is used for when a private network application needs to access the home smart device again, the USB bridge device sends a message based on the network acquisition process and establishes a connection with the server, and caches the network connection parameters returned by the server;

[0059] Parameter acquisition module, after the private network application is restarted, based on the heartbeat mechanism, the private network application obtains the network connection parameters of the USB bridge device.

[0060] Compared with the prior art, the present invention has achieved the following beneficial effects:

[0061] Compared with the TV which starts to acquire the network after entering the private network application after being turned on, the USB bridge device can usually complete the initialization and start the network acquisition process about 1 second after the USB is powered on, which greatly advances the start time of network acquisition and saves the time for the private network application to acquire the network; when the application restarts and enters the private network application to acquire the network again, the USB bridge device has completed the network acquisition process, and the application directly reads the network parameter configuration protocol stack, saving the time for network acquisition; the private network application completes the complex network parameter configuration that may exist in different network environments, which greatly simplifies the firmware program of the bridge network device; the USB bridge device has low cost, low power consumption, low heat generation, low failure rate, and high dedicated hardware throughput.

[0062] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures specifically pointed out in this application document.

[0063] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0065] Figure 1 A flowchart of a method for quickly acquiring and restoring an IP network in an embodiment of the present invention;

[0066] Figure 2 A flowchart for reproducing a message of a network in an embodiment of the present invention;

[0067] Figure 3 The present invention is a structural diagram of a device for quickly acquiring and restoring an IP network in an embodiment of the present invention. DETAILED DESCRIPTION

[0068] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0069] Embodiment 1:

[0070] The embodiment of the present invention provides a method for quickly acquiring and restoring an IP network. Figure 1 As shown, including:

[0071] S1: After the private network application is started and the USB bridge device is powered on successfully, the USB bridge device starts the network acquisition process of the home smart device and establishes an IP network;

[0072] S2: After the private network application obtains the IP network, it determines the network configuration parameters and sends the network configuration parameters to the USB bridge device, and the USB bridge device replicates the message for obtaining the network;

[0073] S3: Establish a heartbeat mechanism between the private network application and the USB bridge device;

[0074] S4: When a private network application needs to access the home smart device again, the USB bridge device sends a message based on the network acquisition process and establishes a connection with the server, and caches the network connection parameters returned by the server;

[0075] S5: After the private network application is restarted, based on the heartbeat mechanism, the private network application obtains the network connection parameters of the USB bridge device.

[0076] In this embodiment, the process of the present invention is as follows: after the private network application is started for the first time, a complete network acquisition process needs to be completed; after the private network application obtains the network, the parameters required for obtaining the network are configured to the USB bridge device, so that the bridge device can replicate the message for obtaining the network; the application needs to establish a heartbeat with the bridge device and synchronize the running status; if the application hangs up / exits / re-enters after the system restarts, the bridge device needs to check the configuration parameters, send messages on behalf of the application to interact with the server to establish a connection, and cache the network connection parameters returned by the server; after the private network application is restarted, the status of the bridge device is synchronized, and the connection parameters of the network cache are obtained from the bridge device, including IP (network address), DNS (domain name server), GateWayIP (gateway address) and other network status parameters, and configured to the network protocol stack.

[0077] In this embodiment, after establishing a heartbeat mechanism between the private network application and the USB bridge device, the following functions can be achieved: the private network application informs the bridge device that the private network application is in operation by sending a message, and obtains the status information of the bridge (the operation status of the private network application) at the same time; the bridge device can actively report the networking status to the private network application (the private network application is in operation), such as starting connection->connecting->connection successful (failure); the private network application sets and obtains the network parameters of the bridge device; the private network application obtains the network connection parameters after the bridge is successfully connected to the network.

[0078] The beneficial effects of the above design scheme are: compared with the TV starting to acquire the network after entering the private network application after being turned on, the USB bridge device can usually complete the initialization and start the network acquisition process about 1 second after the USB is powered on, which greatly advances the start time of network acquisition and saves the time for the private network application to acquire the network; for re-acquiring the network after the application is restarted and enters the private network application, the USB bridge device has completed the network acquisition process, and the application directly reads the network parameter configuration protocol stack, saving the time for acquiring the network; the private network application completes the complex network parameter configuration that may exist in different network environments, greatly simplifying the firmware program of the bridge network device; the USB bridge device has low cost, low power consumption, low heat generation, low failure rate, and high dedicated hardware throughput.

[0079] Embodiment 2:

[0080] Based on Example 1, the embodiment of the present invention provides a method for quickly acquiring and restoring an IP network. When a change in the network environment is detected, S1-S5 is repeated to modify parameter configuration.

[0081] The beneficial effect of the above design is that when a change in the network environment is detected, S1-S5 is repeated to modify the parameter configuration, thereby achieving network acquisition in any network environment.

[0082] Embodiment 3:

[0083] Based on Example 1, the embodiment of the present invention provides a method for quickly acquiring and restoring an IP network. In S1, after the private network application is started and the USB bridge device is powered on successfully, the USB bridge device starts the network acquisition process of the home smart device and establishes an IP network, including:

[0084] After the private network application is started and the USB bridge device is powered on successfully, the USB bridge device is initialized;

[0085] After initialization, a bridge structure of the USB bridge device is obtained, and based on the network connection information of the home smart device, node function information of each node in the bridge structure is set, and based on the node function information, a network acquisition process of the home smart device is determined to start;

[0086] Establish an IP network according to the network acquisition process.

[0087] The beneficial effect of the above design scheme is: by obtaining the bridge structure of the USB bridge device after initialization, setting the node function information of each node in the bridge structure based on the network connection information of the home smart device, and determining to start the network acquisition process of the home smart device based on the node function information, the accuracy of the obtained network acquisition process is ensured, and a basis is provided for the rapid switching of network switching.

[0088] Embodiment 4:

[0089] Based on Example 3, the embodiment of the present invention provides a method for quickly acquiring and restoring an IP network, and based on the node function information, determining to start a network acquisition process for a home smart device includes:

[0090] Obtain node function information to determine function characteristics, and obtain structural characteristics of each node in the bridge structure;

[0091] The node function information is integrated based on the functional characteristics and structural characteristics to determine the start of the network acquisition process of the home smart device.

[0092] The beneficial effects of the above design scheme are: determining the functional characteristics by obtaining the node function information, obtaining the structural characteristics of each node in the bridge structure, integrating the node function information based on the functional characteristics and structural characteristics, determining to start the network acquisition process of the home smart device, and providing a basis for the rapid switching of the network switching.

[0093] Embodiment 5:

[0094] Based on Example 1, the present invention provides a method for quickly acquiring and restoring an IP network. Figure 2As shown, in S2, after the private network application obtains the IP network, the network configuration parameters are determined and sent to the USB bridge device, and the USB bridge device replicates the message for obtaining the network, including:

[0095] Get the network connection process of the private network application to the IP network, and obtain the network configuration parameters required in the network connection process;

[0096] After the network configuration parameters are sent to the USB bridge device, the playback mode is determined based on the message requirements of the USB bridge device;

[0097] The USB bridge device starts online playback in a playback mode based on the network configuration parameters, and obtains network messages according to the playback results.

[0098] The beneficial effect of the above design scheme is: by obtaining the network connection process in the IP network through the private network application, and obtaining the network configuration parameters required in the network connection process, after sending the network configuration parameters to the USB bridge device, the playback mode is determined based on the message requirements of the USB bridge device, and the USB bridge device starts online playback according to the playback mode based on the network configuration parameters, and obtains the message of the network according to the playback result, providing a basis for the interaction of network connection parameters.

[0099] Embodiment 6:

[0100] Based on Example 1, the embodiment of the present invention provides a method for quickly acquiring and restoring an IP network. In S3, a heartbeat mechanism between a private network application and a USB bridge device is established, including:

[0101] Obtain first operation information of the private network application and second operation information of the USB bridge device, obtain a first difference between the first operation information and a preset operation amount of the private network application, and obtain a second difference between the second operation information and a preset operation amount of the USB bridge device;

[0102] Based on the first difference and the second difference, a heartbeat connection strategy is established, specifically:

[0103] When the first difference is greater than the second difference, the private network application is selected to send a heartbeat packet to the USB bridge device, and the USB bridge device responds to the private network application to confirm the connection after receiving the heartbeat packet;

[0104] When the first difference is not greater than the second difference, the USB bridge device is selected to send a heartbeat packet to the private network application, and the private network application marks the heartbeat packet after receiving it, and returns the marking result to the private network application;

[0105] Based on the application attribute information of the private network application and the device attribute information of the USB bridge device, a mapping relationship between the private network application and the USB bridge device is established, and a heartbeat connection channel between the private network application and the USB bridge device is established according to the mapping relationship;

[0106] Determine the initial heartbeat frequency based on the historical disconnection frequency and data interaction frequency between the private network application and the USB bridge device;

[0107] According to the heartbeat connection strategy, the heartbeat connection channel and the initial heartbeat frequency establish an initial heartbeat mechanism between the private network application and the USB bridge device;

[0108] Obtain the heartbeat timeout frequency and heartbeat timeout period between the private network application and the USB bridge device under the initial heartbeat mechanism, and obtain the target heartbeat timeout frequency and target heartbeat timeout period without disconnection from the heartbeat timeout frequency and heartbeat timeout period;

[0109] Obtain load information between the private network application and the USB bridge device under the target heartbeat timeout frequency and the target heartbeat timeout period, and establish an intelligent adjustment strategy for the initial heartbeat frequency based on the load information, the target heartbeat timeout frequency and the target heartbeat timeout period to obtain an adjustable heartbeat frequency;

[0110] Based on the adjustable heartbeat frequency, the initial heartbeat mechanism is adjusted in real time to obtain the final heartbeat mechanism of the private network application and the USB bridge device.

[0111] In this embodiment, the first operation information and the second operation information include load operation, resource occupancy information, etc.

[0112] In this embodiment, the intelligent adjustment strategy for the initial heartbeat frequency is to intelligently reduce the initial heartbeat frequency based on the target heartbeat timeout frequency and the target heartbeat timeout period, thereby reducing the waste of resources while ensuring the establishment of the heartbeat.

[0113] The beneficial effects of the above design scheme are: by analyzing the operation information, attribute information, etc. of the private network application and the USB bridge device, a heartbeat connection strategy is established, and the heartbeat connection channel and heartbeat frequency are intelligently set to ensure the optimality of the heartbeat mechanism of the private network application and the USB bridge device, providing a basis for the subsequent recovery of the IP network.

[0114] Embodiment 7:

[0115] Based on Example 1, the embodiment of the present invention provides a method for quickly acquiring and restoring an IP network. In S4, when a private network application needs to enter the home smart device again, the method further includes:

[0116] After the private network application is started, the private network application is monitored online, and whether the private network application is offline is determined based on the monitoring results;

[0117] If so, issue a first warning reminder;

[0118] Otherwise, when the private network application actively exits, a second warning reminder is issued;

[0119] Based on the first warning reminder and the second warning reminder, it is determined that the private network application needs to enter the home smart device again.

[0120] The beneficial effect of the above design scheme is: by performing online monitoring of the private network application after the private network application is started, it is determined whether the private network application has been disconnected based on the monitoring results, and an early warning reminder is issued to ensure that the user is reminded of the private network disconnection in time, so that the private network application can enter the home smart device again.

[0121] Embodiment 8:

[0122] Based on Example 1, the embodiment of the present invention provides a method for quickly acquiring and restoring an IP network. In S4, when a private network application needs to access the home smart device again, the USB bridge device sends a message based on the network acquisition process and establishes a connection with the server, and caches the network connection parameters returned by the server, including:

[0123] When a private network application needs to access the home smart device again, the USB bridge device retrieves the network configuration parameters from the network acquisition process;

[0124] The USB bridge device sends a message to the server using the network configuration parameters to establish a connection with the server;

[0125] After the server interaction establishes a connection, the network connection parameters related to establishing the connection are retrieved from the server and sent to the USB bridge device for caching.

[0126] The beneficial effects of the above design scheme are: when a private network application needs to enter the home smart device again, the USB bridge device retrieves the network configuration parameters from the network acquisition process; the USB bridge device sends a message to the server with the network configuration parameters, and interacts with the server to establish a connection; after the server interacts and establishes a connection, the network connection parameters related to establishing the connection are retrieved from the server and sent to the USB bridge device for caching. When the application restarts and enters the private network application to re-acquire the network, the USB bridge device has completed the network acquisition process, and the application directly reads the network parameter configuration protocol stack, saving the time for acquiring the network; the private network application completes the complex network parameter acquisition configuration that may exist in different network environments, greatly simplifying the firmware program of the bridge network device; the USB bridge device has low cost, low power consumption, low heat generation, low failure rate, and high dedicated hardware throughput.

[0127] Embodiment 9:

[0128] Based on Example 1, the embodiment of the present invention provides a method for quickly acquiring and restoring an IP network. In S5, after the private network application is restarted, the private network application acquires the network connection parameters of the USB bridge device based on the heartbeat mechanism, including:

[0129] After the private network application is restarted, the network connection parameters are retrieved from the USB bridge device;

[0130] Based on the heartbeat mechanism, the interactive channel between the private network application and the USB bridge is obtained, and the network connection parameters are sent to the USB bridge device based on the interactive channel.

[0131] The beneficial effects of the above design scheme are: after the private network application is restarted, the network connection parameters are retrieved from the USB bridge device, and based on the heartbeat mechanism, the interaction channel between the private network application and the USB bridge is obtained, and the network connection parameters are sent to the USB bridge device based on the interaction channel. The USB bridge device has completed the network acquisition process, and the application directly reads the network parameter configuration protocol stack, saving the time for acquiring the network; the private network application completes the complex network parameter configuration that may exist in different network environments, greatly simplifying the firmware program of the bridge network device; the USB bridge device has low cost, low power consumption, low heat generation, low failure rate, and high dedicated hardware throughput.

[0132] Embodiment 10:

[0133] Based on Example 1, the present invention provides a method and apparatus for quickly acquiring and restoring an IP network, such as Figure 3 As shown, including:

[0134] The acquisition process module is used to start the network acquisition process of the home smart device and establish an IP network after the private network application is started and the USB bridge device is powered on successfully;

[0135] The message replication module is used to determine the network configuration parameters after the private network application obtains the IP network, and send the network configuration parameters to the USB bridge device, and the USB bridge device replicates the message of obtaining the network;

[0136] Mechanism establishment module, used to establish the heartbeat mechanism between the private network application and the USB bridge device;

[0137] The parameter cache module is used for when a private network application needs to access the home smart device again, the USB bridge device sends a message based on the network acquisition process and establishes a connection with the server, and caches the network connection parameters returned by the server;

[0138] Parameter acquisition module, after the private network application is restarted, based on the heartbeat mechanism, the private network application obtains the network connection parameters of the USB bridge device.

[0139] In this embodiment, the process of the present invention is as follows: after the private network application is started for the first time, a complete network acquisition process needs to be completed; after the private network application obtains the network, the parameters required for obtaining the network are configured to the USB bridge device, so that the bridge device can replicate the message for obtaining the network; the application needs to establish a heartbeat with the bridge device and synchronize the running status; if the application hangs up / exits / re-enters after the system restarts, the bridge device needs to check the configuration parameters, send messages on behalf of the application to interact with the server to establish a connection, and cache the network connection parameters returned by the server; after the private network application is restarted, the status of the bridge device is synchronized, and the connection parameters of the network cache are obtained from the bridge device, including IP (network address), DNS (domain name server), GateWayIP (gateway address) and other network status parameters, and configured to the network protocol stack.

[0140] The beneficial effects of the above design scheme are: compared with the TV starting to acquire the network after entering the private network application after being turned on, the USB bridge device can usually complete the initialization and start the network acquisition process about 1 second after the USB is powered on, which greatly advances the start time of network acquisition and saves the time for the private network application to acquire the network; for re-acquiring the network after the application is restarted and enters the private network application, the USB bridge device has completed the network acquisition process, and the application directly reads the network parameter configuration protocol stack, saving the time for acquiring the network; the private network application completes the complex network parameter configuration that may exist in different network environments, greatly simplifying the firmware program of the bridge network device; the USB bridge device has low cost, low power consumption, low heat generation, low failure rate, and high dedicated hardware throughput.

[0141] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention belong to the scope of this application document and its equivalent technology, the present invention is also intended to include these changes and variations.

Claims

1. A method for quickly acquiring and restoring an IP network, characterized in that: include: S1: After the private network application is started and the USB bridge device is powered on successfully, the USB bridge device starts the network acquisition process of the home smart device and establishes an IP network; S2: After the private network application obtains the IP network, it determines the network configuration parameters and sends the network configuration parameters to the USB bridge device, and the USB bridge device replicates the message for obtaining the network; S3: Establish a heartbeat mechanism between the private network application and the USB bridge device; S4: When a private network application needs to access the home smart device again, the USB bridge device sends a message based on the network acquisition process and establishes a connection with the server, and caches the network connection parameters returned by the server; S5: After the private network application is restarted, based on the heartbeat mechanism, the private network application obtains the network connection parameters of the USB bridge device.

2. A method for quickly acquiring and restoring an IP network according to claim 1, characterized in that: Also includes: When a change in the network environment is detected, steps S1 to S5 are repeated to modify the parameter configuration.

3. A method for quickly acquiring and restoring an IP network according to claim 1, characterized in that: In S1, after the private network application is started and the USB bridge device is powered on successfully, the USB bridge device starts the network acquisition process of the home smart device and establishes an IP network, including: After the private network application is started and the USB bridge device is powered on successfully, the USB bridge device is initialized; After initialization, a bridge structure of the USB bridge device is obtained, and based on the network connection information of the home smart device, node function information of each node in the bridge structure is set, and based on the node function information, a network acquisition process of the home smart device is determined to start; Establish an IP network according to the network acquisition process.

4. A method for quickly acquiring and restoring an IP network according to claim 3, characterized in that: Based on the node function information, determining to start a network acquisition process for the home smart device includes: Obtain node function information to determine function characteristics, and obtain structural characteristics of each node in the bridge structure; The node function information is integrated based on the functional characteristics and structural characteristics to determine the start of the network acquisition process of the home smart device.

5. A method for quickly acquiring and restoring an IP network according to claim 1, characterized in that: In S2, after the private network application obtains the IP network, the network configuration parameters are determined and sent to the USB bridge device, and the USB bridge device replicates the message for obtaining the network, including: Get the network connection process of the private network application to the IP network, and obtain the network configuration parameters required in the network connection process; After the network configuration parameters are sent to the USB bridge device, the playback mode is determined based on the message requirements of the USB bridge device; The USB bridge device starts online playback in a playback mode based on the network configuration parameters, and obtains network messages according to the playback results.

6. A method for quickly acquiring and restoring an IP network according to claim 1, characterized in that: In S3, a heartbeat mechanism between the private network application and the USB bridge device is established, including: Obtain first operation information of the private network application and second operation information of the USB bridge device, obtain a first difference between the first operation information and a preset operation amount of the private network application, and obtain a second difference between the second operation information and a preset operation amount of the USB bridge device; Based on the first difference and the second difference, a heartbeat connection strategy is established, specifically: When the first difference is greater than the second difference, the private network application is selected to send a heartbeat packet to the USB bridge device, and the USB bridge device responds to the private network application to confirm the connection after receiving the heartbeat packet; When the first difference is not greater than the second difference, the USB bridge device is selected to send a heartbeat packet to the private network application, and the private network application marks the heartbeat packet after receiving it, and returns the marking result to the private network application; Based on the application attribute information of the private network application and the device attribute information of the USB bridge device, a mapping relationship between the private network application and the USB bridge device is established, and a heartbeat connection channel between the private network application and the USB bridge device is established according to the mapping relationship; Determine the initial heartbeat frequency based on the historical disconnection frequency and data interaction frequency between the private network application and the USB bridge device; According to the heartbeat connection strategy, the heartbeat connection channel and the initial heartbeat frequency establish an initial heartbeat mechanism between the private network application and the USB bridge device; Obtain the heartbeat timeout frequency and heartbeat timeout period between the private network application and the USB bridge device under the initial heartbeat mechanism, and obtain the target heartbeat timeout frequency and target heartbeat timeout period without disconnection from the heartbeat timeout frequency and heartbeat timeout period; Obtain load information between the private network application and the USB bridge device under the target heartbeat timeout frequency and the target heartbeat timeout period, and establish an intelligent adjustment strategy for the initial heartbeat frequency based on the load information, the target heartbeat timeout frequency and the target heartbeat timeout period to obtain an adjustable heartbeat frequency; Based on the adjustable heartbeat frequency, the initial heartbeat mechanism is adjusted in real time to obtain the final heartbeat mechanism of the private network application and the USB bridge device.

7. A method for quickly acquiring and restoring an IP network according to claim 1, characterized in that: In S4, when a private network application needs to enter the home smart device again, it also includes: After the private network application is started, the private network application is monitored online, and whether the private network application is offline is determined based on the monitoring results; If so, issue a first warning reminder; Otherwise, when the private network application actively exits, a second warning reminder is issued; Based on the first warning reminder and the second warning reminder, it is determined that the private network application needs to enter the home smart device again.

8. A method for quickly acquiring and restoring an IP network according to claim 1, characterized in that: In S4, when a private network application needs to access the home smart device again, the USB bridge device sends a message based on the network acquisition process and establishes a connection with the server, and caches the network connection parameters returned by the server, including: When a private network application needs to access the home smart device again, the USB bridge device retrieves the network configuration parameters from the network acquisition process; The USB bridge device sends a message to the server using the network configuration parameters to establish a connection with the server; After the server interaction establishes a connection, the network connection parameters related to establishing the connection are retrieved from the server and sent to the USB bridge device for caching.

9. A method for quickly acquiring and restoring an IP network according to claim 1, characterized in that: In S5, after the private network application is restarted, based on the heartbeat mechanism, the private network application obtains the network connection parameters of the USB bridge device, including: After the private network application is restarted, the network connection parameters are retrieved from the USB bridge device; Based on the heartbeat mechanism, the interactive channel between the private network application and the USB bridge is obtained, and the network connection parameters are sent to the USB bridge device based on the interactive channel.

10. The device for the method of quickly acquiring and restoring an IP network according to claim 1, characterized in that: include: The acquisition process module is used to start the network acquisition process of the home smart device and establish an IP network after the private network application is started and the USB bridge device is powered on successfully; The message replication module is used to determine the network configuration parameters after the private network application obtains the IP network, and send the network configuration parameters to the USB bridge device, and the USB bridge device replicates the message of obtaining the network; Mechanism establishment module, used to establish the heartbeat mechanism between the private network application and the USB bridge device; The parameter cache module is used for when a private network application needs to access the home smart device again, the USB bridge device sends a message based on the network acquisition process and establishes a connection with the server, and caches the network connection parameters returned by the server; Parameter acquisition module, after the private network application is restarted, based on the heartbeat mechanism, the private network application obtains the network connection parameters of the USB bridge device.