A dual-path readiness verification switching device, method, and medium

By introducing a typed readiness detector and a path orchestrator into the computer display and path switching device, independent readiness verification and secure switching of local pass-through paths and remote coded paths are realized, solving the black screen and input misdirection problems in the switching process of the prior art and improving the reliability of path switching.

CN123145203APending Publication Date: 2026-11-20BANGYAN TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611626905.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-21
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies make it difficult to perform readiness verification for local pass-through paths and remote encoding paths separately within the same device, which can easily lead to problems such as black screens, old frame lingering, inconsistent audio and video targets, or incorrect input projection during the switching process.

Method used

A dual-path readiness verification switching device is provided, including a media input module, a local pass-through branch, a remote encoding branch, a typed readiness detector, a path orchestrator, a submission controller, an output gating module, and an input routing module. The typed readiness detector performs path type-specific readiness verification on candidate paths, and generates a new submission version when the readiness evidence is valid during the switching phase, updating the path identifier and status to ensure a safe switching.

Benefits of technology

It enables independent and verifiable readiness determination of local pass-through paths and remote encoding paths within the same device, reducing the risks of black screen, old frame lingering and input misprojection during heterogeneous path switching, and improving the reliability of path switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145203A_ABST
    Figure CN123145203A_ABST
Patent Text Reader

Abstract

The application discloses a dual-path ready verification switching device, method and medium, and relates to the technical field of computer display and path switching, wherein a local straight-through branch is connected with a media input module, a local output interface, an output gate module and a typed readiness detector, and a remote coding branch is connected with a media input module, a remote terminal, an output gate module and a typed readiness detector; a path arranger maintains path state records, configures a candidate path if the selected path is valid after receiving a switching request, the typed readiness detector performs readiness verification according to the type of the candidate path and outputs readiness evidence, the path arranger associates the readiness evidence, and a submission controller updates the state and instructs the output gate module to open the output when the readiness evidence is valid and the version does not conflict, and otherwise, the output is closed and uncertain input is blocked. The application can solve the problems of black screen, old frame residence, inconsistent audio and video targets or incorrect input projection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer display and path switching technology, and in particular to a dual-path readiness verification switching device, method and medium. Background Technology

[0002] When used locally, the edge computer typically needs to provide the display and audio signals output by the physical computing unit to the local display and audio devices with low processing overhead. When used remotely, the display and audio signals need to be acquired, encoded, and sent to the remote terminal through an authenticated network session, while authorized human-machine input is returned to the target physical computing unit. Both usage methods target the same display source, but the technical conditions for establishing a path availability state are different.

[0003] To meet the two use cases mentioned above, the edge computer typically needs to establish a local passthrough path and a remote encoding path. The establishment of a local passthrough path depends on physical output conditions such as input signal locking, availability of the local output interface, and continuous output frames or clock speeds. The establishment of a remote encoding path also depends on processing and communication conditions such as encoding resource initialization, encoder operation, session authentication, network transmission, and the remote acquisition of decodeable media data. Judging path availability solely based on connection existence, fixed waiting time, or the startup status of a single module cannot reflect whether the two types of heterogeneous paths truly possess the conditions for external output.

[0004] For path switching, existing channel switching, keyboard video mouse (KVM) switching, or video matrix solutions mostly focus on selecting the signal source or connecting a predetermined physical channel. Some remote display solutions can switch display modes after establishing a network stream, but they may not configure another type of candidate path while maintaining the current valid path, nor may they form verifiable readiness evidence for the local physical output path and the remote encoding network path respectively.

[0005] If the current valid path is released immediately after receiving a switching request, and then the target path is started, black screens, old frame retention, audio-visual inconsistencies, or input being sent to the wrong calculation unit may easily occur if the encoder fails to start, remote session authentication times out, local output is not locked, or the first media data cannot be decoded. If the target path fails and only retryes for a preset duration without retaining the state of the previous valid path, the system will have difficulty determining whether to restore the original path or shut down the output.

[0006] Therefore, existing solutions cannot perform verifiable readiness verification for local pass-through paths and remote encoded paths within the same device, nor can they safely complete path switching while maintaining the current valid path. This can easily lead to problems such as black screens, old frame lingering, audio-visual inconsistencies, or inputs being sent to the wrong calculation unit during the switching process. Summary of the Invention

[0007] The purpose of this application is to provide a dual-path readiness verification switching device, method, and medium to solve the problems of black screen, old frame lingering, audio-visual inconsistency, or input misprojection that occur when performing readiness verification and security switching between local pass-through paths and remote encoded paths in the same device, because it is impossible to verify the target path while maintaining the current valid path.

[0008] To achieve the above objectives, this application provides the following solution.

[0009] In a first aspect, this application provides a dual-path readiness verification switching device, including: a media input module, a local pass-through branch, a remote encoding branch, a typed readiness detector, a path orchestrator, a submission controller, an output gating module, and an input routing module; Both the media input module and the input routing module are connected to the physical computing unit. The local pass-through branch is connected to the media input module, the local output interface, the output gating module, and the typed readiness detector, respectively. The remote encoding branch is connected to the media input module, the remote terminal, the output gating module, and the typed readiness detector, respectively. The typed readiness detector is connected to the media input module. The typed readiness detector, the path orchestrator, the submission controller, the output gating module, and the input routing module are connected in sequence. The media input module is used to receive raw signals output by the physical computing unit; the raw signals include display signals and / or audio signals; The local direct-through branch is used to directly provide the original signal to the local output interface; The remote encoding branch is used to acquire and encode the original signal to obtain encoded media data, and send the encoded media data to the remote terminal through an authenticated remote session; The path orchestrator is used for: Maintain the path status record of the physical computing unit; the path status record includes the identifier of the selected path, the valid status of the selected path, the identifier of the candidate path, the switching stage and the submission version; the selected path and the candidate path are respectively and not simultaneously local pass-through path and remote coding path, the local pass-through path is implemented by local pass-through branch, and the remote coding path is implemented by remote coding branch; Upon receiving a target path switching request, if the selected path is valid, the output relationship of the branch corresponding to the selected path is maintained, the switching phase is set to the ready state, and the candidate path associated with the target path switching request is configured; if the selected path is invalid, the switching phase is set to the safe off state. The typed readiness detector is used to perform corresponding readiness verification according to the path type of the candidate path and output readiness evidence; when the candidate path is a local pass-through path, the readiness verification is: at least obtaining the physical signal state that the original signal is locked and the continuity state that the local output is continuously available; when the candidate path is a remote encoding path, the readiness verification is: at least confirming that the encoder is in an output-ready running state, the remote session authentication is valid, and media data that can be decoded by the remote end has been formed; The path orchestrator is also used to associate ready evidence with the identifier of the candidate path, the path type of the candidate path, the physical computing unit, and the submission version. The submission controller is used to generate a new submission version when the switching phase is in the ready state, the ready evidence is valid, and the submission version does not conflict. It also updates the identifier of the selected path to the identifier of the candidate path, updates the valid status of the selected path to valid, updates the switching phase to a stable state, updates the submission version to the new submission version, and instructs the output gating module to open the output of the selected path and instructs the input routing module to send input events to the physical computing unit corresponding to the selected path. When the switching phase is in the ready state, the ready evidence is invalid, or a submission version conflict occurs, it does not generate a new submission version, and instructs the output gating module to close the output of the selected path and instructs the input routing module to block the sending of input events to unconfirmed physical computing units. The output gating module is used to open or close the output of the selected path according to the instructions of the submission controller; The input routing module is used to determine the physical computing unit corresponding to the selected path as the target physical computing unit of the input event according to the instruction of the submission controller.

[0010] In one embodiment, the local pass-through tributary provides the original signal to the local output interface using at least one of hardware bypass, internal loopback of the display controller, or uncompressed frame forwarding.

[0011] In one embodiment, the remote encoding branch includes an acquisition encoding component, a session management component, and a network interface; The acquisition and encoding component is used to acquire and encode the original signal to obtain encoded media data; The session management component is used to establish authenticated remote sessions; The network interface is used to send the encoded media data to the remote terminal through the authenticated remote session.

[0012] In one embodiment, the typed readiness detector includes a local readiness detection submodule and a remote readiness detection submodule; The local readiness detection submodule is used to perform readiness verification corresponding to the local pass-through path; The remote readiness detection submodule is used to perform readiness verification corresponding to the remote encoding path.

[0013] In one embodiment, the path status record further includes a request identifier, a target source identifier, a ready evidence reference, an output gating status, an input target, and an old path release status; The request identifier is used to associate the target path switching request, the target source identifier is used to identify the target physical computing unit, the ready evidence reference is used to associate the ready evidence, the output gating status is used to record the current status of the output gating module, the input target is used to record the current target physical computing unit of the input routing module, and the old path release status is used to record the release progress of the selected path.

[0014] In one embodiment, the evidence of readiness includes the test item, the test value, the validity period, and timestamp information, wherein the timestamp information is the test time or a monotonic sequence number.

[0015] In one embodiment, the readiness verification switching device further includes a fault recording module; the fault recording module is connected to the submission controller; The fault recording module is used to record the identifier of the target path switching request, the target source identifier, the path type of the candidate path, the failure detection items, and the handling result when the readiness verification of the candidate path fails, the commit version conflicts, or the atomic commit fails.

[0016] In one embodiment, the readiness verification switching device further includes a frame buffer cleanup module; the frame buffer cleanup module is connected to the submission controller; The frame buffer cleanup module is used to overwrite or release residual frames in the output buffer when there is no valid path.

[0017] Secondly, this application provides a dual-path ready verification switching method, applied to the aforementioned dual-path ready verification switching device, the ready verification switching method comprising: Acquire the raw signals output by the physical computing unit; the raw signals include display signals and / or audio signals; Maintain the path status record of the physical computing unit. The path status record includes the identifier of the selected path, the valid status of the selected path, the identifier of the candidate path, the switching stage, and the submission version. The selected path is one of a local pass-through path or a remote coding path, and the candidate path is the other. Upon receiving a target path switching request, if the selected path is valid, the output relationship of the branch corresponding to the selected path is maintained, the switching phase is set to the ready state, and the candidate path associated with the target path switching request is configured; if the selected path is invalid, the switching phase is set to the safe off state. Perform the corresponding readiness verification according to the path type of the candidate path and output the readiness evidence; when the candidate path is a local pass-through path, the readiness verification is: at least obtain the physical signal state that indicates that the original signal is locked and the continuity state that indicates that the local output is continuously available; when the candidate path is a remote encoding path, the readiness verification is: at least confirm that the encoder is in an output-ready running state, the remote session authentication is valid, and media data that can be decoded by the remote end has been formed. Associate the evidence of readiness with the candidate path's identifier, path type, physical computation unit, and commit version; When the switching phase is in the ready state, the ready evidence is valid, and the submission version does not conflict, a new submission version is generated, and the identifier of the selected path is updated to the identifier of the candidate path, the valid status of the selected path is updated to valid, the switching phase is updated to the stable state, the submission version is updated to the new submission version, and the output gating module is instructed to open the output of the selected path and the input routing module is instructed to send the input event to the physical computing unit corresponding to the selected path. Based on the updated identifier of the selected path, the original signal is output through the branch corresponding to the selected path; when the selected path is a local pass-through path, the original signal is directly provided to the local output interface through the local pass-through branch, and no compression encoding for network transmission is performed; when the selected path is a remote encoding path, the original signal is acquired and encoded through the remote encoding branch to obtain encoded media data, and the encoded media data is sent to the remote terminal through an authenticated remote session. When the switching phase is in the ready state and the ready evidence is invalid or a commit version conflicts, no new commit version is generated, and the output gating module is instructed to close the output of the selected path and the input routing module is instructed to block the input event from being sent to the unacknowledged physical computing unit.

[0018] Thirdly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the dual-path readiness verification switching method described above.

[0019] According to the specific embodiments provided in this application, the following technical effects are disclosed: This application discloses a dual-path readiness verification switching device, method, and medium. It directly provides the original signal to the local output interface via a local pass-through branch without performing network-oriented compression encoding, and acquires and encodes the original signal via a remote encoding branch, sending encoded media data to a remote terminal through an authenticated remote session. This allows both a local pass-through path and a remote encoding path to exist simultaneously within the same device. A path orchestrator maintains path status records. Upon receiving a path switching request, if the selected path's validity status is valid, it maintains the output relationship of the branch corresponding to the selected path and sets the switching phase to a ready state, while configuring candidate paths associated with the target path switching request. This ensures continuous output without interruption while the current path remains valid. A typed readiness detector performs corresponding readiness verification based on the path type of the candidate path. When the candidate path is a local pass-through path, it at least obtains the physical signal state indicating that the original signal is locked and the continuity state indicating that the local output is continuously available. When the candidate path is a remote encoding path, it at least confirms that the encoder is in an output-ready operating state, the remote session authentication is valid, and media data that can be decoded by the remote terminal has been formed. This ensures that both the local pass-through path and the remote encoding path, being heterogeneous paths, have their own... It possesses independent and verifiable readiness criteria; the path orchestrator associates readiness evidence with the candidate path identifier, candidate path type, physical computation unit, and submission version; the submission controller generates a new submission version only when the switching phase is in a ready state, the readiness evidence is valid, and the submission version does not conflict, and updates the selected path identifier to the candidate path identifier, updates the selected path's valid status to valid, updates the switching phase to a stable state, updates the submission version to the new submission version, and simultaneously instructs the output gating module to enable the selected path's output and instructs the input routing module to send input events to the selected path. The corresponding physical computing unit ensures that the valid path identifier, output gating, and input routing are changed consistently within the same commit boundary. When the switching phase is in the ready state and the ready evidence is invalid or the commit version conflicts, a new commit version is not generated, and the output gating module is instructed to close the output of the selected path and the input routing module is instructed to block the input event from being sent to the unconfirmed physical computing unit. When the target path does not obtain valid ready evidence or the commit fails, the current valid path is maintained or the output is closed and uncertain input is blocked, thereby reducing the risk of black screen, old frame lingering, and input mistransmission in heterogeneous path switching and improving the reliability of path switching. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the 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.

[0021] Figure 1 A schematic diagram of a dual-path readiness verification switching device provided in an embodiment of this application; Figure 2 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0022] 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 skilled in the art without creative effort are within the scope of protection of this application.

[0023] The purpose of this application is to provide a dual-path readiness verification switching device, method and medium, which aims to solve the problems of black screen, old frame lingering, audio-visual inconsistency or input misprojection caused by the inability to verify the target path while maintaining the current valid path when performing readiness verification and security switching between the local pass-through path and the remote encoded path in the same device.

[0024] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0025] In one exemplary embodiment, such as Figure 1 As shown, a dual-path readiness verification switching device is provided, including: a media input module, a local pass-through branch, a remote encoding branch, a typed readiness detector, a path orchestrator, a submission controller, an output gating module, and an input routing module.

[0026] Both the media input module and the input routing module are connected to the physical computing unit. The local pass-through branch is connected to the media input module, the local output interface, the output gating module, and the type-ready detector, respectively. The remote encoding branch is connected to the media input module, the remote terminal, the output gating module, and the type-ready detector, respectively. The type-ready detector is connected to the media input module. The type-ready detector, the path orchestrator, the submission controller, the output gating module, and the input routing module are connected in sequence.

[0027] Specifically, the readiness verification switching device is an isolated interactive device, located inside the chassis of the end-side computer, and connected to at least one physical computing unit; each module is implemented by dedicated circuits, programmable logic, program instructions executed by a processor, or a combination thereof.

[0028] The media input module is used to receive raw signals output by the physical computing unit; the raw signals include display signals and / or audio signals.

[0029] Specifically, in the audio synchronization implementation, the media input module simultaneously receives the display signal and the audio signal associated with the display signal.

[0030] The local pass-through branch is used to directly provide the raw signal to the local output interface.

[0031] The remote encoding branch is used to acquire and encode the raw signal to obtain encoded media data, and then send the encoded media data to a remote terminal through an authenticated remote session.

[0032] Path orchestrator, used for: Maintain the path status record of the physical computing unit; the path status record includes the identifier of the selected path, the valid status of the selected path, the identifier of the candidate path, the switching stage and the submission version; the selected path and the candidate path are respectively and not simultaneously local pass-through path and remote coding path, the local pass-through path is implemented by local pass-through branch, and the remote coding path is implemented by remote coding branch; Upon receiving a target path switching request, if the selected path is valid, the output relationship of the branch corresponding to the selected path is maintained, the switching phase is set to the ready state, and the candidate path associated with the target path switching request is configured; if the selected path is invalid, the switching phase is set to the safe closed state.

[0033] Specifically, a candidate path refers to a target path that has been configured with resources according to a target path switching request but has not yet obtained an externally valid status through submission. It can coexist briefly with the currently valid path during the preparation and verification period. Specifically, a path switching request is triggered by user interface selection, local display device connection status, remote session establishment requests, fault recovery events, or management control policies.

[0034] The typed readiness detector is used to perform corresponding readiness verification based on the path type of the candidate path and output readiness evidence. When the candidate path is a local pass-through path, the readiness verification is to obtain at least the physical signal state indicating that the original signal is locked and the continuity state indicating that the local output is continuously available. When the candidate path is a remote encoding path, the readiness verification is to confirm at least that the encoder is in an output-ready running state, the remote session authentication is valid, and media data that can be decoded by the remote end has been formed.

[0035] The path orchestrator is also used to associate ready evidence with candidate path identifiers, candidate path path types, physical computation units, and commit versions.

[0036] The submission controller is used to generate a new submission version when the switching phase is in the ready state, the ready evidence is valid, and the submission version does not conflict. It also updates the identifier of the selected path to the identifier of the candidate path, updates the valid status of the selected path to valid, updates the switching phase to the stable state, updates the submission version to the new submission version, and instructs the output gating module to open the output of the selected path and instructs the input routing module to send the input event to the physical computing unit corresponding to the selected path. When the switching phase is in the ready state and the ready evidence is invalid or the submission version conflicts, it does not generate a new submission version, and instructs the output gating module to close the output of the selected path and instructs the input routing module to block the input event from being sent to the unacknowledged physical computing unit.

[0037] Specifically, the submission controller reads the current submission version, the candidate path identifier, and the readiness evidence. A new submission version is generated only when the path status record is still in a verification state consistent with the current request, the submission version is still the current version, the current path status has not undergone any unprocessed changes, and the readiness evidence is valid. In the register group implementation, the valid path identifier register, the output gating register, and the input target register all have shadow values ​​and version bits. The submission controller first writes the shadow value and then publishes the new submission version with a latch signal. Latching is not triggered if any shadow value verification fails. If the submission operation report is uncertain, the path orchestrator rereads the effective versions of the three states. The submission is considered successful only when all three states are the new submission version and the target is consistent.

[0038] The output gating module is used to turn the output of the selected path on or off according to the instructions of the submission controller.

[0039] Specifically, when the currently valid path is a local pass-through path and a request is made to switch to a remote encoding path, the path orchestrator retains the current version of the local output gating, establishes a remote session, allocates the encoding context, loads the display source, and obtains remote readiness evidence in sequence. After the remote readiness evidence is valid, the submission controller updates the identifier (active_path_id) of the selected path to the remote encoding path, binds the remote output gating and the remote input session to the same new version, and closes the external validity flag of the local pass-through path after the new version is fully effective. If session authentication fails, encoding resources are insufficient, or a decodeable media confirmation is not obtained within the validity period, the candidate remote session is revoked, and the original local pass-through path and its submission version are maintained. When the currently valid path is a remote coded path and a request is made to restore local passthrough, the path orchestrator first configures the local display output, confirms the input signal lock, output interface availability and continuity status, and then forms local readiness evidence. The remote coded path remains valid during the preparation and verification phases. After the local readiness evidence is approved, the local output gating and local input target are updated in the same commit version. After committing, the remote session can be terminated immediately, or the session resources can be temporarily retained while stopping the external media publishing within the preset recovery window. The external valid path is uniquely determined by the identifier (active_path_id) of the selected path.

[0040] The input routing module is used to determine the physical computing unit corresponding to the selected path as the target physical computing unit of the input event based on the instructions of the submission controller.

[0041] Specifically, the input routing module obtains authorized input events from the local keyboard, mouse, touch device, or remote session; the submission controller controls the unique valid destination of the input events based on the current valid path, the target physical computing unit, and the submission version.

[0042] As an optional implementation, the local pass-through tributary provides the raw signal to the local output interface using at least one of the following methods: hardware bypass, internal loopback of the display controller, or uncompressed frame forwarding.

[0043] Specifically, the local pass-through tributary refers to the media path from the display source of the physical computing unit to the local display output interface. It receives the raw signal from the media input module, and sends it to the local output interface via the local loopback switch, bypass, internal loopback of the display controller, or uncompressed frame forwarding module. The local pass-through tributary does not generate compressed bitstreams for remote network transmission. This limitation does not exclude color space conversion, scaling, timing reordering, or interface protocol conversion for signal format adaptation.

[0044] As an optional implementation, the remote encoding branch includes an acquisition and encoding component, a session management component, and a network interface; The acquisition and encoding component is used to acquire and encode the raw signal to obtain encoded media data; The session management component is used to establish authenticated remote sessions; The network interface is used to send encoded media data to remote terminals via an authenticated remote session.

[0045] Specifically, the acquisition and encoding component branches off from the same media input as the local direct tributary, or obtains the raw signal from an equivalent uncompressed display surface; the session management component completes the applicable steps in remote terminal authentication, session key negotiation, media channel establishment, and remote capability negotiation, i.e., establishing an authenticated remote session.

[0046] As an optional implementation, the typed readiness detector includes a local readiness detection submodule and a remote readiness detection submodule; The local readiness detection submodule is used to perform readiness verification corresponding to the local pass-through path; The remote readiness detection submodule is used to perform readiness verification corresponding to the remote encoding path.

[0047] Specifically, the local readiness detection submodule reads the input phase-locked state, display clock or synchronization state, local output interface presence or capability negotiation state, and frame validity indication. Local readiness evidence is generated only when the input signal is locked, the output interface is available, and valid frame indications are obtained for N consecutive frame cycles, where N is a configured value greater than or equal to 2. Continuity can also be determined using the valid frame count and lockout count within a predetermined observation window. If the display device is present but the input signal is not locked, or if a single valid frame is generated and then the lockout occurs again, no valid local readiness evidence is generated. The remote readiness detection submodule confirms that the encoder is in an output-ready operating state, the authentication session is still valid, and the current encoding context has generated a media unit that can serve as a decoding starting point. Successful transmission connection or the existence of an encoder process alone is insufficient to constitute remote readiness. In a preferred embodiment, the isolated interaction device sends the first keyframe or random access unit associated with the request identifier (request_id) to the remote terminal. The remote terminal returns an acknowledgment containing the request identifier (request_id) or media sequence number. Alternatively, the local controlled parser can confirm that the media unit has a complete decodeable structure and combine this with the transmission queue acceptance state to form media reachability evidence.

[0048] As an optional implementation, the path state record also includes a request identifier, a target source identifier, a ready evidence reference, an output gating state, an input target, and an old path release state; The request identifier is used to associate the target path switching request, the target source identifier is used to identify the target physical computing unit, the ready evidence reference is used to associate the ready evidence, the output gating status is used to record the current status of the output gating module, the input target is used to record the current target physical computing unit of the input routing module, and the old path release status is used to record the release progress of the selected path.

[0049] Specifically, the path state storage maintains path state records for each physical computing unit. These records include the source identifier (source_id, i.e., the identifier of the physical computing unit), the selected path identifier (active_path_id), the selected path's valid status (active_valid), the candidate path identifier (candidate_path_id), the phase, the request identifier (request_id), the commit version (commit_version), the ready evidence reference (ready_evidence_ref), the output gate target (output_gate_target), the input route target (input_route_target), the old path release state (old_path_release_state), and the last failure code (last_failure_code). The phase progresses from the stable state (ST)... The path orchestrator takes values ​​from the following states: ABLE, PREPARING, VERIFYING, COMMITTING, RELEASING, FAILED, and SAFE_OFF. Only paths in the STABLE state with an active_valid status of true are considered valid. Candidate paths in the PREPARING or VERIFYING states cannot bypass the output gating to obtain an externally valid bit, even if media data has been generated. When repeated requests with the same request ID, target source, target path type, and baseline commit version are received, the path orchestrator returns the status of the earlier request or continues processing the earlier candidate path without establishing a second independent commit process. Late requests with different baseline versions are rejected during commit comparison.

[0050] As an optional implementation, the evidence of readiness includes the test item, the test value, the validity period, and timestamp information, where the timestamp information is the test time or a monotonic sequence number.

[0051] Specifically, the ready evidence is an objective set of states obtained by the typed ready detector based on the target path type. Only when the path type, target source, request identifier, and submission version match the current candidate configuration, and the detection value meets the corresponding rules, does the set of states constitute valid ready evidence.

[0052] As an optional implementation, the readiness verification switching device also includes a fault recording module; the fault recording module is connected to the submission controller; The fault logging module is used to record the identifier of the target path switching request, the target source identifier, the path type of the candidate path, the failure detection items, and the handling result when the readiness verification of the candidate path fails, the commit version conflicts, or the atomic commit fails.

[0053] Specifically, when the target path readiness verification fails, the fault logging module writes the request identifier, target source, target path type, failure detection item, detection value, baseline submission version, previous valid path, and handling result. The candidate output gating remains closed or is closed, and the candidate input binding is revoked. If the previous valid path still meets its continued validity criteria, the previous valid path is maintained. If the previous valid path also fails during verification, the controller is submitted to issue a safe shutdown state: the output gating is closed, the frame buffer cleanup module overwrites or releases old frames, and the input routing module blocks inputs pointing to any unconfirmed physical computing unit. When recovering from the safe shutdown state, the readiness evidence before the failure is not directly used. The path orchestrator reconfigures the candidate path according to the new request, re-executes the corresponding type of readiness verification, and recovers with a new submission version.

[0054] As an optional implementation, the readiness verification switching device further includes a frame buffer cleanup module; the frame buffer cleanup module is connected to the submission controller; The frame buffer cleanup module is used to overwrite or release residual frames in the output buffer when there is no valid path.

[0055] As an optional implementation, in the implementation of simultaneous audio transmission, the audio path and the display path share the identifier and submission version of the selected path, or have an audio gating version that must be equal to the display submission version; the remote path ready rules also include the audio encoder running and the continuous status of audio timestamps; local input and remote input are accessed to the input routing module through different physical or protocol interfaces, and input events are only output when the authorization status, target physical computing unit, and submission version all match.

[0056] As an optional implementation, when the computer includes a first physical computing unit and a second physical computing unit, the media input module has input terminals corresponding to the two respectively, and the path state storage maintains two independent state records according to the source identifier (i.e., the identifier of the physical computing unit); when the encoder, session or local output detection of a physical computing unit fails, the fault record and security shutdown action only apply to the output and input bindings corresponding to the source identifier, without modifying the selected path identifier and submitted version of the other source identifier.

[0057] In one exemplary embodiment, a dual-path readiness verification switching method is provided, applied to a dual-path readiness verification switching device. The readiness verification switching method includes: Acquire the raw signals output by the physical computing unit; the raw signals include display signals and / or audio signals; Maintain the path status record of the physical computing unit. The path status record includes the identifier of the selected path, the valid status of the selected path, the identifier of the candidate path, the switching stage, and the submission version. The selected path is either a local pass-through path or a remote coding path, and the candidate path is the other. Upon receiving a target path switching request, if the selected path is valid, the output relationship of the branch corresponding to the selected path is maintained, the switching phase is set to the ready state, and the candidate path associated with the target path switching request is configured; if the selected path is invalid, the switching phase is set to the safe off state. Perform the corresponding readiness verification according to the path type of the candidate path and output the readiness evidence; when the candidate path is a local pass-through path, the readiness verification is: at least obtain the physical signal state that indicates that the original signal is locked and the continuity state that indicates that the local output is continuously available; when the candidate path is a remote encoding path, the readiness verification is: at least confirm that the encoder is in an output-ready running state, the remote session authentication is valid, and media data that can be decoded by the remote end has been formed. Associate the evidence of readiness with the candidate path's identifier, path type, physical computation unit, and commit version; When the switching phase is in the ready state, the ready evidence is valid, and the submission version does not conflict, a new submission version is generated, and the identifier of the selected path is updated to the identifier of the candidate path, the valid status of the selected path is updated to valid, the switching phase is updated to the stable state, the submission version is updated to the new submission version, and the output gating module is instructed to open the output of the selected path and the input routing module is instructed to send the input event to the physical computing unit corresponding to the selected path. Based on the updated identifier of the selected path, the original signal is output through the branch corresponding to the selected path; when the selected path is a local pass-through path, the original signal is directly provided to the local output interface through the local pass-through branch, and no compression encoding for network transmission is performed; when the selected path is a remote encoding path, the original signal is acquired and encoded through the remote encoding branch to obtain encoded media data, and the encoded media data is sent to the remote terminal through an authenticated remote session. When the switching phase is in the ready state and the ready evidence is invalid or a commit version conflicts, no new commit version is generated, and the output gating module is instructed to close the output of the selected path and the input routing module is instructed to block the input event from being sent to the unacknowledged physical computing unit.

[0058] In one exemplary embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements a dual-path readiness verification switching method.

[0059] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements a dual-path readiness verification switching method.

[0060] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 2 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and databases. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a dual-path readiness verification switching method.

[0061] Those skilled in the art will understand that Figure 2 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0062] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

[0063] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0064] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0065] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0066] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A dual-path readiness verification switching device, characterized in that, The readiness verification switching device includes: a media input module, a local pass-through branch, a remote encoding branch, a typed readiness detector, a path arranger, a submission controller, an output gating module, and an input routing module; Both the media input module and the input routing module are connected to the physical computing unit. The local pass-through branch is connected to the media input module, the local output interface, the output gating module, and the typed readiness detector, respectively. The remote encoding branch is connected to the media input module, the remote terminal, the output gating module, and the typed readiness detector, respectively. The typed readiness detector is connected to the media input module. The typed readiness detector, the path orchestrator, the submission controller, the output gating module, and the input routing module are connected in sequence. The media input module is used to receive raw signals output by the physical computing unit; the raw signals include display signals and / or audio signals; The local direct-through branch is used to directly provide the original signal to the local output interface; The remote encoding branch is used to acquire and encode the original signal to obtain encoded media data, and send the encoded media data to the remote terminal through an authenticated remote session; The path orchestrator is used for: Maintain the path status record of the physical computing unit; the path status record includes the identifier of the selected path, the valid status of the selected path, the identifier of the candidate path, the switching stage and the submission version; the selected path and the candidate path are respectively and not simultaneously local pass-through path and remote coding path, the local pass-through path is implemented by local pass-through branch, and the remote coding path is implemented by remote coding branch; Upon receiving a target path switching request, if the selected path is valid, the output relationship of the branch corresponding to the selected path is maintained, the switching phase is set to the ready state, and the candidate path associated with the target path switching request is configured; if the selected path is invalid, the switching phase is set to the safe off state. The typed readiness detector is used to perform corresponding readiness verification according to the path type of the candidate path and output readiness evidence; when the candidate path is a local pass-through path, the readiness verification is: at least obtaining the physical signal state that the original signal is locked and the continuity state that the local output is continuously available; when the candidate path is a remote encoding path, the readiness verification is: at least confirming that the encoder is in an output-ready running state, the remote session authentication is valid, and media data that can be decoded by the remote end has been formed; The path orchestrator is also used to associate ready evidence with the identifier of the candidate path, the path type of the candidate path, the physical computing unit, and the submission version. The submission controller is used to generate a new submission version when the switching phase is in the ready state, the ready evidence is valid, and the submission version does not conflict. It also updates the identifier of the selected path to the identifier of the candidate path, updates the valid status of the selected path to valid, updates the switching phase to a stable state, updates the submission version to the new submission version, and instructs the output gating module to open the output of the selected path and instructs the input routing module to send input events to the physical computing unit corresponding to the selected path. When the switching phase is in the ready state, the ready evidence is invalid, or a submission version conflict occurs, it does not generate a new submission version, and instructs the output gating module to close the output of the selected path and instructs the input routing module to block the sending of input events to unconfirmed physical computing units. The output gating module is used to open or close the output of the selected path according to the instructions of the submission controller; The input routing module is used to determine the physical computing unit corresponding to the selected path as the target physical computing unit of the input event according to the instruction of the submission controller.

2. The dual-path readiness verification switching device according to claim 1, characterized in that, The local direct-through tributary provides the original signal to the local output interface using at least one of the following methods: hardware bypass, internal loopback of the display controller, or uncompressed frame forwarding.

3. The dual-path readiness verification switching device according to claim 1, characterized in that, The remote encoding branch includes an acquisition encoding component, a session management component, and a network interface; The acquisition and encoding component is used to acquire and encode the original signal to obtain encoded media data; The session management component is used to establish authenticated remote sessions; The network interface is used to send the encoded media data to the remote terminal through the authenticated remote session.

4. The dual-path readiness verification switching device according to claim 1, characterized in that, The typed readiness detector includes a local readiness detection submodule and a remote readiness detection submodule; The local readiness detection submodule is used to perform readiness verification corresponding to the local pass-through path; The remote readiness detection submodule is used to perform readiness verification corresponding to the remote encoding path.

5. The dual-path readiness verification switching device according to claim 1, characterized in that, The path status record also includes request identifier, target source identifier, ready evidence reference, output gating status, input target, and old path release status; The request identifier is used to associate the target path switching request, the target source identifier is used to identify the target physical computing unit, the ready evidence reference is used to associate the ready evidence, the output gating status is used to record the current status of the output gating module, the input target is used to record the current target physical computing unit of the input routing module, and the old path release status is used to record the release progress of the selected path.

6. The dual-path readiness verification switching device according to claim 1, characterized in that, The evidence of readiness includes the test item, test value, validity period, and timestamp information, where the timestamp information is the test time or monotonic sequence number.

7. The dual-path readiness verification switching device according to claim 1, characterized in that, The readiness verification switching device further includes a fault recording module; the fault recording module is connected to the submission controller. The fault recording module is used to record the identifier of the target path switching request, the target source identifier, the path type of the candidate path, the failure detection items, and the handling result when the readiness verification of the candidate path fails, the commit version conflicts, or the atomic commit fails.

8. The dual-path readiness verification switching device according to claim 1, characterized in that, The readiness verification switching device further includes a frame buffer cleanup module; the frame buffer cleanup module is connected to the submission controller; The frame buffer cleanup module is used to overwrite or release residual frames in the output buffer when there is no valid path.

9. A dual-path readiness verification switching method, applied to the dual-path readiness verification switching apparatus as described in any one of claims 1-8, characterized in that, The ready verification switching method includes: Acquire the raw signals output by the physical computing unit; the raw signals include display signals and / or audio signals; Maintain the path status record of the physical computing unit. The path status record includes the identifier of the selected path, the valid status of the selected path, the identifier of the candidate path, the switching stage, and the submission version. The selected path is one of a local pass-through path or a remote coding path, and the candidate path is the other. Upon receiving a target path switching request, if the selected path is valid, the output relationship of the branch corresponding to the selected path is maintained, the switching phase is set to the ready state, and the candidate path associated with the target path switching request is configured; if the selected path is invalid, the switching phase is set to the safe off state. Perform the corresponding readiness verification according to the path type of the candidate path and output the readiness evidence; when the candidate path is a local pass-through path, the readiness verification is: at least obtain the physical signal state that indicates that the original signal is locked and the continuity state that indicates that the local output is continuously available; when the candidate path is a remote encoding path, the readiness verification is: at least confirm that the encoder is in an output-ready running state, the remote session authentication is valid, and media data that can be decoded by the remote end has been formed. Associate the evidence of readiness with the candidate path's identifier, path type, physical computation unit, and commit version; When the switching phase is in the ready state, the ready evidence is valid, and the submission version does not conflict, a new submission version is generated, and the identifier of the selected path is updated to the identifier of the candidate path, the valid status of the selected path is updated to valid, the switching phase is updated to the stable state, the submission version is updated to the new submission version, and the output gating module is instructed to open the output of the selected path and the input routing module is instructed to send the input event to the physical computing unit corresponding to the selected path. Based on the updated identifier of the selected path, the original signal is output through the branch corresponding to the selected path; when the selected path is a local pass-through path, the original signal is directly provided to the local output interface through the local pass-through branch, and no compression encoding for network transmission is performed; when the selected path is a remote encoding path, the original signal is acquired and encoded through the remote encoding branch to obtain encoded media data, and the encoded media data is sent to the remote terminal through an authenticated remote session. When the switching phase is in the ready state and the ready evidence is invalid or a commit version conflicts, no new commit version is generated, and the output gating module is instructed to close the output of the selected path and the input routing module is instructed to block the input event from being sent to the unacknowledged physical computing unit.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the dual-path readiness verification switching method as described in claim 9.