Virtual reality equipment and screen control method thereof
Technical Field
The embodiment of the invention belongs to the technical field of intelligent equipment, and particularly relates to virtual reality equipment and a screen control method thereof.
Background
Currently, the virtual reality market has three major product forms: PC (Personal Computer) based virtual reality products, virtual reality all-in-one products, and mobile virtual reality products. The PC-based virtual reality product can provide the best experience for consumers due to the powerful data processing capability and image rendering capability of the PC, and the important experience point of the product is the display effect.
However, a main board in the existing PC-based virtual reality device is adapted by correspondingly developing a corresponding software. And if another screen needs to be switched, the mainboard needs to be reworked, and corresponding software needs to be updated. This practice results in wasted resources and costs, and is also not conducive to the iteration of development.
Disclosure of Invention
In view of this, embodiments of the present invention provide a virtual reality device and a screen control method thereof, so that the virtual reality device can be compatible with multiple screens.
In order to solve the technical problem in the prior art, an embodiment of the present invention provides a virtual reality device, including:
a screen having an identifier stored therein;
the backlight control assembly is connected with the screen and used for receiving the electrical parameters output by the setting pins of the screen and outputting adaptive backlight driving current to the screen;
a controller connected with the screen and the backlight control assembly; the controller is used for reading the identifier and the electrical parameter and identifying the type of the screen according to the identifier and the electrical parameter; and according to the type of the screen, operating a corresponding screen driving program and controlling the backlight control assembly to output adaptive backlight driving current to the screen.
Optionally, the backlight control assembly includes a regulating circuit and a backlight control chip;
the backlight control chip is provided with a first pin, a second pin and a third pin;
the controller is connected with the first pin;
the backlight driving current access end of the screen is connected with the second pin;
the setting pin of the screen is connected with the third pin through the adjusting circuit.
Optionally, the adjustment circuit comprises: the MOS transistor comprises a first resistor, a second resistor, a third resistor, a fourth resistor and an MOS transistor;
the first end of the first resistor is connected with the setting pin, and the second end of the first resistor is connected with the first end of the fourth resistor;
a second end of the fourth resistor is grounded;
the grid electrode of the MOS tube is connected with the second end of the first resistor, the drain electrode of the MOS tube is connected with the first end of the second resistor, and the source electrode of the MOS tube is grounded;
a second end of the second resistor is connected with the third pin;
the first end of the third resistor is connected with the first end of the second resistor, and the second end of the third resistor is grounded.
Optionally, the screen has embedded therein EEPROM memory;
the controller is connected with the EEPROM memory to read the identification in the EEPROM memory.
Optionally, the method further comprises:
a first interface;
and the video bridging chip is connected with the first interface, the controller and the screen and is used for transmitting the video stream received by the first interface to the screen for displaying under the control of the controller.
Optionally, the method further comprises:
and the second interface is connected with the controller and used for transmitting communication data between the virtual reality equipment and external equipment.
Optionally, the first interface is a display interface or a multimedia interface; the second interface is a USB interface.
Correspondingly, the embodiment of the invention also provides a screen control method of the virtual reality equipment, which comprises the following steps:
acquiring an identifier in a screen and an electrical parameter output by a setting pin of the screen;
identifying a type of the screen based on the identification and the electrical parameter;
and according to the type of the screen, operating a corresponding screen driving program and controlling a backlight control assembly to output adaptive backlight driving current to the screen.
Optionally, when the electrical parameter is level information, acquiring an electrical parameter output by a setting pin of a screen, including:
acquiring level information of a third pin of a backlight control chip as an electrical parameter output by a set pin of the screen; the level information of the third pin of the backlight control chip is output by the setting pin of the screen, passes through the regulating circuit and is transmitted to the level information of the third pin of the backlight control chip.
In addition, optionally, running a corresponding screen driver includes:
acquiring parameter information of the screen, wherein the parameter information comprises display parameters and a control time sequence of the screen;
and running the corresponding screen driving program according to the parameter information so as to drive the screen to run.
According to the technical scheme provided by the embodiment of the invention, the type of the screen is determined by the controller according to the acquired identifier of the screen and the electric parameters output by the setting pin of the screen. According to the type of the screen, a corresponding screen driving program is operated and the backlight control assembly is controlled to output adaptive backlight driving current to the screen, so that the requirement that the virtual reality equipment is compatible with various screens is met in a software and hardware combination mode. The system can switch various screens to carry out research and development verification on products in the early research and development stage of the products, and can directly replace the screens with different specifications in different versions of products on the market, so that the research and development cost and the version management cost of finished products are effectively reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention and not to limit the embodiments of the invention unduly.
In the drawings:
fig. 1 is a schematic circuit structure diagram of a virtual reality device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a process of identifying a screen type by a controller according to an embodiment of the present invention;
FIG. 3 is a schematic circuit diagram of a backlight control assembly according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a screen control method of a virtual reality device according to an embodiment of the present invention.
Description of the reference numerals
10: a screen; 20: a backlight control assembly; 21: a backlight control chip; 22: a regulating circuit; 221: a first resistance: 222: a second resistor; 223: a third resistor; 224: a fourth resistor; 225: an MOS tube; 30: a controller; 40: a first interface; 50: a video bridging chip; 60: a second interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without any creative efforts shall fall within the protection scope of the embodiments of the present invention.
In some of the flows described in the specification, claims, and above-described figures of the present invention, a number of operations are included that occur in a particular order, which operations may be performed out of order or in parallel as they occur herein. The sequence numbers of the operations, e.g., 101, 102, etc., are used merely to distinguish between the various operations, and do not represent any order of execution per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The inventor finds that the existing PC-based virtual reality equipment can only use one screen, and if another screen needs to be switched due to some reason, the mainboard of the virtual reality equipment needs to be redesigned, and corresponding software needs to be updated. This practice results in wasted resources and costs, and is also not conducive to the iteration of development.
Therefore, to overcome the defects in the prior art, embodiments of the present invention provide a virtual reality device and a screen control method thereof, so that the virtual reality device can be compatible with multiple screens.
Embodiments of the present invention will be described in detail with reference to the accompanying drawings and embodiments, so that the implementation process of how to apply the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.
The same or similar reference numerals in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the embodiments of the present invention, it should be understood that, if there are terms such as "upper", "lower", "left", "right", etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the drawings, the terms are only used for convenience in describing the embodiments of the present invention and simplifying the description, but do not indicate or imply that the devices or elements indicated must have specific orientations, be constructed in specific orientations, and be operated, so that the terms describing the positional relationships in the drawings are only used for illustrative purposes and are not to be construed as limiting the embodiments of the present invention, and the specific meanings of the terms may be understood by those skilled in the art according to specific situations.
Example 1
Fig. 1 is a schematic structural diagram of a virtual reality device according to an embodiment of the present invention, as shown in fig. 1.
The embodiment of the invention provides virtual reality equipment, which comprises: a screen 10, a backlight control assembly 20, and a controller 30. Wherein a logo is stored in the screen 10. The backlight control assembly 20 is connected to the screen 10, and is configured to receive the electrical parameters outputted from the setting pins of the screen 10 and output the adapted backlight driving current to the screen 10. The controller 30 is connected with the screen 10 and the backlight control assembly 20. The controller 30 is configured to read the identifier and the electrical parameter, and identify the type of the screen 10 according to the identifier and the electrical parameter. According to the type of the screen 10, a corresponding screen driver is run and the backlight control assembly 20 is controlled to output an adapted backlight driving current to the screen 10.
According to the technical scheme provided by the embodiment of the invention, the controller 30 determines the type of the screen 10 according to the acquired screen identifier and the electrical parameter output by the setting pin of the screen. According to the type of the screen 10, a corresponding screen driver is operated and the backlight control assembly 20 is controlled to output adaptive backlight driving current to the screen 10, so that the requirement that the virtual reality device is compatible with various screens 10 is met in a mode of combining software and hardware. The screen 10 with different specifications can be directly replaced in different versions of the product market, and the research and development cost and the version management cost of finished products are effectively reduced.
The virtual reality device provided by the embodiment of the invention is further described in detail below.
For example, referring to fig. 2, the controller 30 identifies the type of screen 10 based on the identification and the electrical parameter as follows:
after the virtual reality device starts operating, first, the controller 30 determines whether the accessed screen 10 has recognized its type. In the embodiment of the present invention, the default screen 10 does not recognize the type at the beginning of operation, and the controller 30 needs to actively read the identifier of the screen 10, which includes but is not limited to the identification code. The controller 30 sends an instruction to read the identifier to the screen 10, and after acquiring the returned identifier from the screen 10, the identifier is stored in the program of the controller 30. At the same time, the controller 30 acquires the electrical parameters output from the setting pins of the screen 10. The controller 30 determines the type of the accessed screen 10 according to the acquired identification and the electrical parameter. Based on the screen 10 represented by the logo and the electrical parameter, the controller 30 runs a corresponding screen driver and controls the backlight control assembly 20 to output an adapted backlight driving current to the screen 10.
Referring to fig. 3, in an embodiment of the present invention, the backlight control assembly 20 includes a backlight control chip 21 and a regulation circuit 22. The backlight control chip 21 has a first pin, a second pin, and a third pin. The controller 30 is connected to the first pin. The backlight driving current incoming end of the screen 10 is connected to the second pin. The setting pin of the screen 10 is connected to the third pin through the adjusting circuit 22.
For example, when the electrical parameter is level information, the setting pin of the screen 10 outputs a level to the adjusting circuit 22, and the adjusting circuit 22 adjusts its own resistance value according to the received different level values, thereby adjusting the resistance value of the third pin connected to the backlight control chip 21. The backlight control chip 21 obtains different level information according to different resistance values connected to the third pin of the backlight control chip. The controller 30 may read level information of the third pin of the backlight control chip 21 through the first pin.
Further, the adjusting circuit 22 includes: a first resistor 221, a second resistor 222, a third resistor 223, a fourth resistor 224, and a MOS transistor 225(Metal Oxide Semiconductor). A first end of the first resistor 221 is connected to the set pin, and a second end of the first resistor 221 is connected to a first end of the fourth resistor 224. A second terminal of the fourth resistor 224 is connected to ground. The gate of the MOS transistor 225 is connected to the second terminal of the first resistor 221, the drain is connected to the first terminal of the second resistor 222, and the source is grounded. A second terminal of the second resistor 222 is connected to a third pin. A first terminal of the third resistor 223 is connected to a first terminal of the second resistor 222, and a second terminal of the third resistor 223 is grounded.
For example, the screen 10 is connected to the backlight control chip 21 through the adjusting circuit 22, and the third pin of the backlight control chip 21 obtains different level information according to different resistance values of the adjusting circuit 22 connected thereto, so as to output different backlight driving currents to the backlight driving current input terminal of the screen 10. Different screens 10 set different levels output by the pins, and the gate of the MOS transistor 225 realizes conduction between the source and the drain according to the level received, so as to change the difference of the resistance value of the third pin connected to the back light control chip 21. For example, when the screen 10 outputs a high level through the set pin, the source and the drain of the MOS transistor 225 are turned on, and the resistance value connected to the third pin of the back light control chip 21 is the resistance value of the second resistor 222. When the screen 10 outputs a low level through the set pin, the source and the drain of the MOS transistor 225 are not turned on, and the resistance value connected to the third pin of the back light control chip 21 is the sum of the resistance values of the second resistor 222 and the third resistor 223. In this way, the adjusting circuit 22 adjusts its own resistance value according to the received different level values, thereby adjusting the resistance value of the third pin connected to the backlight control chip 21. The backlight control chip 21 obtains different level information according to different resistance values connected to the third pin. By the above method, when the virtual reality device is compatible with various screens 10, hardware support can be obtained.
Further, in an embodiment of the present invention, the screen 10 is embedded with an EEPROM (Electrically Erasable Programmable read only memory, a memory chip with no data loss after power failure). The controller is connected with the EEPROM memory to read the identification in the EEPROM memory. The identification stored in the EEPROM memory includes, but is not limited to, an identification code, which may be unique. The way of reading the identifier includes that the controller 30 sends an instruction for reading the identifier to the EEPROM memory, and the returned identifier is acquired from the EEPROM memory and stored in the program of the controller 30.
In the embodiment of the present invention, in terms of hardware, the controller 30 may detect the level information connected to the third pin of the backlight control chip 21 through the first pin, and use the level information on the third pin as the electrical parameter output by the setting pin of the screen 10. In software, controller 30 retrieves the identification from the EEPROM memory of screen 10. The controller 30 determines the type of the accessed screen 10 according to the identification of the screen 10 and the electrical parameters output by the setting pins of the screen 10. Thereby operating a corresponding screen driver and controlling the backlight control assembly 20 to output an adapted backlight driving current to the screen 10 according to the recognized type of the screen 10. Therefore, the requirement that the virtual reality equipment is compatible with various screens 10 is met in a mode of combining software and hardware.
Further, with continued reference to fig. 1, in an implementable embodiment of the invention, the virtual reality device further comprises: a first interface 40 and a video bridge chip 50. The video bridge chip 50 is connected to the first interface 40, the controller 30 and the screen 10, and is configured to transmit a video stream received through the first interface 40 to the screen 10 for displaying under the control of the controller 30. For example, the first interface 40 is connected to an external device, which includes but is not limited to a PC device (personal computer). The PC device outputs video information to the virtual reality device through the first interface 40, and the video stream is bridged by the video bridging chip 50 and then transmitted to the screen 10 for display. Control of the video bridge chip 50 is accomplished by the controller 30. In addition, the controller 30 may send an instruction to read the identification to the screen 10 through the video bridge chip 50.
Further, the virtual reality device further includes: and a second interface 60, wherein the second interface 60 is connected with the controller 30 and is used for transmitting communication data between the virtual reality device and an external device. The second interface 60 is connected to an external device, and the PC device can output a control command to the virtual reality device through the second interface 60. In an embodiment of the invention, the first interface 40 is a display interface or a multimedia interface. The second interface 60 is a USB interface.
For example, the virtual reality device is connected to a PC device (personal computer) through a USB Interface and a display Interface (DP)/Multimedia Interface (HDMI). The screen 10 is connected to the video bridge chip 50 and the backlight control module 20, and a video stream passes through a DP/HDMI video line via a PC device, then passes through video bridging of the video bridge chip 50, and then is transmitted to the screen 10 for display via an MIPI (Mobile industry processor Interface) protocol. Control of the video bridge chip 50 is accomplished by the controller 30 via an I2C (Inter-Integrated Circuit) interface. Control of the backlight control assembly 20 is accomplished by the controller 30 through a GPIO (General Purpose Input/Output) interface.
Example 2
Fig. 4 is a flowchart illustrating a screen control method of a virtual reality device according to an implementation example of the present invention. The main body of the method provided in this embodiment may be the controller 30, and the controller 30 may be the controller 30 of the virtual reality device, which is not specifically limited in this embodiment of the present invention. The method provided by the embodiment needs to be implemented based on the virtual reality device provided by each embodiment.
Specifically, the method comprises the following steps:
s101: acquiring an identifier in the screen 10 and an electrical parameter output by a setting pin of the screen 10;
s102: identifying the type of the screen 10 based on the identification and the electrical parameter;
s103: according to the type of the screen, a corresponding screen driver is run and the backlight control assembly 20 is controlled to output the adapted backlight driving current to the screen 10.
According to the technical scheme provided by the embodiment of the invention, the controller 30 determines the type of the screen 10 according to the acquired screen identifier and the electrical parameter output by the setting pin of the screen. And running a corresponding screen driver according to the type of the screen 10 and controlling the backlight control assembly 20 to output adaptive backlight driving current to the screen 10, so that the requirement that the virtual reality device is compatible with various screens 10 is met in a mode of combining software and hardware. The screen 10 with different specifications can be directly replaced in different versions of the product market, and the research and development cost and the version management cost of finished products are effectively reduced.
Further, for step S101, when the electrical parameter is level information, acquiring the electrical parameter output by the setting pin of the screen 10 includes:
the level information of the third pin of the back light control chip 21 is acquired as the electrical parameter output by the setting pin of the screen 10. The level information of the third pin of the back light control chip 21 is output by the setting pin of the screen 10, passes through the regulating circuit 22, and is transmitted to the third pin of the back light control chip 21.
For example, the backlight control component 20 includes a backlight control chip 21 and a regulation circuit 22. The backlight control chip 21 has a first pin, a second pin, and a third pin. The controller 30 is connected to the first pin. The backlight driving current incoming end of the screen 10 is connected to the second pin. The setting pin of the screen 10 is connected to the third pin through the adjusting circuit 22. When the electrical parameter is level information, the setting pin of the screen 10 outputs a level to the adjusting circuit 22, and the adjusting circuit 22 adjusts its own resistance value according to the received different level values, thereby adjusting the resistance value of the third pin connected to the back light control chip 21. The backlight control chip 21 obtains different level information according to different resistance values connected to the third pin. The controller 30 may read level information of the third pin of the adjusting circuit 22 through the first pin as an electrical parameter output from the setting pin of the screen 10.
Further, in an implementable embodiment of the present invention, obtaining the identification within the screen 10 includes: an instruction to read the identifier is sent to the screen 10 and the identifier returned by the screen 10 is acquired. For example, the screen 10 has embedded therein EEPROM memory. The identification stored in the EEPROM memory includes, but is not limited to, an identification code, which may be unique. The controller 30 sends an instruction to read the identifier to the EEPROM memory, and after acquiring the returned identifier from the EEPROM memory, stores the identifier in the program of the controller 30.
Further, for step S103, running a corresponding screen driver includes:
parameter information of the screen 10 is acquired, and the parameter information includes display parameters and control timing of the screen 10. And operating a corresponding screen driver according to the parameter information to drive the screen 10 to operate.
For example, the display parameters include, but are not limited to, the operating frequency, height, width, etc. of the screen 10. In operation, the screens 10 of different specifications have different display parameters and control timings. If different screens 10 are driven according to the same display parameter and control timing sequence, the screens 10 may not work normally, and therefore, it is necessary to run corresponding screen drivers according to the parameter information of different screens 10 to ensure the normal operation of different screens 10. It should be noted that the parameter information of the screen 10 may be stored in the controller 30, and after the controller 30 acquires the identifier of the screen 10, the controller calls the parameter information of the screen 10 corresponding to the identifier according to the identifier. Or the parameter information of the screen 10 may be stored in a memory, and after the controller 30 acquires the identifier of the screen 10, the parameter information of the screen 10 is acquired in the memory according to the identifier.
Technical features of the method in embodiment 2 and the device in embodiment 1 may be referred to each other, and are not described herein again.
In summary, according to the technical solution provided by the embodiment of the present invention, the controller determines the type of the screen according to the acquired identifier of the screen and the electrical parameter output by the setting pin of the screen. And running a corresponding screen driving program according to the type of the screen and controlling the backlight control assembly to output adaptive backlight driving current to the screen, so that the requirement that the virtual reality equipment is compatible with various screens is met in a mode of combining software and hardware. The system can switch various screens to carry out research and development verification on products in the early research and development stage of the products, and can directly replace the screens with different specifications in different versions of products on the market, so that the research and development cost and the version management cost of finished products are effectively reduced.
It should be noted that, although the embodiments of the present invention have been described in detail with reference to the accompanying drawings, the present invention should not be construed as limited to the scope of the present invention. Various modifications and changes may be made by those skilled in the art without inventive step within the scope of the present invention as described in the appended claims.
The examples of the embodiments of the present invention are intended to briefly describe the technical features of the embodiments of the present invention, so that those skilled in the art can intuitively understand the technical features of the embodiments of the present invention, and the embodiments of the present invention are not unduly limited.
The above-described apparatus embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separate. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing description shows and describes several preferred embodiments of the invention, but as aforementioned, it is to be understood that the embodiments are not limited to the forms disclosed herein, but are not to be construed as excluding other embodiments and may be utilized in various other combinations, modifications, and environments and is capable of changes within the scope of the application as described herein, commensurate with the above teachings, or the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the embodiments of the invention as defined by the appended claims.