CN109309876B - Set-top box and set-top box routing module information synchronization method - Google Patents
Set-top box and set-top box routing module information synchronization method Download PDFInfo
- Publication number
- CN109309876B CN109309876B CN201710621455.9A CN201710621455A CN109309876B CN 109309876 B CN109309876 B CN 109309876B CN 201710621455 A CN201710621455 A CN 201710621455A CN 109309876 B CN109309876 B CN 109309876B
- Authority
- CN
- China
- Prior art keywords
- module
- check code
- iptv
- routing
- routing module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/458—Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
- H04N21/4586—Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/426—Internal components of the client ; Characteristics thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/61—Network physical structure; Signal processing
- H04N21/6106—Network physical structure; Signal processing specially adapted to the downstream path of the transmission network
- H04N21/6125—Network physical structure; Signal processing specially adapted to the downstream path of the transmission network involving transmission via Internet
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a set top box and a set top box routing module information synchronization method. The set top box routing module information synchronization method comprises the following steps: the method comprises the steps that an Internet Protocol Television (IPTV) module generates a first check code according to routing module information stored by the IPTV module, and a routing module generates a second check code according to the routing module information stored by the IPTV module; the IPTV module judges whether the second check code is consistent with the first check code at preset time intervals; and if the second check code is inconsistent with the first check code, the IPTV module requests the routing module to synchronously update the inconsistent routing module information to the IPTV module. The invention rapidly synchronizes routing module information such as routing parameters, network states, equipment connection information and the like between the IPTV module and the routing module by adding a synchronization mechanism of the IPTV module and the routing module, thereby solving the problems of fault positioning and information asynchronization.
Description
Technical Field
The invention relates to the field of IPTV, in particular to a set top box and a set top box routing module information synchronization method.
Background
Each operator IPTV (Internet Protocol Television) accesses an IPTV service based on a private network completely isolated from the Internet, and the private network of the IPTV and the public Internet cannot be interconnected and intercommunicated. The IPTV is a convergence service of three networks, and the service requires access to the IPTV and the internet at the same time.
With the development of the IPTV service, the existing convergence terminal fails to sense the information of the routing module, such as the network state, the power-on/off state, and the connection device, because the IPTV module and the routing module fail to establish a message communication mechanism, and thus has the following problems:
first, IPTV authentication dialing problem: the network state of the routing module cannot be sensed, the IPTV module is dialed in advance when the routing module is not started completely, or the IPTV module cannot be automatically redialed when the routing module is restarted, so that the IPTV service cannot realize normal network connection, the user sensing is poor, and the network state of the routing module is not sensed,
Secondly, fault location is difficult: the television cannot display the fault information of the routing module in time, so that the assembly and maintenance personnel cannot accurately position the set top box or the routing fault, and the number allocation of the service is influenced.
Thirdly, the equipment connection information is asynchronous: the television cannot display the information of the routing module connecting equipment in time, so that the assembly and maintenance personnel cannot configure the white list function of the corresponding equipment.
Disclosure of Invention
In view of the above technical problems, the present invention provides a set top box and a method for synchronizing set top box routing module information, which can perform message communication between an IPTV module and a routing module, and the IPTV module can synchronize routing module information.
According to an aspect of the present invention, there is provided a set top box routing module information synchronization method, including:
the method comprises the steps that an Internet Protocol Television (IPTV) module generates a first check code according to routing module information stored by the IPTV module, and a routing module generates a second check code according to the routing module information stored by the IPTV module;
the IPTV module judges whether the second check code is consistent with the first check code at preset time intervals;
and if the second check code is inconsistent with the first check code, the IPTV module requests the routing module to synchronously update the inconsistent routing module information to the IPTV module.
In an embodiment of the present invention, the determining, by the IPTV module, whether the second check code is consistent with the first check code at a predetermined time interval includes:
the IPTV module initiates a check request to the routing module at a preset time interval;
in response to receiving a check request sent by the IPTV module, the routing module sends a second check code to the IPTV module;
the IPTV module judges whether the second check code is consistent with the first check code.
In an embodiment of the present invention, the IPTV module requesting the routing module to synchronously update inconsistent routing module information to the IPTV module includes:
the IPTV module analyzes the second check code and determines the routing module information which is inconsistent with the IPTV module and the routing module;
the IPTV module sends a synchronization request to the routing module, wherein the synchronization request comprises codes of inconsistent routing module information;
and the routing module synchronously updates the inconsistent routing module information to the IPTV module.
In an embodiment of the present invention, after the IPTV module requests the routing module to synchronously update inconsistent routing module information to the IPTV module, the method further includes:
the IPTV module and the routing module respectively update the first check code and the second check code.
In an embodiment of the present invention, the generating, by the IPTV module, a first check code according to the routing module information stored in the IPTV module, and the generating, by the routing module, a second check code according to the routing module information stored in the IPTV module, includes:
when the IPTV module and the routing module are started for the first time, the IPTV module and the routing module respectively generate a first check code and a second check code according to respective stored routing module information, wherein the routing module information comprises routing parameters such as network state information, routing state information, equipment connection information and the like, the first check code and the second check code respectively comprise a plurality of bytes, and each byte represents the state of one routing parameter;
and if the state of one routing parameter is changed, negating the byte corresponding to the routing parameter.
In an embodiment of the present invention, the determining whether the second check code is consistent with the first check code includes:
performing exclusive or on the second check code and the first check code;
if the XOR result is all 0, the second check code is determined to be consistent with the first check code, and synchronization is not needed.
In an embodiment of the present invention, the determining whether the second check code is consistent with the first check code further includes:
if the XOR result has non-0 bytes, counting the number of bits with bit number of '1' in the non-0 bytes;
if the number of bits with the bit position of 1 is not more than 4, setting the non-0 byte as all 0, and judging that the second check code is consistent with the first check code;
if the number of bits with the bit position of '1' is more than 4, setting the non-0 byte as all 1, and judging that the second check code is inconsistent with the first check code.
According to another aspect of the present invention, there is provided a set-top box comprising an internet protocol television, IPTV, module and a routing module, wherein:
the IPTV module is used for generating a first check code according to the routing module information stored by the IPTV module; judging whether the second check code is consistent with the first check code at preset time intervals; under the condition that the second check code is inconsistent with the first check code, the request routing module synchronously updates inconsistent routing module information to the IPTV module;
and the routing module is used for generating a second check code according to the routing module information stored by the routing module.
In an embodiment of the present invention, the IPTV module is configured to initiate a check request to the routing module at a predetermined time interval;
the routing module is used for responding to the received checking request sent by the IPTV module and sending the second checking code to the IPTV module so that the IPTV module can judge whether the second checking code is consistent with the first checking code.
In an embodiment of the present invention, the IPTV module is configured to parse the second check code, and determine routing module information that is inconsistent between the IPTV module and the routing module; sending a synchronization request to a routing module, wherein the synchronization request comprises codes of inconsistent routing module information;
the routing module is used for synchronously updating the inconsistent routing module information to the IPTV module.
In an embodiment of the present invention, the IPTV module and the routing module are configured to update the first check code and the second check code respectively after the IPTV module requests the routing module to synchronously update inconsistent routing module information to the IPTV module.
In an embodiment of the present invention, the IPTV module and the routing module are configured to generate a first check code and a second check code according to respective stored routing module information when the set-top box is booted for the first time, where the routing module information includes routing parameters such as network status information, routing status information, and device connection information, the first check code and the second check code include a plurality of bytes, and each byte represents a state of one routing parameter; and under the condition that the state of one routing parameter is changed, negating the byte corresponding to the routing parameter.
In an embodiment of the present invention, the IPTV module is configured to perform xor between the second check code and the first check code; and under the condition that the XOR result is all 0, judging that the second check code is consistent with the first check code without synchronization.
In an embodiment of the present invention, the IPTV module is configured to count the number of bits with "1" in the non-0 byte when the xor result has the non-0 byte; setting the non-0 byte as all 0 under the condition that the number of bits with the bit position of '1' is not more than 4, and judging that the second check code is consistent with the first check code; and setting the non-0 byte as all 1 when the number of bits with the bit position of 1 is more than 4, and judging that the second check code is inconsistent with the first check code.
The invention rapidly synchronizes routing module information such as routing parameters, network states, equipment connection information and the like between the IPTV module and the routing module by adding a synchronization mechanism of the IPTV module and the routing module, thereby solving the problems of fault positioning and information asynchronization.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of an embodiment of a set-top box of the present invention.
Fig. 2 is a schematic diagram of check code verification according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a set top box routing module information synchronization method according to a first embodiment of the present invention.
Fig. 4 is a schematic diagram of a set-top box routing module information synchronization method according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Fig. 1 is a schematic diagram of an embodiment of a set-top box of the present invention. The set-top box is an IPTV intelligent terminal, can simultaneously access the Internet and the IPTV service field through a network cable, and can quickly synchronize the routing state.
In an embodiment of the present invention, the set-top box may be implemented as a universal hotel convergence set-top box or a universal hotel convergence terminal.
As shown in fig. 1, the set-top box may include an IPTV module 1 and a routing module 2, where:
the IPTV module 1 is used for generating a first check code according to the routing module information stored by the IPTV module; judging whether the second check code is consistent with the first check code at preset time intervals; and under the condition that the second check code is inconsistent with the first check code, the request routing module 2 synchronously updates the inconsistent routing module information to the IPTV module 1.
And the routing module 2 is used for generating a second check code according to the routing module information stored by the routing module.
As shown in fig. 1, the routing module 2 of the present invention adds a function of generating a second check code, and adds a function of generating a first check code, comparing the check codes, and synchronizing information to the IPTV module 1. The following are specific descriptions.
The first IPTV module 1 and the routing module 2 are added with a check code generating function.
The IPTV module 1 and the routing module 2 are configured to generate a first check code (IPTV module check code) and a second check code (routing module check code) according to the respective stored routing module information when the set-top box is first powered on.
In an embodiment of the present invention, the IPTV module 1 and the routing module 2 may be configured to generate a first check code (IPTV module check code) and a second check code (routing module check code) respectively through a unified algorithm according to the respective stored routing module information.
In one embodiment of the present invention, as shown in fig. 2, the first check code and the second check code may respectively include a plurality of bytes, each byte representing a state of one routing parameter. The routing module information may include routing parameters such as network state information, routing state information, device connection information, and the like, wherein the network state information may include a broadband account/password, a routing module normal operation state bit, a routing module restart state bit, a routing module abnormal power down state bit, and the like; the routing status information may include a network connectivity status bit, a network connection failure status bit, a DHCP (Dynamic Host Configuration Protocol) status bit, a PPPoE (Point to Point Protocol over Ethernet, Point to Point communication Protocol based on Ethernet) status bit, a static IP status bit, and the like; the device connection information may include whether there is a device connection status bit, etc.
In an embodiment of the present invention, the IPTV module 1 and the routing module 2 generate 1KB identifiers (default all 0) respectively, and each byte represents routing parameters such as a routing network status, routing parameters, and device connection in turn.
The IPTV module 1 and the routing module 2 may also be configured to negate a byte corresponding to a routing parameter (for example, "00000000" is changed to "11111111111") when a state of the routing parameter changes.
Secondly, a check code checking function is newly added to the IPTV module 1.
The IPTV module 1 is used for initiating a check request to the routing module 2 at a preset time interval;
in one embodiment of the invention, the predetermined time interval is 15 seconds.
The routing module 2 is configured to send the second check code to the IPTV module 1 in response to receiving the check request sent by the IPTV module 1, so that the IPTV module 1 determines whether the second check code is consistent with the first check code.
Fig. 2 is a schematic diagram of check code verification according to an embodiment of the present invention.
In an embodiment of the present invention, as shown in fig. 2, the IPTV module 1 may be configured to perform xor between the second check code and the first check code; if the exclusive or result is all 0 s, the second check code is determined to be identical to the first check code, and as shown in fig. 2, synchronization is not required.
In an embodiment of the present invention, the IPTV module 1 may be configured to count the number of bits with "1" in the non-0 byte when the xor result has the non-0 byte; setting the non-0 byte as all 0 under the condition that the number of bits with the bit position of '1' is not more than 4, and judging that the second check code is consistent with the first check code; and when the number of bits with the bit number of 1 is more than 4, setting the non-0 byte as all 1, judging that the second check code is inconsistent with the first check code, indicating that the routing information corresponding to the byte changes, and synchronously updating the information parameters of which the corresponding states of the IPTV module and the routing module change.
Thirdly, the IPTV module 1 is newly added with the functions of check code analysis and information synchronization.
The IPTV module 1 is used for analyzing the second check code under the condition that the second check code is inconsistent with the first check code, and determining the routing module information of the IPTV module 1 and the routing module 2 which are inconsistent; and sends a synchronization request to the routing module 2, wherein the synchronization request includes the code of the inconsistent routing module information.
And the routing module 2 is used for synchronously updating the inconsistent routing module information to the IPTV module 1.
As shown in fig. 2, in the embodiment, according to the xor result of the second check code and the first check code, the broadband account/password in the routing parameter and the PPPoE status bit in the network status information are known, and the check results of the two parameters are all 1, then the routing module 2 synchronously updates the information of the broadband account/password and the PPPoE status bit to the IPTV module 1.
Fourthly, a check code updating function is added to the IPTV module 1 and the routing module 2.
The IPTV module 1 and the routing module 2 are configured to update the first check code and the second check code respectively after the IPTV module 1 requests the routing module 2 to synchronously update inconsistent routing module information to the IPTV module 1.
In an embodiment of the present invention, the IPTV module 1 and the routing module 2 may be specifically configured to reset both check codes of the IPTV module and the routing module to "00000000" after the information synchronization is completed.
Based on the set-top box provided by the embodiment of the invention, routing module information such as routing parameters, network states, equipment connection information and the like is quickly synchronized between the IPTV module and the routing module through a newly added IPTV module and routing module synchronization mechanism, so that state change perception and quick synchronization of the routing module can be realized, and the problems of fault location and information asynchronization are solved.
The embodiment of the invention solves the problem of IPTV authentication dialing and avoids the problem of dialing in advance when the IPTV module is not completely started and restarted.
The IPTV module of the embodiment of the invention can sense the network state of the routing module, thereby solving the technical problem that the IPTV service cannot realize normal network connection because the IPTV module dials in advance when the routing module is not started or the IPTV module cannot be automatically redialed when the routing module is restarted, and greatly improving the user experience.
In an embodiment of the present invention, the IPTV module 1 may also be configured to display the current routing module information to the user through the television.
The television connected with the IPTV module in the embodiment of the invention can display the fault information of the routing module in time, so that the assembly and maintenance personnel can realize the accurate positioning of the set-top box or the routing fault, and the service number assignment efficiency is greatly improved.
The embodiment of the invention can realize the synchronization of the equipment connection information, and the television connected with the IPTV module can display the information of the routing module connection equipment in time, thereby being convenient for maintenance personnel to configure the white list function of the corresponding equipment.
Fig. 3 is a schematic diagram of a set top box routing module information synchronization method according to a first embodiment of the present invention. Preferably, the embodiment can be executed by the set-top box of the invention. As shown in fig. 3, the method may include:
In an embodiment of the present invention, as shown in fig. 2, the routing module information may include routing parameters such as network status information, routing status information, and device connection information; the first check code and the second check code each include a plurality of bytes, each byte representing a status of a routing parameter.
In an embodiment of the present invention, step 31 may include the IPTV module 1 and the routing module 2 generating a first check code (IPTV module check code) and a second check code (routing module check code) respectively by a unified algorithm according to the respective stored routing module information.
In one embodiment of the invention, the predetermined time interval is 15 seconds.
In one embodiment of the present invention, step 32 may comprise:
in step 321, the IPTV module 1 initiates a check request to the routing module 2 at a predetermined time interval.
In step 322, in response to receiving the check request sent by the IPTV module 1, the routing module 2 sends the second check code to the IPTV module 1.
In step 323, the IPTV module 1 determines whether the second check code is consistent with the first check code.
In step 33, if the second check code is inconsistent with the first check code, the IPTV module 1 requests the routing module 2 to synchronously update the inconsistent routing module information to the IPTV module 1.
In an embodiment of the present invention, in step 33, the step of requesting, by the IPTV module 1, the routing module 2 to synchronously update inconsistent routing module information to the IPTV module 1 may include:
in step 333, the IPTV module 1 parses the second check code, and determines the routing module information that is inconsistent between the IPTV module 1 and the routing module 2.
Step 333, the IPTV module 1 sends a synchronization request to the routing module 2, where the synchronization request includes the code of the inconsistent routing module information.
In step 334, the routing module 2 synchronously updates the inconsistent routing module information to the IPTV module 1.
In an embodiment of the present invention, after step 334, the method may further comprise: the IPTV module 1 and the routing module 2 update the first check code and the second check code, respectively.
Based on the set-top box routing module information synchronization method provided by the embodiment of the invention, routing module information such as routing parameters, network states, equipment connection information and the like is quickly synchronized between the IPTV module and the routing module through a newly added IPTV module and routing module synchronization mechanism, so that state change perception and quick synchronization of the routing module can be realized, and the problems of fault location and information asynchronization are solved.
The embodiment of the invention solves the problem of IPTV authentication dialing and avoids the problem of dialing in advance when the IPTV module is not completely started and restarted.
Fig. 4 is a schematic diagram of a set-top box routing module information synchronization method according to a second embodiment of the present invention. Preferably, the embodiment can be executed by the set-top box of the invention. As shown in fig. 4, the method may include:
and step 41, synchronizing the routing module information when the mobile terminal is started for the first time.
When the mobile terminal is started for the first time, the IPTV module 1 and the routing module 2 both store default routing information from the factory. The IPTV module 1 and the routing module 2 respectively generate a first check code (IPTV module check code) and a second check code (routing module check code) according to the respective stored routing module information.
The IPTV module 1 and the routing module 2 each generate and store a string of check codes with all 0 bytes in a memory. The routing module information includes routing parameters such as network state information, routing state information, device connection information, and the like. Each byte represents a routing parameter. For example, in fig. 2, the first byte "00000000" represents the status of the broadband account/password.
And step 42, daily starting up to carry out information synchronization of the routing module.
When the IPTV module 1 is started up in daily time, a check request is initiated to the routing module 2, and if no response exists in the appointed time, the IPTV module 1 prompts that the routing state is abnormal.
And 43, synchronizing the routing module information during daily operation.
In one embodiment of the present invention, the step 43 may include:
in step 431, the IPTV module 1 initiates a verification request to the routing module 2 at a predetermined time interval (e.g. every 15s), and the routing module 2 sends the verification second verification code to the IPTV module 1.
Step 432, the IPTV module 1 determines whether the second check code is consistent with the first check code.
In one embodiment of the present invention, step 432 may comprise:
step 4321, the IPTV module 1 performs xor on the routing module check code and the check code stored in the IPTV module, and determines whether the routing module check code is consistent with the locally stored check code according to the result obtained by the xor.
Step 4322, if the xor result is all 0 s, it is determined that the second check code is identical to the first check code, and no information synchronization of the routing module is required.
In step 4323, if the xor result has a non-0 byte, counting the number of bits with "1" in the non-0 byte.
Step 4324, if the number of bits with "1" is not greater than 4, setting the non-0 byte to all 0, and determining that the second check code is identical to the first check code without performing information synchronization of the routing module.
4325, if the number of bits with "1" is greater than 4, setting the non-0 byte to all 1, and determining that the second check code is inconsistent with the first check code; step 433 is then performed.
In step 433, if the second check code is inconsistent with the first check code, the IPTV module 1 analyzes the second check code, and determines the routing module information (i.e., the changed routing module information) of which the IPTV module 1 is inconsistent with the routing module 2.
In step 434, the IPTV module 1 sends a synchronization request to the routing module 2, where the synchronization request includes codes of inconsistent routing module information.
In step 435, the routing module 2 synchronously updates the inconsistent routing module information (i.e., the routing module information with the change) to the IPTV module 1.
As shown in fig. 2, in the embodiment, according to the xor result of the second check code and the first check code, the broadband account/password in the routing parameter and the PPPoE status bit in the network status information are known, and the check results of the two parameters are all 1, then the routing module 2 synchronously updates the information of the broadband account/password and the PPPoE status bit to the IPTV module 1.
And step 44, synchronizing the routing module information when the routing state is changed.
When a user changes a routing state through an IPTV module setting interface, the IPTV module 1 initiates a routing state change application to the routing module 2, and modifies a routing state storage area in the routing module:
(1) the IPTV module 1 uploads the first check code to the routing module;
(2) the routing module performs exclusive or operation on the first check code (IPTV module check code) and a second check code stored locally:
if the bytes of the xor result check code are all '00000000', the routing state information synchronization is not required.
If the XOR result has a non-0 byte, counting the number of bits of the byte which are 1: if the number of the bit positions of 1 is not more than 4, setting the byte to be all 0 without carrying out route state information synchronization; if the number of the bits of "1" is greater than 4, the IPTV module 2 initiates a synchronization request to the routing module 1, and updates the corresponding information parameters synchronously.
And step 45, updating the check code.
After the information synchronization is completed, the IPTV module 1 and the routing module 2 update the first check code and the second check code, respectively.
For example: after the information synchronization is completed, the check codes of the IPTV module 1 and the routing module 2 may be reset to "00000000".
In one embodiment of the present invention, step 44 may comprise:
after the information synchronization is completed, the IPTV module 1 regenerates the first check code, and synchronizes the first check code to the routing module 2, so that the routing module 2 uses the first check code as the second check code to complete the update of the check code.
In the above embodiment of the present invention, byte bits are used to represent the states of routing information such as the network state, the power on/off state, and the connection device of the routing module, so as to generate a first check code (IPTV module check code) and a second check code (routing module check code); carrying out XOR between the IPTV module check code and the routing module check code, and judging whether the routing information needs to be updated or not and a routing information part needing to be changed; the IPTV module and the routing module of the embodiment of the invention can carry out routing information synchronization when the IPTV module and the routing module are started up for the first time, started up daily, read the routing state and change the routing state.
Therefore, the embodiment of the invention can quickly synchronize routing module information such as routing parameters, network states, equipment connection information and the like between the IPTV module and the routing module, and can realize state change perception and quick synchronization of the routing module, thereby solving the problems of fault positioning and information asynchronization.
The IPTV module of the embodiment of the invention can sense the network state of the routing module, thereby solving the technical problem that the IPTV service cannot realize normal network connection because the IPTV module dials in advance when the routing module is not started or the IPTV module cannot be automatically redialed when the routing module is restarted, and greatly improving the user experience.
In one embodiment of the present invention, the method may further include: the IPTV module 1 displays the current routing module information to the user through the television.
The television connected with the IPTV module in the embodiment of the invention can display the fault information of the routing module in time, so that the assembly and maintenance personnel can realize the accurate positioning of the set-top box or the routing fault, and the service number assignment efficiency is greatly improved.
The embodiment of the invention can realize the synchronization of the equipment connection information, and the television connected with the IPTV module can display the information of the routing module connection equipment in time, thereby being convenient for maintenance personnel to configure the white list function of the corresponding equipment.
The functional units described above as IPTV module 1 and routing module 2 may be implemented as general purpose processors, Programmable Logic Controllers (PLCs), Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components or any suitable combinations thereof for performing the functions described herein.
Thus far, the present invention has been described in detail. Some details well known in the art have not been described in order to avoid obscuring the concepts of the present invention. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Claims (14)
1. A set-top box routing module information synchronization method is characterized by comprising the following steps:
the method comprises the steps that an Internet Protocol Television (IPTV) module generates a first check code according to routing module information stored in the IPTV module, and a routing module generates a second check code according to the routing module information stored in the IPTV module, wherein the routing module information comprises routing parameters such as network state information, routing state information, equipment connection information and the like;
the IPTV module judges whether the second check code is consistent with the first check code at preset time intervals;
and if the second check code is inconsistent with the first check code, the IPTV module requests the routing module to synchronously update the inconsistent routing module information to the IPTV module.
2. The method of claim 1, wherein the IPTV module determining whether the second check code is consistent with the first check code at a predetermined time interval comprises:
the IPTV module initiates a check request to the routing module at a preset time interval;
in response to receiving a check request sent by the IPTV module, the routing module sends a second check code to the IPTV module;
the IPTV module judges whether the second check code is consistent with the first check code.
3. The method of claim 1 or 2, wherein the IPTV module requesting the routing module to synchronously update inconsistent routing module information to the IPTV module comprises:
the IPTV module analyzes the second check code and determines the routing module information which is inconsistent with the IPTV module and the routing module;
the IPTV module sends a synchronization request to the routing module, wherein the synchronization request comprises codes of inconsistent routing module information;
and the routing module synchronously updates the inconsistent routing module information to the IPTV module.
4. The method according to claim 1 or 2, wherein after the IPTV module requests the routing module to synchronously update the inconsistent routing module information to the IPTV module, the method further comprises:
the IPTV module and the routing module respectively update the first check code and the second check code.
5. The method as claimed in claim 1 or 2, wherein the generating of the first check code by the IPTV module according to the route module information stored in the IPTV module comprises:
when the IPTV module and the routing module are started for the first time, the IPTV module and the routing module respectively generate a first check code and a second check code according to the routing module information stored in the IPTV module and the routing module, wherein the first check code and the second check code respectively comprise a plurality of bytes, and each byte represents the state of one routing parameter;
and if the state of one routing parameter is changed, negating the byte corresponding to the routing parameter.
6. The method of claim 5, wherein determining whether the second check code is consistent with the first check code comprises:
performing exclusive or on the second check code and the first check code;
if the XOR result is all 0, the second check code is determined to be consistent with the first check code, and synchronization is not needed.
7. The method of claim 6, wherein determining whether the second check code is consistent with the first check code further comprises:
if the XOR result has non-0 bytes, counting the number of bits with bit number of '1' in the non-0 bytes;
if the number of bits with the bit position of 1 is not more than 4, setting the non-0 byte as all 0, and judging that the second check code is consistent with the first check code;
if the number of bits with the bit position of '1' is more than 4, setting the non-0 byte as all 1, and judging that the second check code is inconsistent with the first check code.
8. A set top box is characterized by comprising an Internet Protocol Television (IPTV) module and a routing module, wherein:
the IPTV module is used for generating a first check code according to the routing module information stored by the IPTV module; judging whether the second check code is consistent with the first check code at preset time intervals, wherein the routing module information comprises routing parameters such as network state information, routing state information, equipment connection information and the like; under the condition that the second check code is inconsistent with the first check code, the request routing module synchronously updates inconsistent routing module information to the IPTV module;
and the routing module is used for generating a second check code according to the routing module information stored by the routing module.
9. The set top box of claim 8,
the IPTV module is used for initiating a check request to the routing module at a preset time interval;
the routing module is used for responding to the received checking request sent by the IPTV module and sending the second checking code to the IPTV module so that the IPTV module can judge whether the second checking code is consistent with the first checking code.
10. The set-top box according to claim 8 or 9,
the IPTV module is used for analyzing the second check code and determining the routing module information which is inconsistent with the IPTV module and the routing module; sending a synchronization request to a routing module, wherein the synchronization request comprises codes of inconsistent routing module information;
the routing module is used for synchronously updating the inconsistent routing module information to the IPTV module.
11. The set-top box according to claim 8 or 9,
the IPTV module and the routing module are used for respectively updating the first check code and the second check code after the IPTV module requests the routing module to synchronously update the inconsistent routing module information to the IPTV module.
12. The set-top box according to claim 8 or 9,
the IPTV module and the routing module are used for respectively generating a first check code and a second check code according to the routing module information stored by the set top box when the set top box is started for the first time, wherein the first check code and the second check code respectively comprise a plurality of bytes, and each byte represents the state of one routing parameter; and under the condition that the state of one routing parameter is changed, negating the byte corresponding to the routing parameter.
13. The set top box of claim 12,
the IPTV module is used for carrying out XOR on the second check code and the first check code; and under the condition that the XOR result is all 0, judging that the second check code is consistent with the first check code without synchronization.
14. The set top box of claim 13,
the IPTV module is used for counting the number of bits with the bit position of 1 in the non-0 byte under the condition that the XOR result has the non-0 byte; setting the non-0 byte as all 0 under the condition that the number of bits with the bit position of '1' is not more than 4, and judging that the second check code is consistent with the first check code; and setting the non-0 byte as all 1 when the number of bits with the bit position of 1 is more than 4, and judging that the second check code is inconsistent with the first check code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710621455.9A CN109309876B (en) | 2017-07-27 | 2017-07-27 | Set-top box and set-top box routing module information synchronization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710621455.9A CN109309876B (en) | 2017-07-27 | 2017-07-27 | Set-top box and set-top box routing module information synchronization method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109309876A CN109309876A (en) | 2019-02-05 |
CN109309876B true CN109309876B (en) | 2021-02-09 |
Family
ID=65202857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710621455.9A Active CN109309876B (en) | 2017-07-27 | 2017-07-27 | Set-top box and set-top box routing module information synchronization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109309876B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113497974B (en) * | 2020-03-18 | 2023-03-31 | 中国电信股份有限公司 | State detection method, system and terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103053175A (en) * | 2011-08-16 | 2013-04-17 | 华为技术有限公司 | Iptv Fault Location Method, Device And System |
CN105791019A (en) * | 2016-03-16 | 2016-07-20 | 烽火通信科技股份有限公司 | A method for realizing simultaneous support of wired and wireless network applications in an intelligent set top box |
CN105898546A (en) * | 2015-01-26 | 2016-08-24 | 青岛海信电器股份有限公司 | Routing configuration method and intelligent television |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9191622B2 (en) * | 2007-10-17 | 2015-11-17 | At&T Intellectual Property I, Lp | System for fault detection in an internet protocol television communication system |
-
2017
- 2017-07-27 CN CN201710621455.9A patent/CN109309876B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103053175A (en) * | 2011-08-16 | 2013-04-17 | 华为技术有限公司 | Iptv Fault Location Method, Device And System |
CN105898546A (en) * | 2015-01-26 | 2016-08-24 | 青岛海信电器股份有限公司 | Routing configuration method and intelligent television |
CN105791019A (en) * | 2016-03-16 | 2016-07-20 | 烽火通信科技股份有限公司 | A method for realizing simultaneous support of wired and wireless network applications in an intelligent set top box |
Also Published As
Publication number | Publication date |
---|---|
CN109309876A (en) | 2019-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104539464B (en) | Nodal fault diagnostics method and device | |
CN104363213A (en) | Register and login control method for network household appliance | |
US10405361B2 (en) | Switching-on method, base station, base station controller, switching-on system and storage medium | |
US9852274B2 (en) | Media client device setup utilizing zero-touch installation | |
CN111433773B (en) | Updating gateways in substations | |
US8175008B1 (en) | Auto MEP ID assignment within CFM maintenance association | |
CN109039518B (en) | The ntp server address intelligent management of Android television system | |
CN204215241U (en) | A kind of soymilk machine | |
WO2016082517A1 (en) | Method and device for recovering network connection | |
CN111741538B (en) | Communication link establishing method based on gateway, equipment control method and device | |
CN112448757B (en) | Port occupation testing method and system, user terminal, background system and medium | |
CN106331152B (en) | Method and device for realizing information synchronization between modules | |
US9894091B1 (en) | Network with intelligent network jack | |
CN109309876B (en) | Set-top box and set-top box routing module information synchronization method | |
CN106452860B (en) | Equipment deployment method and device | |
CN109660887B (en) | Method for adapting ONU to different OLTs | |
US9985862B2 (en) | MEP configuration method and network device | |
WO2016180089A1 (en) | Method and apparatus for configuring switch, mobile terminal, and switch | |
CN106230669A (en) | Information getting method, device and terminal | |
CN107113333A (en) | The configuration of server apparatus | |
CN104540183B (en) | A kind of control method and device of hotspot | |
CN110505075B (en) | Device management method and related device | |
KR20180129798A (en) | How to Verify Phone Number Changes, Devices and Systems | |
CN109218055A (en) | A kind of method and apparatus that rapid configuration network element device carries out plug and play | |
CN103501240B (en) | A kind of method of discovering device, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |