CN103093777B - A kind of method and system adopting android system control DVD equipment - Google Patents

A kind of method and system adopting android system control DVD equipment Download PDF

Info

Publication number
CN103093777B
CN103093777B CN201210585605.2A CN201210585605A CN103093777B CN 103093777 B CN103093777 B CN 103093777B CN 201210585605 A CN201210585605 A CN 201210585605A CN 103093777 B CN103093777 B CN 103093777B
Authority
CN
China
Prior art keywords
dvd
android system
abstraction layer
hardware abstraction
upper strata
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
CN201210585605.2A
Other languages
Chinese (zh)
Other versions
CN103093777A (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.)
Fu Zhi Yi Internet of vehicles (Ningbo) Co.,Ltd.
Original Assignee
Tcl Automotive Information Services (shenzhen) 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 Tcl Automotive Information Services (shenzhen) Co Ltd filed Critical Tcl Automotive Information Services (shenzhen) Co Ltd
Priority to CN201210585605.2A priority Critical patent/CN103093777B/en
Publication of CN103093777A publication Critical patent/CN103093777A/en
Application granted granted Critical
Publication of CN103093777B publication Critical patent/CN103093777B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention is applicable to android system field, provides a kind of method and system adopting android system control DVD equipment.Described method comprises: create DVD hardware abstraction layer at the hardware abstraction layer of android system, carry out abstract package, for upper strata provides operation-interface to the action of control DVD equipment; Derive the operation-interface that DVD hardware abstraction layer provides for upper strata, the upper strata being supplied to DVD hardware abstraction layer is called; DVD service module is created, to call the service that media play-back application that the operation-interface of derivation is android system provides operating dvd apparatus on the upper strata of DVD hardware abstraction layer.Present invention achieves android system directly control DVD equipment, reduce system cost.

Description

A kind of method and system adopting android system control DVD equipment
Technical field
The invention belongs to android system field, particularly relate to a kind of method and system adopting android system control DVD equipment.
Background technology
Android system is applied more and more extensive in mobile unit, android system does not directly support vehicle-carrying DVD equipment at present, the method that each mobile unit manufacturer adopts at present is the Audio and Video broadcasting being controlled vehicle-carrying DVD by a MCU, DVD function and android system independent operating.There is very large drawback in this method, adds new hardware and increase system cost.
Summary of the invention
The object of the present invention is to provide a kind of method adopting android system control DVD equipment, be intended to solve the Audio and Video broadcasting being controlled vehicle-carrying DVD in prior art by a MCU, add the problem that new hardware increases system cost.
The present invention is achieved in that the embodiment of the present invention provides a kind of method adopting android system control DVD equipment, said method comprising the steps of:
Create DVD hardware abstraction layer at the hardware abstraction layer of android system, abstract package is carried out, for upper strata provides operation-interface to the action of control DVD equipment;
Derive the operation-interface that DVD hardware abstraction layer provides for upper strata, the upper strata being supplied to DVD hardware abstraction layer is called;
DVD service module is created, to call the service that media play-back application that the operation-interface of derivation is android system provides operating dvd apparatus on the upper strata of DVD hardware abstraction layer.
The embodiment of the present invention additionally provides a kind of system adopting android system control DVD equipment, and described system comprises:
DVD hardware abstraction layer creating unit, creates DVD hardware abstraction layer for the hardware abstraction layer in android system, carries out abstract package, for upper strata provides operation-interface to the action of control DVD equipment;
Operation-interface lead-out unit, for deriving the operation-interface that DVD hardware abstraction layer provides for upper strata, the upper strata being supplied to DVD hardware abstraction layer is called;
DVD service module creating unit, for creating DVD service module on the upper strata of DVD hardware abstraction layer, to call the service that media play-back application that the operation-interface of derivation is android system provides operating dvd apparatus.
Compared with prior art, beneficial effect is the embodiment of the present invention: by the HAL layer in android system, adds DVD device abstract code, carries out abstract package, for upper strata provides operation-interface to the action of control DVD equipment; Derive the operation-interface that DVD hardware abstraction layer provides for upper strata, the upper strata being supplied to DVD hardware abstraction layer is called; DVD service module is created, to call the service that media play-back application that the operation-interface of derivation is android system provides operating dvd apparatus on the upper strata of DVD hardware abstraction layer; The media player service module of expansion android system, with the broadcasting of compatible DVD disk medium file, realizes android system and directly controls vehicle-carrying DVD equipment, reduce costs.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the method for the employing android system control DVD equipment that the embodiment of the present invention provides;
Fig. 2 is the structural representation of the system of the employing android system control DVD equipment that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and beneficial effect clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In embodiments of the present invention, adopt android system directly control DVD equipment, software view realizes, to the control of DVD equipment, reduce system cost.
Refer to Fig. 1, the realization flow of the method for the employing android system control DVD equipment provided for the embodiment of the present invention, it comprises the following steps:
In step S101, create DVD hardware abstraction layer (DVDHAL module) at the hardware abstraction layer of android system, abstract package is carried out, for upper strata provides operation-interface to the action of control DVD equipment;
In embodiments of the present invention, use C/C++ language compilation DVDHAL module, abstract package is carried out to the action of control DVD equipment, such as to broadcasting, stopping, F.F., retrogressing, the query facility state of control DVD equipment, to deliver from godown and the action such as warehouse entry carries out abstract package, to drive DVD equipment.Under the DVDHAL module of writing is present in android system catalogue/system/lib/hw with the file of * .so dynamic base form, called after libdvd.so.
By DVDHAL module using dvd as device identification, be registered in android system hardware abstraction layer (HAL layer), and broadcasting, stopping, F.F., retrogressing, the query facility state of registration DVD equipment, to deliver from godown and the operation-interface such as warehouse entry, for upper strata provides operation-interface, realize the control to DVD equipment.Particularly, the static structure variable structdvd_dev_info of the DVD facility information of a definition g_dvd_dev by name, wherein:
Wherein, structure structdvd_ops is for representing the handling function of specific DVD equipment.
In step s 102, derive the operation-interface that DVD hardware abstraction layer provides for upper strata, the upper strata being supplied to DVD hardware abstraction layer is called.
In embodiments of the present invention, between DVDHAL module and the upper strata of DVDHAL module, by creating DVDHALJNI interface module, deriving the operation-interface that DVD hardware abstraction layer provides for upper strata, realizing the upper strata of DVDHAL module and the mutual of described DVDHAL module.In the present embodiment, in DVDHALJNI interface module, register the broadcasting of the control DVD equipment that DVDHAL module provides, stopping, F.F., retrogressing, query facility state, deliver from godown and the operation-interface such as warehouse entry, and the operation-interface using dvd to provide to obtain DVDHAL module to the hw_get_module () function calling android system as device identification parameter, realizes the derivation of DVDHAL module interface.And then the operation-interface that the upper strata of DVDHAL module provides for upper strata by the DVD hardware abstraction layer called DVDHALJNI interface module and derive, realizes controlling DVD equipment.
In step s 103, create DVD service module on the upper strata of DVD hardware abstraction layer, to call the service that media play-back application that the operation-interface of derivation is android system provides operating dvd apparatus;
In embodiments of the present invention, a system service based on AndroidJava is created on the upper strata of DVD hardware abstraction layer, i.e. DVD service module, broadcasting, stopping, F.F., retrogressing, the query facility state of the control DVD equipment that the DVD hardware abstraction layer that this DVD service module can call derivation provides for upper strata, delivers from godown and the operation-interface such as warehouse entry.Thus the media play-back application of android system can use DVD service module to obtain service, realizes the control to DVD equipment.
As another preferred embodiment of the present invention, the method for described employing android system control DVD equipment can also comprise step:
Inspection need play the form of media file, if DVD disk medium file, then by DVD service module control DVD device plays; If not DVD disk medium file, then play by the media player service module (MediaPlayer service module) of android system.
Particularly, on the basis of the primary MediaPlayer service module of android system, add a new function, namely check and need the media file play whether to have dvd prefix, if had, utilize DVD service module to obtain DVD service object, call corresponding operation-interface, control DVD equipment realizes the playing function of DVD disk medium file; If no, then perform android system media play operation originally, play by the media player service module of android system.Thus extend the function of the media player service module (MediaPlayer service module) of android system, with the broadcasting of compatible DVD disk medium file.
In sum, the embodiment of the present invention, by the HAL layer in android system, is added DVD device abstract code, is carried out abstract package, for upper strata provides operation-interface to the action of control DVD equipment; Derive the operation-interface that DVD hardware abstraction layer provides for upper strata, the upper strata being supplied to DVD hardware abstraction layer is called; DVD service module is created, to call the service that media play-back application that the operation-interface of derivation is android system provides operating dvd apparatus on the upper strata of DVD hardware abstraction layer; The media player service module of expansion android system, with the broadcasting of compatible DVD disk medium file, realizes android system and directly controls vehicle-carrying DVD equipment, reduce costs.
Corresponding, as shown in Figure 2, the structural representation of the system of the employing android system control DVD equipment provided for the embodiment of the present invention.
The system of described employing android system control DVD equipment comprises:
DVD hardware abstraction layer creating unit 201, creates DVD hardware abstraction layer for the hardware abstraction layer in android system, carries out abstract package, for upper strata provides operation-interface to the action of control DVD equipment.
Operation-interface lead-out unit 202, for deriving the operation-interface that DVD hardware abstraction layer provides for upper strata, the upper strata being supplied to DVD hardware abstraction layer is called.
DVD service module creating unit 203, for creating DVD service module on the upper strata of DVD hardware abstraction layer, to call the service that media play-back application that the operation-interface of derivation is android system provides operating dvd apparatus.
As another preferred embodiment of the present invention, the system of described employing android system control DVD equipment can also comprise:
Media file format inspection unit 204, checks the form need playing media file, if DVD disk medium file, then by DVD service module control DVD device plays; If not DVD disk medium file, then play by the media player service module of android system.
The system of the employing android system control DVD equipment that the embodiment of the present invention provides can be used in the embodiment of the method for aforementioned correspondence, and details, see the description of above-described embodiment one, do not repeat them here.
In sum, the embodiment of the present invention, by the HAL layer of DVD hardware abstraction layer creating unit in android system, is added DVD device abstract code, is carried out abstract package, for upper strata provides operation-interface to the action of control DVD equipment; By the operation-interface that operation-interface lead-out unit derivation DVD hardware abstraction layer provides for upper strata, the upper strata being supplied to DVD hardware abstraction layer is called; DVD service module creating unit creates DVD service module on the upper strata of DVD hardware abstraction layer, to call the service that media play-back application that the operation-interface of derivation is android system provides operating dvd apparatus; By the media player service module of media file format inspection unit expansion android system, with the broadcasting of compatible DVD disk medium file, realize android system and directly control vehicle-carrying DVD equipment, reduce costs.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. adopt a method for android system control DVD equipment, it is characterized in that, said method comprising the steps of:
A, create DVD hardware abstraction layer at the hardware abstraction layer of android system, abstract package is carried out, for upper strata provides operation-interface to the action of control DVD equipment;
The operation-interface that B, derivation DVD hardware abstraction layer provide for upper strata, the upper strata being supplied to DVD hardware abstraction layer is called;
C, create DVD service module on the upper strata of DVD hardware abstraction layer, to call the service that media play-back application that the operation-interface of derivation is android system provides operating dvd apparatus;
D, check and need play the form of media file, if DVD disk medium file, then by DVD service module control DVD device plays; If not DVD disk medium file, then play by the media player service module of android system; The form that described inspection need play media file is that inspection need be play media file and whether had dvd prefix.
2. the method for claim 1, it is characterized in that, in described steps A, abstract package is carried out to the action of control DVD equipment and be specially broadcasting, stopping, F.F., retrogressing, query facility state to control DVD equipment, deliver from godown and abstract package is carried out in warehouse entry action.
3. the method for claim 1, is characterized in that, described DVD hardware abstraction layer and DVD service module are undertaken by the JNI interface mechanism of android system alternately.
4. the method for claim 1, is characterized in that, the media play-back application of described android system and DVD service module are undertaken by the binder mechanism of android system alternately.
5. adopt a system for android system control DVD equipment, it is characterized in that, described system comprises:
DVD hardware abstraction layer creating unit, creates DVD hardware abstraction layer for the hardware abstraction layer in android system, carries out abstract package, for upper strata provides operation-interface to the action of control DVD equipment;
Operation-interface lead-out unit, for deriving the operation-interface that DVD hardware abstraction layer provides for upper strata, the upper strata being supplied to DVD hardware abstraction layer is called;
DVD service module creating unit, for creating DVD service module on the upper strata of DVD hardware abstraction layer, to call the service that media play-back application that the operation-interface of derivation is android system provides operating dvd apparatus;
Media file format inspection unit, checks the form need playing media file, if DVD disk medium file, then by DVD service module control DVD device plays; If not DVD disk medium file, then play by the media player service module of android system; The form that described inspection need play media file is that inspection need be play media file and whether had dvd prefix.
6. system as claimed in claim 5, is characterized in that, the described action to control DVD equipment is carried out abstract package and is specially broadcasting, stopping, F.F., retrogressing, query facility state to control DVD equipment, delivers from godown and abstract package is carried out in warehouse entry action.
7. system as claimed in claim 5, it is characterized in that, described DVD hardware abstraction layer and DVD service module are undertaken by the JNI interface mechanism of android system alternately.
8. system as claimed in claim 5, it is characterized in that, the media play-back application of described android system and DVD service module are undertaken by the binder mechanism of android system alternately.
CN201210585605.2A 2012-12-28 2012-12-28 A kind of method and system adopting android system control DVD equipment Active CN103093777B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210585605.2A CN103093777B (en) 2012-12-28 2012-12-28 A kind of method and system adopting android system control DVD equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210585605.2A CN103093777B (en) 2012-12-28 2012-12-28 A kind of method and system adopting android system control DVD equipment

Publications (2)

Publication Number Publication Date
CN103093777A CN103093777A (en) 2013-05-08
CN103093777B true CN103093777B (en) 2015-12-23

Family

ID=48206275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210585605.2A Active CN103093777B (en) 2012-12-28 2012-12-28 A kind of method and system adopting android system control DVD equipment

Country Status (1)

Country Link
CN (1) CN103093777B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110958399B (en) * 2019-12-09 2021-06-29 Oppo广东移动通信有限公司 High dynamic range image HDR realization method and related product

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1313562A (en) * 2001-05-15 2001-09-19 北京慧讯信息技术有限公司 Architectural structure of embedded open platform
CN1754135A (en) * 2003-02-21 2006-03-29 罗伯特·博世有限公司 The controller and the computer program that are used for the Control of Automobile driving arrangement
CN1877521A (en) * 2006-06-30 2006-12-13 浙江大学 Method for accomplishing embedded system board support package across different operating system
CN101005420A (en) * 2006-12-18 2007-07-25 广州市高科通信技术股份有限公司 Embedded system cross platform realizing method for complex access device
CN101630343A (en) * 2009-08-18 2010-01-20 中兴通讯股份有限公司 Simulation method and simulation system
CN102404253A (en) * 2011-06-28 2012-04-04 西安交通大学 Method for designing virtual network adapter supporting hardware abstraction layer of Linux
CN102662665A (en) * 2012-03-29 2012-09-12 福州瑞芯微电子有限公司 Input subsystem enabling Android to support various sensors
CN102722326A (en) * 2012-05-25 2012-10-10 深圳乐投卡尔科技有限公司 Method for controlling system by using vehicle-mounted android platform based on soft keys and android equipment
CN102789795A (en) * 2012-07-04 2012-11-21 中标软件有限公司 Method and system used for playing vehicle-mounted compact disc and based on Android operating system
CN102831915A (en) * 2012-08-06 2012-12-19 深圳乐投卡尔科技有限公司 Vehicle-mounted Android platform

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1313562A (en) * 2001-05-15 2001-09-19 北京慧讯信息技术有限公司 Architectural structure of embedded open platform
CN1754135A (en) * 2003-02-21 2006-03-29 罗伯特·博世有限公司 The controller and the computer program that are used for the Control of Automobile driving arrangement
CN1877521A (en) * 2006-06-30 2006-12-13 浙江大学 Method for accomplishing embedded system board support package across different operating system
CN101005420A (en) * 2006-12-18 2007-07-25 广州市高科通信技术股份有限公司 Embedded system cross platform realizing method for complex access device
CN101630343A (en) * 2009-08-18 2010-01-20 中兴通讯股份有限公司 Simulation method and simulation system
CN102404253A (en) * 2011-06-28 2012-04-04 西安交通大学 Method for designing virtual network adapter supporting hardware abstraction layer of Linux
CN102662665A (en) * 2012-03-29 2012-09-12 福州瑞芯微电子有限公司 Input subsystem enabling Android to support various sensors
CN102722326A (en) * 2012-05-25 2012-10-10 深圳乐投卡尔科技有限公司 Method for controlling system by using vehicle-mounted android platform based on soft keys and android equipment
CN102789795A (en) * 2012-07-04 2012-11-21 中标软件有限公司 Method and system used for playing vehicle-mounted compact disc and based on Android operating system
CN102831915A (en) * 2012-08-06 2012-12-19 深圳乐投卡尔科技有限公司 Vehicle-mounted Android platform

Also Published As

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

Similar Documents

Publication Publication Date Title
JP2017107585A (en) Clipboard function providing method and device by portable terminal
WO2002082810A1 (en) Video reproduction apparatus for digital video content, video reproduction method, video reproduction program, and package medium
CN109660372B (en) SDN service configuration method and device
CN101763418A (en) File resource access method and device
CN100473090C (en) A system for hardware drive program of intelligent loading mobile phone
CN104267981A (en) Method and device for loading application layout on desktop
CN104063284B (en) The method and apparatus running application program
CN103135941A (en) Managing method of embedded memorizers, embedded memorizer and electronic device
CN103093777B (en) A kind of method and system adopting android system control DVD equipment
US20140365724A1 (en) System and method for converting disk partition format
KR20120076485A (en) Method and apparatus for providing e-book service in a portable terminal
CN102855093B (en) System and method for realizing automatic thin provisioning dynamic capacity expansion of storage system
CN101650668A (en) Method and device for realizing virtual environment
KR20110049981A (en) Electronic book terminal, system for providing electronic book contents and method thereof
CN102682820A (en) Method and system for embedding type linux platform media playing
CN107273244A (en) The fault tolerant control method and system of a kind of media file storage
CN101840477A (en) Method for working by using mobile operating system
CN104063306A (en) Automatic login method, device and system in intelligent terminal software testing
CN101371214A (en) Firmware updates on media
CN105740009B (en) Version upgrading method and terminal device
CN102081920A (en) Method and device for controlling picture display
CN105224295A (en) Software running method and device
CN103237237B (en) A kind of video broadcasting method and device painting this
TW200519913A (en) Reproducing apparatus and method and computer readable recording medium storing program for executing the method
JP2006031742A (en) Magnetic disk drive

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: TCL CARTEL AUTOMOTIVE INFORMATION SERVICES (SHENZH

Free format text: FORMER OWNER: TCL GROUP CO., LTD.

Effective date: 20131101

C10 Entry into substantive examination
C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 516001 HUIZHOU, GUANGDONG PROVINCE TO: 518052 SHENZHEN, GUANGDONG PROVINCE

SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20131101

Address after: 518052 Guangdong city of Shenzhen province Nanshan District Hing Road two No. 6 Wuhan University B815 Shenzhen research building room

Applicant after: TCL automotive information services (Shenzhen) Co., Ltd.

Address before: 516001 Guangdong City, Huizhou Province, South Road, No. 6 TCL Arts crafts emporium, technology center,

Applicant before: TCL Group Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Patentee after: Folda car Networking (Shenzhen) Co. Ltd.

Address before: 518052 Guangdong city of Shenzhen province Nanshan District Hing Road two No. 6 Wuhan University B815 Shenzhen research building room

Patentee before: TCL automotive information services (Shenzhen) Co., Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: No.23, 136 Yuhai East Road, Hangzhou Bay New District, Ningbo City, Zhejiang Province

Patentee after: Fu Zhi Yi Internet of vehicles (Ningbo) Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: FUERDA IOV (SHENZHEN) Co.,Ltd.