Virtual reality equipment and control method thereof
By using GPIO cables to connect the head-mounted display module and the driver module in the VR device, the same driver system is realized, which solves the problem of high power consumption and high cost of separate VR devices, reduces driver overhead, and improves the operating efficiency of the device.
Patent Information
- Application Number
- CN202410704463.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-30
AI Technical Summary
Existing separate VR devices have high power consumption and high cost, and because the head display module and driver module are driven by different driver systems, driver overhead is increased.
By setting up the head display module and driver module separately in the VR device and connecting them using GPIO cables, the SOC sends control commands to the MCU through the GPIO cable, allowing the MCU to control the operation of the display, camera and sensor, and realize the head display module and The same drive system of the drive module reduces power consumption and cost.
It achieves low power consumption and low cost of separate VR equipment, and the system of head display module and driver module is easy to integrate, which reduces driver overhead and improves the operating efficiency of the equipment.
Smart Images

Figure CN118567478A
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and more specifically, to a virtual reality device and a control method thereof. Background Art
[0002] Virtual Reality (VR) technology is an emerging multimedia technology in recent years. It includes simulated environment, perception, natural skills and sensor equipment, and is a combination of multiple technologies. VR equipment is an electronic device that uses VR technology to output content to build a virtual scene for users to produce virtual visual and auditory effects. VR equipment can usually refer to a head-mounted device that can be worn on the user's head.
[0003] In the current integrated VR devices, since both the host and the display need to be worn on the user's head, it is not only too bulky, but also has a strong sense of oppression on the user's head, seriously affecting the user's sensory effect. With the continuous development of VR technology, people have higher and higher requirements for experience, especially in immersive games, online travel, online model rooms, online cultural and sports events and other related fields, separate VR devices have emerged.
[0004] Separate VR devices generally separate the head-mounted display worn by the user from the host. The head-mounted display is only equipped with necessary external devices to reduce the weight of the user's head and optimize the experience. However, compared with integrated VR devices, current separate VR devices consume much more power and have a much higher cost. When the head-mounted display and the host are driven by different drive systems, the drive overhead will also increase. Summary of the invention
[0005] In view of the above problems, an embodiment of the present application provides a VR device and a control method thereof, which can reduce the power consumption, cost and driving overhead of the VR device.
[0006] In a first aspect, a VR device is provided, including: a head display module, the head display module including a microcontroller unit (MCU), a display screen, a camera and a sensor, the MCU is arranged on a main board, the main board is provided with a plurality of GPIO (General-Purpose Input / Output Ports) pins connected to the MCU, the display screen, the camera and the sensor are connected to the MCU through corresponding GPIO pins, wherein the MCU is used to control the operation of the display screen, the camera and the sensor, the camera is used to obtain image information of the external environment, the display screen is used to display images, and the sensor is used to obtain user action information; a driving module, the driving module including a system on chip (SOC), the driving module is separated from the head display module and the SOC is used to drive the MCU; a connecting module, the connecting module is used to connect the head display module and the driving module, the connecting module includes a GPIO cable; the SOC is used to send a control command to the MCU through the GPIO cable; wherein the control command includes the serial number of the GPIO pin connecting the target device and the MCU, and the control signal and control duration of the target device by the MCU, and the target device includes a display screen, a camera or a sensor; the MCU is used to receive the control command and control the operation of the target device according to the control command.
[0007] In combination with the first aspect, in certain implementations of the first aspect, the control signal and control duration of the target device include a level signal and a level holding time of a GPIO pin connecting the target device to the MCU, and the level signal includes a level high or a level low.
[0008] In combination with the first aspect, in some implementations of the first aspect, the control command further includes first start indication information for indicating the start of the control command and first end indication information for indicating the end of the control command.
[0009] In combination with the first aspect, in certain implementations of the first aspect, the MCU is used to send an operation command to the target device through a GPIO pin connecting the target device and the MCU after receiving a control command. The target device receives the operation command and obtains detection data based on the operation command. The detection data includes image information of the external environment obtained by the target device, user action information, or the operating status of the target device.
[0010] In combination with the first aspect, in certain implementations of the first aspect, the MCU is used to obtain detection data, and the MCU is also used to feed back to the SOC the serial number and detection data of the GPIO pin connecting the target device and the MCU.
[0011] In combination with the first aspect, in certain implementations of the first aspect, the MCU is also used to send a second start indication message to the SOC before sending the serial number and detection data of the GPIO pin connecting the target device to the MCU, and / or send a second end indication message to the SOC after sending the serial number and detection data of the GPIO pin connecting the target device to the MCU.
[0012] In combination with the first aspect, in some implementations of the first aspect, the connection module also includes a head display connector and a drive connector, the head display connector is connected to the MCU through a GPIO cable, and the drive connector is connected to the SOC through a flexible circuit board.
[0013] In combination with the first aspect, in some implementations of the first aspect, the connection module includes a first connection submodule and a second connection submodule, the first connection submodule includes a first head-mounted display connector and a first drive connector, and the second connection submodule includes a second head-mounted display connector and a second drive connector, wherein the first head-mounted display connector and the first drive connector are magnetically connected, and the second head-mounted display connector and the second drive connector are magnetically connected to connect the drive module and the head-mounted display module.
[0014] In combination with the first aspect, in some implementations of the first aspect, the first connection submodule and the second connection submodule each include a GPIO cable.
[0015] In combination with the first aspect, in certain implementations of the first aspect, the first head display connector and the second drive connector are respectively provided with a plurality of GPIO pins, and the plurality of GPIO pins include a plurality of power pins with different transmission voltages and a plurality of signal pins with different transmission voltages. When the first head display connector and the second drive connector are magnetically connected, the plurality of GPIO pins of the first head display connector and the plurality of GPIO pins of the first drive connector correspond to positions of power pins with the same transmission voltage, and the plurality of GPIO pins of the first head display connector and the plurality of GPIO pins of the first drive connector correspond to positions of signal pins with the same transmission voltage.
[0016] In combination with the first aspect, in certain implementations of the first aspect, the first head display connector and the second head display connector are respectively provided with a first insertion detection pin, the first drive connector and the second drive connector are respectively provided with a second insertion detection pin, the drive module is provided with a detection power supply and a detection resistor, one end of the detection resistor is connected to the detection power supply, the other end of the detection resistor is connected to the second insertion detection pin, one end of the first insertion detection pin is grounded, and the first insertion detection pin and the second insertion detection pin are used to detect hot plugging of the head display module.
[0017] In a second aspect, a control method for a VR device is provided. The VR device includes: a head display module, a connection module and a driving module. The head display module includes an MCU, a display screen, a camera and a sensor. The MCU is arranged on a main board. The main board is provided with a plurality of GPIO pins connected to the MCU. The display screen, the camera and the sensor are connected to the MCU through corresponding GPIO pins, respectively. The MCU is used to control the operation of the display screen, the camera and the sensor. The camera is used to obtain image information of the external environment. The display screen is used to display images. The sensor is used to obtain user action information. The driving module includes an SOC. The driving module is separated from the head display module and the SOC is used to drive the MCU. The connection module is used to connect the head display module and the driving module. The connection module includes a GPIO cable and does not include other types of cables. The control method is executed on the SOC. The control method includes: sending a control command to the MCU through the GPIO cable, the control command is used to instruct the MCU to control the operation of a target device, the control command includes the serial number of the GPIO pin connecting the target device to the MCU, and the control signal and control duration of the target device by the MCU. The target device includes a display screen, a camera or a sensor.
[0018] In combination with the second aspect, in certain implementations of the second aspect, the control method also includes: receiving detection data obtained after the target device is running and sent by the MCU, the detection data including image information of the external environment obtained by the target device, user action information or the operating status of the target device.
[0019] In combination with the second aspect, in some implementations of the second aspect, the control method further includes: performing data analysis on the detection data.
[0020] In a third aspect, a control device for a VR device is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program so that the control device implements the control method in the above-mentioned second aspect or any possible implementation method of the second aspect.
[0021] In a fourth aspect, a readable storage medium is provided, which stores a computer program. When the computer program is executed by a computing device, the computing device implements the control method in the above-mentioned second aspect or any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is a schematic block diagram of a VR device disclosed in an embodiment of the present application;
[0023] Figure 2 is a schematic structural diagram of a VR device disclosed in an embodiment of the present application;
[0024] Figure 3is a schematic structural diagram of a VR device disclosed in an embodiment of the present application;
[0025] Figure 4 is a schematic structural diagram of a VR device disclosed in an embodiment of the present application;
[0026] Figure 5 is a schematic diagram of a hot plug detection circuit disclosed in an embodiment of the present application;
[0027] Figure 6 is a schematic flow chart of a control method of a VR device disclosed in an embodiment of the present application;
[0028] Figure 7 It is a schematic block diagram of a control device for a VR device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0030] The technical solution in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. In the description of the embodiment of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0031] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In addition, in the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0032] References to "one embodiment" or "some embodiments" etc. described in the embodiments of the present application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0033] VR technology is an emerging multimedia technology in recent years. It includes simulated environment, perception, natural skills and sensor equipment, and is a combination of multiple technologies. VR equipment is an electronic device that uses VR technology to output content to build a virtual scene for users to produce virtual visual and auditory effects. VR equipment can usually refer to a head-mounted device that can be worn on the user's head.
[0034] In the current integrated VR devices, since both the host and the display need to be worn on the user's head, it is not only too bulky, but also has a strong sense of oppression on the user's head, seriously affecting the user's sensory effect. With the continuous development of VR technology, people have higher and higher requirements for experience, especially in immersive games, online travel, online model rooms, online cultural and sports events and other related fields, separate VR devices have emerged.
[0035] Separate VR devices generally include a head display module and a driver module that are separately set. One type of existing separate VR devices is that the head display module is only provided with a display screen, and is driven by an MCU and a display bridge chip. The driver module only provides power supply and video data to the head display module, and the head display module and the driver module are driven by different drive systems, respectively, so that the power consumption of the separate VR device is high and the functions that can be realized are limited. Another type is that the head display module not only includes a display screen, but also integrates external devices such as a camera and a sensor, and the head display module is provided with a head display driver SOC, which is used to drive the external devices of the head display module. The driver module is provided with a core driver SOC, which mainly provides power supply and video data to the head display driver SOC, and receives data from the external devices of the head display module transmitted from the head display driver SOC through a cable. In this solution, the head display module and the driver module are still driven by different drive systems, the power consumption and cost of the separate VR device are high, and the two drive systems are highly independent and difficult to integrate, which increases the drive overhead.
[0036] In view of this, an embodiment of the present application provides a VR device and a control method thereof. Specifically, the VR device includes a head display module and a driving module that are separately arranged, and a connection module for connecting the head display module and the driving module. Specifically, the head display module includes an MCU, a display screen, a camera, and a sensor. The MCU is arranged on a main board, and a plurality of GPIO pins connected to the MCU are arranged on the main board. The display screen, the camera, and the sensor are connected to the MCU through corresponding GPIO pins, respectively, wherein the MCU is used to control the operation of the display screen, the camera, and the sensor, the camera is used to obtain image information of the external environment, the display screen is used to display images, and the sensor is used to obtain user action information. The driving module includes a SOC, and the SOC is used to drive the MCU. The connection module includes a GPIO cable. The SOC sends a control command to the MCU through the GPIO cable, and the control command includes the serial number of the GPIO pins connecting the target device to the MCU, and the control signal and control duration of the target device by the MCU. The target device includes a display screen, a camera, or a sensor. The MCU receives the control command and controls the operation of the target device according to the control command. In the technical solution of the embodiment of the present application, the SOC of the driving module sends a control command to the MCU of the head display module through the GPIO cable, and the MCU controls the operation of the target device in the display screen, camera and sensor according to the control command. Specifically, the control command includes the serial number of the GPIO pins connected to the target device and the MCU's control signal and control duration for the target device. In other words, the operation of the display screen, camera or sensor connected to the MCU is essentially controlled according to the instructions issued by the SOC of the driving module. The present application sets the MCU on the main board, and then connects the MCU to the display screen, camera and sensor respectively through the GPIO pins on the main board, so that the MCU can control the operation of the display screen, camera and sensor, and then connects the MCU to the SOC through the GPIO cable. The SOC sends control instructions to the MCU through the GPIO cable, so that the MCU can control the operation of the display screen, camera and sensor according to the control instructions. In other words, the MCU of the head display module and the SOC of the driver module are driven by the same driving system. The MCU of the head display module is essentially a SOC mounted on the driver module, so that the low-performance MCU can also take on the driving function of the high-performance SOC for the display, camera and sensor, realizing the low power consumption and low cost of the separated VR device, and the system of the head display module and the driver module is easy to integrate and run in an orderly manner, which can reduce the driving overhead. In addition, the MCU of the head display module is connected to the display, camera and sensor through the GPIO pins on the motherboard, and the information exchange between the MCU of the head display module and the SOC of the driver module is completed through the GPIO cable, so as to realize the indirect control of the display, camera and sensor by the SOC of the driver module while minimizing the cables connecting the head display module and the driver module.
[0037] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0038] Figure 1 A schematic block diagram of a VR device provided in an embodiment of the present application.
[0039] like Figure 1 As shown, the VR device 100 includes a head display module 110, a driving module 120 and a connection module 130 connecting the head display module 110 and the driving module 120, and the driving module 120 is used to drive the head display module 110.
[0040] Specifically, the head display module 110 includes an MCU, a display screen, a camera and a sensor. The MCU is arranged on a main board. The main board is provided with a plurality of GPIO pins connected to the MCU. The display screen, the camera and the sensor are connected to the MCU through corresponding GPIO pins, respectively. The MCU is used to control the operation of the display screen, the camera and the sensor, the camera is used to obtain image information of the external environment, the display screen is used to display images, and the sensor is used to obtain the user's action information.
[0041] MCU, also known as a single-chip microcomputer or single-chip microcomputer, appropriately reduces the frequency and specifications of the central processing unit (CPU), and integrates peripheral interfaces such as memory, counter, USB, A / D conversion, UART, PLC, DMA, and even liquid crystal display (LCD) drive circuits on a single chip to form a chip-level computer, which can provide different combination controls for different application scenarios.
[0042] Exemplarily, the camera may include an eye tracking camera, a perspective camera, and a gesture recognition camera. The sensor may include a posture detection sensor (gyroscope) for detecting the user's head movement; and a wearing detection sensor for detecting the wearing condition of the head display module on the user's head.
[0043] The driving module 120 includes a SOC. The driving module 120 is separately provided from the head display module 110 and the SOC is used to drive the MCU.
[0044] SOC is a highly integrated electronic system that integrates multiple functional modules into a single chip, thereby improving system performance, reducing power consumption, and reducing physical size. The core goal of SOC design is to integrate various components (such as processors, memory, interface controllers, etc.) on a single chip in order to achieve a more compact and efficient electronic system.
[0045] SOC generally may include a CPU, a graphics processing unit (GPU), a memory controller, an input / output (I / O) interface, a memory, and an analog and mixed signal processor, etc. The CPU is responsible for performing computing tasks, such as running operating systems and applications. The GPU is responsible for processing graphics-related tasks, such as rendering 3D graphics, video decoding, etc. In SOC, the GPU is usually tightly integrated with the CPU to achieve high-performance graphics processing. The memory controller is responsible for managing the memory access of the system, including read and write operations. In SOC, the memory controller usually shares a bus with the CPU and other components. The I / O interface is used to communicate with external devices, such as a display, keyboard, mouse, etc. In an embodiment of the present application, in SOC, the I / O interface can communicate with the head display module 110 through the connection module 130. The memory is used to store program code and data, and the memory may include a non-volatile memory (such as flash memory) and a volatile memory (such as DRAM). The analog and mixed signal processor is responsible for processing analog signals, such as audio, video, etc., and the analog and mixed signal processor may include an analog-to-digital converter, a digital-to-analog converter, etc.
[0046] like Figure 2 As shown, the connection module 130 includes a GPIO cable and does not include other types of cables. The SOC sends a control command to the MCU through the GPIO cable. The control command includes the serial number of the GPIO pin connecting the target device to the MCU, and the control signal and control duration of the target device by the MCU. The target device includes a display, a camera or a sensor. The MCU is used to receive the control command and control the operation of the target device according to the control command.
[0047] The GPIO cable can input and output signals such as GPIO signals, MIPI signals, Camera CLK signals, I2C signals, SPI signals, etc. In this way, the transmission of multiple signals can be achieved by only setting up the GPIO cable, and the number of cables of the connection module 130 can be reduced.
[0048] In the embodiment of the present application, the SOC of the driving module 120 sends a control command to the MCU of the head display module 110 through the GPIO cable, and the MCU controls the operation of the target device in the display screen, camera and sensor according to the control command. Specifically, the control command includes the serial number of the GPIO pins connected to the target device and the MCU's control signal and control duration of the target device. In other words, the operation of the display screen, camera or sensor connected to the MCU is essentially controlled according to the instructions issued by the SOC of the driving module. In the present application, the MCU is set on the main board, and the MCU is respectively connected to the display screen, camera and sensor through the GPIO pins on the main board, so that the MCU can control the operation of the display screen, camera and sensor, and then the MCU is connected to the SOC through the GPIO cable. The SOC sends a control instruction to the MCU through the GPIO cable, so that the MCU can control the operation of the display screen, camera and sensor according to the control instruction. In other words, the MCU of the head display module and the SOC of the driver module are driven by the same driving system. The MCU of the head display module is essentially a SOC mounted on the driver module, so that the low-performance MCU can also take on the driving function of the high-performance SOC for the display screen, camera and sensor, realizing low power consumption and low cost of the separated VR device, and the system of the head display module and the driver module is easy to integrate and run in an orderly manner, which can reduce the driving overhead. In addition, the MCU of the head display module 110 is connected to the display screen, camera and sensor through the GPIO pins on the motherboard, and the information exchange between the MCU of the head display module 110 and the SOC of the driver module 120 is completed through the GPIO cable, so as to realize the indirect control of the display screen, camera and sensor by the SOC of the driver module 120 while minimizing the cables connecting the head display module 110 and the driver module 120.
[0049] For example, the following combination Figure 3 The VR device of this application is introduced in detail.
[0050] like Figure 3 As shown, the driving module 110 includes a battery, which can power the driving module 110, and the head display module is powered by a charging chip, a power management chip, and a GPIO cable connecting the module. The driving module 110 also includes a double rate synchronous dynamic random access memory (DDR memory) and a Flash memory for storing data. The driving module 110 also includes components such as buttons, fans, gravity sensors, speakers, microphones, and receivers, and the above components can be controlled and operated by the SOC. The head display module 120 includes a power management chip. When the driving module 110 supplies power to the head display module 120, the MCU of the head display module 120 can control the power management chip to supply power to different external devices (display screen, camera, sensor), and the specific power supply situation can be controlled by the MCU according to the needs of different external devices.
[0051] In some embodiments, the control signal and control duration of the target device include a level signal and a level holding time of a GPIO pin of the target device connected to the MCU, and the level signal includes a level high or a level low.
[0052] In some embodiments, the control command further includes first start indication information for indicating the start of the control command and first end indication information for indicating the end of the control command.
[0053] The first start indication information is used to indicate the start of transmission of the control command, and the first end indication information is used to indicate the completion of transmission of the control command.
[0054] Exemplarily, the control command format sent by SOC to MCU is (packet header) (GPIO pin number) (status information) (operation duration) (packet tail). The packet header represents the first start indication information. Taking binary coding as an example, the packet header is 1; the GPIO pin number is the number of the GPIO pin connected between the MCU and the target device. Taking binary coding as an example, the GPIO pin number is 00110; the status information can be the level signal of the GPIO pin corresponding to the target device. Taking binary coding as an example, the level signal is 1 (indicating that the level is pulled high); the operation duration can be the level holding time of the GPIO pin corresponding to the target device. Taking binary coding as an example, the level holding time is 0001; the packet tail represents the first end indication information. Taking binary coding as an example, the packet tail is 0. Converted into decimal, the control command sent by SOC to MCU is that SOC commands MCU to pull up the level of the fifth GPIO pin connected between MCU and target device, and keep it in the pulled-up state for a time period. Here, a time period can be set when programming SOC.
[0055] In some embodiments, after receiving a control command, the MCU is used to send an operation command to the target device through a GPIO pin connecting the target device and the MCU. The target device receives the operation command and obtains detection data based on the operation command. The detection data includes image information of the external environment obtained by the target device, user action information, or the operating status of the target device.
[0056] In some embodiments, the MCU is used to obtain detection data, and the MCU is also used to feed back the serial number and detection data of the GPIO pin of the target device connected to the MCU to the SOC.
[0057] In some embodiments, after acquiring the above detection data, the SOC performs data analysis on the detection data and sends a control command to the MCU based on the results of the data analysis, instructing the MCU to control further operations of the target device; or the SOC controls the driving module 120 itself to perform the next step of operation based on the results of the data analysis.
[0058] In some embodiments, the MCU is also used to send a second start indication message to the SOC before sending the serial number and detection data of the GPIO pin connecting the target device to the MCU, and / or send a second end indication message to the SOC after sending the serial number and detection data of the GPIO pin connecting the target device to the MCU.
[0059] The second start indication information is used to indicate the start of transmission of the detection data, and the second end indication information is used to indicate the completion of transmission of the detection data.
[0060] The second start indication information, the detection information and the second end indication information form a detection data packet, and the MCU sends the detection data packet to the SOC.
[0061] Exemplarily, the format of the detection data packet sent by the MCU to the SOC is (status information) (packet header) (GPIO pin number) (detection data) (packet tail). The status information can be the level signal of the GPIO pin between the MCU and the driver SOC. Taking binary encoding as an example, the level signal is 0 (indicating that the level is pulled low); the packet header represents the second start indication information; the GPIO pin number is the number of the GPIO pin connected between the MCU and the target device; the packet tail represents the second end indication information. In other words, the MCU pulls down the level signal of the GPIO pin between the MCU and the SOC for a time period, and the SOC starts to read. Then the MCU sends 1 to represent the packet header, and then sends the GPIO pin number. The SOC can know which GPIO connected between the MCU and the target device is providing feedback. Then the MCU transmits the information fed back by the GPIO corresponding to the target device to the SOC via the GPIO cable between the MCU and the SOC.
[0062] In the embodiment of the present application, the MCU transmits the information fed back by the target device to the SOC through IO transparent transmission. This signal transmission method enables the low-performance MCU to take on the driving function of the high-performance SOC for the target device. This achieves low power consumption and low cost of VR devices.
[0063] In some embodiments, before the MCU receives the control command, the MCU is used to control the initialization of the external device.
[0064] Specifically, the initialization may include: after the whole machine is turned on, the head display module 110 is powered on, and then the display screen, camera and sensor connected to the MCU are restarted, powered on and other operations are performed according to the timing requirements.
[0065] The following is an illustrative description of the operation process of the VR device provided in the embodiment of the present application.
[0066] First, the user presses the switch button on the driver module 110 to start the driver module 110. When the driver module 110 and the head display module 120 are magnetically connected, the head display module 120 is also turned on. At the same time, the driver module 110 supplies power to the head display module 120, and the MCU enters the working state, and supplies power to and restarts the display screen, camera, sensor and other devices (here, different devices can be powered and restarted according to the timing set by the MCU itself). For example, the MCU first supplies power to the display screen so that the display screen can display an image, and then the MCU controls the display screen to reset, and then the MCU controls the display screen to download the initialization code (the initialization code can be the setting code of the display screen itself, or it can be a code pre-stored by the MCU and sent to the display screen). After the display screen is initialized, the SOC sends a control command to the MCU through the GPIO cable (the control command includes controlling the level of the device connected to the second GPIO pin of the MCU to be pulled up, and the SOC's own program setting has a corresponding relationship between the external device and the MCU's GPIO pin number connection) and video stream data. The MCU sends the video stream data to the display screen in the form of IO transparent transmission, and controls the display screen to display the corresponding picture according to the control command.
[0067] In some embodiments, the GPIO cable is a coaxial cable, that is, the GPIO cable includes a metal wire, a first insulating layer, a metal mesh, and a second insulating layer arranged in sequence along the central axis direction away from the GPIO cable. The metal mesh is grounded and used as a negative line. In this way, there is no need to set up a separate negative cable, thereby reducing the number of cables connecting the module 130.
[0068] In some embodiments, Figure 4 As shown, the connection module 130 also includes a head display connector 131 and a drive connector 132. The head display connector 131 is connected to the MCU through a GPIO cable 133, and the drive connector 132 is connected to the SOC through a flexible printed circuit board 134 (Flexible Printed Circuit Board, FPC).
[0069] For example, Figure 2 As shown, the connection module 130 includes a first connection submodule and a second connection submodule, the first connection submodule includes a first head display connector 1311 and a first drive connector 1321, and the second connection submodule includes a second head display connector 1312 and a second drive connector 1322, wherein the first head display connector 1311 and the first drive connector 1321 are magnetically connected, and the second head display connector 1312 and the second drive connector 1322 are magnetically connected to connect the drive module 120 and the head display module 110.
[0070] In some embodiments, the first connection submodule and the second connection submodule each include a GPIO cable. In this embodiment, since the SOC and the MCU exchange information according to the above-mentioned driving scheme, the two connection submodules of the connection module only need to be provided with one GPIO cable, so that the low-performance MCU can assume the driving function of the high-performance SOC for the display screen, camera and sensor.
[0071] In some embodiments, the first head display connector 111 and the first drive connector 1321 are respectively provided with a plurality of GPIO pins, and the plurality of GPIO pins may include a plurality of power pins with different transmission voltages and a plurality of signal pins with different transmission voltages. When the first head display connector 1311 and the first drive connector 1321 are magnetically connected, the power pins with the same transmission voltage among the plurality of GPIO pins of the first head display connector 11 and the plurality of GPIO pins of the first drive connector 1321 are matched and connected to form a channel for transmitting electrical signals; at the same time, the signal pins with the same transmission voltage among the plurality of GPIO pins of the first head display connector 1311 and the plurality of GPIO pins of the first drive connector 1321 are also matched and connected to form a channel for transmitting data signals.
[0072] In some embodiments, the second head display connector 1312 and the second driver connector 1322 are respectively provided with a plurality of GPIO pins, and the pin settings of the second head display connector 1312 and the second driver connector 1312 are similar to the pin settings of the first head display connector 1311 and the first driver connector 1321, and are not repeated here.
[0073] In the embodiment of the present application, the connection module 130 includes two connection sub-modules, and an anti-misplugging design is implemented to avoid damage to the pins in the head display connector and the drive connector due to misaligned connection between the head display connector and the drive connector between the two connection sub-modules.
[0074] Specifically, when the first head display connector 1311 and the second drive connector 1322 are connected by magnetic attraction, the corresponding power pins with the same transmission voltage among the multiple GPIO pins of the first head display connector 1311 and the multiple GPIO pins of the second drive connector 1322 are matched and connected. At this time, even if the power signals transmitted by the power pins in the first head display connector 1311 and the second drive connector 1322 are different and a channel for transmitting electrical signals cannot be formed, since the transmission voltages of the two power signals are the same, the two power pins will not be damaged. At the same time, the corresponding signal pins with the same transmission voltage among the multiple GPIO pins of the first head display connector 1311 and the multiple GPIO pins of the second drive connector 1322 are matched and connected.
[0075] Similarly, when the second head display connector 1312 and the first drive connector 1321 are magnetically connected, the power pins with the same transmission voltage among the multiple GPIO pins of the second head display connector 1312 and the corresponding power pins with the same transmission voltage among the multiple GPIO pins of the first drive connector 1321 are matched and connected; the signal pins with the same transmission voltage among the multiple GPIO pins of the second head display connector 1312 and the corresponding signal pins with the same transmission voltage among the multiple GPIO pins of the first drive connector 1321 are matched and connected.
[0076] In some embodiments, the first head display connector 1311 and the second head display connector 1312 are respectively provided with a first insertion detection pin, and the first drive connector 1321 and the second drive connector 1322 are respectively provided with a second insertion detection pin, and the first insertion detection pin and the second insertion detection pin are used to detect hot plugging of the head display module 110.
[0077] In the embodiment of the present application, in order to prevent hot plugging from causing damage to the VR device, a detection circuit to prevent hot plugging damage is provided.
[0078] Specifically, Figure 5 As shown, the driving module 120 is provided with a detection power supply 121 and a detection resistor R, one end of the detection resistor R is connected to the detection power supply 121, the other end of the detection resistor R is connected to the second insertion detection pin 134 through the integrated interface of the driving module 120, and one end of the first insertion detection pin 135 is grounded.
[0079] The signal of the GPIO module that manages the power supply of the whole machine in the driver module 120 is pulled up to 1.8V on the mainboard side, which is a high-level signal (by detecting the power supply), and then led to the GPIO pin of the driver connector, and the GPIO pin of the head display connector is grounded. When the driver connector is connected to the head display connector, the GPIO pin of the driver connector is connected to the GPIO pin of the head display connector to form a closed loop, and the level signal of the GPIO module will be pulled down, and the driver module 120 can detect the low-level signal and determine that the driver connector and the head display connector have been attracted; if the GPIO pin of the driver connector is not successfully connected to the GPIO pin of the head display connector when the driver connector is connected to the head display connector, the level signal of the GPIO module is still a high-level signal, and the driver module 120 can detect the high-level signal and determine that the driver connector and the head display connector are not attracted, and the driver module 120 powers off all the power input to the driver connector and closes all signal pins. Until the driving connector and the head display connector are connected, and the driving module 120 detects the low-level signal of the GPIO module again, the driving module 120 will restore all power and signals input to the driving connector.
[0080] The VR device of the embodiment of the present application is described above. The control method of the VR device of the embodiment of the present application is described below. The control method can be executed in the SOC of the driving module of the VR device in any of the above-mentioned possible embodiments. For the parts not described in detail, please refer to the aforementioned embodiments.
[0081] Figure 6 A schematic flowchart of a method 600 for controlling a VR device disclosed in an embodiment of the present application is shown.
[0082] S601, sending a control command to the MCU through the GPIO cable.
[0083] Among them, the control command includes the serial number of the GPIO pin connecting the target device to the MCU, as well as the control signal and control duration of the MCU on the target device. The target device includes a display, camera or sensor. The control command is used to instruct the MCU to control the operation of the target device.
[0084] In some embodiments, the control signal and control duration of the target device include a level signal and a level holding time of a GPIO pin of the target device connected to the MCU, and the level signal includes a level high or a level low.
[0085] In some embodiments, the control command further includes first start indication information for indicating the start of the control command and first end indication information for indicating the end of the control command.
[0086] The first start indication information is used to indicate the start of transmission of the control command, and the first end indication information is used to indicate the completion of transmission of the control command.
[0087] S602, receiving detection data sent by the MCU after the target device is running, where the detection data includes image information of the external environment acquired by the target device, user action information or the running status of the target device.
[0088] In an embodiment of the present application, the SOC of the driver module sends a control command to the MCU of the head display module through a GPIO cable, and the MCU controls the operation of the target device in the display screen, camera, and sensor according to the control command. Specifically, the control command includes the serial number of the GPIO pins of the target device connected to the MCU, as well as the control signal and control duration of the target device by the MCU. In other words, the operation of the display screen, camera, or sensor connected to the MCU is essentially controlled according to the instructions issued by the SOC of the driver module. In this application, the MCU is set on the main board, and then the MCU is connected to the display screen, camera, and sensor respectively through the GPIO pins on the main board, so that the MCU can control the operation of the display screen, camera, and sensor, and then the MCU is connected to the SOC through the GPIO cable. The SOC sends a control instruction to the MCU through the GPIO cable, so that the MCU can control the operation of the display screen, camera, and sensor according to the control instruction. In other words, the MCU of the head display module and the SOC of the driver module are driven by the same driving system. The MCU of the head display module is essentially a SOC mounted on the driver module, so that the low-performance MCU can also take on the driving function of the high-performance SOC for the display, camera and sensor, realizing the low power consumption and low cost of the separated VR device, and the system of the head display module and the driver module is easy to integrate and run in an orderly manner, which can reduce the driving overhead. In addition, the MCU of the head display module is connected to the display, camera and sensor through the GPIO pins on the motherboard, and the information exchange between the MCU of the head display module and the SOC of the driver module is completed through the GPIO cable, so as to realize the indirect control of the display, camera and sensor by the SOC of the driver module while minimizing the cables connecting the head display module and the driver module.
[0089] In some embodiments, the control method also includes: obtaining second start indication information before obtaining the serial number and detection data of the GPIO pin connecting the target device to the MCU, and / or obtaining second end indication information after obtaining the serial number and detection data of the GPIO pin connecting the target device to the MCU.
[0090] The second start indication information is used to indicate the start of transmission of the detection data, and the second end indication information is used to indicate the completion of transmission of the detection data.
[0091] In some embodiments, the control method further includes: performing data analysis on the detection data.
[0092] Specifically, after obtaining the above detection data, the SOC analyzes the detection data and sends a control command to the MCU according to the result of the data analysis, instructing the MCU to control further operation of the display screen, camera or sensor; or the SOC controls the driving module itself to perform the next step of operation according to the result of the data analysis.
[0093] The present application also provides a control device 700 for a VR device, such as Figure 7 As shown, the control device 700 includes a processor 701 and a memory 702, wherein the memory 702 is used to store computer programs, and the processor 701 is used to call the computer program so that the device implements the methods of the various embodiments of the present application.
[0094] The embodiments of the present application also provide a readable storage medium for storing a computer program. When the computer program is executed by a computing device, the computing device implements the methods of the various embodiments of the present application described above.
[0095] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described in the present application is intended to include, but is not limited to, these and any other suitable types of memory.
[0096] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A virtual reality device, characterized in that: include: A head display module, the head display module comprising a micro control unit, a display screen, a camera and a sensor, the micro control unit being arranged on a main board, the main board being provided with a plurality of GPIO pins connected to the micro control unit, the display screen, the camera and the sensor being connected to the micro control unit through corresponding GPIO pins respectively, wherein the micro control unit is used to control the operation of the display screen, the camera and the sensor, the camera being used to obtain image information of the external environment, the display screen being used to display images, and the sensor being used to obtain action information of the user; A driving module, wherein the driving module includes a system chip, the driving module is separately arranged from the head display module and the system chip is used to drive the micro control unit; A connection module, the connection module is used to connect the head display module and the driving module, and the connection module includes a GPIO cable; The system chip is used to send control commands to the micro control unit through the GPIO cable; The control command includes the serial number of the GPIO pin of the target device connected to the micro control unit, and the control signal and control duration of the micro control unit on the target device, and the target device includes the display screen, the camera or the sensor; The micro control unit is used to receive the control command and control the operation of the target device according to the control command.
2. The virtual reality device according to claim 1, characterized in that: The control signal and control duration of the target device include a level signal and a level holding time of a GPIO pin of the target device connected to the micro control unit, wherein the level signal includes a level high or a level low.
3. The virtual reality device according to claim 1 or 2, characterized in that: The control command further includes first start indication information for indicating the start of the control command and first end indication information for indicating the end of the control command.
4. The virtual reality device according to any one of claims 1 to 3, characterized in that: The microcontroller unit is used to send an operation command to the target device through a GPIO pin connected to the target device and the microcontroller unit after receiving the control command. The target device receives the operation command and obtains detection data according to the operation command. The detection data includes image information of the external environment obtained by the target device, user action information or the operation status of the target device.
5. The virtual reality device according to claim 4, characterized in that: The micro control unit is used to obtain the detection data, and the micro control unit is also used to feed back the serial number of the GPIO pin of the target device connected to the micro control unit and the detection data to the system chip.
6. The virtual reality device according to claim 5, characterized in that: The microcontroller unit is also used to send a second start indication message to the system chip before sending the serial number of the GPIO pin connecting the target device to the microcontroller unit and the detection data, and / or send a second end indication message to the system chip after sending the serial number of the GPIO pin connecting the target device to the microcontroller unit and the detection data.
7. The virtual reality device according to any one of claims 1 to 6, characterized in that: The connection module also includes a head display connector and a drive connector. The head display connector is connected to the micro control unit through the GPIO cable, and the drive connector is connected to the system chip through a flexible circuit board.
8. The virtual reality device according to claim 7, characterized in that: The connection module includes a first connection submodule and a second connection submodule, the first connection submodule includes a first head-mounted display connector and a first drive connector, the second connection submodule includes a second head-mounted display connector and a second drive connector, wherein the first head-mounted display connector and the first drive connector are magnetically connected, and the second head-mounted display connector and the second drive connector are magnetically connected to connect the drive module and the head-mounted display module.
9. The virtual reality device according to claim 8, characterized in that: The first connection submodule and the second connection submodule each include one GPIO cable.
10. The virtual reality device according to claim 8 or 9, characterized in that: The first head display connector and the second drive connector are respectively provided with a plurality of GPIO pins, and the plurality of GPIO pins include a plurality of power pins with different transmission voltages and a plurality of signal pins with different transmission voltages. When the first head display connector and the second drive connector are magnetically connected, the plurality of GPIO pins of the first head display connector and the plurality of GPIO pins of the first drive connector have power pins with the same transmission voltage at positions corresponding to each other, and the plurality of GPIO pins of the first head display connector and the plurality of signal pins with the same transmission voltage at positions corresponding to each other.
11. The virtual reality device according to claim 9 or 10, characterized in that: The first head display connector and the second head display connector are respectively provided with a first insertion detection pin, the first drive connector and the second drive connector are respectively provided with a second insertion detection pin, the drive module is provided with a detection power supply and a detection resistor, one end of the detection resistor is connected to the detection power supply, and the other end of the detection resistor is connected to the second insertion detection pin, one end of the first insertion detection pin is grounded, and the first insertion detection pin and the second insertion detection pin are used to detect hot plugging of the head display module.
12. A method for controlling a virtual reality device, characterized in that: The virtual reality device includes: a head display module, a connection module and a driving module, the head display module includes a micro control unit, a display screen, a camera and a sensor, the micro control unit is arranged on a main board, the main board is provided with a plurality of GPIO pins connected to the micro control unit, the display screen, the camera and the sensor are respectively connected to the micro control unit through corresponding GPIO pins, wherein the micro control unit is used to control the operation of the display screen, the camera and the sensor, the camera is used to obtain image information of the external environment, the display screen is used to display images, and the sensor is used to obtain user action information, the driving module includes a system chip, the driving module is separately arranged from the head display module and the system chip is used to drive the micro control unit, the connection module is used to connect the head display module and the driving module, the connection module includes a GPIO cable and does not include other types of cables, and the control method is executed on the system chip; The control method comprises: A control command is sent to the microcontroller unit via the GPIO cable, wherein the control command is used to instruct the microcontroller unit to control the operation of the target device. The control command includes the serial number of the GPIO pin of the target device connected to the microcontroller unit, and the control signal and control duration of the target device by the microcontroller unit. The target device includes the display screen, the camera or the sensor.
