CN105812848B - TV network data capture method and server - Google Patents
TV network data capture method and server Download PDFInfo
- Publication number
- CN105812848B CN105812848B CN201410852065.9A CN201410852065A CN105812848B CN 105812848 B CN105812848 B CN 105812848B CN 201410852065 A CN201410852065 A CN 201410852065A CN 105812848 B CN105812848 B CN 105812848B
- Authority
- CN
- China
- Prior art keywords
- network data
- client
- information
- data acquisition
- network
- 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.)
- Expired - Fee Related
Links
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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Graphics (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了一种电视网络数据获取方法,所述电视网络数据获取方法包括以下步骤:接收客户端发送的电视网络数据获取请求;所述电视网络数据为电视节目信息或电子节目菜单;根据所述电视网络数据获取请求,判断是否存对应的电视网络数据;当存在所述电视网络数据时,将所述电视网络数据发送至所述客户端;当不存在所述电视网络数据时,反馈相应的响应结果,以供所述客户端搜索所述电视网络数据。本发明还公开了一种电视网络数据获取服务器。本发明降低了电视网络数据获取的难度。
The invention discloses a method for obtaining TV network data. The method for obtaining TV network data includes the following steps: receiving a request for obtaining TV network data sent by a client; the TV network data is TV program information or an electronic program menu; according to the The TV network data acquisition request, to determine whether the corresponding TV network data exists; when the TV network data exists, send the TV network data to the client; when the TV network data does not exist, feed back the corresponding The response result for the client to search the TV network data. The invention also discloses a television network data acquisition server. The invention reduces the difficulty of acquiring TV network data.
Description
技术领域technical field
本发明涉及电视技术领域,尤其涉及电视网络数据获取方法及服务器。The invention relates to the technical field of television, in particular to a method for acquiring television network data and a server.
背景技术Background technique
现有智能电视在播放视频节目时,通常通过后台搜索获取当前播放频点的EPG(electronic program guide,电子节目菜单)信息,并显示该EPG信息,以实现各种业务的索引及导航。众所周知,现有电视机中每次进行频点切换时,均需要搜索一次当前的频点对应的EPG信息,从而导致EPG信息获取难度较大。When an existing smart TV is playing a video program, it usually obtains EPG (electronic program guide, electronic program menu) information of the current playing frequency point through a background search, and displays the EPG information, so as to realize indexing and navigation of various services. As we all know, each time a frequency point is switched in an existing television, it is necessary to search for the EPG information corresponding to the current frequency point, which makes it difficult to obtain the EPG information.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solution of the present invention, and does not mean that the above content is admitted as prior art.
发明内容Contents of the invention
本发明的主要目的在于提供一种电视网络数据获取方法及服务器,旨在降低了电视网络数据获取的难度。The main purpose of the present invention is to provide a TV network data acquisition method and server, aiming at reducing the difficulty of TV network data acquisition.
为实现上述目的,本发明提供的一种电视网络数据获取方法包括以下步骤:In order to achieve the above object, a method for obtaining TV network data provided by the present invention includes the following steps:
接收客户端发送的电视网络数据获取请求;所述电视网络数据为电视节目信息或电子节目菜单;receiving a TV network data acquisition request sent by the client; the TV network data is TV program information or an electronic program menu;
根据所述电视网络数据获取请求,判断是否存对应的电视网络数据;According to the TV network data acquisition request, determine whether the corresponding TV network data is stored;
当存在所述电视网络数据时,将所述电视网络数据发送至所述客户端;When the TV network data exists, send the TV network data to the client;
当不存在所述电视网络数据时,反馈相应的响应结果,以供所述客户端搜索所述电视网络数据。When the television network data does not exist, a corresponding response result is fed back for the client to search for the television network data.
优选地,所述当不存在所述电视网络数据时,反馈相应的响应结果,以供所述客户端搜索所述电视网络数据之后还包括:Preferably, when the TV network data does not exist, feeding back a corresponding response result for the client to search for the TV network data further includes:
接收并保存所述客户端发送的数据信息;所述数据信息包括所述客户端搜索到的电视网络数据和所述客户端的位置信息。Receive and save the data information sent by the client; the data information includes the TV network data searched by the client and the location information of the client.
优选地,所述当存在所述电视网络数据时,将所述电视网络数据发送至所述客户端包括:Preferably, when the TV network data exists, sending the TV network data to the client includes:
当存在所述电视网络数据时,判断服务器是否繁忙;When the television network data exists, determine whether the server is busy;
若是,则将当前与所述电视网络数据一致的IP列表发送至所述客户端,以供客户端向所述IP列表中的IP获取所述电视网络数据;If so, then send the current IP list consistent with the TV network data to the client, so that the client can obtain the TV network data from the IP in the IP list;
若否,则获取所述电视网络数据,并将所述电视网络数据发送至所述客户端。If not, acquire the TV network data, and send the TV network data to the client.
优选地,所述电视网络数据获取方法还包括:Preferably, the TV network data acquisition method further includes:
记录接收到所述电视网络数据获取请求对应的IP信息;Recording the IP information corresponding to the TV network data acquisition request received;
实时监测所述IP信息对应的客户端是否处于联网状态;Real-time monitoring whether the client corresponding to the IP information is in a networked state;
删除处于非联网状态的IP信息,以更新所述IP信息;Delete the IP information in the offline state to update the IP information;
根据更新后的所述IP信息和所述电视网络数据建立所述IP列表。The IP list is established according to the updated IP information and the TV network data.
优选地,所述位置信息包括电视网络信息。Preferably, the location information includes television network information.
此外,为实现上述目的,本发明还提供一种电视网络数据获取服务器包括:In addition, in order to achieve the above object, the present invention also provides a television network data acquisition server including:
请求接收模块,用于接收客户端发送的电视网络数据获取请求;所述电视网络数据为电视节目信息或电子节目菜单;The request receiving module is used to receive the TV network data acquisition request sent by the client; the TV network data is TV program information or electronic program menu;
判断模块,用于根据所述电视网络数据获取请求,判断是否存对应的电视网络数据;A judging module, configured to judge whether corresponding TV network data exists according to the TV network data acquisition request;
发送模块,用于当存在所述电视网络数据时,将所述电视网络数据发送至所述客户端;当不存在所述电视网络数据时,反馈相应的响应结果,以供所述客户端搜索所述电视网络数据。A sending module, configured to send the TV network data to the client when the TV network data exists; when the TV network data does not exist, feed back a corresponding response result for the client to search The TV network data.
优选地,所述电视网络数据获取服务器还包括:Preferably, the TV network data acquisition server also includes:
数据接收模块,用于接收并保存所述客户端发送的数据信息;所述数据信息包括所述客户端搜索到的电视网络数据和所述客户端的位置信息。The data receiving module is used to receive and save the data information sent by the client; the data information includes the TV network data searched by the client and the location information of the client.
优选地,所述发送模块包括:Preferably, the sending module includes:
判断单元,用于当存在所述电视网络数据时,判断电视网络数据获取服务器是否繁忙;A judging unit, configured to judge whether the TV network data acquisition server is busy when the TV network data exists;
发送单元,用于当电视网络数据获取服务器的内存使用率大于预设值时,将当前与所述电视网络数据一致的IP列表发送至所述客户端,以供客户端向所述IP列表中的IP获取所述电视网络数据;The sending unit is used to send the current IP list consistent with the TV network data to the client when the memory usage rate of the TV network data acquisition server is greater than a preset value, so that the client can add the IP list to the IP list IP to obtain the TV network data;
输出单元,用于当所述电视网络数据获取服务器的内存使用率小于或等于所述预设值时,获取所述电视网络数据,并将所述电视网络数据发送至所述客户端。An output unit, configured to acquire the TV network data and send the TV network data to the client when the memory usage of the TV network data acquiring server is less than or equal to the preset value.
优选地,所述电视网络数据获取服务器还包括:Preferably, the TV network data acquisition server also includes:
记录模块,用于记录接收到所述电视网络数据获取请求对应的IP信息;A recording module, configured to record the IP information corresponding to the TV network data acquisition request received;
检测模块,用于实时监测所述IP信息对应的客户端是否处于联网状态;A detection module, configured to monitor in real time whether the client corresponding to the IP information is in a networking state;
更新模块,用于删除处于非联网状态的IP信息,以更新所述IP信息;An update module, configured to delete IP information in a non-networked state, so as to update the IP information;
处理模块,用于根据更新后的所述IP信息和所述电视网络数据建立所述IP列表。A processing module, configured to establish the IP list according to the updated IP information and the TV network data.
优选地,所述位置信息包括电视网络信息。Preferably, the location information includes television network information.
本发明实施例通过接收客户端发送的电视网络数据获取请求;根据所述电视网络数据获取请求,判断是否存在对应的电视网络数据;当存在所述电视网络数据时,将所述电视网络数据发送至所述客户端;当不存在所述电视网络数据时,反馈相应的响应结果,以供所述客户端搜索所述电视网络数据,从而实现了电视网络数据的获取。由于本发明通过服务器保存更新的电视网络数据,从而无需每个电视机在获取电视网络数据时,均进入搜索过程,因此本发明提供的电视网络数据获取方法降低了电视网络数据获取的难度。In the embodiment of the present invention, by receiving the TV network data acquisition request sent by the client; according to the TV network data acquisition request, it is judged whether there is corresponding TV network data; when there is the TV network data, the TV network data is sent To the client; when the TV network data does not exist, feed back a corresponding response result for the client to search for the TV network data, thereby realizing the acquisition of the TV network data. Because the present invention saves the updated TV network data through the server, each TV set does not need to enter the search process when acquiring the TV network data, so the TV network data acquisition method provided by the present invention reduces the difficulty of TV network data acquisition.
附图说明Description of drawings
图1为本发明电视网络数据获取方法第一实施例的流程示意图;Fig. 1 is a schematic flow chart of the first embodiment of the television network data acquisition method of the present invention;
图2为本发明电视网络数据获取方法第二实施例的流程示意图;Fig. 2 is a schematic flow chart of the second embodiment of the TV network data acquisition method of the present invention;
图3为图2中发送电视网络数据至客户端的细化流程示意图;FIG. 3 is a schematic diagram of a detailed process for sending TV network data to a client in FIG. 2;
图4为本发明电视网络数据获取服务器第一实施例的功能模块示意图;4 is a schematic diagram of the functional modules of the first embodiment of the television network data acquisition server of the present invention;
图5为本发明电视网络数据获取服务器第二实施例的功能模块示意图;5 is a schematic diagram of the functional modules of the second embodiment of the television network data acquisition server of the present invention;
图6为图5中发送模块的细化功能模块示意图;FIG. 6 is a schematic diagram of a refined functional module of the sending module in FIG. 5;
图7为本发明电视网络数据获取服务器第三实施例的功能模块示意图。Fig. 7 is a schematic diagram of the functional modules of the third embodiment of the television network data acquisition server of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明提供一种电视网络数据获取方法,参照图1,在一实施例中,该电视网络数据获取方法包括:The present invention provides a method for obtaining TV network data. Referring to FIG. 1 , in one embodiment, the method for obtaining TV network data includes:
步骤S10,接收客户端发送的电视网络数据获取请求;所述电视网络数据为电视节目信息或电子节目菜单;Step S10, receiving the TV network data acquisition request sent by the client; the TV network data is TV program information or electronic program menu;
步骤S20,根据所述电视网络数据获取请求获取请求,判断是否存在对应的电视网络数据;若是,则执行步骤S30,若否,则执行步骤S40;Step S20, according to the TV network data acquisition request, judge whether there is corresponding TV network data; if yes, execute step S30, if not, execute step S40;
步骤S30,将所述电视网络数据发送至所述客户端;Step S30, sending the TV network data to the client;
步骤S40,反馈相应的响应结果,以供所述客户端搜索所述电视网络数据。Step S40, feeding back a corresponding response result for the client to search the TV network data.
本发明实施例提供的电视网络数据获取方法主要应用于电视机对节目信息的处理。本实施例中,上述客户端优选为电视机,以下实施例中,将以电视机为例作出详细说明。具体地,电视机在进行节目搜索时或者开始进入频道进行节目播放时,将会触发电视机向服务器发送电视网络数据获取请求,该电视网络数据请求包括位置信息,该位置信息包括电视网络信息,还可以包括地理位置信息。其中地理位置信息为所述客户端当前所处的地理位置信息,上述电视网络信息为所述客户端所在的电视网络。当所述电视处于联网状态时,电视机可以通过定位的方式直接获取到当前所处的地理位置信息,可以通过解析NIT表获取到电视网络信息。The TV network data acquisition method provided by the embodiment of the present invention is mainly applied to the processing of program information by the TV. In this embodiment, the above-mentioned client is preferably a TV set. In the following embodiments, a TV set will be used as an example for detailed description. Specifically, when the TV is searching for a program or starts to enter a channel to play a program, it will trigger the TV to send a TV network data acquisition request to the server, the TV network data request includes location information, and the location information includes TV network information, Geolocation information may also be included. Wherein the geographic location information is the geographic location information where the client is currently located, and the TV network information is the TV network where the client is located. When the TV is in a networked state, the TV can directly obtain the current geographic location information by means of positioning, and can obtain the TV network information by parsing the NIT table.
在服务器接收到上述电视网络数据获取请求时,根据该电视网络数据获取请求查找服务器中是否存在该位置信息对应的电视网络数据,当存在电视网络数据时,将该电视网络数据直接发送给电视机,以供电视机显示该电视网络数据。当服务器中不存在上述电视网络数据时,可以通过消息的形式反馈上述响应结果至电视机,以告知服务器中不存在上述电视网络数据,由电视机按照现有的电视网络数据搜索方案进行电视网络数据搜索。应当说明的是,上述电视网络数据为最新数据,例如是否为1天以内更新的电视网络数据。When the server receives the TV network data acquisition request, it searches the server for TV network data corresponding to the location information according to the TV network data acquisition request, and if there is TV network data, directly sends the TV network data to the TV , for the TV to display the TV network data. When the above-mentioned TV network data does not exist in the server, the above-mentioned response result can be fed back to the TV in the form of a message to inform the server that the above-mentioned TV network data does not exist, and the TV network will be searched according to the existing TV network data by the TV. data search. It should be noted that the above TV network data is the latest data, for example, whether it is TV network data updated within 1 day.
本发明实施例通过接收客户端发送的电视网络数据获取请求;根据所述电视网络数据获取请求,判断是否存在对应的电视网络数据;当存在所述电视网络数据时,将所述电视网络数据发送至所述客户端;当不存在所述电视网络数据时,反馈相应的响应结果,以供所述客户端搜索所述电视网络数据,从而实现了电视网络数据的获取。由于本发明通过服务器保存更新的电视网络数据,从而无需每个电视机在获取电视网络数据时,均进入搜索过程,因此本发明提供的电视网络数据获取方法降低了电视网络数据获取的难度。In the embodiment of the present invention, by receiving the TV network data acquisition request sent by the client; according to the TV network data acquisition request, it is judged whether there is corresponding TV network data; when there is the TV network data, the TV network data is sent To the client; when the TV network data does not exist, feed back a corresponding response result for the client to search for the TV network data, thereby realizing the acquisition of the TV network data. Because the present invention saves the updated TV network data through the server, each TV set does not need to enter the search process when acquiring the TV network data, so the TV network data acquisition method provided by the present invention reduces the difficulty of TV network data acquisition.
进一步地,参照图2,基于上述实施例,本实施例中,上述步骤S40之后还包括:Further, referring to FIG. 2, based on the above-mentioned embodiment, in this embodiment, after the above-mentioned step S40, it also includes:
步骤S50,接收并保存所述客户端发送的数据信息;Step S50, receiving and saving the data information sent by the client;
本实施例中,上述数据信息包括所述客户端搜索到的电视网络数据和所述客户端的位置信息。In this embodiment, the above data information includes the TV network data searched by the client and the location information of the client.
具体地,当电视机在进行电视网络数据获取时,若服务器中不存在电视网络数据,则由电视机自动进行电视数据搜索,当电视机进行电视网络数据搜索后,可以将该电视机将搜索到的电视网络数据发送给服务器,由服务器接收并保存。应当说明的是,本实施例中,为了完成电视网络数据共享,在进行电视网络数据发送时,需发送客户端搜索到的电视网络数据和所述客户端的位置信息。Specifically, when the TV is acquiring TV network data, if there is no TV network data in the server, the TV will automatically search for the TV data. After the TV has searched for the TV network data, the TV can search The received TV network data is sent to the server, received and saved by the server. It should be noted that, in this embodiment, in order to complete the TV network data sharing, when sending the TV network data, it is necessary to send the TV network data searched by the client and the location information of the client.
进一步地,参照图3,基于上述实施例,本实施例中,上述步骤S30包括:Further, referring to FIG. 3 , based on the above embodiment, in this embodiment, the above step S30 includes:
步骤S31,判断服务器是否繁忙;若是,则步骤S32,若否,则执行步骤S33;Step S31, judge whether the server is busy; if yes, then step S32, if not, then execute step S33;
步骤S32,将当前与所述电视网络数据一致的IP列表发送至所述客户端,以供客户端向所述IP列表中的IP获取所述电视网络数据;Step S32, sending the current IP list consistent with the TV network data to the client, so that the client can obtain the TV network data from the IP in the IP list;
步骤S33,获取所述电视网络数据,并将所述电视网络数据发送至所述客户端。Step S33, acquiring the TV network data, and sending the TV network data to the client.
本实施例中,可通过判断内存的使用率判断服务器是否繁忙,即判断服务器的内存使用率、CPU使用率或网络宽带使用率是否大于预设值,该预设值的大小可根据实际需要进行设置,例如可以为百分之六十。以内存使用率为例,具体地,服务器每处理一条请求均需要占用一定的内存,当内存的占用率达到一定程度后,服务器将表现为繁忙状态,此时为了保证服务器正常运行,可以由服务器搜索与该电视网络数据一致的IP列表,并将该IP列表发送给客户端,以供客户端选择其中一个IP发送电视网络数据请求,从而获取该电视网络数据。当内存的占用率未达到一定程度,服务器将表现为空闲状态,此时服务器将获取本地储存的电视网络数据,并将该电视网络数据直接发送给发送电视网络数据获取请求的电视机。应当说明的是,上述IP列表由服务器进行记录并创建。In this embodiment, it is possible to determine whether the server is busy by judging the memory usage rate, that is, to judge whether the memory usage rate, CPU usage rate or network broadband usage rate of the server is greater than a preset value, and the size of the preset value can be determined according to actual needs. The setting may be, for example, 60 percent. Take the memory usage rate as an example. Specifically, every time the server processes a request, it needs to occupy a certain amount of memory. When the memory usage rate reaches a certain level, the server will be in a busy state. At this time, in order to ensure the normal operation of the server, the server can Search for an IP list consistent with the TV network data, and send the IP list to the client, so that the client can select one of the IPs to send a TV network data request to obtain the TV network data. When the memory occupancy rate does not reach a certain level, the server will be in an idle state. At this time, the server will obtain locally stored TV network data, and directly send the TV network data to the TV that sends the TV network data acquisition request. It should be noted that the above IP list is recorded and created by the server.
具体地,基于上述实施例,本实施例中,上述电视网络数据获取方法还包括:Specifically, based on the above-mentioned embodiment, in this embodiment, the above-mentioned TV network data acquisition method further includes:
记录接收到所述电视网络数据获取请求对应的IP信息;Recording the IP information corresponding to the TV network data acquisition request received;
实时监测所述IP信息对应的客户端是否处于联网状态;Real-time monitoring whether the client corresponding to the IP information is in a networked state;
删除处于非联网状态的IP信息,以更新所述IP信息;Delete the IP information in the offline state to update the IP information;
根据更新后的所述IP信息和所述电视网络数据建立所述IP列表。The IP list is established according to the updated IP information and the TV network data.
本实施例中,每当一个电视机从服务器上获取到上述电视网络数据时,均可由服务器进行IP记录,当电视机自动搜索并上报电视网络数据时,也可由服务器进行记录。具体地,当电视机关机时,可以发送一个关机信号至服务器,以供服务器监测服务器所记录IP信息对应的客户端是否处于联网状态。由于在电视机处于非联网状态后,其他电视机将无法从该电视机中获取到上述电视网络信息,本发明实施例,通过服务器监测,并更新上述IP信息,从而保证发送至电视机的IP列表的有效性。应当说明的是,检测客户端是否处于非联网具体可以采用心跳包的形式,因为如果客户端关机前未联网,那么无法捕捉到客户端关机状态。具体IP信息更新方法如下:客户端开机之后,每隔一定时间(比如2分钟)向服务器发送一个心跳包。服务器收到该心跳包就认为该客户端在联网状态,如果服务器超过一定时间(比如2分钟)收不到心跳包,就认为该客户端已经处于未联网状态,并将该客户端的IP地址从IP列表中移除。如果在此之后又收到该电视机的心跳包,说明该客户端又处在联网状态,重现将该客户端IP添加到IP列表中。In this embodiment, whenever a TV obtains the TV network data from the server, the server can perform IP recording, and when the TV automatically searches and reports the TV network data, the server can also record. Specifically, when the TV is turned off, a shutdown signal can be sent to the server, so that the server can monitor whether the client corresponding to the IP information recorded by the server is in a networked state. Since other TVs will not be able to obtain the above-mentioned TV network information from the TV after the TV is in a non-networked state, the embodiment of the present invention monitors and updates the above-mentioned IP information through the server, so as to ensure that the IP information sent to the TV Validity of the list. It should be noted that the detection of whether the client is not connected to the Internet can specifically be in the form of a heartbeat packet, because if the client is not connected to the Internet before it is shut down, the shutdown state of the client cannot be captured. The specific IP information update method is as follows: After the client is turned on, it sends a heartbeat packet to the server at regular intervals (such as 2 minutes). When the server receives the heartbeat packet, it thinks that the client is in the networked state. If the server does not receive the heartbeat packet for a certain period of time (such as 2 minutes), it thinks that the client is not connected to the network, and the IP address of the client is changed from Removed from the IP list. If the heartbeat packet of the TV is received again after this, it means that the client is in the network state again, and the client IP is added to the IP list again.
本发明还提供一种电视网络数据获取服务器,参照图4,在一实施例中,本发明提供的电视网络数据获取服务器包括:The present invention also provides a television network data acquisition server. Referring to FIG. 4 , in one embodiment, the television network data acquisition server provided by the present invention includes:
请求接收模块100,用于接收客户端发送的电视网络数据获取请求;所述电视网络数据为电视节目信息或电子节目菜单;The request receiving module 100 is configured to receive a TV network data acquisition request sent by a client; the TV network data is TV program information or an electronic program menu;
判断模块200,用于根据所述电视网络数据获取请求,判断是否存在对应的电视网络数据;A judging module 200, configured to judge whether there is corresponding TV network data according to the TV network data acquisition request;
发送模块300,用于当存在所述电视网络数据时,将所述电视网络数据发送至所述客户端;当不存在所述电视网络数据时,反馈相应的响应结果,以供所述客户端搜索所述电视网络数据。The sending module 300 is configured to send the TV network data to the client when the TV network data exists; when the TV network data does not exist, feed back a corresponding response result for the client Search the TV network data.
本发明实施例提供的电视网络数据获取服务器主要应用于电视机对节目信息的处理。本实施例中,上述客户端优选为电视机,以下实施例中,将以电视机为例作出详细说明。具体地,电视机在进行节目搜索时或者开始进入频道进行节目播放时,将会触发电视机向电视网络数据获取服务器发送电视网络数据获取请求,该电视网络数据请求包括位置信息,该位置信息包括电视网络信息,还可以包括地理位置信息。其中地理位置信息为所述客户端当前所处的地理位置信息,上述电视网络信息为所述客户端所在的电视网络。当所述电视处于联网状态时,电视机可以通过定位的方式直接获取到当前所处的地理位置信息,可以通过解析NIT表获取到电视网络信息。The television network data acquisition server provided by the embodiment of the present invention is mainly applied to the processing of program information by the television. In this embodiment, the above-mentioned client is preferably a TV set. In the following embodiments, a TV set will be used as an example for detailed description. Specifically, when the TV is searching for a program or starts to enter a channel to play a program, it will trigger the TV to send a TV network data acquisition request to the TV network data acquisition server. The TV network data request includes location information, and the location information includes The TV network information may also include geographic location information. Wherein the geographic location information is the geographic location information where the client is currently located, and the TV network information is the TV network where the client is located. When the TV is in a networked state, the TV can directly obtain the current geographic location information by means of positioning, and can obtain the TV network information by parsing the NIT table.
在电视网络数据获取服务器接收到上述电视网络数据获取请求时,根据该电视网络数据获取请求查找电视网络数据获取服务器中是否存在该位置信息对应的电视网络数据,当存在电视网络数据时,将该电视网络数据直接发送给电视机,以供电视机显示该电视网络数据。当电视网络数据获取服务器中不存在上述电视网络数据时,可以通过消息的形式反馈上述响应结果至电视机,以告知电视网络数据获取服务器中不存在上述电视网络数据,由电视机按照现有的电视网络数据搜索方案进行电视网络数据搜索。应当说明的是,上述电视网络数据为最新数据,例如是否为1天以内更新的电视网络数据。When the TV network data acquisition server receives the TV network data acquisition request, it searches the TV network data acquisition server for the TV network data corresponding to the location information according to the TV network data acquisition request. When there is TV network data, the The TV network data is directly sent to the TV, so that the TV can display the TV network data. When the above-mentioned TV network data does not exist in the TV network data acquisition server, the above-mentioned response result can be fed back to the TV in the form of a message, so as to inform the TV network data acquisition server that the above-mentioned TV network data does not exist, and the TV can follow the existing The TV network data search program conducts a TV network data search. It should be noted that the above TV network data is the latest data, for example, whether it is TV network data updated within 1 day.
本发明实施例通过接收客户端发送的电视网络数据获取请求;根据所述电视网络数据获取请求,判断是否存在对应的电视网络数据;当存在所述电视网络数据时,将所述电视网络数据发送至所述客户端;当不存在所述电视网络数据时,反馈相应的响应结果,以供所述客户端搜索所述电视网络数据,从而实现了电视网络数据的获取。由于本发明通过电视网络数据获取服务器保存更新的电视网络数据,从而无需每个电视机在获取电视网络数据时,均进入搜索过程,因此本发明提供的电视网络数据获取电视网络数据获取服务器降低了电视网络数据获取的难度。In the embodiment of the present invention, by receiving the TV network data acquisition request sent by the client; according to the TV network data acquisition request, it is judged whether there is corresponding TV network data; when there is the TV network data, the TV network data is sent To the client; when the TV network data does not exist, feed back a corresponding response result for the client to search for the TV network data, thereby realizing the acquisition of the TV network data. Since the present invention saves updated TV network data through the TV network data acquisition server, there is no need for each TV set to enter the search process when acquiring TV network data, so the TV network data acquisition server provided by the present invention reduces the Difficulty in obtaining data for TV networks.
进一步地,参照图5,基于上述实施例,本实施例中,上述电视网络数据获取服务器还包括:Further, referring to FIG. 5, based on the above-mentioned embodiment, in this embodiment, the above-mentioned television network data acquisition server further includes:
数据接收模块400,用于接收并保存所述客户端发送的数据信息;A data receiving module 400, configured to receive and save the data information sent by the client;
本实施例中,上述数据信息包括所述客户端搜索到的电视网络数据和所述客户端的位置信息。In this embodiment, the above data information includes the TV network data searched by the client and the location information of the client.
具体地,当电视机在进行电视网络数据获取时,若电视网络数据获取服务器中不存在电视网络数据,则由电视机自动进行电视数据搜索,当电视机进行电视网络数据搜索后,可以将该电视机将搜索到的电视网络数据发送给电视网络数据获取服务器,由电视网络数据获取服务器接收并保存。应当说明的是,本实施例中,为了完成电视网络数据共享,在进行电视网络数据发送时,需发送客户端搜索到的电视网络数据和所述客户端的位置信息。Specifically, when the TV is acquiring TV network data, if there is no TV network data in the TV network data acquisition server, the TV automatically searches for the TV data, and after the TV searches for the TV network data, it can The TV sends the searched TV network data to the TV network data acquisition server, and the TV network data acquisition server receives and saves it. It should be noted that, in this embodiment, in order to complete the TV network data sharing, when sending the TV network data, it is necessary to send the TV network data searched by the client and the location information of the client.
进一步地,参照图6,基于上述实施例,本实施例中,上述发送模块300包括:Further, referring to FIG. 6, based on the above-mentioned embodiment, in this embodiment, the above-mentioned sending module 300 includes:
判断单元301,用于当存在所述电视网络数据时,判断电视网络数据获取服务器是否繁忙;A judging unit 301, configured to judge whether the TV network data acquisition server is busy when the TV network data exists;
发送单元302,用于当电视网络数据获取服务器的内存使用率大于预设值时,将当前与所述电视网络数据一致的IP列表发送至所述客户端,以供客户端向所述IP列表中的IP获取所述电视网络数据;The sending unit 302 is configured to send the current IP list consistent with the TV network data to the client when the memory usage rate of the TV network data acquisition server is greater than a preset value, so that the client can send the IP list to the client. The IP in obtains the TV network data;
输出单元303,用于当所述电视网络数据获取服务器的内存使用率小于或等于所述预设值时,获取所述电视网络数据,并将所述电视网络数据发送至所述客户端。The output unit 303 is configured to acquire the TV network data and send the TV network data to the client when the memory usage rate of the TV network data acquiring server is less than or equal to the preset value.
本实施例中,可通过判断内存的使用率判断服务器是否繁忙,即判断服务器的内存使用率、CPU使用率或网络宽带使用率是否大于预设值,该预设值的大小可根据实际需要进行设置,例如可以为百分之六十。以内存使用率为例,具体地,电视网络数据获取服务器每处理一条请求均需要占用一定的内存,当内存的占用率达到一定程度后,电视网络数据获取服务器将表现为繁忙状态,此时为了保证电视网络数据获取服务器正常运行,可以由电视网络数据获取服务器搜索与该电视网络数据一致的IP列表,并将该IP列表发送给客户端,以供客户端选择其中一个IP发送电视网络数据请求,从而获取该电视网络数据。当内存的占用率未达到一定程度,电视网络数据获取服务器将表现为空闲状态,此时电视网络数据获取服务器将获取本地储存的电视网络数据,并将该电视网络数据直接发送给发送电视网络数据获取请求的电视机。应当说明的是,上述IP列表由电视网络数据获取服务器进行记录并创建。In this embodiment, it is possible to determine whether the server is busy by judging the memory usage rate, that is, to judge whether the memory usage rate, CPU usage rate or network broadband usage rate of the server is greater than a preset value, and the size of the preset value can be determined according to actual needs. The setting may be, for example, 60 percent. Taking the memory usage rate as an example, specifically, each request processed by the TV network data acquisition server needs to occupy a certain amount of memory. When the memory occupancy rate reaches a certain level, the TV network data acquisition server will be in a busy state. To ensure the normal operation of the TV network data acquisition server, the TV network data acquisition server can search for an IP list consistent with the TV network data, and send the IP list to the client, so that the client can choose one of the IPs to send the TV network data request , to get the TV network data. When the memory occupancy rate does not reach a certain level, the TV network data acquisition server will be in an idle state. At this time, the TV network data acquisition server will obtain the locally stored TV network data, and directly send the TV network data to the sending TV network data Get the requested TV set. It should be noted that the above IP list is recorded and created by the television network data acquisition server.
具体地,参照图7,基于上述实施例,本实施例中,上述电视网络数据获取服务器还包括:Specifically, referring to FIG. 7, based on the above-mentioned embodiment, in this embodiment, the above-mentioned television network data acquisition server further includes:
记录模块500,用于记录接收到所述电视网络数据获取请求对应的IP信息;A recording module 500, configured to record the IP information corresponding to receiving the TV network data acquisition request;
检测模块600,用于实时监测所述IP信息对应的客户端是否处于联网状态;A detection module 600, configured to monitor in real time whether the client corresponding to the IP information is in a networked state;
更新模块700,用于删除处于非联网状态的IP信息,以更新所述IP信息;An update module 700, configured to delete the IP information in the offline state, so as to update the IP information;
处理模块800,用于根据更新后的所述IP信息和所述电视网络数据建立所述IP列表。The processing module 800 is configured to establish the IP list according to the updated IP information and the TV network data.
本实施例中,每当一个电视机从电视网络数据获取服务器上获取到上述电视网络数据时,均可由电视网络数据获取服务器进行IP记录,当电视机自动搜索并上报电视网络数据时,也可由电视网络数据获取服务器进行记录。具体地,当电视机关机时,可以发送一个关机信号至电视网络数据获取服务器,以供电视网络数据获取服务器监测电视网络数据获取服务器所记录IP信息对应的客户端是否处于联网状态。由于在电视机处于非联网状态状态后,其他电视机将无法从该电视机中获取到上述电视网络信息,本发明实施例,通过电视网络数据获取服务器监测,并更新上述IP信息,从而保证发送至电视机的IP列表的有效性。应当说明的是,检测客户端是否处于非联网状态具体可以采用心跳包的形式,因为如果客户端关机前未联网,那么无法捕捉到客户端关机状态。具体IP信息更新方法如下:客户端开机之后,每隔一定时间(比如2分钟)向电视网络数据获取服务器发送一个心跳包。电视网络数据获取服务器收到该心跳包就认为该客户端在联网状态,如果电视网络数据获取服务器超过一定时间(比如2分钟)收不到心跳包,就认为该客户端已经处于未联网状态,并将该客户端的IP地址从IP列表中移除。如果在此之后又收到该电视机的心跳包,说明该客户端又处在联网状态,重现将该客户端IP添加到IP列表中。In this embodiment, whenever a television obtains the above-mentioned television network data from the television network data acquisition server, the IP recording can be performed by the television network data acquisition server, and when the television automatically searches and reports the television network data, it can also be recorded by The television network data acquisition server records. Specifically, when the TV is turned off, a shutdown signal can be sent to the TV network data acquisition server, so that the TV network data acquisition server can monitor whether the client corresponding to the IP information recorded by the TV network data acquisition server is in a networked state. Since other TVs will not be able to obtain the above-mentioned TV network information from the TV after the TV is in a non-networked state, the embodiment of the present invention monitors and updates the above-mentioned IP information through the TV network data acquisition server, thereby ensuring the transmission Validity of the IP list to the TV. It should be noted that the heartbeat packet may be used to detect whether the client is not connected to the Internet, because if the client is not connected to the Internet before the client is shut down, the shutdown state of the client cannot be captured. The specific IP information update method is as follows: after the client is turned on, it sends a heartbeat packet to the TV network data acquisition server at regular intervals (such as 2 minutes). When the TV network data acquisition server receives the heartbeat packet, it thinks that the client is in the networked state. If the TV network data acquisition server does not receive the heartbeat packet for a certain period of time (such as 2 minutes), it considers that the client is not in the networked state. And remove the client's IP address from the IP list. If the heartbeat packet of the TV is received again after this, it means that the client is in the network state again, and the client IP is added to the IP list again.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (6)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410852065.9A CN105812848B (en) | 2014-12-31 | 2014-12-31 | TV network data capture method and server |
PCT/CN2015/092976 WO2016107258A1 (en) | 2014-12-31 | 2015-10-27 | Method and server for acquiring television network data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410852065.9A CN105812848B (en) | 2014-12-31 | 2014-12-31 | TV network data capture method and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105812848A CN105812848A (en) | 2016-07-27 |
CN105812848B true CN105812848B (en) | 2019-08-16 |
Family
ID=56284157
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410852065.9A Expired - Fee Related CN105812848B (en) | 2014-12-31 | 2014-12-31 | TV network data capture method and server |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105812848B (en) |
WO (1) | WO2016107258A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1604569A (en) * | 2004-10-29 | 2005-04-06 | 清华大学 | A Robust Peer-to-Peer Stream Scheduling Method |
JP2006203713A (en) * | 2005-01-24 | 2006-08-03 | Era Digital Media Co Ltd | Broadcasting of digital interactive television program and identification management method |
CN102045403A (en) * | 2010-12-29 | 2011-05-04 | 成都市华为赛门铁克科技有限公司 | Method, device and system for processing data of distributed network |
CN103024570A (en) * | 2012-12-12 | 2013-04-03 | 深圳市九洲电器有限公司 | Television program searching method, STB (Set Top Box) and shared server |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030042524A (en) * | 2001-11-23 | 2003-06-02 | 엘지전자 주식회사 | Method for watching broadcasting programs by the electronic program guide |
KR100760244B1 (en) * | 2006-01-24 | 2007-09-19 | 주식회사 알티캐스트 | TV program organization information reservation system linked with broadcasting company and internet contents and reservation method using the same |
CN101242484A (en) * | 2008-03-13 | 2008-08-13 | 深圳市同洲电子股份有限公司 | Processing method, system, server, and STB for electronic program guide information |
CN102209267B (en) * | 2011-05-13 | 2014-11-26 | 深圳Tcl新技术有限公司 | Method for acquiring multi-frequency-point EPG (Electronic Program Guide) information |
-
2014
- 2014-12-31 CN CN201410852065.9A patent/CN105812848B/en not_active Expired - Fee Related
-
2015
- 2015-10-27 WO PCT/CN2015/092976 patent/WO2016107258A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1604569A (en) * | 2004-10-29 | 2005-04-06 | 清华大学 | A Robust Peer-to-Peer Stream Scheduling Method |
JP2006203713A (en) * | 2005-01-24 | 2006-08-03 | Era Digital Media Co Ltd | Broadcasting of digital interactive television program and identification management method |
CN102045403A (en) * | 2010-12-29 | 2011-05-04 | 成都市华为赛门铁克科技有限公司 | Method, device and system for processing data of distributed network |
CN103024570A (en) * | 2012-12-12 | 2013-04-03 | 深圳市九洲电器有限公司 | Television program searching method, STB (Set Top Box) and shared server |
Also Published As
Publication number | Publication date |
---|---|
WO2016107258A1 (en) | 2016-07-07 |
CN105812848A (en) | 2016-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9911057B2 (en) | Method and apparatus for image collection and analysis | |
CN104066009B (en) | program identification method, device, terminal, server and system | |
CN104883618B (en) | Programme televised live tries method, apparatus and system | |
EP2487918A1 (en) | Image sampling from multicast streams | |
US8831629B2 (en) | System and method for identifying mobile communication devices | |
CN101035031A (en) | Method and device for detecting the number of the shared access host | |
WO2019119633A1 (en) | Live video transcoding device, method and computer readable storage medium | |
US11824909B2 (en) | Device and method for transmitting or receiving media resource identification information in communication system | |
CN105338564A (en) | Client adaption method, server and system, and client | |
CN107992489B (en) | Data processing method and server | |
CN113825000B (en) | Screen projection method and device, electronic equipment and storage medium | |
US20160099855A1 (en) | Hybrid content delivery system | |
CN105812848B (en) | TV network data capture method and server | |
CN106230658A (en) | A kind of method and apparatus monitoring the network equipment | |
CN104796388B (en) | A kind of method that the network equipment is scanned, relevant apparatus and system | |
WO2012041032A1 (en) | Method for investigating audience rating, terminal and system thereof | |
CN105872742A (en) | Network video downloading method and user terminal device | |
CN103914477B (en) | A kind of data processing method and device | |
US20150288731A1 (en) | Content switching method and apparatus | |
CN102428664B (en) | Method for providing multicast services | |
CN106330548B (en) | Flow statistical method, device and system | |
CN106257461B (en) | Data storage method and device | |
CN115022676B (en) | Video stream pushing method and device, electronic equipment and readable medium | |
CN102104803A (en) | Method and system for implementing digital television service tracking diagnosis | |
CN104023259A (en) | Method and device for set top box to obtain DSM-CC application program rapidly |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190816 |