CN105630442B - The implementation method of virtual display device in Android routers - Google Patents

The implementation method of virtual display device in Android routers Download PDF

Info

Publication number
CN105630442B
CN105630442B CN201510958225.2A CN201510958225A CN105630442B CN 105630442 B CN105630442 B CN 105630442B CN 201510958225 A CN201510958225 A CN 201510958225A CN 105630442 B CN105630442 B CN 105630442B
Authority
CN
China
Prior art keywords
display device
virtual display
android
routers
virtual
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
CN201510958225.2A
Other languages
Chinese (zh)
Other versions
CN105630442A (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.)
Shanghai Gongjin Communication Technology Co Ltd
Original Assignee
Shanghai Gongjin Communication 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 Shanghai Gongjin Communication Technology Co Ltd filed Critical Shanghai Gongjin Communication Technology Co Ltd
Priority to CN201510958225.2A priority Critical patent/CN105630442B/en
Publication of CN105630442A publication Critical patent/CN105630442A/en
Application granted granted Critical
Publication of CN105630442B publication Critical patent/CN105630442B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The present invention relates to a kind of implementation methods of virtual display device in Android routers, and a memory field is arranged to store the relevant parameter of the virtual display device in the router including (1);(2) virtual display device and the driving of the virtual display device are registered in the Android routers;(3) by the driving of the virtual display device about the operation for being revised as the relevant parameter to the virtual display device stored in memory field to the operation of the virtual display device.Using the implementation method of virtual display device in the Android routers of this kind of structure, make not show that the router of equipment can also normal operation android system, and generation frame image data that can normally on virtual display device, time power consumption is saved, also provides scalability in terms of display for equipment.

Description

The implementation method of virtual display device in Android routers
Technical field
The present invention relates to field of communication technology more particularly to network communication equipment, in particular to a kind of Android routers The implementation method of middle virtual display device.
Background technology
Network is the essential tool of modern life, and gateway device plays a crucial role wherein.With The development of Internet of Things, smart home, wisdom family become following developing direction, the network management as all smart machines The intelligence of person, gateway device have become inexorable trend.In terms of operating system, android system with its powerful function, open Putting property, the features such as can highly customizing, also become numerous immobile terminal intelligence in mobile terminal device market the supreme arrogance of a person with great power The selection of energy equipment.
For reasons of cost, gateway device is generally all without display device, but for smart machine, easily grasps Be as interface it is essential, router as gateway device, computer, mobile phone even TV be all can by network connection at For its display terminal.Android system operates on linux kernel, is capable of providing personalized display interface, still Android system needs kernel to provide addressable display equipment.
Frame buffering (framebuffer) is that linux system be an interface providing of display equipment, it is by display buffer Abstract, the bottom difference of masked images hardware allows upper level applications directly to be carried out to display buffer under graphic model Read-write operation.When android system accesses display equipment, it is not necessary to be concerned about specific location and the storage side of physically displayed buffering area Formula, these are completed by specific frame buffered-display driver itself.But general specific frame buffered-display driver is only suitable for existing for equipment It is particularly shown device, and Android routers need a kind of frame buffered-display driver being directed to there is no display device.
Invention content
The purpose of the present invention is overcoming the above-mentioned prior art, provides a kind of virtual display device driving, makes Use memory headroom as the resource of the virtual display device, construction one actually not existing virtual display device The implementation method of virtual display device in Android routers.
To achieve the goals above, the implementation method of virtual display device has such as in Android routers of the invention Lower composition:
The implementation method of virtual display device, is mainly characterized by the Android routers, the method include with Lower step:
(1) memory field is set in the router to store the relevant parameter of the virtual display device;
(2) virtual display device and the virtual display device are registered in the Android routers Driving;
(3) it will be revised as in memory field about to the operation of the virtual display device in the driving of the virtual display device The operation of the relevant parameter of the virtual display device of storage.
Further, further comprising the steps of between the step (2) and the step (3):
(2.1) relevant parameter of the initialization virtual display device;
(2.2) a display caching area is set in the router, to store frame image data.
Further, further comprising the steps of after the step (3):
(4) judge whether the frame image data in the display caching area writes complete;
(5) if the frame image data in the display caching area writes complete, the interruption of the virtual display device is sent Number;
(6) if the frame image data in the display caching area does not write complete, continue step (4).
Further, the step (3) is specially:
By about the parameter to the virtual display device in the driving of the virtual display device read-write operation and setting Operation is revised as the operation of the relevant parameter to the virtual display device stored in memory field.
The implementation method of virtual display device in the Android routers in the invention is used, compared with prior art, With beneficial technique effect below:
1, Android routers do not show equipment really, but there is display device node in the operating system of equipment, and Display image can be obtained from device node.
2, the Android operation system of Android routers need not change display subsystem, can really be deposited as accessing Display equipment equally access virtual display device.
3, display equipment need not be transmitted data in linux kernel from display buffer, save image show it is required Time and power consumption.
4, this method is suitable for that institute is in need to be run Android system but do not have the smart machine of display device.
Description of the drawings
Fig. 1 be the present invention Android routers in virtual display device implementation method flow chart.
Fig. 2 be the present invention Android routers in virtual display device implementation method realization principle figure.
Specific implementation mode
In order to more clearly describe the technology contents of the present invention, carried out with reference to specific embodiment further Description.
The present invention is in the case of not true display device, by the method for the virtual display device in kernel for upper layer Android system accesses, and when realizing specific display driving under the framebuffer driver frameworks of linux system, passes through Meet android system to the access operation of display equipment, this hair using the mode of memory headroom analog display device entity It is bright router to be solved the problems, such as not show under appointed condition be unable to operate normally android system.
In a preferred embodiment, the present invention is by realizing a kind of special display device drives, by one piece of spy Fixed memory headroom is used as display device resource, the memory block is written in the various data parameters of equipment, construction one is actually It is not existing to show equipment, while one piece of storage space is opened up from memory according to the device parameter of setting and is buffered as frame Area.Android system obtains the device node when running, read or arrange parameter is mapped to virtual unit, and by frame buffer zone To responsible display surfaceflinger service processes space, which can directly write to frame by the image data of generation Buffering area realizes the display function on virtual unit.
It please refers to Fig.1 to shown in Fig. 2, the implementation method of virtual display device includes in Android routers of the invention Following steps:
(1) memory field is set in the router to store the relevant parameter of the virtual display device;
(2) virtual display device and the virtual display device are registered in the Android routers Driving;
(3) it will be revised as in memory field about to the operation of the virtual display device in the driving of the virtual display device The operation of the relevant parameter of the virtual display device of storage.
In a preferred embodiment, further include following step between the step (2) and the step (3) Suddenly:
(2.1) relevant parameter of the initialization virtual display device;
(2.2) a display caching area is set in the router, to store frame image data.
In a preferred embodiment, further comprising the steps of after the step (3):
(4) judge whether the frame image data in the display caching area writes complete;
(5) if the frame image data in the display caching area writes complete, the interruption of the virtual display device is sent Number;
(6) if the frame image data in the display caching area does not write complete, continue step (4).
In a preferred embodiment, the step (3) is specially:
By about the parameter to the virtual display device in the driving of the virtual display device read-write operation and setting Operation is revised as the operation of the relevant parameter to the virtual display device stored in memory field.
The implementation method of virtual display device in the Android routers of the present invention, for the Android of no display equipment Product provides a kind of implementation.Mainly by realizing a kind of special display device drives, using memory headroom as display Device resource, construction one is not actually existing to show equipment, while opening up one piece of storage space from memory and being used as frame Buffering area.The virtual display device provides display device node for android system, equivalent true display equipment.This side Method make not show equipment router can also normal operation android system, and can be normally in virtual display device On delta frame image, save time power consumption, also provide scalability in terms of display for equipment.
In practical applications, the Android routers processing method of virtual display device is real under frame buffered-display driver frame A kind of existing special display device drives.Steps are as follows for specific implementation:
1, apply for one piece of memory field virtual_resourse, be used to store virtual display device resource.
2, register platforms virtual display device.
3, register platforms virtually show driving.
4, when platform drives and detects, initialization of virtual shows resource information.
5, to system application display buffer, for writing frame image data to user's space.
6, the operations such as read-write, setting of all about virtual display device data parameters in driving are changed to region of memory The operation of virtual_resourse.
7, buffering area frame data, which write rear mold and send out, send virtual display device hardware terminal number.
The driving is compiled into the linux kernel for supporting Android, by the kernel mirror image and android system of generation Mirror image programming enters in android routers, starting device, and virtual display device can work.
The implementation method of virtual display device in the Android routers in the invention is used, compared with prior art, With beneficial technique effect below:
1, Android routers do not show equipment really, but there is display device node in the operating system of equipment, and Display image can be obtained from device node.
2, the Android operation system of Android routers need not change display subsystem, can really be deposited as accessing Display equipment equally access virtual display device.
3, display equipment need not be transmitted data in linux kernel from display buffer, save image show it is required Time and power consumption.
4, this method is suitable for that institute is in need to be run Android system but do not have the smart machine of display device.
In this description, the present invention is described with reference to its specific embodiment.But it is clear that can still make Various modifications and alterations are without departing from the spirit and scope of the invention.Therefore, the description and the appended drawings should be considered as illustrative And not restrictive.

Claims (4)

1. the implementation method of virtual display device in a kind of Android routers, which is characterized in that the method includes following Step:
(1) memory field is set in the router to store the relevant parameter of the virtual display device;
(2) virtual display device and the driving of the virtual display device are registered in the Android routers;
(3) it will be revised as about to the operation of the virtual display device to being stored in memory field in the driving of the virtual display device The virtual display device relevant parameter operation.
2. the implementation method of virtual display device in Android routers according to claim 1, which is characterized in that institute It is further comprising the steps of between the step of stating (2) and the step (3):
(2.1) relevant parameter of the initialization virtual display device;
(2.2) a display caching area is set in the router, to store frame image data.
3. the implementation method of virtual display device in Android routers according to claim 2, which is characterized in that institute It is further comprising the steps of after the step of stating (3):
(4) judge whether the frame image data in the display caching area writes complete;
(5) if the frame image data in the display caching area writes complete, the interrupt number of the virtual display device is sent;
(6) if the frame image data in the display caching area does not write complete, continue step (4).
4. the implementation method of virtual display device in Android routers according to claim 1, which is characterized in that institute The step of stating (3) is specially:
It will be operated about the read-write operation of the parameter to the virtual display device and setting in the driving of the virtual display device It is revised as the operation of the relevant parameter to the virtual display device stored in memory field.
CN201510958225.2A 2015-12-18 2015-12-18 The implementation method of virtual display device in Android routers Active CN105630442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510958225.2A CN105630442B (en) 2015-12-18 2015-12-18 The implementation method of virtual display device in Android routers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510958225.2A CN105630442B (en) 2015-12-18 2015-12-18 The implementation method of virtual display device in Android routers

Publications (2)

Publication Number Publication Date
CN105630442A CN105630442A (en) 2016-06-01
CN105630442B true CN105630442B (en) 2018-11-09

Family

ID=56045436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510958225.2A Active CN105630442B (en) 2015-12-18 2015-12-18 The implementation method of virtual display device in Android routers

Country Status (1)

Country Link
CN (1) CN105630442B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106098022B (en) * 2016-06-07 2019-02-12 北京小鸟看看科技有限公司 A kind of method and apparatus shortening picture delay

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739289A (en) * 2008-11-13 2010-06-16 闪联信息技术工程中心有限公司 Method and device for setting display mode in Linux virtual machine
CN102243571A (en) * 2011-07-08 2011-11-16 西安交通大学 Embedded Hypervisor-oriented multi-window display virtual operation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9250700B2 (en) * 2013-02-28 2016-02-02 Apple Inc. System and method for virtual displays

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739289A (en) * 2008-11-13 2010-06-16 闪联信息技术工程中心有限公司 Method and device for setting display mode in Linux virtual machine
CN102243571A (en) * 2011-07-08 2011-11-16 西安交通大学 Embedded Hypervisor-oriented multi-window display virtual operation method

Also Published As

Publication number Publication date
CN105630442A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN105723377B (en) For kernel mode using safety zone
US20200348810A1 (en) Display Management for Native User Experiences
CN106843715B (en) Touch support for remoted applications
CN101714091B (en) Methods and systems to display platform graphics during operating system initialization
CN104583979A (en) Techniques for dynamic physical memory partitioning
CN106293781B (en) The method and apparatus of online upgrading machine virtual machine
JP2008146566A5 (en)
CN104765623A (en) Data processing method of multiple operating systems and terminal equipment
CN105190552A (en) Systems and methods of executing multiple hypervisors
CN107562645B (en) Memory page management method and computing device
CN104781794A (en) In-place change between transient and persistent state for data structures in non-volatile memory
WO2016058560A1 (en) External acceleration method based on serving end and external buffer system for computing device, and device implementing said method
CN103473037A (en) Information processing apparatus, information processing method, and program
US9128848B2 (en) General storage cache functionality extension
CN104133671B (en) The hardware interface screening arrangement and method of a kind of digital processing device
KR101551206B1 (en) A vehicle data control system and a control method
CN105630442B (en) The implementation method of virtual display device in Android routers
CN103425563B (en) Based on online I/O electronic evidence-collecting system and the evidence collecting method thereof of Intel Virtualization Technology
CN108154463B (en) Method for managing modeled GPU (graphics processing Unit) video memory system
KR20130090526A (en) Apparatus and method for memory overlay
US20230281135A1 (en) Method for configuring address translation relationship, and computer system
CN108205456A (en) Window rendering intent, equipment and the storage medium of a kind of striding course
US10354623B1 (en) Adaptive buffer latching to reduce display janks caused by variable buffer allocation time
CN112684965A (en) Dynamic wallpaper state changing method and device, electronic equipment and storage medium
US20060036775A1 (en) Apparatus and methods for video graphics array (VGA) virtualization in system exploiting multiple operating systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant