A kind of virtual reality device and its screen control method
Technical field
The embodiment of the present invention belongs to technical field of intelligent equipment, specifically, being related to a kind of virtual reality device and its screen
Curtain control method.
Background technique
Currently, there are mainly three types of product form in virtual reality market: being based on PC (Personal Computer, individual calculus
Machine) virtual reality products, virtual reality all-in-one machine product and mobile virtual reality products.Wherein, virtual existing based on PC
Real product due to being capable of providing the experience best to consumer by PC powerful data-handling capacity and image rendering abilities,
And the important experience point of this product is the effect shown.
But one of existing virtual reality device based on PC mainboard is corresponding to develop a kind of corresponding software progress
Adaptation.If another screen need to be switched, mainboard is done again, and updates corresponding software.This way cause resource with
The waste of cost, nor it is conducive to the iteration of research and development.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of virtual reality device and its screen control method, so that virtual existing
The real compatible a variety of screens of equipment.
The technical issues of to solve in the prior art, the embodiment of the invention provides a kind of virtual reality devices, comprising:
Screen is stored with mark in the screen;
Backlight control component is connect with the screen, the electrical parameter of the setting pin output for receiving the screen, with
And the backlight drive electric current to screen output adaptation;
Controller is connect with the screen and the backlight control component;Wherein, the controller is for reading the mark
Knowledge and the electrical parameter identify the type of the screen according to the mark and the electrical parameter;According to the class of the screen
Type runs corresponding screen driver and controls backlight drive electricity of the backlight control component to screen output adaptation
Stream.
Optionally, the backlight control component includes adjusting circuit and backlight control chip;
The backlight control chip has the first pin, second pin and third pin;
The controller is connect with first pin;
The backlight drive electric current incoming end of the screen is connect with the second pin;
The setting pin of the screen is connect by the adjusting circuit with the third pin.
Optionally, the adjusting circuit includes: first resistor, second resistance, 3rd resistor, the 4th resistance and metal-oxide-semiconductor;
The first end of the first resistor is connect with the setting pin, the second end of the first resistor and the described 4th
The first end of resistance connects;
The second end of 4th resistance is grounded;
The grid of the metal-oxide-semiconductor is connect with the second end of the first resistor, the first end of drain electrode and the second resistance
Connection, source electrode ground connection;
The second end of the second resistance is connect with the third pin;
The first end of the 3rd resistor is connect with the first end of the second resistance, the second termination of the 3rd resistor
Ground.
Optionally, the screen is embedded with eeprom memory;
The controller is connect with the eeprom memory, to read the mark in the eeprom memory.
Optionally, further includes:
First interface;
Video bridging chip is connect with the first interface, the controller and the screen, in the controller
Control under, the video received by the first interface is streamed to the screen and is shown.
Optionally, further includes:
Second interface is connect with the controller, is used for transmission logical between the virtual reality device and external equipment
Letter data.
Optionally, the first interface is display interface or multimedia interface;The second interface is USB interface.
Correspondingly, the embodiment of the invention also provides a kind of screen control methods of virtual reality device, comprising:
Obtain the electrical parameter of the setting pin output of the mark and the screen in screen;
Based on the mark and the electrical parameter, the type of the screen is identified;
According to the type of the screen, runs corresponding screen driver and control backlight control component to the screen
Export the backlight drive electric current of adaptation.
Optionally, when the electrical parameter is level information, the electrical parameter of the setting pin output of screen is obtained, comprising:
The level information for obtaining the third pin of backlight control chip, the electricity ginseng of the setting pin output as the screen
Number;Wherein, the level information of the third pin of the backlight control chip is to be exported and passed through by the setting pin of the screen
After adjusting circuit, it is transmitted to the level information of the third pin of the backlight control chip.
Further optionally, corresponding screen driver is run, comprising:
The parameter information of the screen is obtained, the parameter information includes the display parameters and control sequential of the screen;
The corresponding screen driver is run according to the parameter information, to drive the screen to run.
Technical solution provided in an embodiment of the present invention, by controller according to the mark of the screen got and setting for screen
The electrical parameter of pin output is determined, to determine the type of screen.According to the type of screen, runs corresponding screen driver and control
The backlight drive electric current that backlight control component processed is adapted to screen output, to meet empty in such a way that software and hardware combines
The demand of the quasi- compatible a variety of screens of real world devices.A variety of screens can not only be switched in the development phase of product early period to carry out
The research and development of product are verified, and can also directly be replaced the screen of different size in the different editions that product appears on the market, be effectively reduced
Research and develop the version management cost of cost and finished product.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Some embodiments of bright embodiment, for those of ordinary skill in the art, without creative efforts, also
Other drawings may be obtained according to these drawings without any creative labor.
Attached drawing described herein is used to provide to further understand the embodiment of the present invention, constitutes the embodiment of the present invention
A part, the illustrative embodiments and their description of the embodiment of the present invention are used to explain the present invention embodiment, do not constitute to this hair
The improper restriction of bright embodiment.
In the accompanying drawings:
Fig. 1 is the electrical block diagram of the virtual reality device of the embodiment of the present invention;
Fig. 2 is the flow diagram of the controller recognition screen type of the embodiment of the present invention;
Fig. 3 is the electrical block diagram of the backlight control component of the embodiment of the present invention;
Fig. 4 is the flow diagram of the screen control method of the virtual reality device of the embodiment of the present invention.
Description of symbols
10: screen;20: backlight control component;21: backlight control chip;22: adjusting circuit;221: first resistor: 222:
Second resistance;223: 3rd resistor;224: the four resistance;225:MOS pipe;30: controller;40: first interface;50: video bridge
Connect chip;60: second interface.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the embodiment of the present invention, instead of all the embodiments.Based on the embodiment in the embodiment of the present invention, this field
Those of ordinary skill's every other embodiment obtained without making creative work, belongs to implementation of the present invention
The range of example protection.
In some processes described in specification of the invention, claims and above-mentioned attached drawing, contain according to spy
Multiple operations that fixed sequence occurs, these operations can not be executed according to its sequence what appears in this article or be executed parallel.
Serial number of operation such as 101,102 etc. is only used for distinguishing each different operation, and it is suitable that serial number itself does not represent any execution
Sequence.In addition, these processes may include more or fewer operations, and these operations can be executed in order or be held parallel
Row.It should be noted that the description such as herein " first ", " second ", be for distinguishing different message, equipment, module etc.,
Sequencing is not represented, " first " and " second " is not also limited and is different type.
Inventor has found that the existing virtual reality device based on PC can only use one kind in the implementation of the present invention
If screen need to redesign the mainboard of virtual reality device result in the need for switching another screen because of certain reason, and
Update corresponding software.This way causes the waste of resource and cost, nor is conducive to the iteration of research and development.
It therefore, is to solve defect in the prior art, the embodiment of the present invention provides a kind of virtual reality device and its screen
Control method, so that the compatible a variety of screens of virtual reality device.
Carry out the embodiment of the present invention will be described in detail embodiment below in conjunction with accompanying drawings and embodiments, whereby to of the invention real
Applying such as what applied technology method can fully understand and reality accordingly to solve technical problem and reach the realization process of technical effect
It applies, structure of the invention is described further below in conjunction with attached drawing.
The same or similar label correspond to the same or similar components in the attached drawing of the embodiment of the present invention;Implement in the present invention
In the description of example, it is to be understood that if the orientation or positional relationship for having the instructions such as term " on ", "lower", "left", "right" is base
In orientation or positional relationship shown in the drawings, it is merely for convenience of the description embodiment of the present invention and simplifies description, rather than indicate
Or imply that signified device or element must have a particular orientation, be constructed and operated in a specific orientation, therefore retouch in attached drawing
The term for stating positional relationship only for illustration, should not be understood as the limitation to the embodiment of the present invention, for this field
For those of ordinary skill, the concrete meaning of above-mentioned term can be understood as the case may be.
Embodiment 1
Fig. 1 is the structural schematic diagram of the virtual reality device of the embodiment of the present invention, as shown in Figure 1.
The embodiment of the invention provides a kind of virtual reality devices, comprising: screen 10, backlight control component 20 and controller
30.Wherein, mark is stored in screen 10.Backlight control component 20 is connect with screen 10, and the setting for receiving screen 10 is drawn
The electrical parameter of foot output, and the backlight drive electric current to the output adaptation of screen 10.Controller 30 and screen 10 and backlight control
Component 20 connects.Wherein, controller 30 is for reading mark and electrical parameter, according to mark and electrical parameter, the class of recognition screen 10
Type.According to the type of screen 10, runs corresponding screen driver and control backlight control component 20 and fitted to the output of screen 10
The backlight drive electric current matched.
Technical solution provided in an embodiment of the present invention, controller 30 is according to the mark of the screen got and the setting of screen
The electrical parameter of pin output, determines the type of screen 10.According to the type of screen 10, runs corresponding screen driver and control
The backlight drive electric current that backlight control component 20 processed is adapted to the output of screen 10, thus in such a way that software and hardware combines, it is full
The demand of the compatible a variety of screens 10 of sufficient virtual reality device.A variety of screens can not only be switched in the development phase of product early period
10 verify to carry out the research and development of product, can also directly replace the screen 10 of different size in the different editions that product appears on the market,
Effectively reduce the version management cost of research and development cost and finished product.
Virtual reality device provided in an embodiment of the present invention is further detailed below.
For example, referring to fig. 2, controller 30 is as follows according to the mode of mark and the type of electrical parameter recognition screen 10:
Virtual reality device is after bringing into operation, firstly, controller 30 judges whether the screen 10 of access has identified
Its type.In the embodiment of the present invention, default screen 10 unidentified type, controller 30 out need to actively go to read when just bringing into operation
The mark of screen 10 is taken, mark includes but is not limited to for identification code.Controller 30 sends the instruction for reading mark to screen 10, from
After the mark for obtaining return in screen 10, it is stored in the program of controller 30.Meanwhile the setting of the acquisition screen 10 of controller 30 is drawn
The electrical parameter of foot output.Controller 30 determines the type of the screen 10 of access according to the mark and electrical parameter got.According to mark
Know and electrical parameter represent screen 10, controller 30 run corresponding screen driver and control backlight control component 20 to
The backlight drive electric current of the output adaptation of screen 10.
Referring to Fig. 3, in a kind of achievable embodiment of the invention, backlight control component 20 includes backlight control chip 21
And adjust circuit 22.Backlight control chip 21 has the first pin, second pin and third pin.Controller 30 and the first pin
Connection.The backlight drive electric current incoming end of screen 10 is connect with second pin.The setting pin of screen 10 is by adjusting circuit 22
It is connect with third pin.
For example, when electrical parameter is level information, the setting pin of screen 10 is adjusted to 22 output level of circuit is adjusted
Circuit 22 adjusts the resistance value of itself according to the varying level value received, so as to adjust the of access backlight control chip 21
The resistance value of three pins.Backlight control chip 21 can accordingly obtain not according to the different resistance values being connected on its third pin
Same level information.The level information of the third pin of backlight control chip 21 can be read by the first pin for controller 30.
Further, adjusting circuit 22 includes: first resistor 221, second resistance 222,3rd resistor 223, the 4th resistance
224 and metal-oxide-semiconductor 225 (Metal Oxide Semiconductor).The first end of first resistor 221 is connect with setting pin, the
The second end of one resistance 221 is connect with the first end of the 4th resistance 224.The second end of 4th resistance 224 is grounded.Metal-oxide-semiconductor 225
Grid is connect with the second end of first resistor 221, and drain electrode is connect with the first end of second resistance 222, source electrode ground connection.Second resistance
222 second end is connect with third pin.The first end of 3rd resistor 223 is connect with the first end of second resistance 222, third electricity
The second end ground connection of resistance 223.
For example, it is connected between screen 10 and backlight control chip 21 by adjusting circuit 22, backlight control chip 21
Third pin obtain different level informations according to the different resistance values for the adjusting circuit 22 being connected thereto, thus to screen 10
Backlight drive electric current incoming end export different backlight drive electric currents.The level that different screens 10 passes through setting pin output
Difference, the grid of metal-oxide-semiconductor 225 realize the conducting situation between source electrode and drain electrode, to change according to the level height received
Access the difference of the resistance value of the third pin of backlight control chip 21.For example, screen 10 exports high level by setting pin,
Then the source electrode and drain electrode conducting of metal-oxide-semiconductor 225, the resistance value being connected on the third pin of backlight control chip 21 are second resistance
222 resistance value.Screen 10 exports low level by setting pin, then the source electrode and drain electrode of metal-oxide-semiconductor 225 is not turned on, and is connected to
Resistance value on the third pin of backlight control chip 21 is the sum of the resistance value of second resistance 222 plus 3rd resistor 223.Pass through
This mode adjusts circuit 22 according to the varying level value received, adjusts the resistance value of itself, so as to adjust access backlight control
The resistance value of the third pin of coremaking piece 21.Backlight control chip 21 is according to the different resistance value meetings being connected on third pin
Accordingly obtain different level informations.By the above-mentioned means, hardware can be obtained when the virtual reality device a variety of screens 10 of compatibility
Upper support.
Further, in a kind of achievable embodiment of the invention, screen 10 is embedded with eeprom memory
(Electrically Erasable Programmable read only memory, Electrically Erasable Programmable Read-Only Memory,
The storage chip that data are not lost after a kind of power down).Controller is connect with eeprom memory, to read in eeprom memory
Mark.The mark stored in eeprom memory include but is not limited to be identification code, which can be unique.Read mark
Mode to include controller 30 send the instruction for reading mark to eeprom memory, obtain and return from eeprom memory
After mark, it is stored in the program of controller 30.
In the embodiment of the present invention, on hardware, controller 30 can be detected by the first pin and be connected to backlight control chip
Level information on 21 third pin is joined the level information on third pin as the electricity of the setting pin output of screen 10
Number.On software, controller 30 obtains mark from the eeprom memory of screen 10.Controller 30 according to the mark of screen 10 with
And the electrical parameter of the setting pin output of screen 10 determines the type of the screen 10 of access.To according to the screen 10 identified
Type runs corresponding screen driver and controls backlight drive electricity of the backlight control component 20 to the output adaptation of screen 10
Stream.To in such a way that software and hardware combines, meet the needs of virtual reality device compatibility a variety of screen 10.
Further, with continued reference to Fig. 1, in a kind of achievable embodiment of the invention, virtual reality device further include:
First interface 40 and video bridging chip 50.Wherein, video bridging chip 50 and first interface 40, controller 30 and screen 10 connect
It connects, under the control of the controller 30, the video received by first interface 40 being streamed to screen 10 and is shown.
For example, first interface 40 is connect with external equipment, external equipment include but is not limited to be PC equipment (Personal
Computer, personal computer).PC equipment exports video information to virtual reality device by first interface 40, and video flows through
The video bridge joint of video bridging chip 50 is crossed, then is transferred to screen 10, is shown.Control for video bridging chip 50,
It is completed by controller 30.In addition, controller 30 can send the instruction for reading mark by video bridging chip 50 to screen 10.
Further, virtual reality device further include: second interface 60, second interface 60 connect with controller 30, be used for
Communication data between transfer of virtual real world devices and external equipment.Second interface 60 is connect with external equipment, and PC equipment can lead to
It crosses second interface 60 and exports control instruction to virtual reality device.In a kind of achievable embodiment of the invention, first interface
40 be display interface or multimedia interface.Second interface 60 is USB interface.
For example, virtual reality device passes through USB interface and display interface (DP, DisplayPort)/multimedia interface
(HDMI, High Definition Multimedia Interface) is connect with PC equipment (personal computer).Screen 10 with
Video bridging chip 50 and backlight control component 20 connect, and video flows through PC equipment by DP/HDMI video line, then by view
The video of frequency bridging chip 50 bridges, then passes through MIPI (mobile industry processor interface, Mobile Industry
Processor Interface) agreement is transferred to screen 10 and shown.Control for video bridging chip 50, by controlling
Device 30 is completed by I2C (Inter-Integrated Circuit, twin wire universal serial bus) interface.For backlight control group
The control of part 20 passes through GPIO (General Purpose Input Output, universal input/output) interface by controller 30
It completes.
Embodiment 2
Fig. 4 is the process of the screen control method for the virtual reality device that a kind of achievable embodiment of the invention provides
Schematic diagram.The executing subject of the method provided in this embodiment can be controller 30, which can be virtual existing
The controller 30 of real equipment, the present invention is not especially limit this.The method provided in this embodiment need to be based on upper
The virtual reality device that each embodiment provides is stated to realize.
Specifically, the described method includes:
S101: the electrical parameter of the setting pin output of the mark and screen 10 in screen 10 is obtained;
S102: based on mark and electrical parameter, the type of recognition screen 10;
S103: it according to the type of screen, runs corresponding screen driver and controls backlight control component 20 to screen
The backlight drive electric current of 10 output adaptations.
Technical solution provided in an embodiment of the present invention, controller 30 is according to the mark of the screen got and the setting of screen
The electrical parameter of pin output, determines the type of screen 10.Corresponding screen driver is run according to the type of screen 10 and is controlled
The backlight drive electric current that backlight control component 20 processed is adapted to the output of screen 10, thus in such a way that software and hardware combines, it is full
The demand of the compatible a variety of screens 10 of sufficient virtual reality device.A variety of screens can not only be switched in the development phase of product early period
10 verify to carry out the research and development of product, can also directly replace the screen 10 of different size in the different editions that product appears on the market,
Effectively reduce the version management cost of research and development cost and finished product.
Further, for step S101, when electrical parameter is level information, the setting pin output of screen 10 is obtained
Electrical parameter, comprising:
The level information for obtaining the third pin of backlight control chip 21, the electricity ginseng of the setting pin output as screen 10
Number.Wherein, the level information of the third pin of backlight control chip 21 is by the setting pin output of screen 10 and through overregulating
After circuit 22, it is transmitted to the level information of the third pin of backlight control chip 21.
For example, backlight control component 20 includes backlight control chip 21 and adjusting circuit 22.Backlight control chip 21
With the first pin, second pin and third pin.Controller 30 is connect with the first pin.The backlight drive electric current of screen 10 connects
Enter end to connect with second pin.The setting pin of screen 10 is connect by adjusting circuit 22 with third pin.Electrical parameter is level
When information, the setting pin of screen 10 adjusts circuit 22 according to the varying level value received to 22 output level of circuit is adjusted,
The resistance value of itself is adjusted, so as to adjust the resistance value of the third pin of access backlight control chip 21.Backlight control chip 21
Different level informations can be accordingly obtained according to the different resistance values being connected on third pin.Controller 30 draws by first
The level information for adjusting the third pin of circuit 22 can be read in foot, the electrical parameter of the setting pin output as screen 10.
Further, in a kind of achievable embodiment of the invention, the mark in screen 10 is obtained, comprising: Xiang Ping
Curtain 10 sends the instruction for reading mark, and obtains the mark of the return of screen 10.For example, screen 10 is embedded with EEPROM storage
Device.The mark stored in eeprom memory include but is not limited to be identification code, which can be unique.Controller 30 to
Eeprom memory sends the instruction for reading mark, after the mark for obtaining return in eeprom memory, is stored in controller 30
Program in.
Further, for step S103, corresponding screen driver is run, comprising:
The parameter information of screen 10 is obtained, parameter information includes the display parameters and control sequential of screen 10.According to parameter
Information runs corresponding screen driver, to drive screen 10 to run.
For example, display parameters include but is not limited to be running frequency, height, width of screen 10 etc..At runtime,
There are display parameters and the differences of control sequential for the screen 10 of different size.If according to same display parameters and control sequential
Different screens 10 is driven, the case where screen 10 can not work normally is had, it is therefore desirable to be believed according to the parameter of different screen 10
Breath runs corresponding screen driver, to guarantee the normal operation of different screen 10.It should be noted that the ginseng of screen 10
Number information can save in the controller 30, after controller 30 gets the mark of screen 10, transferred and identified according to mark
The parameter information of corresponding screen 10.Or the parameter information of screen 10 can save in memory, controller 30 obtains
To after the mark of screen 10, the parameter information of screen 10 is obtained in memory according to mark.
The technical characteristic of method in embodiment 2 and the feature of the device in embodiment 1 can be referred to mutually, herein not one by one
It repeats.
In conclusion technical solution provided in an embodiment of the present invention, technical solution provided in an embodiment of the present invention, controller
According to the electrical parameter of the setting pin output of the mark of the screen got and screen, the type of screen is determined.According to screen
Type runs corresponding screen driver and controls backlight drive electric current of the backlight control component to screen output adaptation, thus
In such a way that software and hardware combines, meets the needs of virtual reality device compatibility a variety of screens.It can not only be in product early period
Development phase, switch a variety of screens carry out the research and development of product verifying, can also be in the different editions that product appears on the market, directly
The screen for replacing different size effectively reduces the version management cost of research and development cost and finished product.
It should be noted that, although being described in detail in conjunction with attached drawing to a specific embodiment of the invention, but not
It is interpreted as the restriction to protection scope of the present invention.In range described by claims, those skilled in the art are not
The various modifications and deformation that can be made through creative work still fall within protection scope of the present invention.
The example of the embodiment of the present invention is intended to concisely illustrate the technical characterstic of the embodiment of the present invention, so that art technology
Personnel can intuitively understand the technical characterstic of the embodiment of the present invention, be not intended as the improper restriction of the embodiment of the present invention.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member
It is physically separated with being or may not be.Those of ordinary skill in the art are not the case where paying creative labor
Under, it can it understands and implements.
Several preferred embodiments of the embodiment of the present invention have shown and described in above description, but as previously described, it should be understood that
The embodiment of the present invention is not limited to forms disclosed herein, and should not be regarded as an exclusion of other examples, and can be used for
Other combinations, modifications, and environments, and above-mentioned introduction or related fields can be passed through in application contemplated scope described herein
Technology or knowledge be modified.And changes and modifications made by those skilled in the art do not depart from the embodiment of the present invention spirit and
Range, then all should be in the protection scope of appended claims of the embodiment of the present invention.