Network connection processing method, device and equipment of IPTV (Internet Protocol Television) convergence gateway and medium

By determining the network address acquisition successfully in the IPTV converged gateway and configuring the network address collection, stopping broadcasting, detecting network connectivity and sending broadcasts, the problem of low service access success rate in the IPTV converged gateway is solved, and the correct network status acquisition and service access success rate is improved.

CN120201253AActive Publication Date: 2025-06-24SICHUAN TIANYI COMHEART TELECOM
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510326064.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-19
Publication Date
2025-06-24
Estimated Expiration
2045-03-19

AI Technical Summary

Technical Problem

In the existing IPTV converged gateway, the set-top box system will immediately access the service after obtaining the IP address and configuring the network. However, since the external network status of the gateway system is not yet ready, the set-top box system conducts abnormal service access, and the business access success rate is low.

Method used

By determining whether the network address is successfully obtained, and after the acquisition is successful, the network address collection is configured to the set-top box system, the broadcast sent by the connection service is stopped, the network connectivity is detected by creating a thread, and the network change broadcast is sent after the detection is successful, to ensure that the set-top box application performs business access in the correct network state.

Benefits of technology

In the case where the gateway system does not require modification, by optimizing the set-top box network process, the set-top box network status is correctly obtained, which significantly improves the business access success rate and has the advantages of transparency, simplicity and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120201253A_ABST
    Figure CN120201253A_ABST
Patent Text Reader

Abstract

The invention discloses a network connection processing method, device and equipment of an IPTV convergence gateway and a medium, relates to the technical field of network communication, and is used for solving the problem that the service access success rate of an existing IPTV convergence gateway is relatively low. The method comprises the following steps: determining whether a network address is successfully acquired; if it is determined that the network address is successfully acquired, configuring a network address set to the set top box system; wherein the network address set comprises a network address, a network route and a DNS (Domain Name Server) address; the broadcast sent by the connection service (Connectivity Service) is stopped, and the broadcast sent by the connection service (Connectivity Service) is stopped; wherein the broadcast is used for notifying other set top box applications that the current network has been changed; determining whether a connected network exists or not through the created thread; if the fact that the connected network exists is determined, the broadcast is sent to other set top box applications through a connection service; and according to the network, network access is performed by adopting the set top box application, so that the service access success rate can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network communication technologies, and provides a network connection processing method, apparatus, device, and medium for an IPTV convergence gateway. Background Art

[0002] As is well known, there are two systems in an Internet Protocol Television (IPTV) convergence gateway, namely a gateway system and a set-top box system. Based on this, due to the following reasons: (1) After the convergence gateway is powered on, the gateway system and the set-top box system will run simultaneously; (2) The central processing unit (CPU) of the set-top box has strong processing capabilities and generally runs to obtain an IP address within 15 seconds, and then continuously sends requests and waits to correctly obtain the IP; (3) The gateway has weak processing capabilities and usually prepares the local Dynamic Host Configuration Protocol (DHCP) service in about 30 - 40 seconds to support the connected devices to obtain the IP assigned by the gateway. However, the IP assigned at this time does not support external network access but only local area network access. After the gateway successfully dials through the Point-to-Point Protocol over Ethernet (PPPoE), the external network access of the set-top box can be successful. At this time, the Android application package (APK) can correctly perform service access, and it generally takes 30 - 70 seconds to obtain the external network address.

[0003] That is, in the existing IPTV convergence gateway, after the set-top box system obtains the IP address and configures the network, it will consider that the system network is ready and thus perform service access. However, at this time, since the external network status of the gateway system is not yet ready, the set-top box system will perform abnormal service access.

[0004] Therefore, how to improve the success rate of service access has become an urgent problem to be solved currently. Summary of the Invention

[0005] This application provides a network connection processing method, apparatus, device, and medium for an IPTV convergence gateway to solve the problem of low success rate of service access in the existing IPTV convergence gateway.

[0006] On the one hand, a network connection processing method for an IPTV convergence gateway is provided, and the method includes:

[0007] Determine whether the network address is successfully obtained;

[0008] If it is determined that the network address acquisition is successful, configure the network address set for the set-top box system; wherein, the network address set includes a network address, a network route, and a DNS address;

[0009] Stop the broadcast sent by the ConnectivityService; wherein, the broadcast is used to notify other set-top box applications that the current network has changed;

[0010] Determine whether there is a connected network through the created thread;

[0011] If it is determined that there is a connected network, send the broadcast to other set-top box applications through the ConnectivityService;

[0012] Perform network access using the set-top box application according to the network.

[0013] Optionally, the step of determining whether the network address acquisition is successful includes:

[0014] Set the identifier isFirstConn for successful first network connection to false;

[0015] Detect whether there is a network device going online through the Tracker server;

[0016] If it is detected that there is a network device going online, obtain the network address through the Dynamic Host Configuration Protocol (DHCP);

[0017] Determine whether the network address acquisition is successful.

[0018] Optionally, the step of, if it is determined that the network address acquisition is successful, configuring the network address set for the set-top box system includes:

[0019] If it is determined that the network address acquisition is successful, configure the network address set for the set-top box system using the ConnectivityService.

[0020] Optionally, the step of determining whether there is a connected network through the created thread includes:

[0021] Create the thread;

[0022] Read the configuration file into an array through the thread; wherein, the configuration file includes the network address set;

[0023] Perform loop detection on the configuration file to determine whether there is a connected network.

[0024] Optionally, the step of cyclically detecting the configuration file to determine whether there is an already-connected network includes:

[0025] For any address in the network address set, if it is determined to use a ping detector for detection, then use the icmp protocol to perform a ping detection on the any address;

[0026] Determine whether the ping detection is successful;

[0027] If it is determined that the ping detection is successful, then determine that the any address is an already-connected network;

[0028] If it is determined that the ping detection fails, then use the ping detector to perform a ping detection on the next address of the any address until the ping detection is successful.

[0029] Optionally, the step of cyclically detecting the configuration file to determine whether there is an already-connected network includes:

[0030] For any address in the network address set, if it is determined to use a tcp detector for detection, then use the tcp protocol to perform a tcp detection on the any address;

[0031] Determine whether the tcp detection is successful;

[0032] If it is determined that the tcp detection is successful, then determine that the any address is an already-connected network;

[0033] If it is determined that the tcp detection fails, then use the tcp detector to perform a tcp detection on the next address of the any address until the tcp detection is successful.

[0034] Optionally, the step of, if it is determined that there is an already-connected network, sending the broadcast to other set-top box applications through the ConnectivityService includes:

[0035] If it is determined that there is an already-connected network, then set the identifier isFirstConn = true;

[0036] Obtain the already-connected network;

[0037] Send the broadcast to other set-top box applications through the ConnectivityService.

[0038] On the one hand, a network connection processing device for an IPTV convergence gateway is provided, and the device includes:

[0039] A network address acquisition unit, configured to determine whether the network address acquisition is successful;

[0040] A network address configuration unit, configured to configure a network address set for the set-top box system if it is determined that the network address acquisition is successful; wherein, the network address set includes a network address, a network route, and a DNS address;

[0041] A broadcast stop unit, configured to stop the broadcast sent by the ConnectivityService; wherein, the broadcast is used to notify other set-top box applications that the current network has changed;

[0042] A network determination unit, configured to determine whether there is a connected network through a created thread;

[0043] A broadcast sending unit, configured to send the broadcast to other set-top box applications through the ConnectivityService if it is determined that there is a connected network;

[0044] A network access unit, configured to perform network access using a set-top box application according to the network.

[0045] On the one hand, an electronic device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, any of the above methods is implemented.

[0046] On the one hand, a storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, any of the above methods is implemented.

[0047] Compared with the prior art, the beneficial effects of the present application are:

[0048] In the present application, when performing service access, first, it can be determined whether the network address acquisition is successful; next, if it is determined that the network address acquisition is successful, a network address set can be configured for the set-top box system; wherein, the network address set includes a network address, a network route, and a DNS address; then, the broadcast sent by the ConnectivityService can be stopped; wherein, the broadcast is used to notify other set-top box applications that the current network has changed; next, it can be determined whether there is a connected network through a created thread; then, if it is determined that there is a connected network, the broadcast is sent to other set-top box applications through the ConnectivityService; finally, network access can be performed using a set-top box application according to the network.

[0049] Therefore, in the present application, after the network of the first set-top box system is ready, not only the broadcast sent by the set-top box system will be stopped, but also the connectivity of the network will be detected through the created thread. After the detection is successful, a network change broadcast will be sent to trigger the next process of the system service or other applications. That is, in the present application, without modifying the gateway system, the network process of the set-top box is independently optimized to achieve the purpose of correctly obtaining the network status of the set-top box. Therefore, compared with the prior art, the present application can not only greatly improve the success rate of service access by enabling the set-top box application to access services with the correct network status process, but also has the advantages of transparency, simplicity, and high efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0051] Figure 1 An electronic device provided by an embodiment of the present application;

[0052] Figure 2 A schematic diagram of a network connection processing method for an IPTV convergence gateway provided by an embodiment of the present application;

[0053] Figure 3 A schematic diagram of a network connection processing device for an IPTV convergence gateway provided by an embodiment of the present application.

[0054] Reference numerals in the figures: 10 - Network connection processing device of IPTV convergence gateway, 101 - Processor, 102 - Memory, 103 - I / O interface, 104 - Database, 30 - Network connection processing device of IPTV convergence gateway, 301 - Network address acquisition unit, 302 - Network address configuration unit, 303 - Broadcast stop unit, 304 - Network determination unit, 305 - Broadcast sending unit, 306 - Network access unit. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0055] To make the objectives, technical solutions, and advantages of this application more clearly understood, the following will describe the technical solutions in the embodiments of this application clearly and completely in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of them. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts belong to the scope of protection of this application. Without conflict, the embodiments in this application and the features in the embodiments can be combined arbitrarily with each other. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0056] As is well known, there are two systems in an Internet Protocol Television (IPTV) convergence gateway, namely, the gateway system and the set-top box system. Based on this, due to the following reasons: (1) After the convergence gateway is powered on, the gateway system and the set-top box system will run simultaneously; (2) The central processing unit (CPU) of the set-top box has relatively strong processing capabilities and generally runs to obtain an IP address within 15 seconds, and then continuously sends requests and waits to correctly obtain the IP; (3) The gateway has relatively weak processing capabilities and usually prepares the local Dynamic Host Configuration Protocol (DHCP) service in about 30 - 40 seconds to support the connected devices in obtaining the IP assigned by the gateway. However, the IP assigned at this time does not support external network access but only local area network access. After the gateway successfully dials through the Point-to-Point Protocol over Ethernet (PPPoE), the external network access of the set-top box can be successful. At this time, the Android application package (APK) can correctly perform service access, and it generally takes 30 - 70 seconds to obtain the external network address.

[0057] That is, in the existing IPTV convergence gateway, after the set-top box system obtains the IP address and configures the network, it will consider that the system network is ready and thus perform service access. However, at this time, since the external network status of the gateway system is not yet ready, it will cause the set-top box system to perform abnormal service access.

[0058] Based on this, an embodiment of the present application provides a network connection processing method for an IPTV convergence gateway. In this method, first, it can be determined whether the network address is successfully obtained. Next, if it is determined that the network address is successfully obtained, the network address set can be configured for the set-top box system. The network address set includes a network address, a network route, and a DNS address. Then, the broadcast sent by the ConnectivityService can be stopped. The broadcast is used to notify other set-top box applications that the current network has changed. Next, it can be determined whether there is a connected network through the created thread. Then, if it is determined that there is a connected network, a broadcast is sent to other set-top box applications through the ConnectivityService. Finally, network access can be performed using the set-top box application according to the network. Therefore, in the present application, after the network of the set-top box system is first prepared, not only the broadcast sent by the set-top box system is stopped, but also the connectivity of the network is detected through the created thread, and after the detection is successful, a network change broadcast is sent to trigger the next process of the system service or other applications. That is, without modifying the gateway system, the present application optimizes the set-top box network process independently to achieve the purpose of correctly obtaining the set-top box network status. Therefore, compared with the prior art, the present application can not only greatly improve the service access success rate by enabling the set-top box application to access services with the correct network status process, but also has the advantages of transparency, simplicity, and high efficiency.

[0059] After introducing the design concept of the embodiment of the present application, the following briefly introduces the application scenarios applicable to the technical solution of the embodiment of the present application. It should be noted that the following introduced application scenarios are only used to illustrate the embodiment of the present application rather than limiting it. In the specific implementation process, the technical solution provided by the embodiment of the present application can be flexibly applied according to actual needs.

[0060] As Figure 1 shown, an electronic device provided by an embodiment of the present application is specifically a network connection processing device 10 for an IPTV convergence gateway.

[0061] Among them, the network connection processing device 10 of the IPTV convergence gateway can access services through the IPTV convergence gateway. For example, it can be a personal computer (PC), a server, a laptop, etc. The network connection processing device 10 of the IPTV convergence gateway may include one or more processors 101, a memory 102, an I / O interface 103, and a database 104. Specifically, the processor 101 can be a central processing unit (CPU), or a digital processing unit, etc. The memory 102 can be a volatile memory, such as a random-access memory (RAM); the memory 102 can also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or the memory 102 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 102 can be a combination of the above memories. Part of the program instructions of the network connection processing method of the IPTV convergence gateway provided in the embodiments of the present application can be stored in the memory 102. When these program instructions are executed by the processor 101, they can be used to implement the steps of the network connection processing method of the IPTV convergence gateway provided in the embodiments of the present application, so as to solve the problem of low success rate of service access of the existing IPTV convergence gateway. The database 104 can be used to store data such as the network address set, the dynamic host configuration protocol DHCP, the icmp protocol, and the tcp protocol involved in the solution provided in the embodiments of the present application.

[0062] In the embodiments of the present application, the network connection processing device 10 of the IPTV convergence gateway can obtain the power-on startup instruction of the IPTV convergence gateway through the I / O interface 103. Then, the processor 101 of the network connection processing device 10 of the IPTV convergence gateway will improve the service access success rate according to the program instructions of the network connection processing method of the IPTV convergence gateway provided in the embodiments of the present application in the memory 102. In addition, data such as the network address set, the dynamic host configuration protocol DHCP, the icmp protocol, and the tcp protocol can also be stored in the database 104.

[0063] Of course, the method provided in the embodiments of the present application is not limited to Figure 1 the application scenarios shown, and can also be used in other possible application scenarios, which are not limited in the embodiments of the present application. For Figure 1The functions that can be realized by each device in the application scenario shown will be described together in the subsequent method embodiments, and will not be elaborated here too much. Next, the method of the embodiment of the present application will be introduced with reference to the accompanying drawings.

[0064] As Figure 2 shown, it is a schematic diagram of a network connection processing method for an IPTV convergence gateway provided by an embodiment of the present application. This method can be executed by the network connection processing device 10 of the IPTV convergence gateway in Figure 1 . Specifically, the process of this method is introduced as follows.

[0065] Step 201: Determine whether the network address is successfully obtained.

[0066] In the embodiment of the present application, after the IPTV convergence gateway is powered on and started, first, the identifier isFirstConn indicating successful first network connection can be set to false to indicate that the first network connection has not been successful yet; then, the Tracker server can be used to detect whether there is a network device eth0 going online; next, if it is detected that there is a network device eth0 going online, a network address request can be initiated, for example, obtaining the network address through the Dynamic Host Configuration Protocol (DHCP); finally, it can be determined whether the network address is successfully obtained. Among them, since the set-top box system starts relatively fast, the first address request may not be successful. Therefore, after the specified time, the address request can be continued, that is, if it is determined that the network address is not successfully obtained, the network address can be obtained again.

[0067] Step 202: If it is determined that the network address is successfully obtained, configure the network address set for the set-top box system.

[0068] In the embodiment of the present application, the network address set may include a network address, a network route, a DNS address, etc. Specifically, if it is determined that the network address is successfully obtained, the ConnectivityService can be notified that there is a network device accessing, and then the ConnectivityService can be used to configure the network address set for the set-top box system.

[0069] Step 203: Stop the broadcast sent by the ConnectivityService.

[0070] In the embodiment of the present application, the broadcast is used to notify other set-top box applications that the current network has changed.

[0071] In the existing normal process, at this time, the ConnectivityService needs to send a broadcast to notify other applications APP, etc. that the current network has changed and the network connection can be made.

[0072] In the embodiment of the present application, after configuring the network address set for the set-top box system, since isFirstConn = false, that is, the first network connection has not been successful yet. Based on this, in order to improve the success rate of service access, the broadcast sent by the ConnectivityService can be stopped.

[0073] Step 204: Determine whether there is a connected network through the created thread.

[0074] Specifically, first, a pthread thread can be created; then, through this thread, the configuration file / system / etc / testnetcon.txt can be read into an array; where the configuration file includes a network address set, that is, the network addresses for network testing are preset in this configuration file; finally, in this thread, the configuration file can be loop-probed (that is, loop-probed repeatedly according to these network addresses in the network address set) to determine whether there is a connected network. In addition, during the probing process, some IPTV service authentication addresses and ports can be preset to improve the accuracy of the probing.

[0075] In the embodiment of the present application, the network probing can be specifically performed in the following two ways (each line represents an external network address for probing to avoid probing failure caused by an exception of a single external network server):

[0076] ① Use a ping detector for probing.

[0077] For any address in the network address set, first, if it is determined to use a ping detector for probing, for example, "ping:www.baidu.com", then the icmp protocol can be used to perform a ping probe on any address; then, it can be determined whether the ping probe is successful; next, if it is determined that the ping probe is successful, that is, the ping returns successfully, then it can be determined that any address is a connected network; finally, if it is determined that the ping probe fails, then the ping detector can be used to perform a ping probe on the next address of any address until the ping probe is successful.

[0078] ② Use a tcp probe for probing.

[0079] For any address in the network address set, first, if it is determined to use a TCP detector for detection, for example, "tcp:www.baidu.com:80" or "tcp:111.100.9.8:8888", then the TCP protocol can be used to perform TCP detection on any address; then, it can be determined whether the TCP detection is successful; next, if it is determined that the TCP detection is successful, that is, TCP successfully returns, then any address can be determined as a connected network; finally, if it is determined that the TCP detection fails, then the TCP detector can be used to perform TCP detection on the next address of any address until the TCP detection is successful.

[0080] Step 205: If it is determined that there is a connected network, then send a broadcast to other set-top box applications through the ConnectivityService.

[0081] ConnectivityService, send a broadcast to other set-top box applications.

[0082] Specifically, first, if it is determined that there is a connected network, that is, when the network diagnosis is successful, the identifier isFirstConn = true can be set to indicate that the first network connection diagnosis has been completed and subsequent network changes do not require further diagnosis; next, the connected network can be obtained; finally, a broadcast can be sent to other set-top box applications through the ConnectivityService, that is, a network change broadcast is sent.

[0083] Step 206: Perform network access using the set-top box application according to the network.

[0084] In the embodiment of the present application, according to Steps 201 - 205, the IPTV convergence gateway completes the processing of network connectivity. Furthermore, when the set-top box application or the Network Time Protocol (NTP) module receives the broadcast after the network changes, it can read the current network status, and thus, perform normal network access using the set-top box application or the NTP module according to the network. And there will be no situation where the set-top box system or the set-top box application fails in the service connection after receiving the network connection success broadcast (notification).

[0085] In summary, in the embodiments of the present application, after the network of the first set-top box system is ready, not only the broadcast sent by the set-top box system is stopped, but also the connectivity of the network is detected through the created thread, and after the detection is successful, a network change broadcast is sent to trigger the next process of the system service or other applications. That is, without modifying the gateway system, the present application optimizes the network process of the set-top box independently to achieve the purpose of correctly obtaining the network status of the set-top box. Therefore, compared with the prior art, the present application can not only greatly improve the success rate of service access by enabling the set-top box application to access services with the correct network status process, but also has the advantages of transparency, simplicity, and high efficiency.

[0086] Based on the same inventive concept, an embodiment of the present application provides a network connection processing device 30 for an IPTV convergence gateway, as Figure 3 shown. The network connection processing device 30 for the IPTV convergence gateway includes:

[0087] A network address acquisition unit 301, configured to determine whether the network address is successfully acquired;

[0088] A network address configuration unit 302, configured to, if it is determined that the network address is successfully acquired, configure a network address set for the set-top box system; wherein, the network address set includes a network address, a network route, and a DNS address;

[0089] A broadcast stop unit 303, configured to stop the broadcast sent by the ConnectivityService; wherein, the broadcast is used to notify other set-top box applications that the current network has changed;

[0090] A network determination unit 304, configured to determine whether there is a connected network through the created thread;

[0091] A broadcast sending unit 305, configured to, if it is determined that there is a connected network, send a broadcast to other set-top box applications through the ConnectivityService;

[0092] A network access unit 306, configured to perform network access using the set-top box application according to the network.

[0093] Optionally, the network address acquisition unit 301 is further configured to:

[0094] Set the identifier isFirstConn of the first successful network connection to false;

[0095] Detect whether there is a network device going online through the Tracker server;

[0096] If it is detected that a network device goes online, obtain a network address through the Dynamic Host Configuration Protocol (DHCP).

[0097] Determine whether the network address is successfully obtained.

[0098] Optionally, the network address configuration unit 302 is further configured to:[[]]

[0099] If it is determined that the network address is successfully obtained, configure a network address set for the set-top box system by using the ConnectivityService.

[0100] Optionally, the network determination unit 304 is further configured to:[[]]

[0101] Create a thread.

[0102] Read a configuration file into an array through the thread; where the configuration file includes a network address set.

[0103] Perform a loop detection on the configuration file to determine whether there is a connected network.

[0104] Optionally, the network determination unit 304 is further configured to:[[]]

[0105] For any address in the network address set, if it is determined to use a ping detector for detection, perform a ping detection on any address by using the ICMP protocol.

[0106] Determine whether the ping detection is successful.

[0107] If it is determined that the ping detection is successful, determine that any address is a connected network.

[0108] If it is determined that the ping detection fails, use the ping detector to perform a ping detection on the next address of any address until the ping detection is successful.

[0109] Optionally, the network determination unit 304 is further configured to:[[]]

[0110] For any address in the network address set, if it is determined to use a TCP detector for detection, perform a TCP detection on any address by using the TCP protocol.

[0111] Determine whether the TCP detection is successful.

[0112] If it is determined that the TCP detection is successful, determine that any address is a connected network.

[0113] If it is determined that the TCP detection fails, use the TCP detector to perform a TCP detection on the next address of any address until the TCP detection is successful.

[0114] Optionally, the broadcast sending unit 305 is further configured to:

[0115] If it is determined that there is an already connected network, set the identifier isFirstConn = true;

[0116] Obtain the already connected network;

[0117] Send a broadcast to other set-top box applications through the connectivity service ConnectivityService.

[0118] The network connection processing device 30 of the IPTV convergence gateway can be used to execute Figure 2 the method executed in the embodiments shown. Therefore, for the functions that can be realized by each functional module of the network connection processing device 30 of the IPTV convergence gateway, reference can be made to Figure 2 the description of the embodiments shown, and details are not repeated here.

[0119] In some possible implementation manners, various aspects of the method provided in this application can also be implemented in the form of a program component, which includes program code. When the program component runs on a computer device, the program code is used to cause the computer device to execute the steps in the method according to various exemplary implementation manners of this application described above. For example, the computer device can execute the method executed in the embodiments shown in Figure 2 the embodiments shown.

[0120] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks and other various media that can store program code. Or, if the above integrated unit is implemented in the form of a software functional module and sold or used as an independent component, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software component. This computer software component is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in various embodiments of the present invention. And the foregoing storage medium includes: mobile storage devices, ROM, RAM, magnetic disks, or optical disks and other various media that can store program code.

[0121] Although the preferred embodiments of the present application have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once they learn of the basic creative concept. Therefore, the appended claims are intended to be interpreted to include the preferred embodiments as well as all changes and modifications that fall within the scope of the present application.

[0122] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims

1. A network connection processing method for an IPTV fusion gateway, characterized in that: The method comprises: Determine whether the network address is obtained successfully; If it is determined that the network address is acquired successfully, a network address set is configured to the set-top box system; wherein the network address set includes a network address, a network route and a DNS address; Stop the broadcast sent by the connectivity service ConnectivityService; wherein the broadcast is used to notify other set-top box applications that the current network has changed; Through the created thread, determine whether there is a connected network; If it is determined that there is a connected network, the broadcast is sent to other set-top box applications through the connectivity service ConnectivityService; According to the network, a set-top box application is used to access the network.

2. The method according to claim 1, characterized in that The step of determining whether the network address is successfully acquired comprises: Set the identifier of the first successful connection isFirstConn = false; Use the Tracker server to detect whether there are any network devices online; If it is detected that a network device is online, the network address is obtained through the Dynamic Host Configuration Protocol DHCP; Determine whether the network address is obtained successfully.

3. The method according to claim 1, characterized in that If it is determined that the network address is successfully acquired, the step of configuring the network address set to the set-top box system includes: If it is determined that the network address is obtained successfully, the connection service ConnectivityService is used to configure the network address set to the set-top box system.

4. The method according to claim 1, characterized in that The step of determining whether there is a connected network through the created thread includes: Creating the thread; Through the thread, a configuration file is read into an array; wherein the configuration file includes the network address set; The configuration file is detected cyclically to determine whether there is a connected network.

5. The method according to claim 4, characterized in that The step of cyclically detecting the configuration file to determine whether there is a connected network includes: For any address in the network address set, if it is determined to use a ping probe for detection, then use the icmp protocol to ping the any address; Determine whether the ping probe is successful; If it is determined that the ping detection is successful, then it is determined that any of the addresses is a connected network; If it is determined that the ping detection fails, a ping detection is performed on the next address of any one address using a ping detector until the ping detection succeeds.

6. The method according to claim 4, characterized in that The step of cyclically detecting the configuration file to determine whether there is a connected network includes: For any address in the network address set, if it is determined to use a TCP detector for detection, use the TCP protocol to perform TCP detection on the any address; Determine whether the TCP detection is successful; If it is determined that the TCP detection is successful, then any of the addresses is determined to be a connected network; If it is determined that the TCP detection fails, a TCP detector is used to perform TCP detection on the next address of any one of the addresses until the TCP detection succeeds.

7. The method according to claim 1, characterized in that If it is determined that there is a connected network, the step of sending the broadcast to other set-top box applications through the connectivity service ConnectivityService includes: If it is determined that there is a connected network, set the identifier isFirstConn = true; Acquire the connected network; The broadcast is sent to other set-top box applications through the connectivity service.

8. A network connection processing device for an IPTV fusion gateway, characterized in that: The device comprises: A network address acquisition unit, used to determine whether the network address is successfully acquired; A network address configuration unit, configured to configure a network address set to the set-top box system if it is determined that the network address is successfully acquired; wherein the network address set includes a network address, a network route and a DNS address; A broadcast stopping unit, used to stop the broadcast sent by the connectivity service ConnectivityService; wherein the broadcast is used to notify other set-top box applications that the current network has changed; A network determination unit, used to determine whether there is a connected network through the created thread; A broadcast sending unit, configured to send the broadcast to other set-top box applications through a connectivity service ConnectivityService if it is determined that there is a connected network; The network access unit is used to access the network using a set-top box application according to the network.

9. An electronic device, characterized in that: The device comprises: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute any method according to claims 1-7 according to the obtained program instructions.

10. A storage medium, characterized in that: The storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute any one of the methods of claims 1-7.

Citation Information

Patent Citations

  • Method and device for obtaining NTP time information based on android system

    CN105159728A

  • Method and system for improving startup speed of converged gateway

    CN108174254A

  • Set-top box network diagnostics

    US20080022336A1

  • Diagnosing and optimizing network-wide IPTV configurations

    US20150326939A1

  • Customer premises equipment with a network probe and a method for monitoring quality of service in an IPTV content delivery network

    US20230336817A1