Background technology
The user is numerous in view of receiving terminal for digital television, industry all is to adopt the district management mode usually at present, be that the front-end server system will provide the ground of service to be distinguished into the several region territory, and compose a region code, its region code on the region code field band of receiving terminal for digital television need in the URL(uniform resource locator)-URL (Uniform Resource Location) that sends request, the front-end server system is according to region code distribute digital television receive terminal respective edges QAM (Quadrature Amplitude Modulation-quadrature amplitude modulation then, hereinafter to be referred as " IPQAM "), resources such as video server, and utilizing these resources to send data to receiving terminal for digital television, the user just can obtain service like this; If do not have region code information, user then to can not get service.
Thus, the key of related data transmission is to allow the front-end server system know that the geographical position of receiving terminal for digital television is a region code.Because receiving terminal for digital television is not two-way the connection with the front-end server system, so just need the receiving terminal for digital television user to inform its particular location of front-end server system by phone, the Internet or other approach, register its region code by the staff in the database of front-end server system, receiving terminal for digital television could use.
Existing region code management method is when the new receiving terminal for digital television user who installs will use, earlier its region code of registration in the database of front-end server system; And then its region code is write in the database of front-end server by the staff.
Normally inform the geographical position that it is concrete by the user by phone, the Internet or other approach in the practice, the staff of front-end server system carries out the typing of region code registration and database data again at the user by above-mentioned steps.
There is following shortcoming at least in the management method of above-mentioned zone sign indicating number: the mode that obtains region code is loaded down with trivial details, needs the user to issue a separate notice; Need manual operation registration area sign indicating number in the data in server storehouse, cause the waste of human capital; When the user need use receiving terminal for digital television in another geographic area, need re-register, this has brought great inconvenience to the user.
And another kind of region code management method in the prior art is that the IP address by receiving terminal for digital television obtains region code.Receiving terminal for digital television all has the IP address of a physics, and when receiving terminal for digital television was started shooting, the front-end server system can judge the zone at receiving terminal for digital television place according to the IP address of receiving terminal for digital television.But because the unsteadiness of IP address, so the region code that this method of use is determined is inaccurate usually, practicality is not strong.
Summary of the invention
The object of the present invention is to provide a kind of management method of digital TV receiver region code, very inconvenient deficiency when remedying the more loaded down with trivial details and waste of manpower resource of the mode of obtaining region code that exists in the prior art, long-range use.
The management method of digital TV receiver region code provided by the invention comprises step:
1) in the front-end server system, generates the TransportStream-TS stream that has region code information, and on the frequency that is used for play area sign indicating number information, send;
2) receiving terminal for digital television start locks the above-mentioned frequency that is used for play area sign indicating number information;
3) the TS stream that has region code information that the receiving terminal for digital television search is corresponding;
4) obtain corresponding region code.
In addition, above-mentioned zone sign indicating number management method is further comprising the steps of:
1) data of designated port are monitored by the front-end server system, when the region code updating message of specific format, then upgrade the region code information in self configuration file;
2) the region code information after the front-end server system will upgrade sends to the corresponding digital television receive terminal.
Above-mentioned front-end server system sends the TS stream that has region code information by Hybrid Fiber Coaxial.
The invention provides the management method of digital TV receiver region code, make receiving terminal for digital television when start, can obtain corresponding region code at corresponding frequency automatically, need not manual intervention, thereby simplify the flow process that region code obtains, save human capital.
Embodiment
As shown in Figure 1, the management method of digital TV receiver region code provided by the invention may further comprise the steps:
1) the Transport Stream-TS in front-end server system generation region sign indicating number information flows, its undefined indications-Program ID (being designated hereinafter simply as " PID ") is set to a particular value, to represent that this TS stream has region code information, this PID is set to " 8 " in the present embodiment, and sends once at regular intervals on the appointment frequency;
2) receiving terminal for digital television start, and being locked on the acquiescence frequency that is provided with when dispatching from the factory is 8 TS stream if receive PID in can be at certain time intervals, then can obtain the region code of receiving terminal for digital television region;
If in acquiescence frequency search be 8 TS stream less than PID, then receiving terminal for digital television links to each other with the front-end server system, therefrom obtain the frequency tabulation that is used for sending zone sign indicating number information, search for listed frequency successively, up to receiving till PID is 8 TS stream, and the acquiescence frequency of receiving terminal for digital television changed into search the frequency that PID is 8 TS stream, when starting shooting next time, will give tacit consent to frequency search at this;
3) data of designated port are monitored by the front-end server system, when the region code updating message of http+xml specific format, then upgrade the region code information in self configuration file, and above-mentioned http+xml specific format can be self-defined.
4) the region code information after the front-end server system will upgrade sends to corresponding digital television receive terminal user.
Figure 2 shows that the front-end server system generates the flow chart of the TS stream of region sign indicating number, it is as follows that this TS stream generates step:
1) the front-end server system reads the configuration file with region code information respective x ml, and following table is depicted as the format description of xml configuration file;
2) obtain region code information and other parameters that to send;
3) head that TS flows is set;
This step is used to be provided with each value of TS stream header structure.
4) 32 check digit is set, this check digit only plays the verification effect to the TS head, at whole TS stream;
5) body that TS flows is set, it comprises PID and region code field, wherein is set to 8 to represent that this TS stream has region code information, the value of region code field for obtaining from configuration file by PID;
6) the edge QAM of appointment (Quadrature AmplitudeModulation-quadrature amplitude modulation is hereinafter to be referred as " IPQAM ") goes up the TS stream that sends region sign indicating number information in configuration file.
The front-end server system sends the TS flow data that has region code information on the frequency that covers the receiving terminal for digital television user area, this region code is corresponding with the receiving terminal for digital television user area, so that the user receives.
Wherein, the address and the port that send frequency are corresponding with region code information, can include the frequency point information of one or more sending zones sign indicating number and the region code information of the required transmission of corresponding frequency in the configuration file.The front-end server system reads out address and the port that sends frequency from configuration file, be 8 TS stream at set intervals toward this address transmission PID.In receiving terminal for digital television user start time,, just the frequency from its region receives data, obtains corresponding region code and gets final product, and receiving terminal for digital television does not receive data not covering on its regional frequency.
Figure 3 shows that the flow chart that obtains the TS stream that has region code information at receiving terminal for digital television;
The receiving terminal for digital television user is a partition management, and there is the specific region code of a representative oneself in each zone.Because the front-end server system is when distributing IP QAM resource, different IPQAM covers different zones, edge IPQAM links to each other with HFC (Hybrid Fiber Coaxial), described front-end server system sends TS stream to IPQAM, the TS that described IPQAM will have a region code by coupled HFC spreads the receiving terminal for digital television of delivering to respective regions, so receiving terminal for digital television can only receive the region code of own region from specific frequency.
In receiving terminal for digital television start time, can lock the acquiescence frequency, judges whether therefrom to receive PID and be 8 TS stream, if can receive, then therefrom obtains region code; If do not receive PID and be 8 TS stream, receiving terminal for digital television then links to each other with the front-end server system by HFC, therefrom obtain the frequency tabulation that is used for sending zone sign indicating number information, search for listed frequency successively, up to receiving till PID is 8 TS stream, and the acquiescence frequency of receiving terminal for digital television changed into search the frequency that PID is 8 TS stream, when starting shooting next time, will give tacit consent to frequency search at this.
Receiving terminal for digital television can also be connected to the front-end server system by IP tunnels such as wire cable, Ethernet netting twines.
In the management method of region code of the present invention,, then need a proprietary server and be used for more new configuration file if the front-end server system needs more new configuration file.It sends data with certain port of http+xml specific format forward end server system address.The front-end server system then needs to provide a watcher thread, monitor the data of this port, if inclusion region sign indicating number updating message, when promptly containing the region code updating message of http+xml specific format, and region code version number is newer than what use now, then upgrade the configuration file that the front-end server system uses, and the region code information after will upgrading sends to the corresponding digital television receive terminal.
Above-mentioned only is the specific embodiment of the present invention, and in practice, this TS stream that has region code can also send in not timing; Its PID that has the TS stream of region code information also can be set to other signs except that " 8 ", but the PID that is provided with can not conflict mutually with the PID of the TS stream that transmits audio frequency and video and other data; This TS stream also can send on the frequency that is used for sending zone sign indicating number information of other appointments except sending on the acquiescence frequency of receiving terminal for digital television Default Value; Equally also can realize goal of the invention of the present invention.
Region code management method provided by the invention, make receiving terminal for digital television when start, can obtain region code at corresponding frequency automatically, need not manual operation, saved user's registration step, and when receiving terminal for digital television uses area change, regaining also of region code carried out automatically by receiving terminal for digital television, is user-friendly to.