CN103096159B - Digital TV data transmission method and system - Google Patents

Digital TV data transmission method and system Download PDF

Info

Publication number
CN103096159B
CN103096159B CN201310054434.5A CN201310054434A CN103096159B CN 103096159 B CN103096159 B CN 103096159B CN 201310054434 A CN201310054434 A CN 201310054434A CN 103096159 B CN103096159 B CN 103096159B
Authority
CN
China
Prior art keywords
layer
data
application programming
programming interfaces
locality
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.)
Active
Application number
CN201310054434.5A
Other languages
Chinese (zh)
Other versions
CN103096159A (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

Abstract

The invention discloses a kind of digital TV data transmission method and system, comprise the following steps: the data message in (1), digital television business function is classified, and each class has corresponding interface in application programming interfaces layer, user sends request by the corresponding interface of classification of its solicited message; (2), after this locality calls layer and receive and come from the request of application programming interfaces layer and analyze, obtain data from adaptation layer, then by its encapsulation and be sent to application programming interfaces layer; (3), application programming interfaces layer to user, completes the transmission work of whole data flow by data feedback. 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, between each layer, define interface clearly, the code degree of coupling is reduced, reduced the difficulty of code maintenance, effectively solve simultaneous asynchronous data transmissions problem.

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 digital television techniques field.
Background technology
Traditional digital TV data transmission is all based on same design language C or C++, does not relate to the data transmission mechanism between C or C++ and JAVA, cannot complete the application of intelligent digital television business. More and more universal based on intelligent operating system Android terminal device at present, the terminal device that still can support at present traditional full digital tv business does not have substantially. There is the features such as data volume is large, asynchronous transmission in traditional digital television business, how to be the problem that current intelligent digital television terminal all faces by stable between bottom (C language or C Plus Plus) and application layer (Java language) digital television business data, transmission fast.
The more existing digital television protocol transfer of data based on Android is that the mode of communicating by letter by socket realizes. 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 requesting query current data is prepared, and then obtains data by socket, and task deal with data is set up on backstage. Existing data transmission mechanism does not also meet Android hierarchical design theory, and has increased the burden of Internet Transmission. The problem that relates in addition data packing due to Internet Transmission, causes sales volume lower.
Based on this, how to invent a kind of digital TV data transmission method and system, digital television business data can be stablized between bottom and application layer, be transmitted fast, be the problem that the present invention mainly solves.
Summary of the invention
The present invention transmits faced problem for the data that solve the existing DTV with intelligent operating system between bottom and application layer, a kind of digital TV data transmission method and system are provided, can digital television business data are stable between bottom and application layer, transmission 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 digital television business function is classified, and each class has corresponding interface in application programming interfaces layer, and user sends request by the corresponding interface of classification of its solicited message;
(2), after this locality calls layer and receive and come from the request of application programming interfaces layer and analyze, obtain data from adaptation layer, then by its encapsulation and be sent to application programming interfaces layer;
(3), application programming interfaces layer to user, completes the transmission work of whole data flow by 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 received by the interface of data transfer layer the request that comes from application programming interfaces layer, by data processing layer analysis and obtain data from adaptation layer, then by after obtained data encapsulation again the interface by data transfer layer be sent to application programming interfaces layer.
Further again, described data analysis layer starts Hook Mechanism and obtains data from adaptation layer.
Further, described this locality is called layer reception and is come from after the request of application programming interfaces layer, a Hook Function of data analysis layer registration, then call the power function acquisition request data in adaptation layer, when after adaptation layer return data, data are passed to this locality by Hook Function and call layer.
Preferably, data analysis layer only need be registered Hook Function one time, for chartered Hook Function, when use, directly calls.
Wherein, described application programming interfaces layer is 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:
Application programming interfaces layer, the data message in digital television business function is classified, and each class has corresponding interface in application programming interfaces layer;
Layer is called in this locality, for receiving the request that comes from application programming interfaces layer, and after analyzing, obtains data from adaptation layer, then by its encapsulation and be sent to application programming interfaces layer;
Adaptation layer, completes 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 and have corresponding interface in this locality.
Further again, described data analysis layer also comprises encapsulation unit, for by the data encapsulation of obtaining.
Wherein, described application programming interfaces layer is 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 adopted respectively hierarchical architecture design in application programming interfaces layer and this locality, between each layer, define interface clearly, the code degree of coupling is reduced, each layer of amendment all do not affect other layer of design, reduced the difficulty of code maintenance. The second, adopt Hook Mechanism, effectively solve simultaneous asynchronous data transmissions problem. The present invention has abandoned socket communication mechanism, uses Hook Mechanism to carry out transfer of data, and such benefit is that upper strata does not need poll constantly to inquire about the state that bottom data obtains, and only need send request and wait for bottom data notice.
Read by reference to the accompanying drawings after the detailed description of embodiment of the present invention, it is clearer that the other features and advantages of the invention will become.
Brief description of the 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.
Detailed description of the invention
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 digital television business data are stablized, are transmitted fast between bottom and application layer.
Embodiment mono-, a kind of digital TV data transmission method in the present embodiment, comprises the following steps:
S1, the data message in digital television business function is classified, and each class has corresponding interface in application programming interfaces layer, user sends request by the corresponding interface of classification of its solicited message.
Application programming interfaces (API) offer the interface that obtains data corresponding to Java application, application programming interfaces layer design in the present embodiment adopted interface design philosophy, data message in digital television business function is classified, and each class has corresponding interface in application programming interfaces layer, proposition comprises conditional access (CA), search, electronic program guides, multiple Interface interfaces such as frequency locking module, shown in Figure 1, for the Interface interface of CA, shown in Figure 2, for the Interface interface etc. of search, differ and one illustrate at this. 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 obtain data from adaptation layer after calling layer and receiving and come from the request of application programming interfaces layer and analyze, then by its encapsulation and be sent to application programming interfaces layer.
Layer (JNI) is called and is mainly responsible for the function such as message communication, data-moving of data between bottom and application layer in this locality, 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 processing difficulty of calling layer, accelerated data transmission bauds.
Adaptation layer (AdapterLayer) mainly completes the extraction work of digital television business data, and all data are all to obtain by this module.
S3, application programming interfaces layer to user, complete the transmission work of whole data flow by data feedback.
The digital TV data transmission method of the present embodiment is particularly useful for the transfer of data of the intelligent digital television system with high level operating system, taking the intelligent digital television with Android system as example, its bottom is generally based on C language or C Plus Plus, and application layer is generally to realize based on Java language, therefore the data stabilization that, adopts the technical scheme of the present embodiment to solve how to realize between bilingual, the problem of transmission 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 received by the interface of data transfer layer the request that comes from application programming interfaces layer, by data processing layer analysis and obtain data from adaptation layer, then by after obtained data encapsulation again the interface by data transfer layer be sent to application programming interfaces layer. layer is called by carrying out the different further layerings of task in this locality, each sublayer is separate, the processing of the data that cooperated and transmission, the amendment of arbitrary sublayer can not have influence on other sublayers yet, further reduce the code degree of coupling, layer is called by providing access interface clearly to other layers in this locality, realize separate between each layer, reduce the code degree of coupling between each layer, solve traditional Socket treatment mechanism and data can have been mixed to packing, once data mechanism change, will relate to Java, JNI and the amendment of bottom many places, 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 is called layer reception and is come from after the request of application programming interfaces layer, a Hook Function of data analysis layer registration, then call the power function acquisition request data in adaptation layer, when after adaptation layer return data, data are passed to this locality by Hook Function and call layer, certainly, in order to simplify step, data analysis layer only need be registered Hook Function one time, for chartered Hook Function, when use, directly calls. In the present embodiment, by adopting Hook Mechanism, effectively solve simultaneous asynchronous data transmissions problem. Therefore adopt Hook Function to obtain data, upper strata does not need poll constantly to inquire about the state that bottom data obtains, and only need send request and wait for bottom data notice, guarantees that user triggers asynchronous process while 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 to the business function that Java application is different according to this data processing.
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:
Application programming interfaces layer, the data message in digital television business function is classified, and each class has corresponding interface in application programming interfaces layer;
Layer is called in this locality, for receiving the request that comes from application programming interfaces layer, and after analyzing, obtains data from adaptation layer, then by its encapsulation and be sent to application programming interfaces layer;
Adaptation layer, completes the extraction work of digital television business data.
Application programming interfaces (API) offer the interface that obtains data corresponding to Java application, application programming interfaces layer design in the present embodiment adopted interface design philosophy, data message in digital television business function is classified, and each class has corresponding interface in application programming interfaces layer, proposition comprises conditional access (CA), search, electronic program guides, multiple Interface interfaces such as frequency locking module, shown in Figure 1, for the Interface interface of CA, shown in Figure 2, for the Interface interface etc. of search, differ and one illustrate at this. 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 and have corresponding interface in this locality. layer is called by carrying out the different further layerings of task in this locality, each sublayer is separate, the processing of the data that cooperated and transmission, the amendment of arbitrary sublayer can not have influence on other sublayers yet, further reduce the code degree of coupling, layer is called by providing access interface clearly to other layers in this locality, realize separate between each layer, reduce the code degree of coupling between each layer, solve traditional Socket treatment mechanism and data can have been mixed to packing, once data mechanism change, will relate to Java, JNI and the amendment of bottom many places, increase the problem of the difficulty of code maintenance.
Described data analysis layer also comprises encapsulation unit, for by the data encapsulation of obtaining. When adaptation layer gets after data, data can be passed to this locality by Hook Function and call layer, layer is called by returning to application programming interfaces layer after data acquisition encapsulation in this locality, finally feeds back to user by application programming interfaces layer, completes the work of whole data flow.
Certainly; above-mentioned explanation is not limitation of the present invention; the present invention is also not limited in above-mentioned giving an example, and variation, remodeling, interpolation or replacement that those skilled in the art make in essential scope of the present invention, also should belong to protection scope of the present invention.

Claims (7)

1. a digital TV data transmission method, is characterized in that, comprises the following steps:
(1), the data message in digital television business function is classified, and each class has corresponding interface in application programming interfaces layer, and user sends request by the corresponding interface of classification of its solicited message;
(2), after this locality calls layer and receive and come from the request of application programming interfaces layer and analyze, obtain data from adaptation layer, then by its encapsulation and be sent to application programming interfaces layer; The method that layer obtains data from adaptation layer is called in this locality: this locality is called layer and received and come from the request of application programming interfaces layer, a Hook Function of data analysis layer registration, then call the power function acquisition request data in adaptation layer, when after adaptation layer return data, data are passed to this locality by Hook Function and call 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 in this locality have corresponding interface, this locality is called layer and is received by the interface of data transfer layer the request that comes from application programming interfaces layer, by data processing layer analysis and obtain data from adaptation layer, then by after obtained data encapsulation again the interface by data transfer layer be sent to application programming interfaces layer;
(3), application programming interfaces layer to user, completes the transmission work of whole data flow by data feedback.
2. digital TV data transmission method according to claim 1, is characterized in that, described data analysis layer starts Hook Mechanism and obtains data from adaptation layer.
3. digital TV data transmission method according to claim 1, is characterized in that, data analysis layer only need be registered Hook Function one time, for chartered Hook Function, when use, directly calls.
4. according to the digital TV data transmission method described in claim 1-3 any one claim, it is characterized in that, described application programming interfaces layer is java application interface layer.
5. a digital TV data transmission system, is characterized in that, comprising:
Application programming interfaces layer, the data message in digital television business function is classified, and each class has corresponding interface in application programming interfaces layer;
Layer is called in this locality, and for receiving the request that comes from application programming interfaces layer, and after analyzing, data analysis layer starts Hook Mechanism and obtains data from adaptation layer, then by its encapsulation and be sent to application programming interfaces 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 and have corresponding interface in this locality;
Adaptation layer, completes the extraction work of digital television business data.
6. a kind of digital TV data transmission system according to claim 5, is characterized in that, described data analysis layer also comprises encapsulation unit, for by the data encapsulation of obtaining.
7. according to the digital TV data transmission system described in claim 5 or 6, it is characterized in that, described application programming interfaces layer is 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 CN103096159A (en) 2013-05-08
CN103096159B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546806B (en) * 2013-10-16 2017-04-05 小米科技有限责任公司 A kind of generation method and device of feature list
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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7308717B2 (en) * 2001-02-23 2007-12-11 International Business Machines Corporation System and method for supporting digital rights management in an enhanced Java™ 2 runtime environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN103096159A (en) 2013-05-08

Similar Documents

Publication Publication Date Title
US10241839B2 (en) Method and system for generating a virtual device resource accessible by an application
CN105573129B (en) Cross-platform smart home mobile terminal based on Cordova
CN103024504B (en) Based on the intelligent remote control system of digital TV set-top box
CN101527783B (en) Method and system for acquiring interface data and digital TV receiving terminal
CN108419452B (en) Apparatus and method for managing remote web clients for applications on a mobile device
CN110381093B (en) Method and device for converting data protocol, system for transmitting data and electronic equipment
CN102355374A (en) Data acquisition method and equipment
CN105429858A (en) Real-time message transmission method among multiple robots
US20220109722A1 (en) Method and apparatus for dynamic workflow task management
US20150178400A1 (en) Method and device for acquiring terminal information in heterogeneous terminal environment
CN103096159B (en) Digital TV data transmission method and system
CN110321120A (en) Data processing method, data processing equipment and computer readable storage medium
CN103532959A (en) Cross-platform network communication method
CN101854401A (en) Data transmission equipment and method and data synchronization method
CN108494606B (en) WCF technology-based data service framework building method
CN105515947B (en) A kind of method, server and the system of the heterogeneous terminals message intercommunication based on XMPP
CN101155177B (en) Data channel sharing system and method based on shared protocol
CN101201755A (en) Method, system and equipment for managing software module of digital receiving terminal
CN107819831B (en) Metaq and mns-based universal message system
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
CN112732457B (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN106411986A (en) Position query method and apparatus
CN109981793B (en) Remote input method
CN104346228A (en) Application program sharing method and terminal

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