CN111918120A - Channel number assignment method, television and storage medium - Google Patents

Channel number assignment method, television and storage medium Download PDF

Info

Publication number
CN111918120A
CN111918120A CN202010756463.6A CN202010756463A CN111918120A CN 111918120 A CN111918120 A CN 111918120A CN 202010756463 A CN202010756463 A CN 202010756463A CN 111918120 A CN111918120 A CN 111918120A
Authority
CN
China
Prior art keywords
program
channel number
value
channel
search
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.)
Granted
Application number
CN202010756463.6A
Other languages
Chinese (zh)
Other versions
CN111918120B (en
Inventor
廖晓兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202010756463.6A priority Critical patent/CN111918120B/en
Publication of CN111918120A publication Critical patent/CN111918120A/en
Application granted granted Critical
Publication of CN111918120B publication Critical patent/CN111918120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4383Accessing a communication channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management 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/458Scheduling 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/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists

Abstract

The application discloses a channel number assignment method, a television and a storage medium, wherein the method comprises the following steps: receiving a search instruction of a program, and executing the search operation of the program according to the search instruction; if the program without the channel number is determined to exist based on the search result of the search operation, acquiring a preset value of the channel number in a preset function; and assigning a value to the channel number of the program based on the preset value. The technical problem that when the channel numbers of programs in other regions are added, the codes need to be modified more, so that the reading amount of the codes is increased is solved, and the technical effects of clear code logic and good readability are achieved.

Description

Channel number assignment method, television and storage medium
Technical Field
The application relates to the technical field of intelligent digital televisions, in particular to a channel number assignment method, a television and a storage medium.
Background
At present, the ordering specification of each country in overseas digital television and the naming of channel numbers are not uniform, so that each time a country is added, a case needs to be added into the code. For example, when a digital television performs a television program search, if a certain country cannot resolve a logical channel number from a front-end signal (lcn), a naming rule of one country needs to be added, the ranking modes of each country are different, and a ranking rule of one country needs to be added. Therefore, how to reduce the reading amount of the codes when increasing the information such as national channel numbers, sequencing rules and the like, so that the codes have clearer logicality and better readability is a problem which needs to be solved urgently.
Disclosure of Invention
The embodiment of the application aims to solve the problem that when the channel numbers of programs in other regions are added, a plurality of codes need to be modified, so that the reading amount of the codes is increased.
In order to achieve the above object, an aspect of the present application provides a method for assigning a channel number, where the method for assigning a channel number includes the following steps:
receiving a search instruction of a program, and executing the search operation of the program according to the search instruction;
if the program without the channel number is determined to exist based on the search result of the search operation, acquiring a preset value of the channel number in a preset function;
and assigning a value to the channel number of the program based on the preset value.
Optionally, the step of assigning a channel number of the program based on the preset value includes:
acquiring the number of the programs without the channel numbers, and determining the assignment mode of the channel numbers of the programs according to the number;
and if the single program without the channel number is obtained, performing assignment operation on the channel number of the program based on the preset value.
Optionally, after the step of obtaining the number of programs without channel numbers and determining the assignment mode of the channel numbers of the programs according to the number, the method further includes:
if a plurality of programs without channel numbers are obtained, obtaining the time sequence of the programs without channel numbers when the searching operation is executed;
determining a modification value of the channel number of the program according to the time sequence and the preset value;
and assigning a value to the channel number of the program based on the modified value.
Optionally, the step of determining the modification value of the channel number of the program according to the time sequence and the preset value includes:
if the time sequence of the program without the channel number is a first sequence, the corrected value of the channel number of the program is the preset value;
and if the time sequence of the program without the channel number appears is a second sequence and appears after the second sequence, the corrected value of the channel number of the program is obtained by adding 1 to the channel number of the program appearing in the previous sequence.
Optionally, before the step of receiving a search instruction of a program and performing a search operation of the program according to the search instruction, the method includes:
acquiring attribute information of each region, performing comparison operation on the attribute information of each region, and acquiring a common attribute value of each region according to the comparison operation;
defining a database field based on the attribute values, creating a database according to the database field, and inserting the common attribute values of all regions into the database, wherein the attribute values comprise preset values of the channel numbers.
Optionally, before the step of receiving a search instruction of a program and executing a search operation of the program according to the search instruction, the method further includes:
determining a region of the program search;
and acquiring the attribute value of the region in the database, and storing the attribute value of the region in the preset function.
Optionally, after the step of assigning the channel number of the program based on the preset value, the method includes:
acquiring the attribute value of the region in the preset function, and acquiring the sorting mode of the region channel number according to the attribute value;
and sorting the channel numbers of all the programs after the assignment operation is executed according to the sorting mode.
Optionally, after the step of receiving a search instruction of a program and performing a search operation of the program according to the search instruction, the method further includes:
locking a searched frequency point based on the search instruction, and determining a network information table under the frequency point;
and executing analysis operation on the network information table, and acquiring the programs without the channel numbers according to the analysis operation.
In addition, in order to achieve the above object, another aspect of the present application further provides a television, which includes a memory, a processor, and a channel number assignment program stored in the memory and running on the processor, where the processor implements the steps of the channel number assignment method as described above when executing the channel number assignment program.
In addition, to achieve the above object, another aspect of the present application further provides a computer-readable storage medium, having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the channel number assignment method as described above.
In the embodiment, by receiving a search instruction of a program, a search operation of the program is executed according to the search instruction; if the program without the channel number is determined to exist based on the search result of the search operation, acquiring a preset value of the channel number in a preset function; and assigning a value to the channel number of the program based on the preset value. The technical problem that when the channel numbers of programs in other regions are added, the number of codes needing to be modified is large, so that the reading amount of the codes is increased is solved, and the technical effects of clear code logic and good readability are achieved.
Drawings
Fig. 1 is a schematic diagram of a television structure of a hardware operating environment according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a first embodiment of a channel number assignment method according to the present application;
fig. 3 is a flowchart illustrating a second embodiment of a channel number assignment method according to the present application;
fig. 4 is a flowchart illustrating a third embodiment of a channel number assignment method according to the present application;
fig. 5 is a flowchart illustrating a fourth embodiment of a channel number assignment method according to the present application;
fig. 6 is a flowchart illustrating a fifth embodiment of a channel number assignment method according to the present application;
fig. 7 is a schematic flowchart of the program searching operation after the steps of receiving a program searching command and executing the program searching operation according to the searching command in the channel number assignment method of the present application;
fig. 8 is a schematic flowchart of the process after the steps of obtaining the number of programs without channel numbers and determining the channel number assignment mode of the programs according to the number in the channel number assignment method of the present application;
fig. 9 is a schematic flowchart of determining a modification value of a channel number of the program according to the time sequence and the preset value in the channel number assignment method of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the application is as follows: receiving a search instruction of a program, and executing the search operation of the program according to the search instruction; if the program without the channel number is determined to exist based on the search result of the search operation, acquiring a preset value of the channel number in a preset function; and assigning a value to the channel number of the program based on the preset value.
Since the ordering specification and the naming of the channel number of the digital television in each country are not uniform overseas, each time information such as the channel number of one country is added, a case needs to be added into the code, and when the number of regions supported by software is more and more, the code is more and more, so that the reading amount of the code is increased. The method comprises the steps of receiving a search instruction of a program, and executing search operation of the program according to the search instruction; if the program without the channel number is determined to exist based on the search result of the search operation, acquiring a preset value of the channel number in a preset function; and assigning a value to the channel number of the program based on the preset value. The technical problem that when the channel numbers of programs in other regions are added, the codes need to be modified more, so that the reading amount of the codes is increased is solved, and the technical effects of clear code logic and good readability are achieved.
As shown in fig. 1, fig. 1 is a schematic diagram of a television structure of a hardware operating environment according to an embodiment of the present application.
As shown in fig. 1, the television may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the television may also include a camera, RF (Radio Frequency) circuitry, sensors, remote controls, audio circuitry, WiFi modules, detectors, and the like. Of course, the television may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, and a temperature sensor, which are not described herein again.
Those skilled in the art will appreciate that the television architecture shown in fig. 1 does not constitute a limitation of television apparatus and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a channel number assignment program.
In the television shown in fig. 1, the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and processor 1001 may be configured to invoke the channel number assignment routine in memory 1005 and perform the following operations:
receiving a search instruction of a program, and executing the search operation of the program according to the search instruction;
if the program without the channel number is determined to exist based on the search result of the search operation, acquiring a preset value of the channel number in a preset function;
and assigning a value to the channel number of the program based on the preset value.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a first embodiment of a channel number assignment method according to the present application, where the channel number assignment method includes the following steps:
step S10, receiving a search instruction of a program, and executing the search operation of the program according to the search instruction;
in the present embodiment, the terminal includes, but is not limited to, a digital television set-top box, etc., and the present application explains the digital television as an example, and the receiving device of the digital television may be a digital television all-in-one machine, an Interactive Digital Television (iDTV), a set-top box (STB), a Personal Video Recorder (PVR), digital audio, or a DVD. The receiving device of the digital television is used for receiving digital television broadcasting signals, and the digital television broadcasting is based on any one of the following standards: DVB-T (terrestrial digital video broadcasting), DVB-T2, DVB-C (cable digital video broadcasting), DVB-C2, DVB-S (satellite digital video broadcasting), DVB-S2.
When receiving a program searching instruction generated by a user by triggering a remote controller, a mobile terminal or a menu key of a television terminal, a receiving device of the television executes the program searching operation according to the searching instruction, and the specific implementation is that the television can sequentially execute the program searching operation according to each frequency point in a corresponding frequency band, for example, one frequency point in the frequency band is locked, and the program searching is carried out based on the locked current frequency point according to the corresponding searching parameter set by the user.
When a program signal is searched, acquiring channel information corresponding to a current frequency point, where the channel information includes Logical channel number data, and the Logical channel number data includes various attribute parameters, including a service id (service id), a channel number (Logical channel number), visibility (visibility), a digital channel change (simply changed bandwidth), Priority (Priority), and the like. Each operator has its specific logic channel number rule, and different operators have different corresponding logic channel number rules, for example, different attribute parameters included in the logic channel number data, and different initial bits and occupied bits corresponding to the attribute parameters. Specifically, when a program signal is searched, channel information such as an NIT (Network information Table) and an SDT (Service Description Table) corresponding to a current frequency point sent by a server is received, and logical channel number data corresponding to the current frequency point is extracted from the received NIT Table and the SDT Table. The NIT table contains information of each frequency point (such as version number, transport stream ID, frequency point parameter information, etc.) and program information (such as program ID, program lcn, program type, etc.) at each frequency point in the current network; the SDT table contains the program names of all programs in the current network and the names of the suppliers.
Since the main purpose of the program searching operation is to determine whether there is a program without a channel number, referring to fig. 7, after the step of receiving a program searching instruction and performing the program searching operation according to the searching instruction, the method further includes:
step S15, locking the searched frequency point based on the search instruction, and determining the network information table under the frequency point;
step S16, performing parsing operation on the network information table, and obtaining the program without channel number according to the parsing operation.
When a search instruction of a program is received, locking a searched frequency point based on the search instruction, and determining a network information table under the frequency point, wherein in an embodiment, lcn information is transmitted in an NIT table by a local channel descriptor, descriptor _ tag of the information is 0x83, each local channel descriptor includes a service id and one lcn, so that each service id is assigned with one lcn, and the service id can be corresponding to the service id transmitted in a service description table SDT. When the network information NIT is analyzed, 0x83 is used as a key word to find a local channel descriptor from all descriptors in the network information table NIT, then the first two bytes in the descriptor loop body are read and spelled out the service id, then the last two bytes are read and fetched, and the lower two bits of the second last byte and the first last byte are spelled out to be lcn number, so that each pair (service id, lcn) is analyzed. For example, a local _ channel _ descriptor has the following data: 0x83, 0x8, 0x00, 0x65, 0xFF, 0xE9, 0x00, 0x66, 0xFF, 0 xEA; the first data is 0x83, which is known to correspond to local _ channel _ descriptor, indicating that the read descriptor is correct; the second data is 0x8, which means that there are 8 bytes of data to read after this data, and these 8 data are 4 data in one group, so that two service ids and lcn can be read in total; the third data and the fourth data are combined into a service id: 0x0065, decimal 101. The fifth data 0xFF, which is represented by binary 11111111, the highest bit is 1, which represents that the program is visible to the user, and the middle 5 bits 11111 have no meaning and are skipped; the last two bits 11 and the sixth data 0xE9(11101001) are pieced together to form binary 1111101001, i.e. lcn is 1001, so that the first (service id, lcn) is resolved to be (101, 1001), and lcn of the program with service id of 101 is 1001; and similarly, performing the same analysis on the seventh-tenth data to obtain (102, 1002), and if lcn corresponding to the service id is not obtained based on the analysis operation, that is, the program does not exist lcn.
Step S20, if it is determined that there is a program without a channel number based on the search result of the search operation, acquiring a preset value of the channel number in a preset function;
in the present embodiment, the Channel Number refers to lcn (logical Channel Number) of programs, which is used for sorting and grouping programs; the preset value of the channel number refers to the starting value of the channel number, wherein lcn is not required in every country, but the national rule of lcn is not necessarily the same, in the country requiring lcn, the starting value of lcn is different in every country, lcn is distributed between 1 and 800, or 800+ lcn, for example, the starting value of lcn in malaysia is 800, the starting value of lcn in austria is 350, the starting value of lcn in china is 300, and the like.
If it is determined that there is a program without a channel number based on the search result of the search operation, it is necessary to obtain a start value of the channel number in a giareavalue function, where the giareavalue is a structural variable that stores an attribute value of a certain country, for example: lcn switches on/off, whether the channel number is displayed lcn, the network id needed to be received, lcn sorting mode, ews function, ewbs function and other information. Specifically, when a program without a channel number is acquired, an attribute value of a region corresponding to the program is acquired in a gAreaValue function in a sqlite database according to the region, and an lcn starting value of the region is acquired based on the attribute value. Wherein the SQLite is a lightweight database, an ACID compliant relational database management system, contained in a relatively small C library; the design target of the embedded type wireless communication device is embedded, occupied resources are very low, and some embedded type devices only need hundreds of K of memories.
Step S30, assigning a value to the channel number of the program based on the preset value.
In this embodiment, by obtaining the lcn start value of the country corresponding to the search in the sqlite database, and when obtaining the lcn start value of the country, assigning a program without a channel number by using the start value, the specific implementation is as follows: if no channel number exists in the television programs currently searched in Malaysia, the first program is assigned with the value of 800, the second program is assigned with the value of 801, the third program is assigned with the value of 802, and the like until all programs without channel numbers are assigned. Based on the fact that the number of the acquired programs without the channel number is different and the time sequence of the occurrence of the search is different, the channel number of the programs is assigned in different manners, for example: when only one program without the channel number exists, the starting value is directly assigned to lcn; when there are two or more programs without channel numbers, the first is assigned the lcn start value, the second is assigned the lcn start value +1, the third is assigned the lcn start value +2, and so on.
In the embodiment, by receiving a search instruction of a program, a search operation of the program is executed according to the search instruction; if the program without the channel number is determined to exist based on the search result of the search operation, acquiring a preset value of the channel number in a preset function; and assigning a value to the channel number of the program based on the preset value. The problem that when the channel numbers of programs in other regions are added, the number of codes needing to be modified is large, so that the reading amount of the codes is increased is solved, and the effects of clear code logic and good readability are achieved.
In an embodiment, referring to fig. 3, the step of assigning the channel number of the program based on the preset value includes:
step S31, obtaining the number of the programs without the channel number, and determining the assignment mode of the channel number of the programs according to the number;
step S32, if a single program without a channel number is obtained, performing an operation of assigning a value to the channel number of the program based on the preset value.
In this embodiment, when a program without a channel number is obtained based on the search operation, the number of programs without a channel number is further obtained, and an assignment manner of the channel number of the program is determined according to the number, where the assignment manner includes direct assignment and indirect assignment, and the direct assignment refers to directly assigning an lcn start value to the channel number of the program; the indirect assignment refers to determining a modified value of the channel number according to the lcn start value, and then assigning the channel number of the program according to the modified value.
If the program without the channel number is acquired, performing an operation of assigning a value to the channel number of the program based on the preset value, for example: and if the current searched area is China, acquiring a program without a channel number based on the searching operation, acquiring an lcn starting value (300) of China, directly assigning 300 to the channel number of the program, and after the assignment operation is completed, setting the channel number of the program to be 300. If a plurality of programs without channel numbers are obtained, the assignment manner is different from that of a single program, and therefore, referring to fig. 8, after the step of obtaining the number of programs without channel numbers and determining the assignment manner of channel numbers of the programs according to the number, the method further includes:
step S310, if a plurality of programs without channel numbers are obtained, obtaining the time sequence of the plurality of programs without channel numbers when the searching operation is executed;
step S311, determining a modification value of the channel number of the program according to the time sequence and the preset value;
step S312, assigning a value to the channel number of the program based on the modified value.
In this embodiment, if a plurality of programs without channel numbers are acquired, a time sequence of the programs without channel numbers appearing when a search operation is performed is acquired, a modified value of the channel numbers of the programs is determined according to the time sequence and the preset value, and the channel numbers of the programs are assigned based on the modified value. For example, if three programs without channel numbers (such as program a, program B, and program C) are acquired based on the search operation, the time sequence of the three programs appearing during the search is further acquired as program a, program B, and program C; determining a revised value of the channel number of the program based on the temporal order of occurrence of the three programs and the lcn start value, assigning a value to the channel number of the program based on the revised value, and therefore, referring to fig. 9, the step of determining the revised value of the channel number of the program based on the temporal order and the preset value comprises:
step S3110, if the time sequence of the program without the channel number is the first sequence, the modified value of the channel number of the program is the preset value;
step S3111, if the time sequence of the program without channel number is the second sequence and appears after the second sequence, the channel number of the program is modified by adding 1 to the channel number of the program appearing in the previous sequence.
In this embodiment, if the time sequence of the program without the channel number is a first sequence, the modified value of the channel number of the program is the preset value; and if the time sequence of the program without the channel number appears is a second sequence and appears after the second sequence, the corrected value of the channel number of the program is obtained by adding 1 to the channel number of the program appearing in the previous sequence. Specifically, if the currently searched area is austria, the lcn starting value of austria is 350; acquiring four programs without channel numbers, namely a program A, a program B, a program C and a program D based on the searching operation, wherein if the program A appears first, the correction value is lcn and the preset value is 350; if program B is the second occurrence, its correction value is 351; if the program C appears for the third time, the correction value is 352; if program D is the fourth occurrence, the correction value is 353. And if more programs without the channel number are searched, the channel number of the programs is corrected by adding 1 to the channel number of the program which appears in the previous sequence.
It should be noted that the assignment operation of the channel number of the program is directly to add data in the sqlite database, and the code does not need to be modified, so that the code reading amount is reduced.
In the embodiment, by assigning programs without channel numbers by using lcn start values, that is, adding data directly in the sqlite database, no code modification is required, the reading amount of codes is reduced, and the assigning operation is simplified.
In an embodiment, referring to fig. 4, before the step of receiving a search instruction of a program and performing a search operation of the program according to the search instruction, the method includes:
step S11, acquiring attribute information of each region, performing comparison operation on the attribute information of each region, and acquiring a common attribute value of each region according to the comparison operation;
step S12, defining a database field based on the attribute values, creating a database according to the database field, and inserting the attribute values common to the regions into the database, where the attribute values include the preset values of the channel numbers.
In this embodiment, the operators providing program signal contents for terminals such as digital televisions and digital television set-top boxes in different countries and different regions are different, and some regions even have multiple operators. Different program signal contents provided by different operators are different, and the different program signal contents provided by the operators mean different channels and/or different attribute parameters, for example, different channels corresponding to the same frequency point. That is, the attribute information of each country and each region is different, and therefore, before the search operation of the program is performed, the user may collect the attribute information of each country and each region in advance, for example: the starting program number of the program which does not resolve the logic channel number, the sorting mode of the channel numbers (from low to high according to the frequency points and from small to large according to the logic channel numbers), lcn switch and other attribute information; taking thailand as an example, thailand lcn, original _ network _ id 0x22fc, identifies the flow of the thailand operator; NIT descriptor _ tag of 0x83, lcn descriptor, DVB standard; lcn, the service _ id in the descriptor is program _ number (PAT/PMT), so that lcn corresponds to which program; sorting: lcn switch is "ON", it is sorted by lcn, otherwise "OFF", it is sorted by program _ number.
And comparing the acquired attribute information of each region, and acquiring a common attribute value of each region according to the comparison operation, wherein the common attribute value refers to the attribute values of each region, such as foreign early warning signals ews, emergency alarm broadcasting systems ewbs and the like. Defining a database field based on the common attribute value, wherein the database field comprises a DVB (cable/satellite/terrestrial) system, a starting program number, an lcn sequencing mode and the like; creating a database DB according to defined fields, inserting the collected attribute values into the database by using a structured Query language (sql) statement, wherein each country stores one piece of data, and the specific storage mode is shown in table 1:
TABLE 1
Figure BDA0002610949210000111
Table 1 lists only the attribute values common to some regions, and may also include other regions and other common attribute values, which are not limited herein.
In this embodiment, by obtaining a common attribute value of each region and creating a database based on the common attribute value, the attribute information of each region is digitized.
In an embodiment, referring to fig. 5, before the step of receiving a search instruction of a program and performing a search operation of the program according to the search instruction, the method further includes:
step S13, determining the area of the program search;
step S14, obtaining the attribute value of the region in the database, and storing the attribute value of the region in the preset function.
In this embodiment, when the television apparatus is first turned on, a menu is popped up for the user to set a target area, that is, to determine an area for searching the program, which is specifically implemented in that when the television apparatus is first turned on, the geographical position of the television apparatus is obtained by positioning through a GPS, all selectable target areas are popped up on a UI interface, and the user selects the searched area by sending a selection instruction or clicking the UI interface. In the running process of the television software, initializing attribute modules of various regions, and acquiring a saved national value mCountry from an EEPROM module. Specifically, a Database (DB) is opened, an attribute value of a software use area is acquired by using an sql statement (select from table top counter id) through mcount acquired in an EEPROM module, and is stored in garealue, which is a structure variable including the area attribute values in table 1, such as lcn switches: on/off, whether to display lcn, a network to be received, an lcn sorting method, an ews switch, an ewbs switch, and the like.
In this embodiment, after the television software runs, data is directly loaded from the sqlite database, and functions of each region are realized through code logic analysis.
In an embodiment, referring to fig. 6, after the step of assigning the channel number of the program based on the preset value, the method includes:
step S33, obtaining the attribute value of the region in the preset function, and obtaining the sorting mode of the region channel number according to the attribute value;
and step S34, sorting the channel numbers of all the programs after the assignment operation is executed according to the sorting mode.
In this embodiment, the digital television transmission includes logical channel number (lcn) data for different channels of the program in the transmission, the program being mapped to a channel number based on lcn data, thereby enabling a user to locate a desired program in his or her television or other receiving device. For example, for a DVB-T receiver lcn is constructed to facilitate automatic preset (preset) assignment, and the technique for handling the assigned presets varies among all major standards. Furthermore, problems arise because the receiver may receive multiple transmissions with conflicting lcn data, for example, for europe one may receive DVB-T content from different countries or different regions of the same country (at least in border regions), different transmissions may have conflicting lcn, or one may not have lcn associated with it, and therefore, the logical channel numbers (lcn) need to be ordered.
Specifically, after assigning values to all programs without channel numbers, the sort mode of the region lcn is obtained in the sqlite database, for example, sorting according to program names, sorting according to frequency or sorting according to the strength and/or quality of television signals; and sequencing the lcn based on the obtained sequencing mode. For example: when lcn of two programs are the same, the judgment is made first based on the signal quality, and the one with strong signal quality is arranged in the front, and if the signal quality is still the same, the judgment is made based on the signal strength, and the one with stronger signal strength is arranged in the front.
In this embodiment, by sorting the logical channel numbers lcn, the same occurrence of lcn is avoided, so that the service list can be traversed in the provided sorting.
In addition, the application also provides a television, which comprises a memory, a processor and a channel number assignment program stored in the memory and running on the processor, wherein the television is used for establishing a database according to the common attribute values by collecting the attribute information of each region in advance, determining the common attribute values of each region based on the attribute information and writing the attribute values of each region into the database, so that the digitization of the attribute information of each region is realized; after the television runs, data are loaded from the database, and functions of all regions are realized through code logic analysis. In addition, if the attribute value of one region needs to be added, corresponding data only needs to be added to the database, for example: the corresponding channel number is added to the program without the channel number, only the lcn starting value corresponding to the region is obtained in the database, the channel number of the program is assigned based on the lcn starting value, the amount of codes does not need to be additionally increased, the local region characteristics can be quickly and conveniently modified according to the information provided by a client or an operator, and the requirement of the client is met under the condition that software does not need to be recompiled.
Furthermore, the present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, implements the steps of the method for assigning channel numbers as described above.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While alternative embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for assigning channel numbers, the method comprising:
receiving a search instruction of a program, and executing the search operation of the program according to the search instruction;
if the program without the channel number is determined to exist based on the search result of the search operation, acquiring a preset value of the channel number in a preset function;
and assigning a value to the channel number of the program based on the preset value.
2. The method of assigning channel numbers according to claim 1, wherein said step of assigning channel numbers of said programs based on said preset values comprises:
acquiring the number of the programs without the channel numbers, and determining the assignment mode of the channel numbers of the programs according to the number;
and if the single program without the channel number is obtained, performing assignment operation on the channel number of the program based on the preset value.
3. The method according to claim 2, wherein said step of obtaining the number of programs without channel numbers and determining the channel number assignment of said programs according to said number further comprises:
if a plurality of programs without channel numbers are obtained, obtaining the time sequence of the programs without channel numbers when the searching operation is executed;
determining a modification value of the channel number of the program according to the time sequence and the preset value;
and assigning a value to the channel number of the program based on the modified value.
4. A method of assigning channel numbers according to claim 3, wherein said step of determining a modification to channel numbers of said programs based on said time sequence and said predetermined value comprises:
if the time sequence of the program without the channel number is a first sequence, the corrected value of the channel number of the program is the preset value;
and if the time sequence of the program without the channel number appears is a second sequence and appears after the second sequence, the corrected value of the channel number of the program is obtained by adding 1 to the channel number of the program appearing in the previous sequence.
5. The method of assigning channel numbers according to claim 1, wherein said step of receiving a program search command and performing said program search operation in accordance with said search command is preceded by the steps of:
acquiring attribute information of each region, performing comparison operation on the attribute information of each region, and acquiring a common attribute value of each region according to the comparison operation;
defining a database field based on the attribute values, creating a database according to the database field, and inserting the common attribute values of all regions into the database, wherein the attribute values comprise preset values of the channel numbers.
6. The method of assigning channel numbers according to claim 1, wherein said step of receiving a search instruction for a program and performing a search operation for said program in accordance with said search instruction further comprises:
determining a region of the program search;
and acquiring the attribute value of the region in the database, and storing the attribute value of the region in the preset function.
7. The method of claim 1, wherein said step of assigning a channel number of said program based on said predetermined value, if followed, comprises:
acquiring the attribute value of the region in the preset function, and acquiring the sorting mode of the region channel number according to the attribute value;
and sorting the channel numbers of all the programs after the assignment operation is executed according to the sorting mode.
8. The method according to any of claims 1 to 7, wherein said step of receiving a search instruction for a program and performing a search operation for said program in accordance with said search instruction further comprises:
locking a searched frequency point based on the search instruction, and determining a network information table under the frequency point;
and executing analysis operation on the network information table, and acquiring the programs without the channel numbers according to the analysis operation.
9. A television comprising a memory, a processor and a program for assigning channel numbers stored in the memory and running on the processor, the processor implementing the steps of the method of any one of claims 1 to 8 when executing the program for assigning channel numbers.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202010756463.6A 2020-07-30 2020-07-30 Channel number assignment method, television and storage medium Active CN111918120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010756463.6A CN111918120B (en) 2020-07-30 2020-07-30 Channel number assignment method, television and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010756463.6A CN111918120B (en) 2020-07-30 2020-07-30 Channel number assignment method, television and storage medium

Publications (2)

Publication Number Publication Date
CN111918120A true CN111918120A (en) 2020-11-10
CN111918120B CN111918120B (en) 2022-09-20

Family

ID=73287122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010756463.6A Active CN111918120B (en) 2020-07-30 2020-07-30 Channel number assignment method, television and storage medium

Country Status (1)

Country Link
CN (1) CN111918120B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630626A (en) * 2021-08-04 2021-11-09 深圳市杰科数码有限公司 Set top box, automatic program management method thereof and computer readable storage medium
CN113630626B (en) * 2021-08-04 2024-05-10 深圳市杰科数码有限公司 Set top box, automatic program management method thereof and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1833435A (en) * 2003-08-07 2006-09-13 皇家飞利浦电子股份有限公司 Channel number sorting for digital television
CN101102431A (en) * 2006-07-03 2008-01-09 索尼株式会社 Receiver for terrestrial digital television broadcasting
CN101667841A (en) * 2008-09-02 2010-03-10 本田技研工业株式会社 Preinstall apparatus of broadcast receiver for automobile
CN105744353A (en) * 2016-04-14 2016-07-06 深圳Tcl数字技术有限公司 Logical channel number analysis method and logical channel number analysis device
CN107318040A (en) * 2017-08-14 2017-11-03 青岛海信电器股份有限公司 The method and device of TV programme sequence

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1833435A (en) * 2003-08-07 2006-09-13 皇家飞利浦电子股份有限公司 Channel number sorting for digital television
CN101102431A (en) * 2006-07-03 2008-01-09 索尼株式会社 Receiver for terrestrial digital television broadcasting
CN101667841A (en) * 2008-09-02 2010-03-10 本田技研工业株式会社 Preinstall apparatus of broadcast receiver for automobile
CN105744353A (en) * 2016-04-14 2016-07-06 深圳Tcl数字技术有限公司 Logical channel number analysis method and logical channel number analysis device
CN107318040A (en) * 2017-08-14 2017-11-03 青岛海信电器股份有限公司 The method and device of TV programme sequence

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630626A (en) * 2021-08-04 2021-11-09 深圳市杰科数码有限公司 Set top box, automatic program management method thereof and computer readable storage medium
CN113630626B (en) * 2021-08-04 2024-05-10 深圳市杰科数码有限公司 Set top box, automatic program management method thereof and computer readable storage medium

Also Published As

Publication number Publication date
CN111918120B (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN101743746B (en) Method for displaying internet television information of broadcasting receiver and broadcasting receiver enabling the method
CN1909649B (en) Broadcasting signal receiving device and method for executing data broadcasting application of the same
KR20060050405A (en) Aligning video data to create a comprehensive program guide
US7840978B2 (en) Device and method for updating function in digital broadcasting signal receiver
US20060282857A1 (en) Method for providing integrated EPG in dual mode DMB receiver
CN102150423A (en) Method and apparatus for scanning channel
US20100169919A1 (en) Acquiring cable channel map information in a cable receiver
US10869097B2 (en) Television board card, television system and television system configuration method
CN108282692A (en) A kind of method, apparatus of set-top box quick search program, set-top box and medium
CN111918120B (en) Channel number assignment method, television and storage medium
KR20060092006A (en) Image refroducing apparatus for updating channel map and method of updating thereof
CN108111906B (en) Channel searching method and device and computer readable storage medium
US20080092197A1 (en) Method of upgrading software by using common module shared by multiple models, and digital broadcast receiver therefor
CN109040831B (en) Playing method and device for multi-scene channel searching and computer readable storage medium
CN112437295A (en) Television frequency point detection method, device, equipment and readable storage medium
CN112738622B (en) Digital television channel data searching method, terminal and storage medium
CN107911718B (en) Digital television software upgrading method and device and computer readable storage medium
CN109561321B (en) Program searching method and device, television terminal and storage medium
CN111147931A (en) Transmission method, device and equipment of TLV (threshold Length value) data packet and readable storage medium
KR100588883B1 (en) Operating method for digital broadcasting receiver
EP3179380A1 (en) Method for selecting at least one item and corresponding electronic device, computer readable program product and computer readable storage medium
CN114501124A (en) Television channel scanning method and television system
CN113973219A (en) Method and circuit system for acquiring program information
CN111935515A (en) Method, device, equipment and medium for generating electronic program guide data table
CN115150640A (en) Television channel sorting method, system, equipment and computer readable storage medium

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