Host OS Link Switching for Multi-OS Peripheral Communication
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In electronic devices running multiple operating systems, there is a need for efficient communication with peripheral devices, particularly to reduce overhead associated with switching between different communication links set up by host and guest operating systems.
Innovation Solution
The method involves determining whether to switch from a first communication link set up by the host OS to a second communication link set up by the guest OS, packetizing data accordingly, and transmitting it to the peripheral device, while sharing a link key to minimize overhead and maintain seamless communication.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the host OS maintains a communication link with the peripheral device, then communication stability is improved, but the guest OS cannot directly communicate with the peripheral device
Solution Approach 1:
The communication link is segmented into two separate links: a first communication link between the host OS and the peripheral device, and a second communication link between the guest OS and the peripheral device. This segmentation allows each OS to have its own dedicated communication path, enabling both communication stability through the host OS link and OS communication flexibility through the guest OS link.
Solution Approach 2:
The host OS acts as an intermediary by maintaining the first communication link with the peripheral device while allowing the guest OS to establish a second communication link. The host OS manages the link key sharing and communication routing, mediating between the guest OS's communication needs and the peripheral device's connection stability requirements.
2Adaptability or versatility
If the guest OS establishes a new communication link with the peripheral device, then communication flexibility is improved, but overhead increases due to link key management
Solution Approach 1:
The link key is generated and stored in advance by the host OS during the initial communication setup. When the guest OS needs to communicate with the peripheral device, it can directly use the pre-stored link key without performing time-consuming key generation or authentication procedures, significantly reducing link switching overhead.
Solution Approach 2:
The host OS copies the link key to the guest OS, allowing the guest OS to independently manage its communication link with the peripheral device using the same authentication credentials. This copying mechanism eliminates the need for the guest OS to re-establish authentication, reducing overhead while maintaining communication flexibility.
3Adaptability or versatility
If communication links are frequently switched between host OS and guest OS, then adaptability is improved, but system complexity increases
Solution Approach 1:
The communication link management system is designed with multi-functionality to handle both host OS and guest OS communication requirements through a unified framework. The same link key management mechanism serves both OSes, and the system can automatically route communications appropriately, reducing the perceived complexity while maintaining high adaptability.
Data Source
AI summary
A method of communicating with a peripheral device in a host operating system (OS) and a guest OS installed on an electronic device includes: receiving, by the host OS, first data from the guest OS; determining, by the host OS, whether to switch from a first communication link to a second communication link to transmit and receive data between the electronic device and the peripheral device; packetizing, by the host OS, the first data based on the determination; and transmitting the packetized data to the peripheral device.


