CN105744369A - Digital TV EPG information synchronization method based on iOS device - Google Patents

Digital TV EPG information synchronization method based on iOS device Download PDF

Info

Publication number
CN105744369A
CN105744369A CN201610111578.3A CN201610111578A CN105744369A CN 105744369 A CN105744369 A CN 105744369A CN 201610111578 A CN201610111578 A CN 201610111578A CN 105744369 A CN105744369 A CN 105744369A
Authority
CN
China
Prior art keywords
epg information
set top
ios device
top box
version number
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.)
Pending
Application number
CN201610111578.3A
Other languages
Chinese (zh)
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201610111578.3A priority Critical patent/CN105744369A/en
Publication of CN105744369A publication Critical patent/CN105744369A/en
Pending legal-status Critical Current

Links

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/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/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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention relates to the technical field of set-top boxes, and provides a digital TV EPG information synchronization method based on an iOS device, in order to solve the problem of updating EPG information when the iOS device and a plurality of set-top boxes are located in the same local area network. The method comprises the steps that the iOS device communicates with the set-top boxes; the iOS device receives Socket broadcast messages sent by different set-top boxes in the same local area network, analyzes and stores the messages; when the set-top boxes and the iOS device are in a long-term connection state, version numbers of the set-top boxes stored in the iOS device are updated; and the EPG information of the set-top boxes stored in the iOS device is continuously stored. The digital TV EPG information synchronization method in the technical scheme provided by the invention is used for solving the problem of updating the EPG information when the iOS device and the plurality of set-top boxes are located in the same local area network, as well as avoiding screen blockage and user operation delay problems caused by real-time display of the EPG information on the iOS device.

Description

Digital TV EPG information synchronous method based on iOS device
Technical field
The invention belongs to set-top box technique field, particularly to a kind of digital TV EPG information synchronous method based on iOS device.
Background technology
At present, Intelligent set top box obtains large-scale popularization and application, its function is also more and more diversified, Set Top Box can be controlled eventually by user by mobile terminals such as mobile phones, to replace traditional remote controller, specifically, by showing all channel program information of Set Top Box on the mobile terminals such as mobile phone, user can conveniently preserved program, this greatly improves Consumer's Experience.
When Intelligent set top box being controlled by mobile terminals such as mobile phones, data volume big (a plurality of up to 4000) due to EPG programme information, download EPG information each time and all can continue several seconds, and the EPG information of set top box side is likely to update at any time, so mobile terminal is also required to real-time update actual program.Further, under same LAN, it is understood that there may be multiple Set Top Boxes, so EPG programme information is likely to occur entanglement, if processed one by one and probably due to data volume is excessive and take bigger internal memory, and take processor for a long time and can cause that postponing occurs in the operation of user, have a strong impact on the experience of user.
Summary of the invention
[solving the technical problem that]
It is an object of the invention to provide a kind of digital TV EPG information synchronous method based on iOS device, to solve the EPG information replacement problem when iOS device and multiple stage Set Top Box are under same LAN.
[technical scheme]
The present invention is achieved by the following technical solutions.
The present invention relates to a kind of digital TV EPG information synchronous method based on iOS device, the method comprising the steps of:
A, set-top-box opening externally send Socket broadcast every interval one section default after starting, and described Socket broadcast includes IP address and the implementor name of Set Top Box;
B, iOS device receive the Socket broadcast that under same LAN, different Set Top Boxes send, and resolve Socket broadcast and obtain IP address and the implementor name of each Set Top Box, are saved in Set Top Box IP list in the IP address of each Set Top Box and implementor name;
C, when Set Top Box and iOS device are in long connection, iOS device sends http request to this Set Top Box, iOS device obtains the version number of the EPG information of this Set Top Box version number's contrast of the EPG information corresponding with the IP address of this Set Top Box in NSUserDefault, if the version number of the EPG information that the IP address of this Set Top Box is corresponding is empty or the version number of the version number of the EPG information of Set Top Box that the gets EPG information corresponding more than this IP address in NSUserDefault in NSUserDefault, then iOS device is stored in NSUserDefault by downloading the EPG information version number obtained and performs step D;
The Set Top Box that D, iOS device are connected with iOS device length again in step C sends http request, iOS device obtains the EPG information of this Set Top Box and the EPG information got is write in iOS system cache object NSMutableData, then this EPG information is transferred in the sandbox of iOS device.
nullAs one preferred embodiment,In described step C,When Set Top Box and iOS device are in long connection,IOS device sends http request every interval one section default to this Set Top Box,IOS device obtains the version number of the EPG information of this Set Top Box version number's contrast of the EPG information corresponding with the IP address of this Set Top Box in NSUserDefault,If the version number of the EPG information that the IP address of this Set Top Box is corresponding is empty or the version number of the version number of the EPG information of Set Top Box that the gets EPG information corresponding more than this IP address in NSUserDefault in NSUserDefault,Then iOS device is stored in NSUserDefault by downloading the EPG information version number obtained and performs step D.
As another preferred embodiment, in described step C, when the Set Top Box being connected with iOS device length disconnects and is switched to new Set Top Box, iOS device sends http request to the Set Top Box after switching, if the version number of the EPG information that the IP address of this Set Top Box is corresponding is empty or the version number of the version number of the EPG information of Set Top Box that the gets EPG information corresponding more than this IP address in NSUserDefault in NSUserDefault, then iOS device is stored in NSUserDefault by downloading the EPG information version number obtained and performs step D.
As another preferred embodiment, in described step B, receive first IP address is connected by iOS device by default, is stored in iOS system cache object NSUserDefault by this IP address with the form of key-value pair and keeps length to be connected with this IP address.
As another preferred embodiment, described step B also includes, and refreshes the Set Top Box IP list in iOS device every interval one section default.
[beneficial effect]
The technical scheme that the present invention proposes has the advantages that
The EPG information of different Set Top Boxes is carried out labelling by the IP address of Set Top Box by the present invention, only the Set Top Box being connected with iOS device length is carried out EPG information renewal every time, solve the EPG information replacement problem when iOS device and multiple stage Set Top Box are under same LAN, it also avoid the EPG information card screen that display is caused in real time in iOS device, user operation delay issue.
Accompanying drawing explanation
The flow chart of the digital TV EPG information synchronous method based on iOS device that Fig. 1 provides for embodiments of the invention one.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly, the specific embodiment of the present invention will be carried out clear, complete description below.
Embodiment one
The flow chart of the digital TV EPG information synchronous method based on iOS device that Fig. 1 provides for the embodiment of the present invention one.As it is shown in figure 1, each step, to step S4, is described in detail by the method comprising the steps of S1 separately below.
Step S1: realize communicating between iOS device with Set Top Box.
In step S1, when Set Top Box is connected under same LAN with iOS device, set-top-box opening externally sends Socket broadcast every interval one section default after starting, iOS device passes through udp protocol, it is able to receive that the Socket broadcast that Set Top Box sends, wherein Socket broadcast includes IP address and the implementor name of Set Top Box, and in the present embodiment, iOS device can be have smart mobile phone or the panel computer of iOS system.
Step S2:iOS equipment receives the Socket broadcast that under same LAN, different Set Top Boxes send, and resolves and preserve this message.
In step S2, iOS device receives the Socket broadcast that under same LAN, different Set Top Boxes send, resolve Socket broadcast and obtain IP address and the implementor name of each Set Top Box, the IP address of each Set Top Box and implementor name are saved in Set Top Box IP list, wherein, receive first IP address is connected by iOS device by default, is stored in iOS system cache object NSUserDefault by this IP address with the form of key-value pair and keeps length to be connected with this IP address.In the present embodiment, Set Top Box IP list refreshed once every 5 seconds, disconnect to empty in time, when Set Top Box IP list is not empty, iOS device remains and is connected with one of them IP address, so when the IP address being connected with iOS device switches over, just the set-top box EPG information of the IP address being switched to is carried out coupling etc. and process, and cover the IP key-value pair in iOS system cache object NSUserDefault.
Step S3: when Set Top Box and iOS device are in long connection, the version number of this Set Top Box preserved in iOS device is updated.
In step S3, when Set Top Box and iOS device are in long connection, iOS device sends http request to this Set Top Box, iOS device obtains the version number of the EPG information of this Set Top Box version number's contrast of the EPG information corresponding with the IP address of this Set Top Box in NSUserDefault, if the version number of the EPG information that the IP address of this Set Top Box is corresponding is empty or the version number of the version number of the EPG information of Set Top Box that the gets EPG information corresponding more than this IP address in NSUserDefault in NSUserDefault, then iOS device is stored in NSUserDefault by downloading the EPG information version number obtained and performs step S4.nullNeed explanation,In this step,In order to keep EPG information to synchronize,With _ patch_once (dispatch_once_t*predicate,Dispatch_block_tblock) (method generating single example) instance object EPGMannager,And initialize an intervalometer,A http request is carried out every 7 seconds,IOS device obtains the version number of the EPG information of this Set Top Box version number's contrast of the EPG information corresponding with the IP address of this Set Top Box in NSUserDefault,If the version number of the EPG information that the IP address of this Set Top Box is corresponding is empty or the version number of the version number of the EPG information of Set Top Box that the gets EPG information corresponding more than this IP address in NSUserDefault in NSUserDefault,Then iOS device is stored in NSUserDefault by downloading the EPG information version number obtained and performs step S4.Additionally, when the IP address being connected with iOS device sends switching, iOS device obtains the version number of the EPG information of this Set Top Box version number's contrast of the EPG information corresponding with the IP address of this Set Top Box in NSUserDefault, if the version number of the EPG information that the IP address of this Set Top Box is corresponding is empty or the version number of the version number of the EPG information of Set Top Box that the gets EPG information corresponding more than this IP address in NSUserDefault in NSUserDefault, then iOS device is stored in NSUserDefault by downloading the EPG information version number obtained and performs step S4.
Step S4: continue to update the EPG information of this Set Top Box preserved in iOS device.
In step S4, the Set Top Box that iOS device is connected with iOS device length again in step C sends http request, iOS device obtains the EPG information of this Set Top Box and writes in iOS system cache object NSMutableData by the EPG information got, then this EPG information is transferred in the sandbox of iOS device, and this EPG information is saved as db file with the IP address file name associated by current EPG information, if having there is db file of the same name, covered, and current EPG information is stored in IP address corresponding in NSUserDefault.
As can be seen from the above embodiments, the EPG information of different Set Top Boxes is carried out labelling by the IP address of Set Top Box by the embodiment of the present invention, only the Set Top Box being connected with iOS device length is carried out EPG information renewal every time, solve the EPG information replacement problem when iOS device and multiple stage Set Top Box are under same LAN, it also avoid the EPG information card screen that display is caused in real time in iOS device, user operation delay issue.
It is to be appreciated that the embodiment of foregoing description is a part of embodiment of the present invention, rather than whole embodiment, neither limitation of the present invention.Based on embodiments of the invention, the every other embodiment that those of ordinary skill in the art obtain under not paying creative work premise, broadly fall into protection scope of the present invention.

Claims (5)

1. the digital TV EPG information synchronous method based on iOS device, it is characterised in that include step:
A, set-top-box opening externally send Socket broadcast every interval one section default after starting, and described Socket broadcast includes IP address and the implementor name of Set Top Box;
B, iOS device receive the Socket broadcast that under same LAN, different Set Top Boxes send, and resolve Socket broadcast and obtain IP address and the implementor name of each Set Top Box, are saved in Set Top Box IP list in the IP address of each Set Top Box and implementor name;
C, when Set Top Box and iOS device are in long connection, iOS device sends http request to this Set Top Box, iOS device obtains the version number of the EPG information of this Set Top Box version number's contrast of the EPG information corresponding with the IP address of this Set Top Box in NSUserDefault, if the version number of the EPG information that the IP address of this Set Top Box is corresponding is empty or the version number of the version number of the EPG information of Set Top Box that the gets EPG information corresponding more than this IP address in NSUserDefault in NSUserDefault, then iOS device is stored in NSUserDefault by downloading the EPG information version number obtained and performs step D;
The Set Top Box that D, iOS device are connected with iOS device length again in step C sends http request, iOS device obtains the EPG information of this Set Top Box and the EPG information got is write in iOS system cache object NSMutableData, then this EPG information is transferred in the sandbox of iOS device.
null2. the digital TV EPG information synchronous method based on iOS device according to claim 1,It is characterized in that in described step C,When Set Top Box and iOS device are in long connection,IOS device sends http request every interval one section default to this Set Top Box,IOS device obtains the version number of the EPG information of this Set Top Box version number's contrast of the EPG information corresponding with the IP address of this Set Top Box in NSUserDefault,If the version number of the EPG information that the IP address of this Set Top Box is corresponding is empty or the version number of the version number of the EPG information of Set Top Box that the gets EPG information corresponding more than this IP address in NSUserDefault in NSUserDefault,Then iOS device is stored in NSUserDefault by downloading the EPG information version number obtained and performs step D.
3. the digital TV EPG information synchronous method based on iOS device according to claim 1 and 2, it is characterized in that in described step C, when the Set Top Box being connected with iOS device length disconnects and is switched to new Set Top Box, iOS device sends http request to the Set Top Box after switching, if the version number of the EPG information that the IP address of this Set Top Box is corresponding is empty or the version number of the version number of the EPG information of Set Top Box that the gets EPG information corresponding more than this IP address in NSUserDefault in NSUserDefault, then iOS device is stored in NSUserDefault by downloading the EPG information version number obtained and performs step D.
4. the digital TV EPG information synchronous method based on iOS device according to claim 1, it is characterized in that in described step B, receive first IP address is connected by iOS device by default, is stored in iOS system cache object NSUserDefault by this IP address with the form of key-value pair and keeps length to be connected with this IP address.
5. the digital TV EPG information synchronous method based on iOS device according to claim 1 or 4, it is characterised in that described step B also includes, refreshes the Set Top Box IP list in iOS device every interval one section default.
CN201610111578.3A 2016-02-29 2016-02-29 Digital TV EPG information synchronization method based on iOS device Pending CN105744369A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610111578.3A CN105744369A (en) 2016-02-29 2016-02-29 Digital TV EPG information synchronization method based on iOS device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610111578.3A CN105744369A (en) 2016-02-29 2016-02-29 Digital TV EPG information synchronization method based on iOS device

Publications (1)

Publication Number Publication Date
CN105744369A true CN105744369A (en) 2016-07-06

Family

ID=56249644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610111578.3A Pending CN105744369A (en) 2016-02-29 2016-02-29 Digital TV EPG information synchronization method based on iOS device

Country Status (1)

Country Link
CN (1) CN105744369A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815162A (en) * 2010-04-27 2010-08-25 四川长虹电器股份有限公司 System for remote control of programs
WO2010115941A1 (en) * 2009-04-08 2010-10-14 Vidiactive Limited An improved television and video system
CN103369385A (en) * 2012-03-29 2013-10-23 东方有线网络有限公司 Method for displaying set-top box program information and controlling set-top box based on intelligent terminal
CN104284227A (en) * 2013-07-05 2015-01-14 上海帕科软件科技有限公司 Mobile phone remote control television system
CN105163173A (en) * 2015-08-27 2015-12-16 四川长虹电器股份有限公司 Full-text retrieval method based on channel programme information in intelligent set top box

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010115941A1 (en) * 2009-04-08 2010-10-14 Vidiactive Limited An improved television and video system
CN101815162A (en) * 2010-04-27 2010-08-25 四川长虹电器股份有限公司 System for remote control of programs
CN103369385A (en) * 2012-03-29 2013-10-23 东方有线网络有限公司 Method for displaying set-top box program information and controlling set-top box based on intelligent terminal
CN104284227A (en) * 2013-07-05 2015-01-14 上海帕科软件科技有限公司 Mobile phone remote control television system
CN105163173A (en) * 2015-08-27 2015-12-16 四川长虹电器股份有限公司 Full-text retrieval method based on channel programme information in intelligent set top box

Similar Documents

Publication Publication Date Title
CN103181143B (en) Method and apparatus for playing streaming media file
CN109104473B (en) Control method, control device, control system and gateway
CN108933948B (en) Video playing progress synchronization method and device
CN106385632B (en) Video broadcasting method and video play device
CN103024590B (en) The method and system of a kind of intelligent terminal and intelligent television video calling
CN105187871B (en) A kind of method and system of the mobile terminal data transmission television terminal based on NFC
CN103647991A (en) Method and system for sharing video in intelligent television
CN105208434A (en) Media projection method, media projection equipment, control terminal, and cloud server
CN105100832A (en) Multimedia resource pushing method and device
CN102421028A (en) Control method for intelligent television (TV), intelligent TV, remote control device and intelligent TV control system
CN103491122A (en) Multiple screen display interactive system and airsharing method
CN104618801A (en) Method and system for unified operation of application by utilizing mobile phone and set-top box as well as set-top box
CN112350981A (en) Method, device and system for switching communication protocol
CN104980326A (en) Method and device for sharing application content between terminal equipment
CN103108232A (en) Method and system based on interaction control of mobile phone and television
CN103929667A (en) Multi-screen interaction method, server and multi-screen interaction system
CN103618926A (en) Method and device for controlling displaying application webpage of intelligent television
CN104219548A (en) Method for controlling intelligent set-top box to switch channels, and channel switching system
CN103648022A (en) Method and device for displaying name of connecting device in smart television
CN104038812A (en) Information push method and device
WO2017000447A1 (en) Control method, device and system for intelligent household appliance
CN104639976A (en) Method for synchronizing programs of set top box and mobile terminal, set top box and mobile terminal
CN104618811A (en) Smart television, and method and device for exhibiting CP (computer program) contents in smart television
CN102663882B (en) Method and system for remotely controlling external screen through mobile terminal
CN110225395B (en) Program content display method, set top box terminal and program management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160706

RJ01 Rejection of invention patent application after publication