WO2019127476A1 - Virtual system bluetooth communication method and device, virtual system, storage medium, and electronic apparatus - Google Patents
Virtual system bluetooth communication method and device, virtual system, storage medium, and electronic apparatus Download PDFInfo
- Publication number
- WO2019127476A1 WO2019127476A1 PCT/CN2017/120173 CN2017120173W WO2019127476A1 WO 2019127476 A1 WO2019127476 A1 WO 2019127476A1 CN 2017120173 W CN2017120173 W CN 2017120173W WO 2019127476 A1 WO2019127476 A1 WO 2019127476A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- bluetooth
- virtual
- host
- operation instruction
- virtual machine
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45579—I/O management, e.g. providing access to device drivers or storage
Definitions
- the present disclosure relates to the field of virtual machine technologies, and in particular, to a virtual system Bluetooth communication method, a virtual system Bluetooth communication device, a virtual system, a storage medium, and an electronic device.
- a virtual machine is a computer system that has full hardware system functionality through software emulation and runs in a completely isolated environment.
- multiple different operating systems are based on analog hardware, sharing physical hardware devices such as CPUs, memory, and input and output devices.
- the prior art generally adopts a virtualization scheme based on Qemu/KVM technology, and generally includes a Host operating system (host operating system), such as an Android system, a Windows system, or a Linux system; and several virtual guest operating systems (virtual Operating system). These operating systems run on the same set of hardware processor chips, sharing processor and peripheral resources.
- host operating system such as an Android system, a Windows system, or a Linux system
- virtual Operating system virtual Operating system
- These operating systems run on the same set of hardware processor chips, sharing processor and peripheral resources.
- the implementation is generally based on the same operating system, that is, the virtual operating system and the host operating system share the same kernel space (kernel), and can only be implemented in the framework layer and the specific application (Application). Separation. For example, when the Host operating system (or Guest operating system) operates the speakers, the Guest operating system (or Host operating system) cannot operate Bluetooth, microphones, or other hardware devices. That is, the prior art does not completely separate Bluetooth virtualization in the Guest operating system.
- kernel space kernel space
- a virtual system Bluetooth communication method can implement independent control of a Bluetooth component by a virtual machine.
- a virtual system Bluetooth communication method including:
- the virtual Bluetooth backend of the host acquires parameters of the operation instruction by means of cross-system communication
- the virtual Bluetooth backend of the host invokes a Bluetooth driver function of the host kernel to control the Bluetooth component based on parameters of the operation instruction.
- the method further includes:
- the virtual Bluetooth back end of the host receives serial port data from the host kernel
- the virtual Bluetooth back end of the host transmits the serial port data to the virtual Bluetooth front end by means of cross-system communication;
- the virtual Bluetooth front end transmits the serial port data to an application of the virtual machine.
- the method further includes: the virtual system includes a plurality of virtual machines, the plurality of virtual machines sharing a virtual Bluetooth back end of the host.
- the virtual Bluetooth communication interface function of the virtual Bluetooth front end of the calling virtual machine includes:
- the virtual Bluetooth communication interface function is invoked according to the encapsulated operation instruction.
- the cross-system communication method includes:
- the operation instruction includes at least one of the following cases:
- the hardware communication interface includes a serial port or a USB interface.
- a virtual system Bluetooth communication device including:
- the virtual Bluetooth front end is set in the virtual machine, and is set to respond to the operation instruction of the virtual component of the virtual machine to invoke the virtual Bluetooth communication interface function;
- the virtual Bluetooth backend is disposed on the host, configured to acquire parameters of the operation instruction by means of cross-system communication, and invoke a Bluetooth driver function of the host kernel to control the Bluetooth component based on the parameter of the operation instruction.
- data is transmitted between the virtual Bluetooth client and the virtual Bluetooth back end by means of cross-system communication.
- the cross-system communication method includes:
- a virtual system includes:
- the virtual Bluetooth front end is configured to invoke a virtual Bluetooth communication interface function in response to an operation instruction of the Bluetooth component of the virtual machine to transmit data between the virtual Bluetooth back end of the host and the virtual Bluetooth back end of the host.
- a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the virtual system Bluetooth communication method described above.
- an electronic device including:
- a memory configured to store executable instructions of the processor
- processor is configured to perform the following operations by executing the executable instructions:
- the virtual Bluetooth backend of the host acquires parameters of the operation instruction by means of cross-system communication
- the virtual Bluetooth backend of the host invokes a Bluetooth driver function of the host kernel to control the Bluetooth component based on parameters of the operation instruction.
- the virtual system Bluetooth communication method can invoke a virtual Bluetooth communication interface function of the virtual Bluetooth front end when the virtual machine receives an operation instruction for the Bluetooth component; thereby enabling the virtual Bluetooth of the host
- the terminal can obtain the parameters of the operation instruction from the virtual Bluetooth front end by means of cross-system communication, and then can control the physical Bluetooth component according to the parameters of the operation instruction, thereby realizing independent control of the Bluetooth component by the virtual machine.
- the method can independently execute the Bluetooth instruction inside the virtual machine and simplify the control mode, thereby facilitating the independent control of the Bluetooth component by each virtual machine.
- FIG. 1 is a schematic diagram of a method for a Bluetooth communication method of a virtual system according to an embodiment of the present disclosure
- FIG. 2 is a schematic diagram of a method for calling a virtual Bluetooth communication interface function according to an embodiment of the present disclosure
- FIG. 3 is a schematic diagram of a method for executing the control parameter by a virtual Bluetooth backend according to an embodiment of the present disclosure
- FIG. 4 is a schematic diagram of another method for a Bluetooth communication method of a virtual system according to an embodiment of the present disclosure
- FIG. 5 is a schematic diagram of a composition of a virtual system Bluetooth communication device according to an embodiment of the present disclosure
- FIG. 6 is a schematic diagram of a virtual machine and host framework structure and a data transmission process according to an embodiment of the present disclosure
- FIG. 7 is another schematic diagram of a virtual system Bluetooth communication device according to an embodiment of the present disclosure.
- FIG. 8 is still another schematic diagram of a virtual system Bluetooth communication device according to an embodiment of the present disclosure.
- Example embodiments will now be described more fully in conjunction with the drawings. However, the example embodiments can be embodied in a variety of forms and should not be construed as being limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more complete and complete, To those skilled in the art.
- the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
- numerous specific details are set forth However, one skilled in the art will appreciate that one or more of the specific details may be omitted or other methods, components, devices, steps, etc. may be employed. In other instances, various aspects of the present disclosure are not obscured by the details of the invention.
- the operating system can be divided into two categories, one is the native system (host system), that is, the host system; it can be called HostOS, Host system, Host or host; the host system can be Windows system, Linux system or Android system.
- the other type is a parasitic system, that is, a virtual system (virtual machine); the virtual system may also be called a Guest OS, a Guest system, or a Guest terminal; the virtual system may be a Windows system or an Android system.
- a virtual system Bluetooth communication method is firstly provided, which can be applied to control of a hardware device of a virtual system in a mobile phone, a tablet or other intelligent terminal based on a Windows system, a Linux system or an Android system, in particular, a Bluetooth component. control.
- Each virtual system has its own independent operating system.
- Each virtual system has its own independent kernel space and user space and has its own independent storage devices.
- the above-described virtual system Bluetooth communication method may include the following steps:
- the virtual Bluetooth back end of the host acquires parameters of the operation instruction by means of cross-system communication
- the virtual Bluetooth backend of the host invokes a Bluetooth driver function of the host kernel to control the Bluetooth component based on parameters of the operation instruction.
- the virtual system Bluetooth communication method provided by the example embodiment can invoke the virtual Bluetooth communication interface function of the virtual Bluetooth front end when the virtual machine receives an operation instruction for the Bluetooth component; thereby enabling the virtual Bluetooth back end of the host to pass
- the way of cross-system communication is obtained by the virtual Bluetooth front end, and the physical Bluetooth component can be controlled according to the parameters of the operation instruction, thereby realizing independent control of the Bluetooth component by the virtual machine.
- the method can independently execute the Bluetooth instruction inside the virtual machine and simplify the control mode, thereby facilitating the independent control of the Bluetooth component by each virtual machine.
- Step S1 in response to an operation instruction of the Bluetooth component of the virtual machine, invoke a virtual Bluetooth communication interface function of the virtual Bluetooth front end of the virtual machine.
- a virtual Bluetooth front end may be preset in the virtual machine.
- the virtual machine in the smart terminal When the virtual machine in the smart terminal is running, it can detect in real time whether there is an application, process or service with an operation instruction for the physical Bluetooth component of the host.
- the above operation instructions may be opening, closing, scanning, pairing, connecting, hardware communication interface configuration of the Bluetooth component, reading data from the hardware communication interface, and writing data to the Bluetooth chip through the hardware communication interface.
- the above hardware communication interface may be a data interface such as a serial port or a USB interface, but is not limited to the above two hardware communication interfaces. The disclosure does not specifically limit the form of the hardware communication interface.
- a combination of any one or any of a plurality of Bluetooth components such as opening, closing, pairing, connecting, setting a serial port, reading serial data, and writing serial data.
- the disclosure does not specifically limit the specific content of the operation instructions.
- the virtual Bluetooth communication interface function of the virtual Bluetooth front end may be invoked according to the operation instruction, and the corresponding parameter of the operation instruction is obtained after the virtual Bluetooth communication interface function is executed by the virtual Bluetooth front end.
- the foregoing calling the virtual Bluetooth communication interface function according to the operation instruction may include the following steps:
- Step S11 sending the operation instruction to the framework layer of the virtual machine through a virtual Bluetooth Java interface
- Step S12 sending, by the framework layer, the operation instruction to a protocol layer of the virtual machine, so as to encapsulate the operation instruction according to a preset protocol;
- Step S13 calling a virtual Bluetooth communication interface function according to the encapsulated operation instruction information.
- the virtual network communication interface function related to the HAL layer (hardware abstraction layer) of the virtual system and the vendor module (communication support module) can be obtained according to the operation instruction.
- the virtual Bluetooth communication interface function refers to a hardware communication interface function for communicating between the virtual system and the Bluetooth component, such as a UART interface function.
- vendor refers to the Bluetooth communication related code provided by the Bluetooth manufacturer or platform and stored in the user space.
- the virtual Bluetooth Java interface may refer to a Bluetooth API (Application Programming Interface) and relies on the Java Universal Connection Framework.
- step S2 the virtual Bluetooth backend of the host acquires parameters of the operation instruction by means of cross-system communication.
- a virtual Bluetooth backend (Host vBT Server) may be preset in the host, and the virtual Bluetooth backend may perform data communication with the virtual Bluetooth front end by means of cross-system communication. Interaction.
- the foregoing cross-system communication method may be a shared memory (Share Memory), a QEMU simulator pipeline (QEMU pipe), or a Virtio driver, and may be selected by using a virtual machine operating system and a host operating system type.
- the disclosure does not specifically limit the manner of data interaction between the virtual Bluetooth backend and the virtual Bluetooth client.
- step S3 the virtual Bluetooth backend of the host invokes a Bluetooth driver function of the host kernel to control the Bluetooth component based on the parameters of the operation instruction.
- the step may include:
- Step S31 the virtual Bluetooth backend invokes a Bluetooth driver function corresponding to the host kernel according to the parameter of the operation instruction;
- Step S32 calling a preset interface according to the Bluetooth driver function
- Step S33 transmitting parameters of the operation instruction to the Bluetooth component through the interface, so that the Bluetooth component executes the operation instruction.
- the virtual Bluetooth backend can actively call the corresponding Bluetooth component driving function to the host kernel according to the parameter. For example, if the parameter contains a call parameter to the UART interface, the corresponding UART interface driver (UART Driver) is called in the host kernel. Finally, the operation command can be sent to the Bluetooth chip through the UART interface, and the Bluetooth component can perform the corresponding control action, thereby realizing the data interaction between the virtual system and the physical Bluetooth chip and realizing the independent control of the Bluetooth component of the virtual system. .
- UART Driver UART Driver
- the virtual system Bluetooth communication method may further include:
- Step S401 the virtual Bluetooth back end of the host receives serial port data from the host kernel
- Step S402 the virtual Bluetooth back end of the host transmits the serial port data to the virtual Bluetooth front end by means of cross-system communication;
- Step S403 the virtual Bluetooth front end transmits the serial port data to an application of the virtual machine.
- the host it is possible to determine in real time whether there is a pending Bluetooth data of a virtual machine in the Bluetooth transmission bus or the Bluetooth communication serial port.
- the virtual Bluetooth backend may acquire the to-be-processed Bluetooth data through the host kernel, and then send the to-be-processed Bluetooth data to the virtual by means of cross-system communication.
- a Bluetooth front end; the Bluetooth processing data is further transmitted by the virtual Bluetooth front end to a corresponding application.
- the pending Bluetooth data can be transmitted to the HAL layer of the virtual machine, and the HAL layer of the virtual machine is transmitted to the Bluetooth protocol.
- the layer decapsulates the data packet according to the preset protocol, and then passes the Bluetooth protocol layer to the Frameworks layer, and finally notifies the specific application, and can perform corresponding display.
- a virtual Bluetooth front end may be separately set for each virtual machine, and each virtual machine may share the same A virtual Bluetooth backend for a host. That is, each virtual Bluetooth front end can perform data interaction with the virtual Bluetooth back end of the host and operate and control the Bluetooth component. In this way, each virtual machine can independently control the Bluetooth component.
- the Bluetooth communication method provided by the present disclosure can receive an operation instruction and parameters of a virtual Bluetooth front end transmission in a virtual machine by setting a virtual Bluetooth back end in the host, and can call a corresponding interface driving function in the host kernel, and finally the virtual machine is
- the operation instructions for the Bluetooth component are sent to the physical Bluetooth component of the host to implement control of the Bluetooth component.
- each virtual machine can be independent of the host operating system and can be used in the respective virtual operating system for the Bluetooth component. Independent control.
- operational data can be saved in its own virtual operating system.
- the operation instruction is an operation instruction of another device, for example, a hardware device such as a speaker, an external memory, or a data interface
- the above method can also be applied to the virtual The control of these devices.
- a virtual system Bluetooth communication device 5 is further provided in the embodiment of the present example, including: a virtual Bluetooth front end 51, and a virtual Bluetooth back end 52. among them:
- the virtual Bluetooth front end 51 is disposed in the virtual machine and can be set to respond to an operation instruction of the Bluetooth component of the virtual machine and invoke a virtual Bluetooth communication interface function.
- the virtual Bluetooth back end 52 is disposed on the host, and may be configured to acquire parameters of the operation instruction by means of cross-system communication, and invoke a Bluetooth driver function of the host kernel to control the Bluetooth component based on the parameter of the operation instruction.
- the cross-system communication manner may specifically adopt any one of a shared memory, a QEMU simulator pipeline, or a Virtio driver.
- the architecture of the virtual machine 61 described above may include: an application layer 611, a framework layer 612, a protocol layer 613, a hardware abstraction layer 614, and a communication support module 615, in addition to A virtual Bluetooth front end 616 can be included. among them,
- the application layer 611 can be configured to receive the operation instruction and send the operation instruction to a framework layer of the virtual machine.
- the framework layer 612 can be used to send the operational instructions to a protocol layer of the virtual machine.
- the protocol layer 613 can be used to encapsulate the operation instruction according to a preset protocol.
- the hardware abstraction layer 614 and the communication support module 615 can be used to provide a virtual Bluetooth communication interface function.
- the host 62 can adopt the same architecture as the virtual machine, including the application layer 621 of the host system, the framework layer 622, the protocol layer 623, the hardware abstraction layer 624, and the communication support module 615.
- a virtual system is further provided, where the virtual system includes the virtual Bluetooth front end described above.
- the virtual Bluetooth front end is configured to invoke a virtual Bluetooth communication interface function in response to an operation instruction of the Bluetooth component of the virtual machine to transfer data between the virtual Bluetooth back end of the host and the virtual Bluetooth back end of the host.
- an electronic device capable of implementing the above-described virtual system Bluetooth communication method.
- FIG. 7 An electronic device 700 in accordance with such an embodiment of the present invention is described below with reference to FIG. 7 is merely an example and should not impose any limitation on the function and scope of use of the embodiments of the present invention.
- electronic device 700 is embodied in the form of a general purpose computing device.
- the components of the electronic device 700 may include, but are not limited to, the at least one processing unit 710, the at least one storage unit 720, and a bus 730 that connects different system components (including the storage unit 720 and the processing unit 710).
- the storage unit stores program code, which can be executed by the processing unit 710, such that the processing unit 710 performs various exemplary embodiments according to the present invention described in the "Exemplary Method" section of the present specification.
- the processing unit 710 can execute S1 as shown in FIG. 1 and invoke a virtual Bluetooth communication interface function of the virtual Bluetooth front end of the virtual machine in response to an operation instruction of the Bluetooth component of the virtual machine; S2, after the virtual Bluetooth of the host The terminal acquires the parameter of the operation instruction by means of cross-system communication; S3, the virtual Bluetooth back end of the host invokes a Bluetooth driver function of the host kernel to control the Bluetooth component based on the parameter of the operation instruction.
- the storage unit 720 can include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and/or a cache storage unit 7202, and can further include a read only storage unit (ROM) 7203.
- RAM random access storage unit
- ROM read only storage unit
- the storage unit 720 can also include a program/utility 7204 having a set (at least one) of the program modules 7205, such as but not limited to: an operating system, one or more applications, other program modules, and program data, Implementations of the network environment may be included in each or some of these examples.
- a program/utility 7204 having a set (at least one) of the program modules 7205, such as but not limited to: an operating system, one or more applications, other program modules, and program data, Implementations of the network environment may be included in each or some of these examples.
- Bus 730 may be representative of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures. bus.
- the electronic device 700 can also communicate with one or more external devices 600 (eg, a keyboard, pointing device, Bluetooth device, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 600, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 700 to communicate with one or more other computing devices. This communication can take place via an input/output (I/O) interface 750. Also, electronic device 700 can communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through network adapter 760. As shown, network adapter 760 communicates with other modules of electronic device 700 via bus 730.
- network adapter 760 communicates with other modules of electronic device 700 via bus 730.
- the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network.
- a non-volatile storage medium which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.
- a number of instructions are included to cause a computing device (which may be a personal computer, server, terminal device, or network device, etc.) to perform a method in accordance with an embodiment of the present disclosure.
- a computer readable storage medium having stored thereon a program product capable of implementing the above method of the present specification.
- aspects of the present invention may also be embodied in the form of a program product comprising program code for causing said program product to run on a terminal device The terminal device performs the steps according to various exemplary embodiments of the present invention described in the "Exemplary Method" section of the present specification.
- a program product 800 for implementing the above method which may employ a portable compact disk read only memory (CD-ROM) and includes program code, and may be in a terminal device, is illustrated in accordance with an embodiment of the present invention.
- CD-ROM portable compact disk read only memory
- the program product of the present invention is not limited thereto, and in the present document, the readable storage medium may be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus or device.
- the program product can employ any combination of one or more readable media.
- the readable medium can be a readable signal medium or a readable storage medium.
- the readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive lists) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
- the computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the readable signal medium can also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
- Program code embodied on a readable medium can be transmitted using any suitable medium, including but not limited to wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.
- Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++, etc., including conventional procedural Programming language—such as the "C" language or a similar programming language.
- the program code can execute entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the remote computing device on the user computing device, or entirely on the remote computing device or server. Execute on.
- the remote computing device can be connected to the user computing device via any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computing device (eg, provided using an Internet service) Businesses are connected via the Internet).
- LAN local area network
- WAN wide area network
- Businesses are connected via the Internet.
- modules or units of equipment for action execution are mentioned in the detailed description above, such division is not mandatory. Indeed, in accordance with embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of a module or unit described above may be further divided into multiple modules or units.
- the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network.
- a non-volatile storage medium which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.
- a number of instructions are included to cause a computing device (which may be a personal computer, server, mobile terminal, or network device, etc.) to perform a method in accordance with an embodiment of the present disclosure.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
Description
本公开涉及虚拟机技术领域,具体涉及一种虚拟系统蓝牙通信方法、一种虚拟系统蓝牙通信装置、一种虚拟系统、一种存储介质以及一种电子设备。The present disclosure relates to the field of virtual machine technologies, and in particular, to a virtual system Bluetooth communication method, a virtual system Bluetooth communication device, a virtual system, a storage medium, and an electronic device.
虚拟机是指通过软件模拟而具有完整硬件系统功能,运行在一个完全隔离环境中的计算机系统。在虚拟机应用环境中,多个不同的操作系统基于模拟硬件,共享物理硬件设备,例如CPU、内存以及输入输出设备等。A virtual machine is a computer system that has full hardware system functionality through software emulation and runs in a completely isolated environment. In a virtual machine application environment, multiple different operating systems are based on analog hardware, sharing physical hardware devices such as CPUs, memory, and input and output devices.
现有技术一般采用基于Qemu/KVM技术的虚拟化方案架构,一般包括一个Host操作系统(主机操作系统),例如Android系统、Windows系统或Linux系统等;以及若干个虚拟出来的Guest操作系统(虚拟操作系统)组成。这些操作系统运行在同一套硬件处理器芯片上,共享处理器及外设资源。当在手机或平板等终端设备上实现上述的虚拟化架构时,需要解决所有硬件设备的虚拟化,并允许虚拟操作系统也能使用真实的硬件设备,例如内存、蓝牙或扬声器等。现有技术在进行蓝牙虚拟化时,一般基于同一个操作系统实现,即虚拟操作系统与主机操作系统共用同一个内核空间(kernel),仅能够在框架层(framework)及具体应用(Application)实现分离。例如,在Host操作系统(或Guest操作系统)对扬声器进行操作时,Guest操作系统(或Host操作系统)并不能对蓝牙、麦克风或其他硬件设备进行操作。即现有技术并不能在Guest操作系统中完全独立的对蓝牙虚拟化。The prior art generally adopts a virtualization scheme based on Qemu/KVM technology, and generally includes a Host operating system (host operating system), such as an Android system, a Windows system, or a Linux system; and several virtual guest operating systems (virtual Operating system). These operating systems run on the same set of hardware processor chips, sharing processor and peripheral resources. When implementing the above virtualization architecture on a terminal device such as a mobile phone or a tablet, it is necessary to solve the virtualization of all hardware devices and allow the virtual operating system to use real hardware devices such as memory, Bluetooth or speakers. In the prior art, when Bluetooth virtualization is performed, the implementation is generally based on the same operating system, that is, the virtual operating system and the host operating system share the same kernel space (kernel), and can only be implemented in the framework layer and the specific application (Application). Separation. For example, when the Host operating system (or Guest operating system) operates the speakers, the Guest operating system (or Host operating system) cannot operate Bluetooth, microphones, or other hardware devices. That is, the prior art does not completely separate Bluetooth virtualization in the Guest operating system.
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the Background section above is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
发明内容Summary of the invention
根据本公开实施例提供的一种虚拟系统蓝牙通信方法、一种虚拟系统蓝牙通信装置、一种虚拟系统、一种存储介质以及一种电子设备,能够实现虚拟机对蓝牙组件的独立控制。According to an embodiment of the present disclosure, a virtual system Bluetooth communication method, a virtual system Bluetooth communication device, a virtual system, a storage medium, and an electronic device can implement independent control of a Bluetooth component by a virtual machine.
根据本公开的第一方面,提供一种虚拟系统蓝牙通信方法,包括:According to a first aspect of the present disclosure, a virtual system Bluetooth communication method is provided, including:
响应于虚拟机的蓝牙组件的操作指令,调用虚拟机的虚拟蓝牙前端的虚拟蓝牙通讯接口函数;Responding to a virtual Bluetooth communication interface function of the virtual Bluetooth front end of the virtual machine in response to an operation instruction of the Bluetooth component of the virtual machine;
主机的虚拟蓝牙后端通过跨系统通信的方式获取所述操作指令的参数;The virtual Bluetooth backend of the host acquires parameters of the operation instruction by means of cross-system communication;
所述主机的虚拟蓝牙后端基于所述操作指令的参数调用主机内核的蓝牙驱动函数以控制蓝牙组件。The virtual Bluetooth backend of the host invokes a Bluetooth driver function of the host kernel to control the Bluetooth component based on parameters of the operation instruction.
在本公开的一种示例性实施例中,所述方法还包括:In an exemplary embodiment of the present disclosure, the method further includes:
所述主机的虚拟蓝牙后端接收来自主机内核的串口数据;The virtual Bluetooth back end of the host receives serial port data from the host kernel;
所述主机的虚拟蓝牙后端通过跨系统通信的方式将所述串口数据传到所述虚拟蓝牙前端;The virtual Bluetooth back end of the host transmits the serial port data to the virtual Bluetooth front end by means of cross-system communication;
所述虚拟蓝牙前端将所述串口数据传到虚拟机的应用。The virtual Bluetooth front end transmits the serial port data to an application of the virtual machine.
在本公开的一种示例性实施例中,所述方法还包括:所述虚拟系统中包括多个虚拟机,所述多个虚拟机共用所述主机的虚拟蓝牙后端。In an exemplary embodiment of the present disclosure, the method further includes: the virtual system includes a plurality of virtual machines, the plurality of virtual machines sharing a virtual Bluetooth back end of the host.
在本公开的一种示例性实施例中,所述调用虚拟机的虚拟蓝牙前端的虚拟蓝牙通讯接口函数包括:In an exemplary embodiment of the present disclosure, the virtual Bluetooth communication interface function of the virtual Bluetooth front end of the calling virtual machine includes:
将所述操作指令通过虚拟蓝牙Java接口传输至所述虚拟机的框架层;Transmitting the operation instruction to a framework layer of the virtual machine through a virtual Bluetooth Java interface;
通过所述框架层将所述操作指令传输至所述虚拟机的协议层以便于对所述操作指令按预设协议进行封装;Transmitting, by the framework layer, the operation instruction to a protocol layer of the virtual machine, so as to encapsulate the operation instruction according to a preset protocol;
根据所述封装后的操作指令调用虚拟蓝牙通讯接口函数。The virtual Bluetooth communication interface function is invoked according to the encapsulated operation instruction.
在本公开的一种示例性实施例中,所述跨系统通信方式包括:In an exemplary embodiment of the present disclosure, the cross-system communication method includes:
共享内存、QEMU模拟器管道或Virtio驱动中的任意一种。Any of shared memory, QEMU emulator pipes, or Virtio drivers.
在本公开的一种示例性实施例中,所述操作指令包括以下情况至少一种:In an exemplary embodiment of the present disclosure, the operation instruction includes at least one of the following cases:
对蓝牙组件的打开、关闭、扫描、配对、连接、硬件通讯接口配置、从硬件通讯接口读取数据以及通过硬件通讯接口向蓝牙芯片写入数据;Turning on, off, scanning, pairing, connecting, hardware communication interface configuration of the Bluetooth component, reading data from the hardware communication interface, and writing data to the Bluetooth chip through the hardware communication interface;
其中,所述硬件通讯接口包括串口或USB接口。The hardware communication interface includes a serial port or a USB interface.
根据本公开的第二方面,提供一种虚拟系统蓝牙通信装置,包括:According to a second aspect of the present disclosure, a virtual system Bluetooth communication device is provided, including:
虚拟蓝牙前端,设置于虚拟机,设置为响应虚拟机的蓝牙组件的操作指令调用虚拟蓝牙通讯接口函数;The virtual Bluetooth front end is set in the virtual machine, and is set to respond to the operation instruction of the virtual component of the virtual machine to invoke the virtual Bluetooth communication interface function;
虚拟蓝牙后端,设置于主机,设置为通过跨系统通信的方式获取所述操作指令的参数,基于所述操作指令的参数调用主机内核的蓝牙驱动函数以控制蓝牙组件。The virtual Bluetooth backend is disposed on the host, configured to acquire parameters of the operation instruction by means of cross-system communication, and invoke a Bluetooth driver function of the host kernel to control the Bluetooth component based on the parameter of the operation instruction.
在本公开的一种示例性实施例中,所述虚拟蓝牙客户端与所述虚拟蓝牙后端之间通过跨系统通信方式传输数据。In an exemplary embodiment of the present disclosure, data is transmitted between the virtual Bluetooth client and the virtual Bluetooth back end by means of cross-system communication.
在本公开的一种示例性实施例中,所述跨系统通信方式包括:In an exemplary embodiment of the present disclosure, the cross-system communication method includes:
共享内存、QEMU模拟器管道或Virtio驱动中的任意一种。Any of shared memory, QEMU emulator pipes, or Virtio drivers.
根据本公开的第三方面,一种虚拟系统,所述虚拟系统包括:According to a third aspect of the present disclosure, a virtual system includes:
虚拟蓝牙前端,设置为响应所述虚拟机的蓝牙组件的操作指令调用虚拟蓝牙通讯接口函数,通过跨系统通信的方式与主机的虚拟蓝牙后端之间传输数据。The virtual Bluetooth front end is configured to invoke a virtual Bluetooth communication interface function in response to an operation instruction of the Bluetooth component of the virtual machine to transmit data between the virtual Bluetooth back end of the host and the virtual Bluetooth back end of the host.
根据本公开的第四方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的虚拟系统蓝牙通信方法。According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the virtual system Bluetooth communication method described above.
根据本公开的第五方面,提供一种电子设备,包括:According to a fifth aspect of the present disclosure, an electronic device is provided, including:
处理器;以及Processor;
存储器,设置为存储所述处理器的可执行指令;a memory, configured to store executable instructions of the processor;
其中,所述处理器配置为经由执行所述可执行指令来执行以下操作:Wherein the processor is configured to perform the following operations by executing the executable instructions:
响应于虚拟机的蓝牙组件的操作指令,调用虚拟机的虚拟蓝牙前端的虚拟蓝牙通讯接口函数;Responding to a virtual Bluetooth communication interface function of the virtual Bluetooth front end of the virtual machine in response to an operation instruction of the Bluetooth component of the virtual machine;
主机的虚拟蓝牙后端通过跨系统通信的方式获取所述操作指令的参数;The virtual Bluetooth backend of the host acquires parameters of the operation instruction by means of cross-system communication;
所述主机的虚拟蓝牙后端基于所述操作指令的参数调用主机内核的蓝牙驱动函数以控制蓝牙组件。The virtual Bluetooth backend of the host invokes a Bluetooth driver function of the host kernel to control the Bluetooth component based on parameters of the operation instruction.
由上述技术方案可知,本公开提供的一种虚拟系统蓝牙通信方法,其优点和积极效果在于:It can be seen from the above technical solutions that the advantages and positive effects of a virtual system Bluetooth communication method provided by the present disclosure are as follows:
本公开的一种实施例所提供的虚拟系统蓝牙通信方法,在虚拟机接收到一针对蓝牙组件的操作指令时,便可调用虚拟蓝牙前端的虚拟蓝牙通讯接口函数;从而使主机的虚拟蓝牙后端可以通过跨系统通信的方式由虚拟蓝牙前端获取操作指令的参数,进而可以根据操作指令的参数对物理蓝牙组件进行控制,从而实现虚拟机对蓝牙组件的独立控制。本方法通过在虚拟机设置虚拟蓝牙前端,从而可以在虚拟机内部独立执行蓝牙指令,并且简化控制方式,进而方便各虚拟机独立控制蓝牙组件。The virtual system Bluetooth communication method provided by an embodiment of the present disclosure can invoke a virtual Bluetooth communication interface function of the virtual Bluetooth front end when the virtual machine receives an operation instruction for the Bluetooth component; thereby enabling the virtual Bluetooth of the host The terminal can obtain the parameters of the operation instruction from the virtual Bluetooth front end by means of cross-system communication, and then can control the physical Bluetooth component according to the parameters of the operation instruction, thereby realizing independent control of the Bluetooth component by the virtual machine. By setting a virtual Bluetooth front end in the virtual machine, the method can independently execute the Bluetooth instruction inside the virtual machine and simplify the control mode, thereby facilitating the independent control of the Bluetooth component by each virtual machine.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will be apparent from the following detailed description.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。The above general description and the following detailed description are intended to be illustrative and not restrictive.
图1是本公开实施例提供的一种虚拟系统蓝牙通信方法的方法示意图;1 is a schematic diagram of a method for a Bluetooth communication method of a virtual system according to an embodiment of the present disclosure;
图2是本公开实施例提供的一种调用虚拟蓝牙通讯接口函数的方法示意图;2 is a schematic diagram of a method for calling a virtual Bluetooth communication interface function according to an embodiment of the present disclosure;
图3是本公开实施例提供的一种虚拟蓝牙后端执行所述控制参数的方法示意图;FIG. 3 is a schematic diagram of a method for executing the control parameter by a virtual Bluetooth backend according to an embodiment of the present disclosure;
图4是本公开实施例提供的一种虚拟系统蓝牙通信方法的另一种方法示意图;4 is a schematic diagram of another method for a Bluetooth communication method of a virtual system according to an embodiment of the present disclosure;
图5是本公开实施例提供的一种虚拟系统蓝牙通信装置的组成示意图;FIG. 5 is a schematic diagram of a composition of a virtual system Bluetooth communication device according to an embodiment of the present disclosure;
图6是本公开实施例提供的一种虚拟机与主机框架结构及数据传输过程示意图;6 is a schematic diagram of a virtual machine and host framework structure and a data transmission process according to an embodiment of the present disclosure;
图7是本公开实施例提供的一种虚拟系统蓝牙通信装置的另一种示意图;7 is another schematic diagram of a virtual system Bluetooth communication device according to an embodiment of the present disclosure;
图8是本公开实施例提供的一种虚拟系统蓝牙通信装置的再一种示意图。FIG. 8 is still another schematic diagram of a virtual system Bluetooth communication device according to an embodiment of the present disclosure.
现在将结合附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方 法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully in conjunction with the drawings. However, the example embodiments can be embodied in a variety of forms and should not be construed as being limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more complete and complete, To those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are set forth However, one skilled in the art will appreciate that one or more of the specific details may be omitted or other methods, components, devices, steps, etc. may be employed. In other instances, various aspects of the present disclosure are not obscured by the details of the invention.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。In addition, the drawings are merely schematic representations of the present disclosure and are not necessarily to scale. The same reference numerals in the drawings denote the same or similar parts, and the repeated description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily have to correspond to physically or logically separate entities. These functional entities may be implemented in software, or implemented in one or more hardware modules or integrated circuits, or implemented in different network and/or processor devices and/or microcontroller devices.
用语“一个”、“一”、“该”和“所述”用以表示存在一个或多个要素/组成部分/等;用语“包括”和“具有”用以表示开放式的包括在内的意思并且是指除了列出的要素/组成部分/等之外还可存在另外的要素/组成部分/等;用语“第一”和“第二”等仅作为标记使用,不是对其对象的数量限制。The terms "a", "an", "the" and "the" are used to mean the presence of one or more elements/components, etc.; the terms "including" and "having" are used to mean an inclusive. Meaning and means that there may be additional elements/components/etc. in addition to the listed elements/components/etc; the terms "first" and "second" etc. are used only as marks, not the number of objects limit.
操作系统可以分为两类,一类为原生系统(宿主系统),即主机的系统;可以称为HostOS、Host系统、Host端或主机;宿主系统可以是Windows系统、Linux系统或Android系统等。另一类为寄生系统,即虚拟系统(虚拟机);虚拟系统也可以称为GuestOS、Guest系统或Guest端;虚拟系统可以是Windows系统或Android系统等。The operating system can be divided into two categories, one is the native system (host system), that is, the host system; it can be called HostOS, Host system, Host or host; the host system can be Windows system, Linux system or Android system. The other type is a parasitic system, that is, a virtual system (virtual machine); the virtual system may also be called a Guest OS, a Guest system, or a Guest terminal; the virtual system may be a Windows system or an Android system.
本示例实施方式中首先提供了一种虚拟系统蓝牙通信方法,可以应用于基于Windows系统、Linux系统或Android系统的手机、平板或其他智能终端中虚拟系统对硬件设备的控制,尤其是对蓝牙组件的控制。各个虚拟系统有各自独立的操作系统,各个虚拟系统有自己独立的内核空间和用户空间以及有各自独立的存储设备。参考图1中所示,上述的虚拟系统蓝牙通信方法可以包括以下步骤:In the exemplary embodiment, a virtual system Bluetooth communication method is firstly provided, which can be applied to control of a hardware device of a virtual system in a mobile phone, a tablet or other intelligent terminal based on a Windows system, a Linux system or an Android system, in particular, a Bluetooth component. control. Each virtual system has its own independent operating system. Each virtual system has its own independent kernel space and user space and has its own independent storage devices. Referring to FIG. 1, the above-described virtual system Bluetooth communication method may include the following steps:
S1,响应于虚拟机的蓝牙组件的操作指令,调用虚拟机的虚拟蓝牙前端的虚拟蓝牙通讯接口函数;S1. In response to an operation instruction of a Bluetooth component of the virtual machine, invoke a virtual Bluetooth communication interface function of the virtual Bluetooth front end of the virtual machine;
S2,主机的虚拟蓝牙后端通过跨系统通信的方式获取所述操作指令的参数;S2. The virtual Bluetooth back end of the host acquires parameters of the operation instruction by means of cross-system communication;
S3,所述主机的虚拟蓝牙后端基于所述操作指令的参数调用主机内核的蓝牙驱动函数以控制蓝牙组件。S3. The virtual Bluetooth backend of the host invokes a Bluetooth driver function of the host kernel to control the Bluetooth component based on parameters of the operation instruction.
本示例实施方式所提供的虚拟系统蓝牙通信方法,在虚拟机接收到一针对蓝牙组件的操作指令时,便可调用虚拟蓝牙前端的虚拟蓝牙通讯接口函数;从而使主机的虚拟蓝牙后端可以通过跨系统通信的方式由虚拟蓝牙前端获取操作指令的参数,进而可以根据操作指令的参数对物理蓝牙组件进行控制,从而实现虚拟机对蓝牙组件的独立控制。本方法通过在虚拟机设置虚拟蓝牙前端,从而可以在虚拟机内部独立执行蓝牙指令,并且简化控制方式,进而方便各虚拟机独立控制蓝牙组件。The virtual system Bluetooth communication method provided by the example embodiment can invoke the virtual Bluetooth communication interface function of the virtual Bluetooth front end when the virtual machine receives an operation instruction for the Bluetooth component; thereby enabling the virtual Bluetooth back end of the host to pass The way of cross-system communication is obtained by the virtual Bluetooth front end, and the physical Bluetooth component can be controlled according to the parameters of the operation instruction, thereby realizing independent control of the Bluetooth component by the virtual machine. By setting a virtual Bluetooth front end in the virtual machine, the method can independently execute the Bluetooth instruction inside the virtual machine and simplify the control mode, thereby facilitating the independent control of the Bluetooth component by each virtual machine.
下面,将结合附图及实施例对本示例实施方式中的虚拟系统蓝牙通信方法的各个步骤进行更详细的说明。Hereinafter, each step of the virtual system Bluetooth communication method in the present exemplary embodiment will be described in more detail with reference to the accompanying drawings and embodiments.
步骤S1,响应于虚拟机的蓝牙组件的操作指令,调用虚拟机的虚拟蓝牙前端的虚拟蓝牙通讯接口函数。Step S1, in response to an operation instruction of the Bluetooth component of the virtual machine, invoke a virtual Bluetooth communication interface function of the virtual Bluetooth front end of the virtual machine.
本示例实施方式中,参考图6所示,可以在虚拟机中可以预先设置一虚拟蓝牙前端(guest vBT client)。在智能终端中的虚拟机运行时,可以实时检测是否存在应用、进程或服务有针对主机的物理蓝牙组件的操作指令。举例而言,上述的操作指令可以是对蓝牙组件的打开、关闭、扫描、配对、连接、硬件通讯接口配置、从硬件通讯接口读取数据以及通过硬件通讯接口向蓝牙芯片写入数据。此外,上述的硬件通讯接口可以是串口或USB接口等数据接口,但并不限于上述的两种硬件通讯接口。本公开对硬件通讯接口的形式不做特殊限定。In this example embodiment, referring to FIG. 6, a virtual Bluetooth front end (guest vBT client) may be preset in the virtual machine. When the virtual machine in the smart terminal is running, it can detect in real time whether there is an application, process or service with an operation instruction for the physical Bluetooth component of the host. For example, the above operation instructions may be opening, closing, scanning, pairing, connecting, hardware communication interface configuration of the Bluetooth component, reading data from the hardware communication interface, and writing data to the Bluetooth chip through the hardware communication interface. In addition, the above hardware communication interface may be a data interface such as a serial port or a USB interface, but is not limited to the above two hardware communication interfaces. The disclosure does not specifically limit the form of the hardware communication interface.
对蓝牙组件的打开、关闭、配对、连接、设置串口、读取串口数据以及写入串口数据中的任意一项或任意多项的组合。本公开对操作指令的具体内容不作特殊限定。A combination of any one or any of a plurality of Bluetooth components, such as opening, closing, pairing, connecting, setting a serial port, reading serial data, and writing serial data. The disclosure does not specifically limit the specific content of the operation instructions.
若检测存在针对蓝牙组件的一操作指令时,便可以依据该操作指令调用该虚拟蓝牙前端的虚拟蓝牙通讯接口函数,并在虚拟蓝牙前端执行虚拟蓝牙通讯接口函数后获取操作指令的相应的参数。If it is detected that there is an operation instruction for the Bluetooth component, the virtual Bluetooth communication interface function of the virtual Bluetooth front end may be invoked according to the operation instruction, and the corresponding parameter of the operation instruction is obtained after the virtual Bluetooth communication interface function is executed by the virtual Bluetooth front end.
具体来说,参考图2所示,上述的依据操作指令调用虚拟蓝牙通讯接口函数可以包括以下步骤:Specifically, referring to FIG. 2, the foregoing calling the virtual Bluetooth communication interface function according to the operation instruction may include the following steps:
步骤S11,将所述操作指令通过虚拟蓝牙Java接口发送至所述虚拟机的框架层;Step S11, sending the operation instruction to the framework layer of the virtual machine through a virtual Bluetooth Java interface;
步骤S12,通过所述框架层将所述操作指令发送至所述虚拟机的协议层以便于对所述操作指令按预设协议进行封装;Step S12, sending, by the framework layer, the operation instruction to a protocol layer of the virtual machine, so as to encapsulate the operation instruction according to a preset protocol;
步骤S13,根据所述封装后的操作指令息调用虚拟蓝牙通讯接口函数。Step S13, calling a virtual Bluetooth communication interface function according to the encapsulated operation instruction information.
对于虚拟系统来说,可以根据操作指令获取虚拟系统的HAL层(硬件抽象层)及vendor模块(通讯支持模块)相关的虚拟蓝牙通讯接口函数。其中,虚拟蓝牙通讯接口函数是指虚拟系统与蓝牙组件进行通讯的硬件通讯接口函数,例如UART接口函数等。此外,vendor指由蓝牙厂商或平台提供并存储在user空间的蓝牙通讯相关代码。该虚拟蓝牙Java接口可以是指蓝牙API(Application Programming Interface,应用程序编程接口),依赖java通用连接框架。For the virtual system, the virtual network communication interface function related to the HAL layer (hardware abstraction layer) of the virtual system and the vendor module (communication support module) can be obtained according to the operation instruction. The virtual Bluetooth communication interface function refers to a hardware communication interface function for communicating between the virtual system and the Bluetooth component, such as a UART interface function. In addition, vendor refers to the Bluetooth communication related code provided by the Bluetooth manufacturer or platform and stored in the user space. The virtual Bluetooth Java interface may refer to a Bluetooth API (Application Programming Interface) and relies on the Java Universal Connection Framework.
步骤S2,主机的虚拟蓝牙后端通过跨系统通信的方式获取所述操作指令的参数。In step S2, the virtual Bluetooth backend of the host acquires parameters of the operation instruction by means of cross-system communication.
本示例实施方式中,参考图6所示,可以在主机预先设置一虚拟蓝牙后端(Host vBT Server),该虚拟蓝牙后端可以通过跨系统通信的方式与上述的虚拟蓝牙前端之间进行数据交互。In this example, referring to FIG. 6, a virtual Bluetooth backend (Host vBT Server) may be preset in the host, and the virtual Bluetooth backend may perform data communication with the virtual Bluetooth front end by means of cross-system communication. Interaction.
举例而言,上述的跨系统通信方式可以是共享内存(Share Memory)、QEMU模拟器管道(QEMU pipe)或Virtio驱动等方式,具体可以所使用的虚拟机操作系统及主机操作系统的类型进行选择。本公开对虚拟蓝牙后端与虚拟蓝牙客户端之间的数据交互方式不做特殊限定。For example, the foregoing cross-system communication method may be a shared memory (Share Memory), a QEMU simulator pipeline (QEMU pipe), or a Virtio driver, and may be selected by using a virtual machine operating system and a host operating system type. . The disclosure does not specifically limit the manner of data interaction between the virtual Bluetooth backend and the virtual Bluetooth client.
步骤S3,所述主机的虚拟蓝牙后端基于所述操作指令的参数调用主机内核的蓝牙驱动函数以控制蓝牙组件。In step S3, the virtual Bluetooth backend of the host invokes a Bluetooth driver function of the host kernel to control the Bluetooth component based on the parameters of the operation instruction.
本示例实施方式中,在主机的虚拟蓝牙后端获取所述操作指令的参数后,便可根据该 参数对蓝牙组件执行对应的操作。具体来说,参考图3所示,该步骤可以包括:In this example, after the virtual Bluetooth backend of the host acquires the parameters of the operation instruction, the corresponding operation may be performed on the Bluetooth component according to the parameter. Specifically, referring to FIG. 3, the step may include:
步骤S31,所述虚拟蓝牙后端根据所述操作指令的参数调用主机内核对应的蓝牙驱动函数;Step S31, the virtual Bluetooth backend invokes a Bluetooth driver function corresponding to the host kernel according to the parameter of the operation instruction;
步骤S32,根据所述蓝牙驱动函数调用预设接口;Step S32, calling a preset interface according to the Bluetooth driver function;
步骤S33,通过所述接口将所述操作指令的参数传输至所述蓝牙组件以便于所述蓝牙组件执行所述操作指令。Step S33, transmitting parameters of the operation instruction to the Bluetooth component through the interface, so that the Bluetooth component executes the operation instruction.
虚拟蓝牙后端在通过跨系统通信的方式接收到操作指令的参数后,便可以根据参数主动向主机内核中调用对应的蓝牙组件的驱动函数。例如,若参数包含对UART接口的调用参数,则在主机内核中调用对应的UART接口驱动(UART Driver)。最终,便可以通过UART接口将操作指令发送至蓝牙芯片,并使蓝牙组件执行对应的控制动作,从而实现了虚拟系统与物理蓝牙芯片之间的数据交互以及实现了虚拟系统对蓝牙组件的独立控制。After receiving the parameters of the operation instruction by means of cross-system communication, the virtual Bluetooth backend can actively call the corresponding Bluetooth component driving function to the host kernel according to the parameter. For example, if the parameter contains a call parameter to the UART interface, the corresponding UART interface driver (UART Driver) is called in the host kernel. Finally, the operation command can be sent to the Bluetooth chip through the UART interface, and the Bluetooth component can perform the corresponding control action, thereby realizing the data interaction between the virtual system and the physical Bluetooth chip and realizing the independent control of the Bluetooth component of the virtual system. .
基于上述内容,在本公开的其他示例性实施方式中,参考图4所示,上述的虚拟系统蓝牙通信方法还可以包括:Based on the above, in other exemplary embodiments of the present disclosure, as shown in FIG. 4, the virtual system Bluetooth communication method may further include:
步骤S401,所述主机的虚拟蓝牙后端接收来自host kernel的串口数据;Step S401, the virtual Bluetooth back end of the host receives serial port data from the host kernel;
步骤S402,所述主机的虚拟蓝牙后端通过跨系统通信的方式将所述串口数据传到所述虚拟蓝牙前端;Step S402, the virtual Bluetooth back end of the host transmits the serial port data to the virtual Bluetooth front end by means of cross-system communication;
步骤S403,所述虚拟蓝牙前端将所述串口数据传到虚拟机的应用。Step S403, the virtual Bluetooth front end transmits the serial port data to an application of the virtual machine.
对于主机来说,可以实时判断蓝牙传输总线或蓝牙通信串口是否存在某虚拟机的待处理蓝牙数据。在检测存在所述待处理蓝牙数据时,虚拟蓝牙后端可以通过所述host kernel(主机内核)获取所述待处理蓝牙数据,再通过跨系统通信的方式将待处理蓝牙数据发送至所述虚拟蓝牙前端;再由所述虚拟蓝牙前端将所述待蓝牙处理数据传输至对应的应用。For the host, it is possible to determine in real time whether there is a pending Bluetooth data of a virtual machine in the Bluetooth transmission bus or the Bluetooth communication serial port. When detecting the presence of the to-be-processed Bluetooth data, the virtual Bluetooth backend may acquire the to-be-processed Bluetooth data through the host kernel, and then send the to-be-processed Bluetooth data to the virtual by means of cross-system communication. a Bluetooth front end; the Bluetooth processing data is further transmitted by the virtual Bluetooth front end to a corresponding application.
参考图6所示,在虚拟蓝牙前端通过跨系统通信的方式接收到待处理蓝牙数据后,便可以将该待处理蓝牙数据传输至虚拟机的HAL层,由虚拟机的HAL层传到蓝牙协议层按预设协议对数据包进行解封,再由蓝牙协议层传到Frameworks层,最后通知到具体的应用,并可以进行相应的显示。Referring to FIG. 6, after the virtual Bluetooth front end receives the pending Bluetooth data by means of cross-system communication, the pending Bluetooth data can be transmitted to the HAL layer of the virtual machine, and the HAL layer of the virtual machine is transmitted to the Bluetooth protocol. The layer decapsulates the data packet according to the preset protocol, and then passes the Bluetooth protocol layer to the Frameworks layer, and finally notifies the specific application, and can perform corresponding display.
进一步的,在本公开的其他示例性实施方式中,参考图6所示,当主机操作系统中存在多个虚拟机时,可以为各虚拟机分别设置虚拟蓝牙前端,且各虚拟机可以共用同一个主机的虚拟蓝牙后端。即各虚拟蓝牙前端可以分别与该主机的虚拟蓝牙后端进行数据交互并对蓝牙组件进行操作及控制。这样,就可以使各虚拟机分别独立的控制蓝牙组件。Further, in other exemplary embodiments of the present disclosure, as shown in FIG. 6, when there are multiple virtual machines in the host operating system, a virtual Bluetooth front end may be separately set for each virtual machine, and each virtual machine may share the same A virtual Bluetooth backend for a host. That is, each virtual Bluetooth front end can perform data interaction with the virtual Bluetooth back end of the host and operate and control the Bluetooth component. In this way, each virtual machine can independently control the Bluetooth component.
本公开提供的蓝牙通信方法,通过在主机中设置虚拟蓝牙后端,能够接收虚拟机中虚拟蓝牙前端传输的操作指令及参数,并且可以调用主机内核中对应的接口驱动函数,最终将虚拟机的对蓝牙组件的操作指令发送至主机的物理蓝牙组件,实现对蓝牙组件的控制。通过在虚拟机中设置虚拟蓝牙前端以及在主机中虚拟蓝牙后端,并能够进行数据传输,从而使各虚拟机均可以不受主机操作系统的影响,能够在各自的虚拟操作系统中对蓝牙组件 进行独立控制。同时,还可以将操作数据保存在各自的虚拟操作系统中。The Bluetooth communication method provided by the present disclosure can receive an operation instruction and parameters of a virtual Bluetooth front end transmission in a virtual machine by setting a virtual Bluetooth back end in the host, and can call a corresponding interface driving function in the host kernel, and finally the virtual machine is The operation instructions for the Bluetooth component are sent to the physical Bluetooth component of the host to implement control of the Bluetooth component. By setting up a virtual Bluetooth front end in the virtual machine and virtualizing the Bluetooth back end in the host, and enabling data transmission, each virtual machine can be independent of the host operating system and can be used in the respective virtual operating system for the Bluetooth component. Independent control. At the same time, operational data can be saved in its own virtual operating system.
当然,在本公开的其他示例性实施方式中,当操作指令为其他设备的操作指令,例如对扬声器、外置存储器或数据接口等硬件设备进行控制时,上述的方法同样的也可以应用于虚拟机对该些设备的控制。Of course, in other exemplary embodiments of the present disclosure, when the operation instruction is an operation instruction of another device, for example, a hardware device such as a speaker, an external memory, or a data interface, the above method can also be applied to the virtual The control of these devices.
需要注意的是,上述附图仅是根据本发明示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。It is to be noted that the above-described drawings are merely illustrative of the processes included in the method according to the exemplary embodiments of the present invention, and are not intended to be limiting. It is easy to understand that the processing shown in the above figures does not indicate or limit the chronological order of these processes. In addition, it is also easy to understand that these processes may be performed synchronously or asynchronously, for example, in a plurality of modules.
进一步的,参考图5所示,本示例的实施方式中还提供一种虚拟系统蓝牙通信装置5,包括:虚拟蓝牙前端51、以及虚拟蓝牙后端52。其中:Further, referring to FIG. 5, a virtual system Bluetooth communication device 5 is further provided in the embodiment of the present example, including: a virtual Bluetooth
所述虚拟蓝牙前端51设置于虚拟机,可以设置为响应虚拟机的蓝牙组件的操作指令并调用虚拟蓝牙通讯接口函数。The virtual Bluetooth
所述虚拟蓝牙后端52设置于主机,可以设置为通过跨系统通信的方式获取所述操作指令的参数,基于所述操作指令的参数调用主机内核的蓝牙驱动函数以控制蓝牙组件。The virtual Bluetooth
所述虚拟蓝牙前端51与所述虚拟蓝牙后端52之间可以采用跨系统通信的方式传输数据。所述的跨系统通信方式具体可以采用:共享内存、QEMU模拟器管道或Virtio驱动中的任意一种。Data may be transmitted between the virtual Bluetooth
此外,在本示例性实施方式中,参考图6所示,上述的虚拟机61的架构可以包括:应用层611、框架层612、协议层613、硬件抽象层614以及通讯支持模块615,此外还可以包括一虚拟蓝牙前端616。其中,In addition, in the present exemplary embodiment, referring to FIG. 6, the architecture of the virtual machine 61 described above may include: an
所述应用层611可以用于接收所述操作指令并将所述操作指令发送至所述虚拟机的框架层。所述框架层612可以用于将所述操作指令发送至所述虚拟机的协议层。所述协议层613可以用于对所述操作指令按预设协议进行封装。所述硬件抽象层614以及所述通讯支持模块615可以用于提供虚拟蓝牙通讯接口函数。The
同时,主机62可以与虚拟机采用相同的架构,包括主机系统的应用层621、框架层622、协议层623、硬件抽象层624以及通讯支持模块615。At the same time, the
上述的虚拟系统蓝牙通信装置中各模块的具体细节已经在对应的虚拟系统蓝牙通信方法中进行了详细的描述,因此此处不再赘述。The specific details of each module in the above-mentioned virtual system Bluetooth communication device have been described in detail in the corresponding virtual system Bluetooth communication method, and therefore will not be described herein.
进一步的,本示例的实施方式中还提供一种虚拟系统,所述虚拟系统包括上述的虚拟蓝牙前端。该虚拟蓝牙前端设置为响应所述虚拟机的蓝牙组件的操作指令调用虚拟蓝牙通讯接口函数,通过跨系统通信的方式与主机的虚拟蓝牙后端之间传输数据。Further, in the embodiment of the present example, a virtual system is further provided, where the virtual system includes the virtual Bluetooth front end described above. The virtual Bluetooth front end is configured to invoke a virtual Bluetooth communication interface function in response to an operation instruction of the Bluetooth component of the virtual machine to transfer data between the virtual Bluetooth back end of the host and the virtual Bluetooth back end of the host.
在本公开的示例性实施例中,还提供了一种能够实现上述虚拟系统蓝牙通信方法的电子设备。In an exemplary embodiment of the present disclosure, there is also provided an electronic device capable of implementing the above-described virtual system Bluetooth communication method.
所属技术领域的技术人员能够理解,本发明的各个方面可以实现为系统、方法或程序产品。因此,本发明的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可 以统称为“电路”、“模块”或“系统”。Those skilled in the art will appreciate that various aspects of the present invention can be implemented as a system, method, or program product. Therefore, various aspects of the present invention may be embodied in the form of a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein. "Circuit," "module," or "system."
下面参照图7来描述根据本发明的这种实施方式的电子设备700。图7显示的电子设备700仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。An
如图7所示,电子设备700以通用计算设备的形式表现。电子设备700的组件可以包括但不限于:上述至少一个处理单元710、上述至少一个存储单元720、连接不同系统组件(包括存储单元720和处理单元710)的总线730。As shown in Figure 7,
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元710执行,使得所述处理单元710执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的步骤。例如,所述处理单元710可以执行如图1中所示的S1,响应于虚拟机的蓝牙组件的操作指令,调用虚拟机的虚拟蓝牙前端的虚拟蓝牙通讯接口函数;S2,主机的虚拟蓝牙后端通过跨系统通信的方式获取所述操作指令的参数;S3,所述主机的虚拟蓝牙后端基于所述操作指令的参数调用host kernel的蓝牙驱动函数以控制蓝牙组件。Wherein, the storage unit stores program code, which can be executed by the
存储单元720可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)7201和/或高速缓存存储单元7202,还可以进一步包括只读存储单元(ROM)7203。The
存储单元720还可以包括具有一组(至少一个)程序模块7205的程序/实用工具7204,这样的程序模块7205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The
总线730可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。
电子设备700也可以与一个或多个外部设备600(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备600交互的设备通信,和/或与使得该电子设备700能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口750进行。并且,电子设备700还可以通过网络适配器760与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器760通过总线730与电子设备700的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备700使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开 实施方式的方法。Through the description of the above embodiments, those skilled in the art will readily understand that the example embodiments described herein may be implemented by software or by software in combination with necessary hardware. Therefore, the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network. A number of instructions are included to cause a computing device (which may be a personal computer, server, terminal device, or network device, etc.) to perform a method in accordance with an embodiment of the present disclosure.
在本公开的示例性实施例中,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施方式中,本发明的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的步骤。In an exemplary embodiment of the present disclosure, there is also provided a computer readable storage medium having stored thereon a program product capable of implementing the above method of the present specification. In some possible implementations, aspects of the present invention may also be embodied in the form of a program product comprising program code for causing said program product to run on a terminal device The terminal device performs the steps according to various exemplary embodiments of the present invention described in the "Exemplary Method" section of the present specification.
参考图8所示,描述了根据本发明的实施方式的用于实现上述方法的程序产品800,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本发明的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Referring to FIG. 8, a
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product can employ any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive lists) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。The computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable signal medium can also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium can be transmitted using any suitable medium, including but not limited to wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++, etc., including conventional procedural Programming language—such as the "C" language or a similar programming language. The program code can execute entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the remote computing device on the user computing device, or entirely on the remote computing device or server. Execute on. In the case of a remote computing device, the remote computing device can be connected to the user computing device via any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computing device (eg, provided using an Internet service) Businesses are connected via the Internet).
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块 或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of equipment for action execution are mentioned in the detailed description above, such division is not mandatory. Indeed, in accordance with embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of a module or unit described above may be further divided into multiple modules or units.
此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。In addition, although the various steps of the method of the present disclosure are described in a particular order in the drawings, this is not required or implied that the steps must be performed in the specific order, or all the steps shown must be performed to achieve the desired. result. Additionally or alternatively, certain steps may be omitted, multiple steps being combined into one step execution, and/or one step being decomposed into multiple step executions and the like.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施方式的方法。Through the description of the above embodiments, those skilled in the art will readily understand that the example embodiments described herein may be implemented by software or by software in combination with necessary hardware. Therefore, the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network. A number of instructions are included to cause a computing device (which may be a personal computer, server, mobile terminal, or network device, etc.) to perform a method in accordance with an embodiment of the present disclosure.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由所附的权利要求指出。Other embodiments of the present disclosure will be apparent to those skilled in the <RTIgt; The present application is intended to cover any variations, uses, or adaptations of the present disclosure, which are in accordance with the general principles of the disclosure and include common general knowledge or common technical means in the art that are not disclosed in the present disclosure. . The specification and examples are to be regarded as illustrative only,
Claims (11)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/120173 WO2019127476A1 (en) | 2017-12-29 | 2017-12-29 | Virtual system bluetooth communication method and device, virtual system, storage medium, and electronic apparatus |
| CN201780002412.0A CN108124475B (en) | 2017-12-29 | 2017-12-29 | Virtual system Bluetooth communication method and device, virtual system, storage medium and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/120173 WO2019127476A1 (en) | 2017-12-29 | 2017-12-29 | Virtual system bluetooth communication method and device, virtual system, storage medium, and electronic apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019127476A1 true WO2019127476A1 (en) | 2019-07-04 |
Family
ID=62234408
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/120173 Ceased WO2019127476A1 (en) | 2017-12-29 | 2017-12-29 | Virtual system bluetooth communication method and device, virtual system, storage medium, and electronic apparatus |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN108124475B (en) |
| WO (1) | WO2019127476A1 (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111290717A (en) * | 2020-03-13 | 2020-06-16 | 成都互诚在线科技有限公司 | An offline data storage device based on bluetooth communication |
| CN112328356A (en) * | 2020-10-21 | 2021-02-05 | 成都安易迅科技有限公司 | Android and Windows intercommunication method and device, storage medium and computer equipment |
| CN113099433A (en) * | 2021-04-14 | 2021-07-09 | 深圳泰科晶显科技有限公司 | Android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers |
| CN113965917A (en) * | 2021-10-19 | 2022-01-21 | 深圳市元征科技股份有限公司 | Communication method, device and terminal equipment |
| CN114038456A (en) * | 2021-09-27 | 2022-02-11 | 北京智象信息技术有限公司 | A kind of intelligent voice control method, device, device and medium of bluetooth device |
| CN115394069A (en) * | 2022-07-29 | 2022-11-25 | 合壹(上海)展览有限公司 | Multi-device linkage remote control system, method, device and storage medium |
| CN115858102A (en) * | 2023-02-24 | 2023-03-28 | 珠海星云智联科技有限公司 | Method for deploying virtual machine supporting virtualization hardware acceleration |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111314799A (en) * | 2018-12-11 | 2020-06-19 | 中兴通讯股份有限公司 | Terminal system architecture, communication system, communication method, and storage medium |
| CN113286280A (en) * | 2021-04-12 | 2021-08-20 | 沈阳中科创达软件有限公司 | Audio data processing method and device, electronic equipment and computer readable medium |
| CN113950034B (en) * | 2021-10-14 | 2024-04-26 | 北京字节跳动网络技术有限公司 | Bluetooth behavior simulation method, device and equipment |
| CN114090487A (en) * | 2021-11-26 | 2022-02-25 | 上海星融汽车科技有限公司 | Communication method, device and system of android simulator and diagnosis equipment, storage medium and electronic equipment |
| CN114373045A (en) * | 2021-12-23 | 2022-04-19 | 达闼机器人有限公司 | Morphological transformation method, device and storage medium of virtual object |
| CN115344352A (en) * | 2022-08-15 | 2022-11-15 | 大连九征科技有限公司 | Virtualization system operation method, device, equipment and medium |
| CN115422883A (en) * | 2022-10-10 | 2022-12-02 | 山东云海国创云计算装备产业创新中心有限公司 | Chip development and verification method, terminal device, verification platform and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060010433A1 (en) * | 2004-06-30 | 2006-01-12 | Microsoft Corporation | Systems and methods for providing seamless software compatibility using virtual machines |
| CN104216726A (en) * | 2013-06-04 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Loading method and device for Android virtual machine |
| CN106372499A (en) * | 2010-08-18 | 2017-02-01 | 安全第公司 | Systems and methods for securing virtual machine computing environments |
| CN107438834A (en) * | 2016-12-08 | 2017-12-05 | 深圳前海达闼云端智能科技有限公司 | Implementation method, device, electronic equipment and the computer program product of virtual machine function services |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101847105B (en) * | 2009-03-26 | 2013-09-04 | 联想(北京)有限公司 | Computer and internal memory sharing method of a plurality of operation systems |
| US8392628B2 (en) * | 2010-07-16 | 2013-03-05 | Hewlett-Packard Development Company, L.P. | Sharing memory spaces for access by hardware and software in a virtual machine environment |
| KR101751936B1 (en) * | 2011-12-15 | 2017-07-12 | 한국전자통신연구원 | Apparatus and method for virtualization of i/o device using shared memory in host-based terminal virtualization environment |
| CN103593246B (en) * | 2012-08-15 | 2017-07-11 | 中国电信股份有限公司 | Communication means, host and dummy machine system between virtual machine and host |
| CN103324516B (en) * | 2013-07-04 | 2017-02-08 | 曙光信息产业(北京)有限公司 | Virtualization-driven hardware management method and device |
| US9262197B2 (en) * | 2014-07-16 | 2016-02-16 | Dell Products L.P. | System and method for input/output acceleration device having storage virtual appliance (SVA) using root of PCI-E endpoint |
| CN104536802B (en) * | 2014-12-19 | 2021-05-04 | 中兴通讯股份有限公司 | A method and virtual machine for realizing application invocation |
| CN105389199B (en) * | 2015-10-21 | 2019-09-27 | 同济大学 | A Xen-based FPGA accelerator virtualization platform and its application |
| CN107122224A (en) * | 2016-02-25 | 2017-09-01 | 中兴通讯股份有限公司 | A kind of data transmission method, virtual machine and host |
| CN107077377B (en) * | 2016-12-29 | 2020-08-04 | 深圳前海达闼云端智能科技有限公司 | Device virtualization method, device, system, electronic device, and computer program product |
| CN107003892B (en) * | 2016-12-29 | 2021-10-08 | 深圳前海达闼云端智能科技有限公司 | GPU virtualization method, apparatus, system and electronic device, computer program product |
| CN107038061B (en) * | 2017-04-14 | 2019-07-05 | 上海交通大学 | A kind of high-efficiency network I/O processing method based on NUMA and hardware ancillary technique |
| CN107278294B (en) * | 2017-05-12 | 2020-11-06 | 深圳前海达闼云端智能科技有限公司 | Input device implementation method and implementation device thereof |
| CN107357743A (en) * | 2017-07-28 | 2017-11-17 | 郑州云海信息技术有限公司 | A kind of method and device for controlling USB device |
-
2017
- 2017-12-29 WO PCT/CN2017/120173 patent/WO2019127476A1/en not_active Ceased
- 2017-12-29 CN CN201780002412.0A patent/CN108124475B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060010433A1 (en) * | 2004-06-30 | 2006-01-12 | Microsoft Corporation | Systems and methods for providing seamless software compatibility using virtual machines |
| CN106372499A (en) * | 2010-08-18 | 2017-02-01 | 安全第公司 | Systems and methods for securing virtual machine computing environments |
| CN104216726A (en) * | 2013-06-04 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Loading method and device for Android virtual machine |
| CN107438834A (en) * | 2016-12-08 | 2017-12-05 | 深圳前海达闼云端智能科技有限公司 | Implementation method, device, electronic equipment and the computer program product of virtual machine function services |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111290717A (en) * | 2020-03-13 | 2020-06-16 | 成都互诚在线科技有限公司 | An offline data storage device based on bluetooth communication |
| CN112328356A (en) * | 2020-10-21 | 2021-02-05 | 成都安易迅科技有限公司 | Android and Windows intercommunication method and device, storage medium and computer equipment |
| CN112328356B (en) * | 2020-10-21 | 2023-09-29 | 成都安易迅科技有限公司 | Intercommunication method and device for Android and Windows, storage medium and computer equipment |
| CN113099433A (en) * | 2021-04-14 | 2021-07-09 | 深圳泰科晶显科技有限公司 | Android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers |
| CN114038456A (en) * | 2021-09-27 | 2022-02-11 | 北京智象信息技术有限公司 | A kind of intelligent voice control method, device, device and medium of bluetooth device |
| CN113965917A (en) * | 2021-10-19 | 2022-01-21 | 深圳市元征科技股份有限公司 | Communication method, device and terminal equipment |
| CN113965917B (en) * | 2021-10-19 | 2024-04-02 | 深圳市元征科技股份有限公司 | Communication method, device and terminal equipment |
| CN115394069A (en) * | 2022-07-29 | 2022-11-25 | 合壹(上海)展览有限公司 | Multi-device linkage remote control system, method, device and storage medium |
| CN115394069B (en) * | 2022-07-29 | 2024-04-09 | 上海合壹未来文化科技有限公司 | Multi-equipment linkage remote control system, method, equipment and storage medium |
| CN115858102A (en) * | 2023-02-24 | 2023-03-28 | 珠海星云智联科技有限公司 | Method for deploying virtual machine supporting virtualization hardware acceleration |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108124475A (en) | 2018-06-05 |
| CN108124475B (en) | 2022-05-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019127476A1 (en) | Virtual system bluetooth communication method and device, virtual system, storage medium, and electronic apparatus | |
| CN103229156B (en) | Automatic Configuration of Docking System in Multi-OS Environment | |
| WO2023284699A1 (en) | Protocol stack data transmission method based on linux system, and computer device and storage medium | |
| US9733980B1 (en) | Virtual machine management using I/O device logging | |
| US10387182B2 (en) | Direct memory access (DMA) based synchronized access to remote device | |
| US9720712B2 (en) | Physical/virtual device failover with a shared backend | |
| US9081709B2 (en) | Virtualizable and forward-compatible hardware-software interface | |
| US9507617B1 (en) | Inter-virtual machine communication using pseudo devices | |
| US11188369B2 (en) | Interrupt virtualization | |
| CN113312141B (en) | Computer system, storage medium and method for offloading serial port simulation | |
| CN102567074A (en) | USB (universal serial bus) device redirecting method facing virtual machines | |
| JP2011146044A (en) | Method and device for virtualizing host usb adapter, and computer program (vertualization of the host usb adapter) | |
| US9424205B2 (en) | System and method for SATA virtualization and domain protection | |
| US20200310605A1 (en) | Computing device with an appropriate adaptable user hardware interface | |
| WO2019119315A1 (en) | Input processing method and apparatus based on multiple operating systems, and electronic device | |
| WO2020177699A1 (en) | App execution method, computer device, and storage medium | |
| US7958293B2 (en) | Virtualized serial attached SCSI adapter | |
| WO2018205267A1 (en) | Input device implementation method and implementation apparatus thereof | |
| US10261937B2 (en) | Method and system for communication of device information | |
| US20150281409A1 (en) | Using usb over ip to share a non-usb sensor with another device | |
| US20170046115A1 (en) | Systems and methods for remote and local host-accessible management controller tunneled audio capability | |
| US10075398B2 (en) | Systems and methods for enabling a host system to use a network interface of a management controller | |
| CN116089002A (en) | Data simulation method, device, system, equipment and storage medium | |
| CN119003391B (en) | IO device sharing method and device | |
| US11093175B1 (en) | Raid data storage device direct communication system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17936749 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17.11.2020) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17936749 Country of ref document: EP Kind code of ref document: A1 |