A network connection processing method, apparatus, device and medium for an IPTV converged gateway
By confirming successful network address acquisition in the IPTV converged gateway, configuring the network address set, and probing network connectivity, the problem of abnormal access in the set-top box system was solved, the success rate of service access was improved, and transparent, simple, and efficient network status acquisition was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SICHUAN TIANYI COMHEART TELECOM
- Filing Date
- 2025-03-19
- Publication Date
- 2026-05-26
AI Technical Summary
In existing IPTV converged gateways, set-top box systems attempt to access services when the gateway system's external network status is not ready, leading to abnormal access and a low success rate for service access.
By determining whether the network address was successfully obtained, configuring the network address set, stopping the set-top box system's broadcast, using threads to probe network connectivity, and sending a broadcast upon success to trigger the next step of the system service process.
Without modifying the gateway system, the success rate of service access for set-top box applications was improved, and transparent, simple, and efficient network status acquisition was achieved.
Smart Images

Figure CN120201253B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network communication technology, and provides a network connection processing method, apparatus, device and medium for an IPTV converged gateway. Background Technology
[0002] As is well known, an Internet Protocol Television (IPTV) converged gateway consists of two systems: a gateway system and a set-top box system. Based on this, due to the following reasons: (1) After the converged gateway is powered on, the gateway system and the set-top box system will run simultaneously; (2) The set-top box's central processing unit (CPU) has strong processing power and will generally obtain an IP address within 15 seconds, after which it will continuously send requests, waiting for the correct IP address to be obtained; (3) The gateway has weak processing power and will typically prepare the local Dynamic Host Configuration Protocol (DHCP) service in about 30-40 seconds, enabling connected devices to obtain the IP address assigned by the gateway. However, at this time, the assigned IP address does not support external network access, only local area network access. The set-top box can only successfully access the external network after the gateway successfully dials up via the Point-to-Point Protocol over Ethernet (PPPoE). At this point, the Android application package (APK) can correctly access services, which generally takes 30-70 seconds to obtain an external network address.
[0003] In other words, in the existing IPTV converged gateway, after the set-top box system obtains an IP address and configures the network, it assumes that the system network is ready and therefore attempts to access services. However, since the gateway system's external network status is not yet ready, the set-top box system may attempt to access services abnormally.
[0004] Therefore, improving the success rate of business access has become an urgent problem to be solved. Summary of the Invention
[0005] This application provides a network connection processing method, apparatus, device, and medium for an IPTV converged gateway, which addresses the problem of low service access success rate in existing IPTV converged gateways.
[0006] On the one hand, a network connection processing method for an IPTV converged gateway is provided, the method comprising:
[0007] Determine if the network address was successfully obtained;
[0008] If the network address acquisition is successful, a network address set is configured in the set-top box system; wherein, the network address set includes network address, network route and DNS address;
[0009] Stop the broadcast sent by the ConnectionService; wherein the broadcast is used to notify other set-top box applications that the current network has changed;
[0010] The created thread determines whether a network connection already exists.
[0011] If it is determined that a network connection already exists, the broadcast is sent to other set-top box applications via the ConnectivityService.
[0012] Based on the network, a set-top box application is used for network access.
[0013] Optionally, the step of determining whether the network address was successfully obtained includes:
[0014] Set the identifier for the first successful network connection to false;
[0015] The Tracker server is used to detect whether any network devices are online.
[0016] If a network device is detected to be online, a network address is obtained via Dynamic Host Configuration Protocol (DHCP).
[0017] Determine if the network address was successfully obtained.
[0018] Optionally, the step of configuring the network address set to the set-top box system if the network address acquisition is successful includes:
[0019] If the network address acquisition is successful, the ConnectivityService is used to configure the network address set to the set-top box system.
[0020] Optionally, the step of determining whether a network connection exists through the created thread includes:
[0021] Create the thread;
[0022] The configuration file is read into an array via the thread; wherein the configuration file includes the set of network addresses;
[0023] The configuration file is repeatedly probed to determine if there is a network that has been connected.
[0024] Optionally, the step of repeatedly probing the configuration file to determine whether there is an already connected network includes:
[0025] For any address in the set of network addresses, if it is determined that a ping probe will be used for probing, then the ICMP protocol will be used to ping probe any address.
[0026] Determine if the ping probe was successful;
[0027] If the ping probe is successful, then any one of the addresses is determined to be a connected network.
[0028] If the ping probe fails, the ping probe is used to ping the next address of any given address until the ping probe succeeds.
[0029] Optionally, the step of repeatedly probing the configuration file to determine whether there is an already connected network includes:
[0030] For any address in the set of network addresses, if it is determined that a TCP probe will be used for probing, then the TCP protocol will be used to perform TCP probing on that address.
[0031] Determine if the TCP probe was successful;
[0032] If the TCP probe is successful, then any one of the addresses is determined to be a connected network.
[0033] If the TCP probe fails, the TCP probe is used to probe the next address of any given address until the TCP probe succeeds.
[0034] Optionally, the step of sending the broadcast to other set-top box applications via the ConnectionService if it is determined that a connected network exists includes:
[0035] If it is determined that there is a network that has already been connected, then set the identifier isFirstConn = true;
[0036] Obtain the network that has been connected;
[0037] The broadcast is sent to other set-top box applications via the ConnectivityService.
[0038] On the one hand, a network connection processing device for an IPTV converged gateway is provided, the device comprising:
[0039] The network address acquisition unit is used to determine whether the network address has been successfully acquired.
[0040] A network address configuration unit is used to configure a network address set to the set-top box system if it is determined that the network address has been successfully obtained; wherein the network address set includes network addresses, network routes, and DNS addresses;
[0041] A broadcast stop unit is used to stop the broadcast sent by the ConnectionService; wherein the broadcast is used to notify other set-top box applications that the current network has changed;
[0042] The network determination unit is used to determine whether a network connection exists by using a created thread.
[0043] The broadcast sending unit is used to send the broadcast to other set-top box applications through the ConnectionService if it is determined that there is an already connected network.
[0044] A network access unit is used to access the network using a set-top box application based on the network.
[0045] On one hand, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the methods described above.
[0046] On the one hand, a storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement any of the methods described above.
[0047] Compared with the prior art, the beneficial effects of this application are as follows:
[0048] In this application, when performing business access, firstly, it can be determined whether the network address has been successfully obtained; next, if the network address has been successfully obtained, a network address set can be configured in the set-top box system; the network address set includes network address, network route, and 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, a created thread can be used to determine whether there is a connected network; then, if it is determined that there is a connected network, the ConnectivityService is used to send a broadcast to other set-top box applications; finally, the set-top box application can perform network access based on the network.
[0049] Therefore, in this application, after the set-top box system's network is initially ready, not only are the broadcasts sent by the set-top box system stopped, but a created thread is also used to probe network connectivity. Upon successful probe, a network change broadcast is sent to trigger the next step of the system service or other application's process. That is, this application optimizes the set-top box network process independently without requiring modification to the gateway system, thereby achieving the goal of correctly obtaining the set-top box network status. Therefore, compared to existing technologies, this application not only significantly improves the success rate of service access by enabling set-top box applications to access services with the correct network status process, but also has the advantages of transparency, simplicity, and efficiency. Attached Figure Description
[0050] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0051] Figure 1 An electronic device provided in an embodiment of this application;
[0052] Figure 2 A schematic diagram of a network connection processing method for an IPTV converged gateway provided in an embodiment of this application;
[0053] Figure 3 This is a schematic diagram of a network connection processing device for an IPTV converged gateway provided in an embodiment of this application.
[0054] The diagram is labeled as follows: 10-Network connection processing device for IPTV converged gateway, 101-Processor, 102-Memory, 103-I / O interface, 104-Database, 30-Network connection processing unit for IPTV converged gateway, 301-Network address acquisition unit, 302-Network address configuration unit, 303-Broadcast stop unit, 304-Network determination unit, 305-Broadcast transmission unit, 306-Network access unit. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown here.
[0056] As is well known, an Internet Protocol Television (IPTV) converged gateway consists of two systems: a gateway system and a set-top box system. Based on this, due to the following reasons: (1) After the converged gateway is powered on, the gateway system and the set-top box system will run simultaneously; (2) The set-top box's central processing unit (CPU) has strong processing power and will generally obtain an IP address within 15 seconds, after which it will continuously send requests, waiting for the correct IP address to be obtained; (3) The gateway has weak processing power and will typically prepare the local Dynamic Host Configuration Protocol (DHCP) service in about 30-40 seconds, enabling connected devices to obtain the IP address assigned by the gateway. However, at this time, the assigned IP address does not support external network access, only local area network access. The set-top box can only successfully access the external network after the gateway successfully dials up via the Point-to-Point Protocol over Ethernet (PPPoE). At this point, the Android application package (APK) can correctly access services, which generally takes 30-70 seconds to obtain an external network address.
[0057] In other words, in the existing IPTV converged gateway, after the set-top box system obtains an IP address and configures the network, it assumes that the system network is ready and therefore attempts to access services. However, since the gateway system's external network status is not yet ready, the set-top box system may attempt to access services abnormally.
[0058] Based on this, this application provides a network connection processing method for an IPTV converged gateway. In this method, firstly, it can be determined whether the network address has been successfully obtained. Next, if the network address acquisition is successful, a network address set can be configured for the set-top box system. This network address set includes network addresses, network routes, and DNS addresses. 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, a created thread can be used to determine if a connected network exists. Then, if a connected network is determined, the ConnectivityService sends a broadcast to other set-top box applications. Finally, the set-top box application can access the network based on the network conditions. Therefore, in this application, after the set-top box system's network is initially ready, not only is the broadcast stopped, but a created thread also probes network connectivity. Upon successful probe, a network change broadcast is sent to trigger the next step of the system service or other applications. In other words, this application optimizes the set-top box network process independently without requiring modifications to the gateway system, thereby achieving the goal of correctly obtaining the set-top box network status. Therefore, compared with the prior art, this application can not only greatly improve the success rate of business access by enabling set-top box applications to access services with the correct network status process, but also has the advantages of transparency, simplicity and efficiency.
[0059] After introducing the design concept of the embodiments of this application, the following is a brief introduction to the application scenarios to which the technical solutions of the embodiments of this application can be applied. It should be noted that the application scenarios described below are only for illustrating the embodiments of this application and are not intended to limit the scope. In specific implementation, the technical solutions provided by the embodiments of this application can be flexibly applied according to actual needs.
[0060] like Figure 1 As shown, this is an electronic device provided in an embodiment of the present application. Specifically, the electronic device can be a network connection processing device 10 for an IPTV converged gateway.
[0061] The network connection processing device 10 of the IPTV converged gateway can access services through the IPTV converged gateway, and can be, for example, a personal computer (PC), server, or laptop. The network connection processing device 10 of the IPTV converged gateway may include one or more processors 101, memory 102, I / O interfaces 103, and database 104. Specifically, the processor 101 can be a central processing unit (CPU) or a digital processing unit, etc. The memory 102 can be volatile memory, such as random-access memory (RAM); the memory 102 can also be non-volatile memory, such as read-only memory, flash memory, hard disk drive (HDD), or solid-state drive (SSD); or the memory 102 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. The memory 102 can be a combination of the above-mentioned memories. The memory 102 may store some program instructions of the network connection processing method for the IPTV converged gateway provided in this application embodiment. When these program instructions are executed by the processor 101, they can be used to implement the steps of the network connection processing method for the IPTV converged gateway provided in this application embodiment, so as to solve the problem of low service access success rate of existing IPTV converged gateways. The database 104 may be used to store data such as network address sets, Dynamic Host Configuration Protocol (DHCP), ICMP protocol, and TCP protocol involved in the scheme provided in this application embodiment.
[0062] In this embodiment, the network connection processing device 10 of the IPTV converged gateway can obtain the power-on command of the IPTV converged gateway through the I / O interface 103. Then, the processor 101 of the network connection processing device 10 will improve the service access success rate according to the program instructions of the network connection processing method of the IPTV converged gateway provided in this embodiment, which are stored in the memory 102. In addition, data such as network address sets, Dynamic Host Configuration Protocol (DHCP), ICMP protocol, and TCP protocol can be stored in the database 104.
[0063] Of course, the methods provided in the embodiments of this application are not limited to... Figure 1 The application scenarios shown can also be used in other possible scenarios, and this application embodiment does not impose any limitations. Figure 1The functions that the various devices in the application scenarios shown can achieve will be described in subsequent method embodiments, and will not be elaborated on here. Below, the methods of the embodiments of this application will be described in conjunction with the accompanying drawings.
[0064] like Figure 2 The diagram shown is a schematic representation of a network connection processing method for an IPTV converged gateway provided in an embodiment of this application. This method can... Figure 1 The network connection processing device 10 of the IPTV converged gateway is used to execute this method. Specifically, the process is described below.
[0065] Step 201: Determine whether the network address was successfully obtained.
[0066] In this embodiment, after the IPTV converged gateway is powered on, firstly, the identifier isFirstConn = false can be set to indicate that the first network connection has not yet been successful. Then, the Tracker server can be used to detect whether a network device eth0 is online. Next, if a network device eth0 is detected to be online, a network address request can be initiated, for example, by obtaining a network address through Dynamic Host Configuration Protocol (DHCP). Finally, it can be determined whether the network address has been successfully obtained. Since the set-top box system starts up quickly, the first address request may fail. Therefore, after a specified time, the address request can be continued. That is, if it is determined that the network address has not been successfully obtained, the network address can be obtained again.
[0067] Step 202: If the network address acquisition is successful, configure the network address set to the set-top box system.
[0068] In this embodiment, the network address set may include network addresses, network routes, and DNS addresses. Specifically, if it is determined that the network address was successfully obtained, the ConnectivityService can be notified that a network device has connected. Then, the ConnectivityService can be used to configure the network address set to the set-top box system.
[0069] Step 203: Stop the broadcast sent by the ConnectivityService.
[0070] In this embodiment, 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 point, ConnectivityService needs to send a broadcast to notify other applications (such as APP) that the current network has changed and network connection can be established.
[0072] In this embodiment of the application, after configuring the network address set to the set-top box system, since isFirstConn = false, that is, the first network connection has not yet been successful. Based on this, in order to improve the success rate of service access, the broadcast sent by ConnectivityService can be stopped.
[0073] Step 204: Determine whether a network connection exists using the created thread.
[0074] Specifically, first, a pthread can be created; then, this thread can read the configuration file ` / system / etc / testnetcon.txt` into an array; this configuration file includes a set of network addresses, meaning it pre-configures the network addresses to be used for network testing; finally, within this thread, the configuration file can be repeatedly probed (i.e., it iteratively probes the network addresses in the set) to determine if any connected networks exist. Furthermore, during the probing process, some IPTV service authentication addresses and ports can be pre-configured to improve the accuracy of the probe.
[0075] In this embodiment, network probing can be performed in the following two ways (each line represents a probed external network address to avoid probe failure due to the abnormality of a single external network server):
[0076] ① Use a ping detector for detection.
[0077] For any address in the set of network addresses, firstly, if it is determined that a ping probe will be used for probing, for example, "ping:www.baidu.com", then the ICMP protocol can be used to ping any address; then, it can be determined whether the ping probe was successful; next, if the ping probe is confirmed to be successful, that is, if the ping returns a successful response, then any address can be determined to be a connected network; finally, if the ping probe is confirmed to have failed, then the ping probe can be used to ping the next address of any address until the ping probe is successful.
[0078] ② Use TCP probes for detection.
[0079] For any address in the set of network addresses, firstly, if it is determined that a TCP probe will be used for probing, for example, "tcp:www.baidu.com:80" or "tcp:111.100.9.8:8888", then the TCP protocol can be used to probe any address using the TCP protocol. Then, it can be determined whether the TCP probe was successful. Next, if the TCP probe is confirmed to be successful, that is, the TCP returned a successful response, then any address can be determined to be a connected network. Finally, if the TCP probe is confirmed to have failed, then the TCP probe can be used to probe the next address of any address using the TCP probe, until the TCP probe is successful.
[0080] Step 205: If it is determined that a network connection already exists, then connect via the connection service.
[0081] ConnectivityService sends broadcasts to other set-top box applications.
[0082] Specifically, first, if it is confirmed that a network is already connected, that is, after 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 need to be diagnosed again; next, the already connected network can be obtained; finally, the connection service ConnectivityService can be used to send a broadcast to other set-top box applications, that is, to send a network change broadcast.
[0083] Step 206: Based on the network, use the set-top box application to access the network.
[0084] In this embodiment, steps 201-205 complete the network connectivity processing by the IPTV converged gateway. Therefore, when the set-top box application or Network Time Protocol (NTP) module receives a broadcast of network changes, it can read the current network status and, based on the network conditions, perform normal network access using the set-top box application or NTP module. This avoids situations where the set-top box system or application receives a successful network connection broadcast (notification) but then fails to connect to the service.
[0085] In summary, in this embodiment, after the set-top box system's network is initially ready, not only are the broadcasts sent by the set-top box system stopped, but a created thread is also used to probe network connectivity. Upon successful probe, a network change broadcast is sent to trigger the next step of the system service or other application's process. That is, this application optimizes the set-top box network process independently without requiring modification to the gateway system, thereby achieving the goal of correctly obtaining the set-top box network status. Therefore, compared to existing technologies, this application not only significantly improves the success rate of service access by enabling set-top box applications to access services with the correct network status process, but also has the advantages of transparency, simplicity, and efficiency.
[0086] Based on the same inventive concept, embodiments of this application provide a network connection processing device 30 for an IPTV converged gateway, such as... Figure 3 As shown, the network connection processing device 30 of the IPTV converged gateway includes:
[0087] The network address acquisition unit 301 is used to determine whether the network address has been successfully acquired.
[0088] The network address configuration unit 302 is used to configure a network address set to the set-top box system if it is determined that the network address has been successfully obtained; wherein the network address set includes network address, network route and DNS address;
[0089] The broadcast stop unit 303 is used to stop the broadcast sent by the ConnectionService; the broadcast is used to notify other set-top box applications that the current network has changed.
[0090] The network determination unit 304 is used to determine whether a network that has been connected exists by using a created thread;
[0091] The broadcast sending unit 305 is used to send a broadcast to other set-top box applications through the ConnectionService if it is determined that there is an already connected network.
[0092] The network access unit 306 is used to access the network using a set-top box application, depending on the network.
[0093] Optionally, the network address acquisition unit 301 is also used for:
[0094] Set the identifier for the first successful network connection to false;
[0095] The Tracker server is used to detect whether any network devices are online.
[0096] If a network device is detected to be online, a network address is obtained via Dynamic Host Configuration Protocol (DHCP).
[0097] Determine if the network address was successfully obtained.
[0098] Optionally, the network address configuration unit 302 is also used for:
[0099] If the network address acquisition is successful, the ConnectivityService is used to configure the network address set to the set-top box system.
[0100] Optionally, the network determination unit 304 is also used for:
[0101] Create a thread;
[0102] The configuration file is read into an array using a thread; the configuration file includes a set of network addresses.
[0103] The configuration file is repeatedly probed to determine if a network connection exists.
[0104] Optionally, the network determination unit 304 is also used for:
[0105] For any address in the set of network addresses, if it is determined that a ping probe will be used for probing, then the ICMP protocol will be used to ping probe any address.
[0106] Determine if the ping probe was successful;
[0107] If the ping probe is successful, then any address is determined to be a connected network.
[0108] If the ping probe fails, the ping probe is used to ping the next address of any given address until the ping probe succeeds.
[0109] Optionally, the network determination unit 304 is also used for:
[0110] For any address in the set of network addresses, if it is determined that a TCP probe will be used for probing, then the TCP protocol will be used to perform TCP probing on any address.
[0111] Determine if the TCP probe was successful;
[0112] If the TCP probe is successful, then any address is determined to be a connected network.
[0113] If the TCP probe fails, the TCP probe is used to probe the next address of any given address until the TCP probe succeeds.
[0114] Optionally, the broadcast transmitting unit 305 is also used for:
[0115] If it is determined that there is a network that has already been connected, then set the identifier isFirstConn = true;
[0116] Get the networks that are already connected;
[0117] Broadcasts are sent to other set-top box applications via the ConnectivityService.
[0118] The network connection processing device 30 of the IPTV converged gateway can be used to perform... Figure 2 The method performed in the illustrated embodiment is described above. Therefore, the functions that each functional module of the network connection processing device 30 of the IPTV converged gateway can achieve can be referred to. Figure 2 The embodiments shown are described in detail below.
[0119] In some possible implementations, various aspects of the methods provided in this application can also be implemented as a program component comprising program code that, when run on a computer device, causes the computer device to perform the steps of the methods according to the various exemplary embodiments of this application described above. For example, the computer device may perform actions such as... Figure 2 The method performed in the illustrated embodiment.
[0120] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks. Alternatively, if the integrated unit of the present invention is implemented as a software functional module and sold or used as an independent part, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software part. This computer software part is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0121] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0122] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A network connection processing method for an IPTV converged gateway, characterized in that, The method includes: Determine if the network address was successfully obtained; If the network address acquisition is successful, a network address set is configured in the set-top box system; wherein, the network address set includes network address, network route and DNS address; Stop the broadcast sent by the ConnectionService; wherein the broadcast is used to notify other set-top box applications that the current network has changed; Create a thread; The configuration file is read into an array via the thread; wherein the configuration file includes the set of network addresses; The configuration file is repeatedly probed to determine if any network is already connected; wherein, the step of repeatedly probing the configuration file to determine if any network is already connected includes: For any address in the set of network addresses, if it is determined that a ping probe will be used for probing, then the ICMP protocol will be used to ping probe the address; determine whether the ping probe is successful; if the ping probe is successful, then the address is determined to be a connected network; if the ping probe is unsuccessful, then the ping probe will be used to ping probe the next address of the address until the ping probe is successful. Alternatively, for any address in the set of network addresses, if it is determined that a TCP probe will be used for detection, then the TCP protocol will be used to perform TCP detection on the address; determine whether the TCP detection is successful; if the TCP detection is successful, then the address is determined to be a connected network; if the TCP detection is unsuccessful, then the TCP probe will be used to perform TCP detection on the next address of the address until the TCP detection is successful. If it is determined that a network connection already exists, the broadcast is sent to other set-top box applications via the ConnectivityService. Based on the network, a set-top box application is used for network access.
2. The method as described in claim 1, characterized in that, The step of determining whether the network address was successfully obtained includes: Set the identifier for the first successful network connection to false; The Tracker server is used to detect whether any network devices are online. If a network device is detected to be online, a network address is obtained via Dynamic Host Configuration Protocol (DHCP). Determine if the network address was successfully obtained.
3. The method as described in claim 1, characterized in that, The step of configuring the network address set to the set-top box system if the network address acquisition is successful includes: If the network address acquisition is successful, the ConnectivityService is used to configure the network address set to the set-top box system.
4. The method as described in claim 1, characterized in that, The step of sending the broadcast to other set-top box applications via the ConnectionService if it is determined that a network connection already exists includes: If it is determined that there is a network that has already been connected, then set the identifier isFirstConn=true; Obtain the network that has been connected; The broadcast is sent to other set-top box applications via the ConnectivityService.
5. A network connection processing device for an IPTV converged gateway, characterized in that, The device includes: The network address acquisition unit is used to determine whether the network address has been successfully acquired. A network address configuration unit is used to configure a network address set to the set-top box system if it is determined that the network address has been successfully obtained; wherein the network address set includes network addresses, network routes, and DNS addresses; A broadcast stop unit is used to stop broadcasts sent by the ConnectionService; wherein the broadcast is used to notify other set-top box applications that the current network has changed; A network determination unit is used to create a thread; through the thread, a configuration file is read into an array; wherein the configuration file includes the set of network addresses; the configuration file is cyclically probed to determine whether there is an already connected network; wherein the step of cyclically probing the configuration file to determine whether there is an already connected network includes: for any address in the set of network addresses, if it is determined that a ping probe is used for probing, then the ICMP protocol is used to ping the address; determine whether the ping probe is successful; if the ping probe is successful, then the address is determined to be an already connected network; if the ping probe is determined to fail, then the ping probe is used to ping the next address until the ping probe is successful; or, for any address in the set of network addresses, if it is determined that a TCP probe is used for probing, then the TCP protocol is used to ping the address; determine whether the TCP probe is successful; if the TCP probe is successful, then the address is determined to be an already connected network; if the TCP probe is determined to fail, then the TCP probe is used to ping the next address until the TCP probe is successful. The broadcast sending unit is used to send the broadcast to other set-top box applications through the ConnectionService if it is determined that there is an already connected network. A network access unit is used to access the network using a set-top box application based on the network.
6. An electronic device, characterized in that, The device includes: Memory, used to store program instructions; A processor is configured to invoke program instructions stored in the memory and execute the method described in any one of claims 1-4 according to the obtained program instructions.
7. A storage medium, characterized in that, The storage medium stores computer-executable instructions for causing a computer to perform the method described in any one of claims 1-4.