CN103096159A - Method and system of digital television data transmission - Google Patents

Method and system of digital television data transmission Download PDF

Info

Publication number
CN103096159A
CN103096159A CN2013100544345A CN201310054434A CN103096159A CN 103096159 A CN103096159 A CN 103096159A CN 2013100544345 A CN2013100544345 A CN 2013100544345A CN 201310054434 A CN201310054434 A CN 201310054434A CN 103096159 A CN103096159 A CN 103096159A
Authority
CN
China
Prior art keywords
layer
data
application programming
programming interfaces
digital
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
CN2013100544345A
Other languages
Chinese (zh)
Other versions
CN103096159B (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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia Technology 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 Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201310054434.5A priority Critical patent/CN103096159B/en
Publication of CN103096159A publication Critical patent/CN103096159A/en
Application granted granted Critical
Publication of CN103096159B publication Critical patent/CN103096159B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a system of digital television data transmission. The method comprises the following steps: (1) classifying data information in digital television service function, wherein an application program interface layer of each classification is provided with a corresponding interface, and a user sends a request to a corresponding interface according to the classification of request information of the user; (2) a local view call hierarchy receiving the request from the application program interface layer, acquiring data from a matching layer after analysis, packaging the data from the matching layer, and sending the data to the application program interface layer; (3) the application program interface layer feeding the data to the user. Thus, conveying work of a whole data flow is completed. According to the method of the digital television data transmission, layered structure designs are respectively adopted for the application program interface layer and the local view call hierarchy, clear interfaces are defined between layers, and therefore code coupling degree is reduced, code maintenance difficulty is reduced, and asynchronous data transmission is effectively realized.

Description

Digital TV data transmission method and system
Technical field
The present invention relates to a kind of digital TV data transmission method and system, belong to the digital television techniques field.
Background technology
Traditional digital TV data transmission all is based on same design language C or C++, does not relate to the data transmission mechanism between C or C++ and JAVA, can't complete the application of intelligent digital television business.More and more universal based on intelligent operating system Android terminal equipment at present, but the terminal equipment that can support at present traditional full digital tv business does not have substantially.There are the characteristics such as data volume is large, asynchronous transmission in traditional digital television business, and how that the digital television business data are stable between bottom (C language or C Plus Plus) and application layer (Java language), transmission fast is the problem that present intelligent digital television terminal all faces.
More existing digital television protocol transfer of data based on Android are to realize by the mode that socket communicates by letter.But, use the shortcoming of socket communication mechanism to be that AM/BAM all will set up a task, foreground task is constantly sent out the state that the requesting query current data is prepared, and then obtains data by socket, and the task deal with data is set up on the backstage.Existing data transmission mechanism does not also meet Android hierarchical design theory, and has increased the burden of Internet Transmission.Relate in addition the problem of data packing due to Internet Transmission, cause sales volume lower.
Based on this, how to invent a kind of digital TV data transmission method and system, just the digital television business data are stablized between bottom and application layer, are transmitted fast, are the problems that the present invention mainly solves.
Summary of the invention
The present invention transmits in order to solve existing data with Digital Television of intelligent operating system the problem that faces between bottom and application layer, a kind of digital TV data transmission method and system are provided, and just the digital television business data are stablized between bottom and application layer, are transmitted fast.
In order to solve the problems of the technologies described above, the present invention is achieved by the following technical solutions:
A kind of digital TV data transmission method comprises the following steps:
(1), the data message in the digital television business function is classified, and each class has corresponding interface in the application programming interfaces layer, and the user sends request by the corresponding interface of the classification of its solicited message;
(2), this locality call layer receive come from the request of application programming interfaces layer and analyze after, obtain data from adaptation layer, then with its encapsulation and be sent to the application programming interfaces layer;
(3), the application programming interfaces layer to the user, is completed the transmission work of whole data flow with data feedback.
Further, in step (2), this locality is called layer and is comprised data analysis layer and data transfer layer, and described data analysis layer and data transfer layer call layer in this locality have corresponding interface, this locality is called layer and is come from the request of application programming interfaces layer by the interface reception of data transfer layer, by the data analysis layer analysis and obtain data from adaptation layer, then with after the data encapsulation of obtaining again the interface by data transfer layer be sent to the application programming interfaces layer.
Further again, described data analysis layer starts Hook Mechanism and obtains data from adaptation layer.
Further, described this locality call layer receive come from the request of application programming interfaces layer after, Hook Function of data analysis layer registration, then call the power function acquisition request data in adaptation layer, after the adaptation layer return data, data are passed to this locality by Hook Function call layer.
Preferably, data analysis layer only need be registered Hook Function one time, for chartered Hook Function, directly calls during use.
Wherein, described application programming interfaces layer is the java application interface layer.
Based on above-mentioned a kind of digital TV data transmission method, the present invention provides a kind of digital TV data transmission system simultaneously, comprising:
The application programming interfaces layer, the data message in the digital television business function is classified, and each class has corresponding interface in the application programming interfaces layer;
Layer is called in this locality, be used for to receive to come from the request of application programming interfaces layer, and after analyzing, obtains data from adaptation layer, then with its encapsulation and be sent to the application programming interfaces layer;
Adaptation layer is completed the extraction work of digital television business data.
Further, described this locality is called layer and is comprised data analysis layer and data transfer layer, and described data analysis layer and data transfer layer call layer corresponding interface is arranged in this locality.
Further again, described data analysis layer also comprises encapsulation unit, is used for the data encapsulation of obtaining.
Wherein, described application programming interfaces layer is the java application interface layer.
Compared with prior art, advantage of the present invention and good effect are: digital TV data transmission method of the present invention calls layer and has adopted respectively hierarchical architecture design in application programming interfaces layer and this locality, define interface clearly between each layer, the code degree of coupling is reduced, each layer modification all do not affect other layer design, reduced the difficulty of code maintenance.The second, adopted Hook Mechanism, effectively solve the simultaneous asynchronous data transmissions problem.The present invention has abandoned the socket communication mechanism, uses Hook Mechanism to carry out transfer of data, and such benefit is that the upper strata does not need poll constantly to inquire about the state that bottom data obtains, and only needs to send ask and wait for that the bottom data notice gets final product.
After reading by reference to the accompanying drawings the detailed description of embodiment of the present invention, it is clearer that the other features and advantages of the invention will become.
Description of drawings
Fig. 1 is the schematic diagram of a kind of embodiment of a kind of digital TV data transmission method proposed by the invention;
Fig. 2 is the schematic diagram of a kind of embodiment of a kind of digital TV data transmission method proposed by the invention;
Fig. 3 is the block diagram of a kind of embodiment of a kind of digital TV data transmission method proposed by the invention;
Fig. 4 is the block diagram of a kind of embodiment of a kind of digital TV data transmission method proposed by the invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in more detail.
A kind of digital TV data transmission method and the system of providing is provided, and just the digital television business data are stablized between bottom and application layer, are transmitted fast.
Embodiment one, and a kind of digital TV data transmission method in the present embodiment comprises the following steps:
S1, the data message in the digital television business function is classified, and each class has corresponding interface in the application programming interfaces layer, the user sends request by the corresponding interface of the classification of its solicited message.
application programming interfaces (API) offer Java and use the corresponding interface that obtains data, the interface design philosophy has been adopted in application programming interfaces layer design in the present embodiment, data message in the digital television business function is classified, and each class has corresponding interface in the application programming interfaces layer, proposition comprises conditional access (CA), search, electronic program guides, a plurality of Interface interfaces such as frequency locking module, shown in Figure 1, Interface interface for CA, shown in Figure 2, Interface interface etc. for search, in this explanation for example that differs.The application interface layer adopts classification design, and defines interface clearly, and the code degree of coupling reduces, and does not influence each other between all kinds of, has ensured digital television business data stable transfer between bottom and application layer.
S2, this locality call layer receive come from the request of application programming interfaces layer and analyze after, obtain data from adaptation layer, then with its encapsulation and be sent to the application programming interfaces layer.
This locality is called layer (JNI) and mainly is responsible for the functions such as the message communication of data between bottom and application layer, data-moving, it is the key that realizes the transmission of digital television business performance data, because the request that comes from member's routine interface layer is classified, reduce the local data intractability that calls layer, accelerated data transmission bauds.
Adaptation layer (Adapter Layer) is mainly completed the extraction work of digital television business data, and all data are all to obtain by this module.
S3, application programming interfaces layer to the user, are completed the transmission work of whole data flow with data feedback.
The digital TV data transmission method of the present embodiment is particularly useful for having the transfer of data of the intelligent digital television system of high level operating system, take intelligent digital television with Android system as example, its bottom generally is based on C language or C Plus Plus, and application layer generally is based on the Java language realization, therefore, adopt the technical scheme of the present embodiment to solve the data stabilization that how to realize between bilingual, the problem of transmitting fast.
For the local functional interface that calls layer of further clear definition, improve its division of labor, shown in Figure 3, in step S2, this locality is called layer and is comprised data analysis layer and data transfer layer, and described data analysis layer and data transfer layer call layer in this locality have corresponding interface, this locality is called layer and is come from the request of application programming interfaces layer by the interface reception of data transfer layer, by the data analysis layer analysis and obtain data from adaptation layer, then with after the data encapsulation of obtaining again the interface by data transfer layer be sent to the application programming interfaces layer.layer is called by carrying out the different further layerings of task in this locality, each sublayer is separate, processing and the transmission of data completed in cooperation, the modification of arbitrary sublayer can not have influence on other sublayers yet, further reduced the code degree of coupling, layer is called by providing access interface clearly to other layers in this locality, realized separate between each layer, reduced the code degree of coupling between each layer, solve traditional Socket treatment mechanism and data can have been mixed packing, in case data mechanism change, will relate to Java, JNI and bottom many places modification, increase the problem of the difficulty of code maintenance.
In order to solve the asynchronous transmission problem of digital TV data, data analysis layer starts Hook Mechanism and obtains data from adaptation layer.
Hook Mechanism specific implementation process is, shown in Figure 4, this locality call layer receive come from the request of application programming interfaces layer after, Hook Function of data analysis layer registration, then call the power function acquisition request data in adaptation layer, after the adaptation layer return data, data are passed to this locality by Hook Function call layer, certainly, in order to simplify step, data analysis layer only need be registered Hook Function one time, for chartered Hook Function, directly calls during use.By adopting Hook Mechanism, effectively solve the simultaneous asynchronous data transmissions problem in the present embodiment.Therefore adopt Hook Function to obtain data, the upper strata does not need poll constantly to inquire about the state that bottom data obtains, and only needs to send ask and wait for that the bottom data notice gets final product, and guarantees that the user triggers asynchronous process when obtaining data, does not block upper layer application.After finishing receiving, bottom data notify this locality to call layer by Hook Function, then the local layer that calls is according to the type of requesting data information, respectively data are delivered in the Interface interface of application programming interfaces layer, Java uses according to these data and processes different business functions.
Based on above-mentioned a kind of digital TV data transmission method, the present embodiment provides a kind of digital TV data transmission system simultaneously, comprising:
The application programming interfaces layer, the data message in the digital television business function is classified, and each class has corresponding interface in the application programming interfaces layer;
Layer is called in this locality, be used for to receive to come from the request of application programming interfaces layer, and after analyzing, obtains data from adaptation layer, then with its encapsulation and be sent to the application programming interfaces layer;
Adaptation layer is completed the extraction work of digital television business data.
application programming interfaces (API) offer Java and use the corresponding interface that obtains data, the interface design philosophy has been adopted in application programming interfaces layer design in the present embodiment, data message in the digital television business function is classified, and each class has corresponding interface in the application programming interfaces layer, proposition comprises conditional access (CA), search, electronic program guides, a plurality of Interface interfaces such as frequency locking module, shown in Figure 1, Interface interface for CA, shown in Figure 2, Interface interface etc. for search, in this explanation for example that differs.The application interface layer adopts classification design, and defines interface clearly, and the code degree of coupling reduces, and does not influence each other between all kinds of, has ensured digital television business data stable transfer between bottom and application layer.
Described this locality is called layer and is comprised data analysis layer and data transfer layer, and described data analysis layer and data transfer layer call layer corresponding interface is arranged in this locality.layer is called by carrying out the different further layerings of task in this locality, each sublayer is separate, processing and the transmission of data completed in cooperation, the modification of arbitrary sublayer can not have influence on other sublayers yet, further reduced the code degree of coupling, layer is called by providing access interface clearly to other layers in this locality, realized separate between each layer, reduced the code degree of coupling between each layer, solve traditional Socket treatment mechanism and data can have been mixed packing, in case data mechanism change, will relate to Java, JNI and bottom many places modification, increase the problem of the difficulty of code maintenance.
Described data analysis layer also comprises encapsulation unit, is used for the data encapsulation of obtaining.After adaptation layer gets data, data can be passed to this locality by Hook Function and call layer, this locality is called layer and is returned to the application programming interfaces layer with data acquisition and after encapsulating, and feeds back to the user by the application programming interfaces layer at last, completes the work of whole data flow.
Certainly; above-mentioned explanation is not to be limitation of the present invention; the present invention also is not limited in above-mentioned giving an example, and the variation that those skilled in the art make in essential scope of the present invention, remodeling, interpolation or replacement also should belong to protection scope of the present invention.

Claims (10)

1. a digital TV data transmission method, is characterized in that, comprises the following steps:
(1), the data message in the digital television business function is classified, and each class has corresponding interface in the application programming interfaces layer, and the user sends request by the corresponding interface of the classification of its solicited message;
(2), this locality call layer receive come from the request of application programming interfaces layer and analyze after, obtain data from adaptation layer, then with its encapsulation and be sent to the application programming interfaces layer;
(3), the application programming interfaces layer to the user, is completed the transmission work of whole data flow with data feedback.
2. digital TV data transmission method according to claim 1, it is characterized in that, in step (2), this locality is called layer and is comprised data analysis layer and data transfer layer, and described data analysis layer and data transfer layer call layer in this locality have corresponding interface, this locality is called layer and is come from the request of application programming interfaces layer by the interface reception of data transfer layer, by the data analysis layer analysis and obtain data from adaptation layer, then with after the data encapsulation of obtaining again the interface by data transfer layer be sent to the application programming interfaces layer.
3. digital TV data transmission method according to claim 2, is characterized in that, described data analysis layer starts Hook Mechanism and obtains data from adaptation layer.
4. digital TV data transmission method according to claim 3, it is characterized in that, described this locality call layer receive come from the request of application programming interfaces layer after, Hook Function of data analysis layer registration, then call the power function acquisition request data in adaptation layer, after the adaptation layer return data, data are passed to this locality by Hook Function call layer.
5. digital TV data transmission method according to claim 4, is characterized in that, data analysis layer only need be registered Hook Function one time, for chartered Hook Function, directly calls during use.
6. according to claim 1-5 described digital TV data transmission methods of any one claim, is characterized in that, described application programming interfaces layer is the java application interface layer.
7. a digital TV data transmission system, is characterized in that, comprising:
The application programming interfaces layer, the data message in the digital television business function is classified, and each class has corresponding interface in the application programming interfaces layer;
Layer is called in this locality, be used for to receive to come from the request of application programming interfaces layer, and after analyzing, obtains data from adaptation layer, then with its encapsulation and be sent to the application programming interfaces layer;
Adaptation layer is completed the extraction work of digital television business data.
8. a kind of digital TV data transmission system according to claim 7, is characterized in that, described this locality is called layer and comprised data analysis layer and data transfer layer, and described data analysis layer and data transfer layer call layer corresponding interface is arranged in this locality.
9. a kind of digital TV data transmission system according to claim 8, is characterized in that, described data analysis layer also comprises encapsulation unit, is used for the data encapsulation of obtaining.
10. according to claim 7-9 described digital TV data transmission systems of any one claim, is characterized in that, described application programming interfaces layer is the java application interface layer.
CN201310054434.5A 2013-02-20 2013-02-20 Digital TV data transmission method and system Active CN103096159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310054434.5A CN103096159B (en) 2013-02-20 2013-02-20 Digital TV data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310054434.5A CN103096159B (en) 2013-02-20 2013-02-20 Digital TV data transmission method and system

Publications (2)

Publication Number Publication Date
CN103096159A true CN103096159A (en) 2013-05-08
CN103096159B CN103096159B (en) 2016-05-25

Family

ID=48208206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310054434.5A Active CN103096159B (en) 2013-02-20 2013-02-20 Digital TV data transmission method and system

Country Status (1)

Country Link
CN (1) CN103096159B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546806A (en) * 2013-10-16 2014-01-29 小米科技有限责任公司 Function list generation method and device
CN105391785A (en) * 2015-11-25 2016-03-09 广州华多网络科技有限公司 Method for processing service message and server
WO2016115825A1 (en) * 2015-01-23 2016-07-28 中兴通讯股份有限公司 Router implementation method and router

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020161996A1 (en) * 2001-02-23 2002-10-31 Lawrence Koved System and method for supporting digital rights management in an enhanced javaTM2 runtime environment
CN101409815A (en) * 2008-11-05 2009-04-15 青岛海信电子产业控股股份有限公司 Digital television system
CN101895669A (en) * 2010-07-20 2010-11-24 深圳市茁壮网络股份有限公司 General middleware adaptation layer system for digital television
CN101980155A (en) * 2010-11-04 2011-02-23 青岛海信电器股份有限公司 Method and system for realizing user interface of television, and television
CN101986694A (en) * 2010-10-29 2011-03-16 广东星海数字家庭产业技术研究院有限公司 Linux system-based digital television system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020161996A1 (en) * 2001-02-23 2002-10-31 Lawrence Koved System and method for supporting digital rights management in an enhanced javaTM2 runtime environment
CN101409815A (en) * 2008-11-05 2009-04-15 青岛海信电子产业控股股份有限公司 Digital television system
CN101895669A (en) * 2010-07-20 2010-11-24 深圳市茁壮网络股份有限公司 General middleware adaptation layer system for digital television
CN101986694A (en) * 2010-10-29 2011-03-16 广东星海数字家庭产业技术研究院有限公司 Linux system-based digital television system
CN101980155A (en) * 2010-11-04 2011-02-23 青岛海信电器股份有限公司 Method and system for realizing user interface of television, and television

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546806A (en) * 2013-10-16 2014-01-29 小米科技有限责任公司 Function list generation method and device
WO2016115825A1 (en) * 2015-01-23 2016-07-28 中兴通讯股份有限公司 Router implementation method and router
CN105871729A (en) * 2015-01-23 2016-08-17 中兴通讯股份有限公司 Implementation method of router and router
CN105391785A (en) * 2015-11-25 2016-03-09 广州华多网络科技有限公司 Method for processing service message and server

Also Published As

Publication number Publication date
CN103096159B (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN105260250B (en) A kind of dual system communication device of linux system and android system
CN105429858A (en) Real-time message transmission method among multiple robots
CN110381093B (en) Method and device for converting data protocol, system for transmitting data and electronic equipment
CN107888539A (en) Internet-of-things terminal access device and method
CN102355374A (en) Data acquisition method and equipment
CN102866925B (en) Communication method and system for middleware and user interface
CN102520936A (en) Method for realizing sharing of Socket communication service on Android platform
CN111797091A (en) Method and device for querying data in database, electronic equipment and storage medium
WO2022074593A1 (en) A method and apparatus for dynamic workflow task management
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CN103096159B (en) Digital TV data transmission method and system
CN104965829A (en) Method, server and system for classifying terminal applications
CN110321120A (en) Data processing method, data processing equipment and computer readable storage medium
CN101854401A (en) Data transmission equipment and method and data synchronization method
CN105100158A (en) Message pushing and obtaining methods and apparatuses
CN102340703B (en) IPTV and remote controller key reusing method
CN103516788A (en) Data pushing method and Flash client terminal and server thereof
CN103246557A (en) Method and device for calling application information in cross process mode
CN102196157B (en) A kind of delivery system of station synchronization
CN104660453A (en) Server port number consulting method and system
CN101404656A (en) Software interface design method for communicating with third party intelligent equipment protocol
CN101201755A (en) Method, system and equipment for managing software module of digital receiving terminal
CN113242313B (en) Data synchronization method, system, device, server and storage medium
CN104320695A (en) Method and system for family socializing of mobile device based on smart TV
CN109981793B (en) Remote input method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant