Virtual reality equipment compatible method and device oriented to domestic operating system
By acquiring the environmental configuration information of virtual reality devices, preprocessing the operating system, and installing the virtual reality runtime platform, the compatibility issues of virtual reality devices under non-Windows systems are resolved, achieving cross-platform compatibility and improved security.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CASIC SIMULATION TECH CO LTD
- Filing Date
- 2025-11-18
- Publication Date
- 2026-04-24
AI Technical Summary
Virtual reality devices mainly rely on the SteamVR ecosystem and only provide Windows platform driver support, which makes it impossible to call its functions normally in other operating systems such as Linux or domestic operating systems, thus limiting the use cases of virtual reality devices.
By acquiring the environment configuration information of the virtual reality device, including architecture information, basic libraries, and graphics drivers, the current operating system is preprocessed, the virtual reality runtime platform is installed, and the device connection driver is made compatible with the original driver of the virtual reality device. Functional tests are then performed to determine compatibility.
It achieves compatibility between virtual reality devices and current operating systems, eliminates dependence on Windows systems, strengthens the information security capabilities of the operating system, meets the usage requirements of professional scenarios, and solves problems such as image distortion and controller tracking failure.
Smart Images

Figure CN121918890A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of virtual reality technology, and specifically to a method and apparatus for virtual reality devices compatible with domestic operating systems. Background Technology
[0002] Virtual Reality (VR) devices generate a three-dimensional virtual environment through computers, combining sensing technology to simulate vision, hearing, and even touch. They are widely used in education, design, and industrial simulation. They require an operating system environment and drivers to enable normal device functionality.
[0003] In related technologies, virtual reality devices mainly rely on the SteamVR ecosystem to operate, but the official support is only for Windows platforms. Other operating systems cannot use the official drivers to properly access the functions of virtual reality devices, which prevents virtual reality devices from being deployed on other operating systems and limits their usage scenarios. Summary of the Invention
[0004] This application provides a method and apparatus for virtual reality devices to be compatible with domestic operating systems, so as to at least solve the problem that virtual reality devices are incompatible with other operating systems in related technologies.
[0005] This application provides a method for virtual reality device compatibility with domestically developed operating systems, including: Obtain the environment configuration information of the virtual reality device; the environment configuration information includes the architecture information, basic libraries and graphics drivers required by the virtual reality device; Based on the environment configuration information, the current operating system is preprocessed to complete the environment configuration of the virtual reality device; Verify that the environment configuration was successful; With the environment successfully configured, install the virtual reality runtime platform on the current operating system; Obtain the device connection driver; By connecting devices to the driver, the virtual reality operating platform becomes compatible with the original drivers of virtual reality devices; The virtual reality operating platform is used to call the functions of virtual reality devices and to perform functional tests on the virtual reality devices. If the functional tests pass, determine the compatibility between the virtual reality device and the current operating system.
[0006] This application also provides a virtual reality device compatible with a domestic operating system, including: The first acquisition module is used to acquire the environment configuration information of the virtual reality device; wherein, the environment configuration information includes the architecture information, basic libraries and graphics drivers required by the virtual reality device; The preprocessing module is used to preprocess the current operating system environment based on the environment configuration information in order to complete the environment configuration of the virtual reality device. The verification module is used to verify whether the environment configuration is successful. The installation module is used to install the virtual reality runtime platform on the current operating system after the environment is successfully configured. The second acquisition module is used to acquire the device connection driver; A compatibility module is used to make the virtual reality operating platform compatible with the original drivers of virtual reality devices by connecting the device driver. The testing module is used to call the functions of virtual reality devices based on the virtual reality operating platform and to perform functional tests on the virtual reality devices; The determination module is used to determine the compatibility between the virtual reality device and the current operating system, assuming that the functional tests have passed.
[0007] This application also provides a virtual reality device compatibility system for domestic operating systems, including: a virtual reality device and a host; the host performs compatibility processing between the current operating system and the virtual reality device based on any of the above-mentioned virtual reality device compatibility methods for domestic operating systems, so as to make the current operating system of the host compatible with the virtual reality device.
[0008] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for implementing the steps of any of the above-described methods for virtual reality devices compatible with domestic operating systems when executing the computer program.
[0009] This application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of any of the above-described methods for virtual reality devices compatible with domestic operating systems.
[0010] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described methods for virtual reality device compatibility with domestic operating systems.
[0011] This application demonstrates that, by preprocessing the system environment based on the virtual reality device's configuration information and completing the environment configuration, the current operating system further installs the virtual reality runtime platform after successful environment configuration. Through device connection drivers, the virtual reality runtime platform is made compatible with the original drivers of the virtual reality device. Then, based on the virtual reality runtime platform, the virtual reality device's functions are invoked to perform functional testing. If the functional testing passes, compatibility between the virtual reality device and the current operating system is confirmed. By configuring the environment required for the virtual reality device within the current operating system, installing the virtual reality runtime platform, and ensuring compatibility between the virtual reality runtime platform and the virtual reality device through device connection drivers, compatibility between the virtual reality device and the current operating system is achieved. Attached Figure Description
[0012] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a schematic diagram of the network structure upon which the embodiments of this application are based; Figure 2 A flowchart illustrating a method for ensuring compatibility of virtual reality devices with domestic operating systems, provided in an embodiment of this application. Figure 3 A flowchart illustrating an exemplary method for virtual reality device compatibility with domestic operating systems provided in this application embodiment; Figure 4 A flowchart illustrating an exemplary virtual reality device compatibility command method for a domestically developed operating system, provided as an embodiment of this application. Figure 5 A schematic diagram of the structure of a virtual reality device compatible with a domestic operating system provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of a virtual reality device compatible with a domestic operating system provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0014] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0015] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0016] Virtual reality technology, with its immersive experience, has been widely applied in high-end fields such as educational simulation and industrial simulation. The HTC Vive Pro2, as a professional-grade head-mounted virtual reality device, boasts 5K high resolution and a high refresh rate, making it highly sought after in professional VR applications. Currently, the HTC Vive Pro2 primarily relies on the SteamVR ecosystem, and the official support is limited to Windows platforms. Meanwhile, domestic operating systems like openKylin, with their high information security capabilities and independent controllability, are increasingly widely used in key industries, creating a growing demand for compatibility with professional VR devices. However, the official HTC Vive Pro2 does not provide native drivers for Linux systems and domestic operating systems like openKylin, preventing the device from being directly deployed and used on openKylin systems.
[0017] In related technologies, virtual reality devices mainly rely on the SteamVR ecosystem to operate, but the official support is only for Windows platforms. Other operating systems cannot use the official drivers to properly access the functions of virtual reality devices, which prevents virtual reality devices from being deployed on other operating systems and limits their usage scenarios.
[0018] To address the aforementioned technical problems, this application provides a method and apparatus for ensuring virtual reality device compatibility with domestically developed operating systems. The method includes: acquiring environment configuration information of the virtual reality device; wherein the environment configuration information includes the architecture information, basic libraries, and graphics drivers required by the virtual reality device; performing system environment preprocessing on the current operating system based on the environment configuration information to complete the environment configuration of the virtual reality device; verifying whether the environment configuration is successful; if the environment configuration is successful, installing a virtual reality runtime platform on the current operating system; acquiring a device connection driver; using the device connection driver to make the virtual reality runtime platform compatible with the original driver of the virtual reality device; calling virtual reality device functions based on the virtual reality runtime platform and performing functional tests on the virtual reality device; and determining compatibility between the virtual reality device and the current operating system if the functional tests pass. The method provided above, by having the current operating system perform system environment preprocessing based on the environment configuration information of the virtual reality device to complete the environment configuration, and further installing the virtual reality runtime platform if the environment configuration is successful, using the device connection driver to make the virtual reality runtime platform compatible with the original driver of the virtual reality device, and then calling virtual reality device functions based on the virtual reality runtime platform to perform functional tests on the virtual reality device, and determining compatibility between the virtual reality device and the current operating system if the functional tests pass, demonstrates that the virtual reality device is compatible with the current operating system. By configuring the environment required for the virtual reality device in the current operating system, installing the virtual reality runtime platform, and making the virtual reality runtime platform compatible with the virtual reality device through device connection drivers, compatibility between the virtual reality device and the current operating system is achieved.
[0019] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0020] The specific application environment architecture or specific hardware architecture on which the implementation of the virtual reality device compatibility method for domestic operating systems depends is described here.
[0021] First, the network structure on which this application is based will be explained: The virtual reality device compatibility method and apparatus for domestic operating systems provided in this application are applicable to achieving compatibility between virtual reality devices and current operating systems. Figure 1 The diagram shown is a network structure based on the embodiments of this application. It mainly includes a host and a virtual reality device. The host and the virtual reality device are connected by wired or wireless means. The host first performs compatibility processing between the current operating system and the virtual reality device. After confirming compatibility, the host sends instructions to the virtual reality device so that the virtual reality device responds to the instructions sent by the host to perform functions such as screen display and audio playback.
[0022] This application provides a method for ensuring virtual reality device compatibility with domestically developed operating systems, enabling virtual reality devices to be compatible with current operating systems. The execution subject of this application is an electronic device, such as a server, desktop computer, laptop computer, tablet computer, or other electronic device suitable for ensuring virtual reality device compatibility with domestically developed operating systems.
[0023] like Figure 2 The diagram shown is a flowchart illustrating a method for ensuring virtual reality device compatibility with domestic operating systems, as provided in an embodiment of this application. The method includes: Step 201: Obtain the environment configuration information of the virtual reality device; wherein, the environment configuration information includes the architecture information, basic libraries and graphics drivers required by the virtual reality device.
[0024] Specifically, virtual reality (VR) devices invoke functions through a VR operating platform. The required architecture information for the VR device is determined based on the needs of the corresponding VR operating platform, typically a 32-bit architecture; for example, SteamVR requires an i386 architecture. The base libraries include Ubuntu, compatible software repositories, and a high-speed domestic mirror repository configured; the commonly installed version is Ubuntu 22.04. The corresponding graphics driver is determined based on the VR device's requirements, usually NVIDIA. Furthermore, package update commands are executed to update the package indexes in the domestic mirror repository.
[0025] Accordingly, the architecture of the current operating system is determined by the requirements of the virtual reality operating platform, which provides a foundation for the subsequent installation and operation of the virtual reality operating platform.
[0026] Step 202: Based on the environment configuration information, perform system environment preprocessing on the current operating system to complete the environment configuration of the virtual reality device.
[0027] Specifically, the system uses an i386 architecture, Ubuntu, a high-speed domestic mirror source, and a graphics driver. The current operating system is typically a domestically developed one, such as openKylin, which is based on the Linux kernel. The virtual reality device includes the HTC Vive Pro 2.
[0028] Specifically, first, uninstall the original driver from the current operating system, such as the nouveau driver, using the graphics driver uninstallation command. Then install the Linux version of NVIDIA.
[0029] Accordingly, by configuring the corresponding environment according to the needs of virtual reality devices, an environmental foundation is provided for virtual reality devices, enabling them to be used normally.
[0030] Step 203: Verify whether the environment configuration is successful.
[0031] Specifically, verify whether the i386 architecture, Ubuntu, domestic high-speed mirror source, and graphics driver are installed successfully.
[0032] Step 204: If the environment configuration is successful, install the virtual reality runtime platform on the current operating system.
[0033] Virtual reality devices rely on the ecosystem of the virtual reality operating platform (SteamVR) to operate.
[0034] Step 205: Obtain the device connection driver.
[0035] Specifically, obtain the device connection driver, which includes the image correction module (LensDistortion module), and decompress the source code corresponding to the device connection driver to the local directory of the current operating system.
[0036] Step 206: Connect the device to the driver to make the virtual reality operating platform compatible with the original driver of the virtual reality device.
[0037] Accordingly, the device connection driver connects the original drivers of the virtual reality operating platform and the virtual reality device, making the virtual reality operating platform compatible with the virtual reality device. Driver adaptation is achieved, enabling image correction and resolving issues such as image distortion and controller tracking failure, ensuring that the VR immersive experience is consistent with the Windows platform and meeting the requirements of professional use cases.
[0038] Step 207: Invoke the functions of the virtual reality device based on the virtual reality operating platform, and perform functional tests on the virtual reality device.
[0039] Specifically, first launch the virtual reality application management platform, then select the virtual reality runtime platform within the platform to complete its startup. Next, use the virtual reality runtime platform to access and test the functions of the virtual reality device.
[0040] Accordingly, by conducting functional tests on virtual reality devices, it was determined whether the virtual reality operating platform could call the functions of the virtual reality devices normally, and whether the functions were used normally.
[0041] Step 208: If the functional test passes, determine the compatibility between the virtual reality device and the current operating system.
[0042] Accordingly, by ensuring compatibility between virtual reality devices and current operating systems, dependence on Windows is eliminated. This avoids security risks associated with external systems, further strengthens the information security capabilities of the operating system, and is suitable for fields with extremely high security requirements.
[0043] Based on the above embodiments, as an implementable approach, in one embodiment, verifying whether the environment configuration is successful includes: Step 2031: Install the graphical environment verification tool; Step 2032: Based on the environment verification tool, execute the environment verification command to determine the environment configuration information; wherein, the environment configuration information includes graphics interface information and rendering interface information; Step 2033: If the version number represented by the graphics interface information is greater than the preset graphics version threshold, and the version number represented by the rendering interface information is greater than the preset rendering version threshold, then the environment configuration is determined to be successful.
[0044] Specifically, the graphics environment verification includes verifying the graphics driver's graphics interface (OpenGL) and rendering interface (Vulkan). The corresponding environment verification commands include graphics interface verification commands and rendering interface verification commands. Based on the environment verification tool, the graphics interface verification commands and rendering interface verification commands are executed respectively to determine the graphics interface information and rendering interface information.
[0045] For example, the command for verifying the graphics interface is "glxinfo | grepOpenGL", and the command for verifying the rendering interface is "vulkaninfo".
[0046] Specifically, the graphics interface information and rendering interface information include the version number of the current graphics interface and the version number of the current rendering interface. The preset graphics version threshold is typically 4.6 to ensure support for 5K resolution output and high refresh rate rendering of virtual reality devices. The preset rendering version threshold is typically 1.3 to ensure low latency and high fidelity graphics rendering effects in VR scenes. The preset graphics version threshold and preset rendering version threshold are usually determined according to the requirements of the virtual reality device. If the version number represented by the graphics interface information is greater than the preset graphics version threshold, and the version number represented by the rendering interface information is greater than the preset rendering version threshold, the environment configuration is considered successful.
[0047] Correspondingly, by comparing whether the version numbers of the graphics driver's image interface and rendering interface meet the requirements, it ensures that the images of the virtual reality device can be displayed normally, providing low latency, high fidelity, and 5K resolution environment support for the virtual reality device, and avoiding screen stuttering problems caused by insufficient graphics performance.
[0048] Based on the above embodiments, as an implementable approach, in one embodiment, assuming successful environment configuration, a virtual reality runtime platform is installed in the current operating system, including: Step 2041: Install the virtual reality application management platform corresponding to the current operating system; Step 2042: Launch the virtual reality application management platform and log in to your account; Step 2043: If you successfully log in to the virtual reality application management platform, download and install the virtual reality runtime platform from the virtual reality application management platform.
[0049] Specifically, install the corresponding virtual reality application management platform on your current operating system. For example, to install Steam for Linux, first download the installation package for the virtual reality application management platform, then execute the installation command to install the platform and fix any dependencies. Next, launch the virtual reality application management platform, log in to your account, select the virtual reality runtime platform within the platform, download its installation package, and install it. In the virtual reality runtime platform's properties, determine its compatibility. For example, right-click SteamVR, select Compatibility in Properties, check "Force use of specific SteamPlay compatibility tools," and select "ProtonExperimental."
[0050] Accordingly, by selecting compatibility during the installation process of the virtual reality operating platform, the platform can be made compatible with virtual reality devices, thus providing operating platform support for the compatibility of virtual reality devices.
[0051] Based on the above embodiments, as an implementable approach, in one embodiment, the virtual reality operating platform is made compatible with the original driver of the virtual reality device through a device connection driver, including: Step 2061, Obtain the compilation tools; Step 2062: Using the compilation tool, generate the device connection driver file corresponding to the device connection driver; Step 2063: Deploy the device connection driver file to the virtual reality runtime platform; Step 2064: Obtain operating system compatibility tools and virtual reality compatibility tools; Step 2065: Install operating system compatibility tools and virtual reality compatibility tools on the current operating system to make the virtual reality runtime platform compatible with the original drivers of the virtual reality devices.
[0052] Specifically, execute the compiler installation instructions to obtain the cmake compiler tool, navigate to the device connectivity driver source code directory, execute the cmake command to generate the compilation configuration, and then execute the make command to complete the compilation, generating the corresponding device connectivity driver file (manifest file). Copy the device connectivity driver file to the driver folder of the virtual reality operating platform.
[0053] Next, obtain the operating system compatibility tool (Wine) and the virtual reality compatibility tool (Proton), and execute the installation commands for these tools to complete the installation. The virtual reality compatibility tool should be the latest version. Then, download the image correction module helper (Lens Distortion Helper), and execute it using the operating system compatibility tool to complete the program initialization configuration, enabling it to function correctly on the virtual reality platform.
[0054] Accordingly, the compilation tools generate the corresponding device connection driver files, as well as system compatibility tools and virtual reality compatibility tools. This allows the original drivers for the virtual reality operating platform and virtual reality devices to be connected via the device connection driver, thereby ensuring the compatibility of the virtual reality operating platform with virtual reality devices and resolving ecosystem dependency conflicts. Furthermore, the image correction module helps the program further optimize image correction effects and eliminate edge distortion in the image.
[0055] Specifically, in one embodiment, when the virtual reality device has an image inversion problem, the image display orientation value in the image correction module of the device connection driver file is modified to a normal value.
[0056] Accordingly, by setting the image orientation value to a normal value, the virtual reality device's image was adjusted, resulting in a normal visual presentation. Simultaneously, through device connection driver adaptation and the image correction module within the driver, image correction was implemented, resolving issues such as image distortion and controller tracking failure, thus meeting the requirements for professional use scenarios.
[0057] Based on the above embodiments, as an implementable approach, in one embodiment, the virtual reality device's functions are invoked based on the virtual reality operating platform, and functional testing of the virtual reality device is performed, including: Step 2071: Based on the virtual reality operating platform, call the head-mounted display function, control function and tracking function of the virtual reality device; Step 2072: Obtain device connection information; Step 2073: If the device connection information indicates that the virtual reality device is successfully connected, perform a head-mounted display function test; Step 2074: After the head-mounted display function test indicates that the head-mounted display function of the virtual reality device is normal, conduct the control function test. Step 2075: After the control function test demonstrates that the control function of the virtual reality device is normal, perform the tracking function test. Step 2076: If the tracking function test indicates that the response latency of the virtual reality device is less than a preset response latency threshold, then the tracking function test of the virtual reality device is deemed to have passed.
[0058] Specifically, device connection information includes the following: after the virtual reality device (VR) device is successfully connected, the corresponding head-mounted display (HUD) icon, controller icon, and positioning icon will be illuminated. If all three icons are illuminated, it indicates a successful VR connection, and then functional tests are performed sequentially. The HUD function test includes confirming that the VR device's HUD screen is normal, without inversion or distortion, with a resolution of 5K and a refresh rate of 90Hz, confirming normal HUD functionality. The control function test includes pressing the buttons on the controller sequentially and confirming that the VR platform interface displays the corresponding button responses. If the button responses are normal and the battery level display is accurate, the control function is confirmed to be normal. The tracking function test includes moving the HUD and controller within the base station coverage area and observing the spatial positioning interface on the VR platform. If the tracking point does not drift and the latency is below a preset response latency threshold, the tracking function is normal. The preset response latency threshold is typically 20ms. If the HUD, control, and tracking functions are all normal, the VR device is confirmed to be compatible with the current operating system.
[0059] Accordingly, the connection information of the virtual reality device was used to determine whether the connection was successful. Through head-mounted display function test, control function test, and tracking function test, the virtual reality device's head-mounted display function, control function, and tracking function were tested.
[0060] Specifically, in one embodiment, the processor is an Intel Core i7-12700K (supporting virtualization technology), the graphics card is an NVIDIA RTX 3090 (with ≥10GB of video memory, supporting OpenGL 4.6 and Vulkan 1.3), the memory is 32GB DDR4 3200MHz, the storage is a 1TB NVMe solid-state drive (with ≥200GB of reserved space), and the target device is an HTC Vive Pro 2 headset, 2 x 2.0 base stations, 2 x game controllers, and the interfaces are USB 3.0 x 2 (for connecting the headset and the base station synchronization box) and DisplayPort 1.4 (for headset video output).
[0061] Specifically, in one embodiment, by adjusting the NVIDIA control panel parameters, NVIDIA is set to high-performance mode, and the SteamVR rendering resolution is modified according to the graphics card performance, typically ranging from 0.8 to 1.2. When the headset screen is black, the DisplayPort connection is checked, and a command to restart the display service is executed. When controller tracking is lost, the base station synchronization box USB cable is unplugged and plugged in again, and a command to restart the virtual reality platform service is executed. When the screen is lagging, background processes are closed, and the graphics card usage is confirmed to be less than 90% using a graphics card usage reading command.
[0062] For example, such as Figure 3 The diagram shown is an exemplary flowchart of a method for ensuring compatibility of virtual reality devices with domestic operating systems, provided in an embodiment of this application. First, based on the requirements of the virtual reality device, the environment configuration information of the virtual reality device is obtained. Then, based on the environment configuration information, only the system environment is preprocessed. After completing the environment configuration, the graphics driver is deployed and the virtual reality operating platform is installed. Next, the device connection driver is obtained, and the device connection driver and its image correction module are installed to connect the virtual reality operating platform and the original driver of the virtual reality device. If the connection is successful, the virtual reality device undergoes functional testing and optimization. Based on the test results, the compatibility is further determined. If unsuccessful, the hardware environment preparation restarts; if successful, the process ends.
[0063] For example, such as Figure 4 The diagram shows an exemplary flowchart of a command method for virtual reality devices compatible with domestic operating systems, provided in an embodiment of this application. First, the open-source driver source code is obtained using the command "git clone vivepro2-linux-driver", and the dependency libraries are implemented using the command "git clone openvr". The compilation tools are installed using the command "sudo aptinstall cmake build-essential". The LensDistortion module is installed using the command "git clone vivepro2-linux-driver", and the dependency libraries are implemented using the command "git clone openvr". The LensDistortion module is compiled using the commands "cd vivepro2-linux-driver, mkdir build, cd build git cmake..-DCMAKE-BUILD-TYPE= Release make-j8". Finally, the device connection driver file is deployed to the SteamVR driver directory using the command "cp -r . / bin / linux64", and the image display orientation value is modified to a normal value.
[0064] This application provides a method for virtual reality device compatibility with domestic operating systems. The method includes: obtaining environment configuration information of the virtual reality device; wherein the environment configuration information includes the architecture information, basic libraries, and graphics drivers required by the virtual reality device; performing system environment preprocessing on the current operating system based on the environment configuration information to complete the environment configuration of the virtual reality device; verifying whether the environment configuration is successful; if the environment configuration is successful, installing a virtual reality runtime platform on the current operating system; obtaining a device connection driver; using the device connection driver to make the virtual reality runtime platform compatible with the original driver of the virtual reality device; calling virtual reality device functions based on the virtual reality runtime platform and performing functional tests on the virtual reality device; and if the functional tests pass, determining that the virtual reality device is compatible with the current operating system. The method provided above, because the current operating system performs system environment preprocessing based on the environment configuration information of the virtual reality device to complete the environment configuration, and if the environment configuration is successful, further installs the virtual reality runtime platform, makes the virtual reality runtime platform compatible with the original driver of the virtual reality device through the device connection driver, and then calls virtual reality device functions based on the virtual reality runtime platform to perform functional tests on the virtual reality device, and if the functional tests pass, determines that the virtual reality device is compatible with the current operating system. By configuring the environment required for the virtual reality device in the current operating system, installing the virtual reality runtime platform, and making the virtual reality runtime platform compatible with the virtual reality device through device connection drivers, compatibility between the virtual reality device and the current operating system is achieved.
[0065] Furthermore, by determining the architecture of the current operating system based on the requirements of the virtual reality (VR) platform, a foundation was laid for the subsequent installation and operation of the VR platform. By configuring the corresponding environment according to the requirements of the VR devices, an environmental foundation was provided for the VR devices, enabling them to function normally. Through device connection drivers, the original drivers of the VR platform and the VR devices were connected, ensuring compatibility between the VR platform and the VR devices. Driver adaptation was implemented, enabling image correction and resolving issues such as image distortion and controller tracking failure, ensuring that the VR immersive experience is consistent with the Windows platform and meeting the requirements of professional scenarios. Functional testing of the VR devices determined whether the VR platform could correctly call the VR device's functions and whether those functions were functioning correctly. Compatibility between the VR devices and the current operating system eliminated dependence on the Windows system. Security risks from external systems were avoided, further strengthening the operating system's information security capabilities, making it suitable for fields with extremely high security requirements. By comparing the version numbers of the graphics driver's image interface and rendering interface to ensure they met requirements, the system ensured that the VR device's images could be rendered correctly, providing a low-latency, high-fidelity, 5K resolution environment for the VR devices and avoiding screen stuttering issues caused by insufficient graphics performance. By selecting compatibility during the installation process of the virtual reality (VR) platform, compatibility with VR devices is ensured, providing platform support for VR device compatibility. The compilation tool generates the corresponding device connection driver file, along with system compatibility tools and VR compatibility tools. This allows the VR platform and VR device's original drivers to connect via the device connection driver, thus ensuring VR platform compatibility and resolving ecosystem dependency conflicts. The image correction module further optimizes image correction effects, eliminating edge distortion. By setting the image orientation value to a normal value, the VR device's image is adjusted to present a normal picture. Simultaneously, through device connection driver adaptation, image correction is implemented via the image correction module within the device connection driver, resolving issues such as image distortion and controller tracking failure, meeting the requirements of professional scenarios. Device connection information determines whether the VR device has successfully connected. Headset function tests, control function tests, and tracking function tests are conducted to verify the VR device's headset, control, and tracking functions.
[0066] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.
[0067] The embodiments of this application also provide a virtual reality device compatibility device for domestic operating systems, used to execute the virtual reality device compatibility method for domestic operating systems provided in the above embodiments.
[0068] like Figure 5 The diagram shown is a structural schematic of a virtual reality device compatibility device for a domestic operating system provided in an embodiment of this application. The virtual reality device compatibility device 50 for a domestic operating system includes: a first acquisition module 501, a preprocessing module 502, a verification module 503, an installation module 504, a second acquisition module 505, a compatibility module 506, a testing module 507, and a determination module 508.
[0069] The system comprises the following modules: a first acquisition module for acquiring environment configuration information of the virtual reality device, including the required architecture information, basic libraries, and graphics drivers; a preprocessing module for preprocessing the current operating system based on the environment configuration information to complete the environment configuration of the virtual reality device; a verification module for verifying successful environment configuration; an installation module for installing the virtual reality runtime platform on the current operating system if the environment configuration is successful; a second acquisition module for acquiring device connection drivers; a compatibility module for ensuring compatibility between the virtual reality runtime platform and the original drivers of the virtual reality device through the device connection drivers; a testing module for calling virtual reality device functions based on the virtual reality runtime platform and performing functional tests on the virtual reality device; and a determination module for determining compatibility between the virtual reality device and the current operating system if the functional tests pass.
[0070] like Figure 6 The diagram shown is a structural schematic of a virtual reality device compatibility system for a domestically developed operating system provided in an embodiment of this application. The virtual reality device compatibility system 60 for a domestically developed operating system includes: a virtual reality device and a host terminal.
[0071] The host computer is used to handle compatibility between the current operating system and the virtual reality device, ensuring compatibility between the host computer's current operating system and the virtual reality device. The virtual reality device is used to execute instructions issued by the host computer and to perform functions such as screen display and audio playback.
[0072] For a description of the features in the embodiment of the virtual reality device compatibility device for domestic operating systems, please refer to the relevant description of the embodiment of the virtual reality device compatibility method for domestic operating systems, which will not be repeated here.
[0073] Embodiments of this application also provide an electronic device, such as... Figure 7The diagram shown is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, including a processor 10 and a memory 20. The memory 20 stores a computer program, and the processor 10 is configured to run the computer program to execute the steps in any of the above embodiments of the virtual reality device compatibility method for domestic operating systems.
[0074] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above embodiments of the virtual reality device compatibility method for domestic operating systems when running.
[0075] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0076] The embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above embodiments of the virtual reality device compatibility method for domestic operating systems.
[0077] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above embodiments of the virtual reality device compatibility method for domestic operating systems.
[0078] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0079] The foregoing has provided a detailed description of a virtual reality device compatibility method and apparatus for domestically developed operating systems provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only intended to aid in understanding the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A method for ensuring virtual reality device compatibility with domestically developed operating systems, characterized in that, The method includes: Obtain the environment configuration information of the virtual reality device; wherein, the environment configuration information includes the architecture information, basic libraries and graphics drivers required by the virtual reality device; Based on the environment configuration information, the current operating system is preprocessed to complete the environment configuration of the virtual reality device; Verify that the environment configuration was successful; If the environment configuration is successful, install the virtual reality runtime platform in the current operating system; Obtain the device connection driver; By connecting the device to the driver, the virtual reality operating platform becomes compatible with the original driver of the virtual reality device; The virtual reality operating platform is used to call the functions of the virtual reality device and to perform functional tests on the virtual reality device. If the functional tests pass, the virtual reality device is determined to be compatible with the current operating system.
2. The virtual reality device compatibility method for domestic operating systems according to claim 1, characterized in that, The verification of whether the environment configuration is successful includes: Install the graphical environment verification tool; Based on the environment verification tool, an environment verification command is executed to determine the environment configuration information; wherein, the environment configuration information includes graphics interface information and rendering interface information; If the version number represented by the graphics interface information is greater than a preset graphics version threshold, and the version number represented by the rendering interface information is greater than a preset rendering version threshold, then the environment configuration is determined to be successful.
3. The method for virtual reality device compatibility with domestic operating systems according to claim 1, characterized in that, If the environment configuration is successful, installing the virtual reality runtime platform in the current operating system includes: Install the virtual reality application management platform corresponding to the current operating system; Launch the virtual reality application management platform and log in to your account; If you successfully log in to the virtual reality application management platform, download and install the virtual reality operating platform from the virtual reality application management platform.
4. The virtual reality device compatibility method for domestic operating systems according to claim 1, characterized in that, By connecting the device to the driver, the virtual reality operating platform becomes compatible with the original driver of the virtual reality device, including: Obtain the compilation tools; The device connection driver file corresponding to the device connection driver is generated using the compilation tool; Deploy the device connection driver file to the virtual reality operating platform; Obtain operating system compatibility tools and virtual reality compatibility tools; Install the operating system compatibility tool and virtual reality compatibility tool on the current operating system to make the virtual reality runtime platform compatible with the original driver of the virtual reality device.
5. The virtual reality device compatibility method for domestic operating systems according to claim 4, characterized in that, The method further includes: In the event that the virtual reality device has an image inversion problem, modify the image display orientation value in the image correction module of the device connection driver file to the normal value.
6. The virtual reality device compatibility method for domestic operating systems according to claim 1, characterized in that, The process of calling virtual reality device functions based on the virtual reality operating platform and performing functional tests on the virtual reality device includes: Based on the virtual reality operating platform, the head-mounted display function, control function and tracking function of the virtual reality device are invoked; Obtain device connection information; If the device connection information indicates that the virtual reality device is successfully connected, perform a head-mounted display function test. Under the condition that the head-mounted display function test indicates that the head-mounted display function of the virtual reality device is normal, the control function test is performed. Under the condition that the control function test demonstrates that the control function of the virtual reality device is normal, the tracking function test is performed; If the tracking function test indicates that the response latency of the virtual reality device is less than a preset response latency threshold, the tracking function test of the virtual reality device is deemed to have passed.
7. A virtual reality device compatible with a domestically developed operating system, characterized in that, The device includes: The first acquisition module is used to acquire the environment configuration information of the virtual reality device; wherein, the environment configuration information includes the architecture information, basic libraries and graphics drivers required by the virtual reality device; The preprocessing module is used to perform system environment preprocessing on the current operating system based on the environment configuration information in order to complete the environment configuration of the virtual reality device; The verification module is used to verify whether the environment configuration is successful. The installation module is used to install a virtual reality runtime platform in the current operating system when the environment is successfully configured. The second acquisition module is used to acquire the device connection driver; A compatibility module is used to connect the driver through the device, making the virtual reality operating platform compatible with the original driver of the virtual reality device; The testing module is used to call the functions of the virtual reality device based on the virtual reality operating platform and to perform functional tests on the virtual reality device; The determination module is used to determine the compatibility between the virtual reality device and the current operating system if the functional test passes.
8. A virtual reality device compatible system for domestic operating systems, characterized in that, The system includes: a virtual reality device and a host computer; The host device performs compatibility processing between its current operating system and the virtual reality device based on the virtual reality device compatibility method for domestic operating systems as described in any one of claims 1 to 6, so that the current operating system of the host device is compatible with the virtual reality device.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the virtual reality device compatibility method for a domestic operating system as described in any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the virtual reality device compatibility method for a domestic operating system as described in any one of claims 1 to 6.