A self-checking method and self-checking system based on cloud desktop system

By detecting and restarting the control link and business link between the zero terminal and the virtual machine in the cloud desktop system, the problem of display screen stuck is solved, automated troubleshooting and recovery is realized, and user experience is improved.

CN112100026BActive Publication Date: 2025-08-22XIAN WANXIANG ELECTRONICS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010884988.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-28
Publication Date
2025-08-22
Estimated Expiration
2040-08-28

AI Technical Summary

Technical Problem

In a cloud desktop system, the connection between the zero terminal and the virtual machine may cause the display screen to be stuck due to failure of the network environment or encoding module, affecting the user experience.

Method used

By sending a detection message in the first processing module of the zero terminal, determining the response message of the control link and the service link, restarting the exception module to resume the connection.

Benefits of technology

Actively detect and restore the connection status between the zero terminal and the virtual machine, avoid user manual intervention and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112100026B_ABST
    Figure CN112100026B_ABST
Patent Text Reader

Abstract

The present disclosure provides a self-test method and a self-test system based on a cloud desktop system, which relates to the field of computer technology and can solve the problem in the prior art that a failure occurs during the operation of a zero terminal and a virtual machine, resulting in abnormal display images on a monitor connected to the zero terminal. The specific technical solution is: the first processing module sends a detection message to the virtual machine corresponding to the zero terminal through a control link; the first processing module determines whether a first response message sent by the virtual machine through the control link is received within a preset first time length; if so, the first processing module sends a first query message to the decoding module; the first processing module determines whether a coding confirmation message sent by the decoding module is received within a preset second time length, and the coding confirmation message includes a coding confirmation identifier; if so, it is determined that the zero terminal and the virtual machine are connected normally. The present disclosure is used for self-test based on a cloud desktop system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a self-checking method and a self-checking system based on a cloud desktop system. Background Art

[0002] Currently, in the cloud desktop system, users log in to the virtual machine VM on the cloud server through the zero terminal ZC and perform various operations on the VM. The VM takes a screenshot of the interface after the operation and encodes it and sends it to the ZC. The ZC decodes the encoded data and displays it on the connected monitor and outputs it to the user.

[0003] However, this will result in a heavier workload for the VM and more complex programs to run, especially the encoding and acquisition module is prone to failure and restart; in addition, the connection between the VM and ZC may be affected by the network environment and abnormalities may occur, which will cause the ZC to be unable to receive the encoded data from the VM, causing the display screen on the monitor connected to the ZC to freeze, affecting the user experience. Summary of the Invention

[0004] The present disclosure provides a self-checking method and system based on a cloud desktop system, which can solve the problem in the prior art that a failure occurs during the operation of a zero terminal and a virtual machine, resulting in abnormal display images on a monitor connected to the zero terminal. The technical solution is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a self-checking method based on a cloud desktop system is provided, which is applied to a zero terminal. The zero terminal includes a first processing module and a decoding module. The method includes:

[0006] The first processing module sends the detection message to the virtual machine corresponding to the null terminal through the control link;

[0007] The first processing module determines whether a first response message sent by the virtual machine through the control link is received within a preset first time period;

[0008] If yes, the first processing module sends the first query message to the decoding module;

[0009] The first processing module determines whether a coding confirmation message sent by the decoding module is received within a preset second time period, the coding confirmation message including a coding confirmation identifier, and the coding confirmation identifier is used to indicate that the decoding module has received the coded data sent by the virtual machine through the service link;

[0010] If so, it is determined that the zero terminal is connected to the virtual machine normally.

[0011] The self-check method based on the cloud desktop system provided by the embodiment of the present disclosure is as follows: the first processing module sends a detection message to the virtual machine corresponding to the zero terminal through the control link; the first processing module determines whether a first response message sent by the virtual machine through the control link is received within a preset first time period; if so, the first processing module sends a first query message to the decoding module; the first processing module determines whether a coding confirmation message sent by the decoding module is received within a preset second time period, the coding confirmation message includes a coding confirmation identifier, and the coding confirmation identifier is used to indicate that the decoding module receives the coding data sent by the virtual machine through the service link; if so, it is determined that the zero terminal and the virtual machine are connected normally. The present disclosure can actively detect the connection status between the zero terminal and the virtual machine. In the fault scenario where the display screen on the zero terminal display is stuck, the cause of the fault can be detected without the need for manual processing by the user, saving time and effort and improving the user experience.

[0012] In one embodiment, after the first processing module determines whether a first response message sent by the virtual machine through the control link is received within a preset first time period, the method further includes:

[0013] If the first processing module does not receive a first response message sent by the virtual machine through the control link within a preset first time period, the control link and the service link are reconnected.

[0014] According to the method described above, when the first processing module does not receive the first response message sent by the virtual machine within the preset first time period, the embodiment of the present disclosure can determine that the control link is abnormal, and reconnect the control link and the service link.

[0015] In one embodiment, after the first processing module determines whether the encoding confirmation message sent by the decoding module is received within the preset second time period, the method further includes:

[0016] If the first processing module receives a coding NAK message sent by the decoding module within a preset second time period, sending a second query message to the virtual machine through the service link, where the coding NAK message includes a coding NAK identifier, where the coding NAK identifier is used to indicate that the decoding module has not received the coded data sent by the virtual machine;

[0017] Determining whether the first processing module receives a second response message sent by the virtual machine through the service link within a preset third time period;

[0018] If not, reconnect the control link and the service link.

[0019] In the embodiment of the present disclosure, through the above method, if the first processing module receives a coding denial message within the preset second time period, it can be determined that an abnormality has occurred in the business link or the coding acquisition module, and the first processing module is further determined to determine whether it receives a second response message sent by the virtual machine within the preset third time period. If the first processing module does not receive the second response message within the preset third time period, it indicates that the business link connection is abnormal, and the control link and the business link are reconnected.

[0020] In one embodiment, after determining whether the first processing module receives a second response message sent by the virtual machine through the service link within a preset third time period, the method further includes:

[0021] If the first processing module receives a second response message sent by the virtual machine through the service link within a preset third time period, it is determined that the service link is normal.

[0022] In the embodiment of the present disclosure, through the above method, when the first processing module does not receive the second response message within the preset third time period, it indicates that the service link connection is normal.

[0023] According to a second aspect of an embodiment of the present disclosure, a self-checking method based on a cloud desktop system is provided, which is applied to a virtual machine, wherein the virtual machine includes a receiving module and a coding acquisition module. The method includes:

[0024] The receiving module sends a second query message to the code acquisition module;

[0025] Determining whether the receiving module receives a third response message sent by the code acquisition module within a preset fourth time period;

[0026] If not, restart the encoding acquisition module and reconnect the control link and the service link.

[0027] The self-check method based on the cloud desktop system provided by the embodiment of the present disclosure comprises the following steps: a receiving module sends a second query message to the encoding acquisition module; a determination is made as to whether the receiving module has received a third response message sent by the encoding acquisition module within a preset fourth time period; if not, the encoding acquisition module is restarted and the control link and the service link are reconnected. The virtual machine of the present disclosure determines the transceiver function of the encoding acquisition module by determining whether the receiving module has received the third response message sent by the encoding acquisition module within a preset fourth time period. If the receiving module does not receive the third response message sent by the encoding acquisition module within the fourth time period, it is determined that an abnormality has occurred in the encoding acquisition module, the encoding acquisition module is restarted, and the control link and the service link are reconnected.

[0028] In one embodiment, after determining whether the receiving module receives the third response message sent by the code acquisition module within the preset fourth time period, the method further includes:

[0029] If the receiving module receives the third response message sent by the code acquisition module within the preset fourth time period, it is determined that the sending and receiving functions of the code acquisition module are normal.

[0030] The embodiment of the present disclosure can determine whether the transceiver function of the encoding acquisition module is normal through the above method.

[0031] In one embodiment, the method further comprises:

[0032] The coding acquisition module determines whether coding data is generated within a preset fifth time period;

[0033] If not, restart the encoding acquisition module and reconnect the control link and the service link.

[0034] According to the above method, when the coding acquisition module does not generate coding data within the preset fifth time period, it indicates that the coding acquisition module is abnormal. Then, the coding acquisition module is restarted and the control link and the service link are reconnected.

[0035] In one embodiment, after the code acquisition module determines whether the code data is generated within the preset fifth time period, the method further includes:

[0036] If the encoding acquisition module generates encoding data within the preset fifth time period, it is determined that the encoding acquisition module is normal.

[0037] In the embodiment of the present disclosure, through the above method, when the encoding acquisition module generates encoding data within the preset fifth time period, it indicates that the encoding acquisition module is working normally.

[0038] In one embodiment, the virtual machine further includes a second processing module, and the method further includes:

[0039] The second processing module receives the detection message sent by the virtual machine through the control link, and sends the first response message to the virtual machine through the control link.

[0040] In the embodiment of the present disclosure, through the above method, when the second processing module receives the detection message sent by the virtual machine through the control link and sends the first response message to the virtual machine through the control link, it indicates that the service link connection is normal.

[0041] According to a third aspect of an embodiment of the present disclosure, a self-checking system is provided, comprising at least one zero terminal and a server, wherein the server comprises at least one virtual machine, and the zero terminal corresponds to the virtual machine in a one-to-one manner; the zero terminal comprises a first processing module and a decoding module, and the virtual machine comprises a second processing module, a receiving module, and a coding acquisition module;

[0042] The zero terminal is used to execute any one of the self-checking methods based on the cloud desktop system applied to the zero terminal;

[0043] The virtual machine is used to execute any one of the self-checking methods based on a cloud desktop system applied to a virtual machine.

[0044] The self-checking system provided by the disclosed embodiment includes at least one zero terminal and a server. The server includes at least one virtual machine, and there is a one-to-one correspondence between the zero terminal and the virtual machine. The zero terminal includes a first processing module and a decoding module, and the virtual machine includes a second processing module, a receiving module, and an encoding and acquisition module. The disclosed system can actively detect the connection status between the zero terminal and the virtual machine. In the event of a display freeze on the zero terminal display, the cause of the failure can be detected without the user having to manually handle it, saving time and effort and improving the user experience.

[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0047] Figure 1 This is a flow chart of a self-checking method based on a cloud desktop system provided by an embodiment of the present disclosure;

[0048] Figure 2 It is a structural diagram of the cloud desktop system provided by an embodiment of the present disclosure;

[0049] Figure 3 This is a flow chart of a self-checking method based on a cloud desktop system provided by an embodiment of the present disclosure;

[0050] Figure 4 This is a flow chart of a self-checking method based on a cloud desktop system provided by an embodiment of the present disclosure;

[0051] Figure 5 It is a structural diagram of a self-checking system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0052] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. In the following description, when referring to the drawings, like numbers in different figures represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of systems and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0053] The embodiment of the present disclosure provides a self-checking method based on a cloud desktop system, which is applied to a zero terminal. The zero terminal includes a first processing module and a decoding module. Figure 1 As shown, the self-checking method based on the cloud desktop system includes the following steps:

[0054] Step 101: The first processing module sends a detection message to the virtual machine corresponding to the null terminal through a control link;

[0055] Step 102: The first processing module determines whether a first response message sent by the virtual machine through the control link is received within a preset first time period.

[0056] In one embodiment, after the first processing module determines whether a first response message sent by the virtual machine through the control link is received within a preset first time period, the method further includes:

[0057] If the first processing module does not receive the first response message sent by the virtual machine through the control link within a preset first time period, the control link and the service link are reconnected.

[0058] According to the method described above, when the first processing module does not receive the first response message sent by the virtual machine within the preset first time period, the embodiment of the present disclosure can determine that the control link is abnormal, and reconnect the control link and the service link.

[0059] Specifically, the first processing module can periodically send detection messages to the virtual machine through the control link. If the virtual machine cannot normally send the first response message to the zero terminal, that is, the first processing module does not receive the first response message sent by the virtual machine within the preset first time period, it means that the control link between the zero terminal and the virtual machine is abnormal, and it is necessary to disconnect the connection between the zero terminal and the virtual machine and then re-establish the connection.

[0060] Among them, the preset first time length can be specifically 30s, and the first processing module can send a detection message to the virtual machine every 10 minutes. After the first processing module sends the detection message to the virtual machine, if it does not receive the first response message within 30s, it means that the control link may be abnormal.

[0061] Step 103: If yes, the first processing module sends the first query message to the decoding module;

[0062] Specifically, if the virtual machine can normally send the first response message to the zero terminal, that is, the first processing module can receive the first response message sent by the virtual machine within the preset first time length, then it means that the control link between the zero terminal and the virtual machine is normal, and the next step of inspection can be carried out through subsequent steps.

[0063] Step 104: The first processing module determines whether a coding confirmation message sent by the decoding module is received within a preset second time period, where the coding confirmation message includes a coding confirmation identifier, which is used to indicate that the decoding module has received coded data sent by the virtual machine through the service link.

[0064] In this embodiment, after determining that the control link is normal, the first processing module determines whether the service link is normal by determining whether a coding confirmation message sent by the decoding module has been received. After receiving the query message, the decoding module determines whether coded data from the virtual machine has been received within a preset second time period. If so, the reply message to the first query message carries a coding confirmation flag. If not, the reply message to the first query message carries a coding negation flag.

[0065] It should be noted that the encoded data is transmitted from the virtual machine to the decoding module of the zero terminal through the business link. If the decoding module can receive the encoded data sent by the virtual machine within the preset second time period, it can be said that the encoding acquisition of the business link and the virtual machine is normal. If the decoding module does not receive the encoded data sent by the virtual machine within the preset second time period, it means that the encoding acquisition of the business link or the virtual machine is abnormal and needs further investigation.

[0066] The preset second time length may be specifically 5 seconds. That is, if the decoding module does not receive the encoded data within 5 seconds, it can be considered that an abnormality occurs in the encoding collection of the service link or the virtual machine.

[0067] Step 105: If yes, determine that the connection between the zero terminal and the virtual machine is normal.

[0068] In actual applications, when the user finds that the screen is stuck, the self-check method of the present invention can be triggered to check the cause of the fault, or the self-check method of the present invention can be set to run periodically to ensure the normal operation of the cloud desktop system.

[0069] In one embodiment, after the first processing module determines whether the encoding confirmation message sent by the decoding module is received within the preset second time period, the method further includes:

[0070] If the first processing module receives a coding NAK message sent by the decoding module within the preset second time period, the first processing module sends a second query message to the virtual machine through the service link, where the coding NAK message includes a coding NAK identifier, which is used to indicate that the decoding module has not received the coded data sent by the virtual machine;

[0071] Determine whether the first processing module receives a second response message sent by the virtual machine through the service link within a preset third time period;

[0072] If not, reconnect the control link and service link.

[0073] In the embodiment of the present disclosure, through the above method, if the first processing module receives a coding denial message within the preset second time period, it can be determined that an abnormality has occurred in the business link or the coding acquisition module, and the first processing module is further determined to determine whether it receives a second response message sent by the virtual machine within the preset third time period. If the first processing module does not receive the second response message within the preset third time period, it indicates that the business link connection is abnormal, and the control link and the business link are reconnected.

[0074] In one embodiment, after determining whether the first processing module receives the second response message sent by the virtual machine through the service link within the preset third time period, the method further includes:

[0075] If the first processing module receives the second response message sent by the virtual machine through the service link within the preset third time period, it is determined that the service link is normal.

[0076] In the embodiment of the present disclosure, through the above method, when the first processing module does not receive the second response message within the preset third time period, it indicates that the service link connection is normal.

[0077] The preset third time length may be 10 seconds. That is, if the first processing module does not receive the second response message returned by the virtual machine within 10 seconds, it may indicate that an abnormality may occur in the service link.

[0078] The self-check method based on the cloud desktop system provided by the embodiment of the present disclosure is as follows: the first processing module sends a detection message to the virtual machine corresponding to the zero terminal through the control link; the first processing module determines whether a first response message sent by the virtual machine through the control link is received within a preset first time period; if so, the first processing module sends a first query message to the decoding module; the first processing module determines whether a coding confirmation message sent by the decoding module is received within a preset second time period, the coding confirmation message includes a coding confirmation identifier, and the coding confirmation identifier is used to indicate that the decoding module receives the coding data sent by the virtual machine through the service link; if so, it is determined that the zero terminal and the virtual machine are connected normally. The present disclosure can actively detect the connection status between the zero terminal and the virtual machine. In the fault scenario where the display screen on the zero terminal display is stuck, the cause of the fault can be detected without the need for manual processing by the user, saving time and effort and improving the user experience.

[0079] Another embodiment of the present disclosure provides a self-checking method based on a cloud desktop system, which is applied to a virtual machine. The virtual machine includes a receiving module and a coding acquisition module. Figure 2 As shown, the self-checking method based on the cloud desktop system includes the following steps:

[0080] Step 201: The receiving module sends a second query message to the code collection module;

[0081] Step 202: Determine whether the receiving module receives the third response message sent by the code collection module within a preset fourth time period;

[0082] Among them, the preset fourth time length can be specifically 1s, that is, after the receiving module forwards the second query message to the coding acquisition module, if it does not receive the third response message sent by the coding acquisition module within 1s, it means that the coding acquisition module may be abnormal.

[0083] Step 203: If not, restart the encoding and acquisition module and reconnect the control link and the service link.

[0084] In one embodiment, after determining whether the receiving module receives the third response message sent by the code acquisition module within the preset fourth time period, the method further includes:

[0085] If the receiving module receives the third response message sent by the code acquisition module within the preset fourth time period, it is determined that the transceiver function of the code acquisition module is normal.

[0086] The embodiment of the present disclosure can determine whether the transceiver function of the encoding acquisition module is normal through the above method.

[0087] In this step, the receiving module of the virtual machine forwards the second query message to the encoding acquisition module. If the third response message sent by the encoding acquisition module is not received within the preset fourth time period, it means that the receiving and sending functions of the encoding acquisition module are abnormal, and the encoding acquisition module may be in a faulty state. The encoding acquisition module can be restarted, and the connection between the zero terminal and the virtual machine can be re-established after disconnecting.

[0088] It should be noted that after restarting the encoding and acquisition module, the connection between the zero terminal and the virtual machine will be automatically disconnected.

[0089] In one embodiment, the method further includes:

[0090] The coding collection module determines whether coding data is generated within a preset fifth time period;

[0091] If not, restart the encoding and acquisition module and reconnect the control link and service link.

[0092] Furthermore, if the encoding acquisition module generates encoding data within the preset fifth time period, the encoding acquisition module is operating normally and the connection between the zero terminal and the virtual machine is also normal. If the encoding acquisition module does not generate encoding data within the preset fifth time period, it indicates that the encoding acquisition module is operating abnormally, and the encoding acquisition module is restarted to reconnect the control link and the service link.

[0093] In this step, after receiving the second query message, the coding acquisition module detects its own coding function. Specifically, it determines whether coding data is generated within the preset fifth time period. If so, it means that the coding function is normal and the processing flow ends. At this time, the user can be prompted "The connection between ZC and VM is normal, the acquisition coding module function of VM is normal, please check other functional modules", so that the user can conduct in-depth inspection by themselves or contact the manufacturer according to the situation; if not, it means that the coding function is abnormal and coding data cannot be generated. At this time, the acquisition coding module can be restarted, and the connection between ZC and VM can be re-established after disconnecting.

[0094] The preset fifth time length may specifically be 1 second. That is, if the encoding acquisition module does not generate encoding data within 1 second, it indicates that an abnormality may occur in the encoding function of the encoding acquisition module.

[0095] According to the above method, when the coding acquisition module does not generate coding data within the preset fifth time period, it indicates that the coding acquisition module is abnormal. Then, the coding acquisition module is restarted and the control link and the service link are reconnected.

[0096] In one embodiment, after the code acquisition module determines whether the code data is generated within the preset fifth time period, the method further includes:

[0097] If the encoding acquisition module generates encoding data within the preset fifth time period, it is determined that the encoding acquisition module is normal.

[0098] In the embodiment of the present disclosure, through the above method, when the encoding acquisition module generates encoding data within the preset fifth time period, it indicates that the encoding acquisition module is working normally.

[0099] In one embodiment, the virtual machine further includes a second processing module, and the method further includes:

[0100] The second processing module receives the detection message sent by the virtual machine through the control link, and sends the first response message to the virtual machine through the control link.

[0101] In the embodiment of the present disclosure, through the above method, when the second processing module receives the detection message sent by the virtual machine through the control link and sends the first response message to the virtual machine through the control link, it indicates that the service link connection is normal.

[0102] The self-check method based on the cloud desktop system provided by the embodiment of the present disclosure comprises the following steps: a receiving module sends a second query message to the encoding acquisition module; a determination is made as to whether the receiving module has received a third response message sent by the encoding acquisition module within a preset fourth time period; if not, the encoding acquisition module is restarted and the control link and the service link are reconnected. The virtual machine of the present disclosure determines the transceiver function of the encoding acquisition module by determining whether the receiving module has received the third response message sent by the encoding acquisition module within a preset fourth time period. If the receiving module does not receive the third response message sent by the encoding acquisition module within the fourth time period, it is determined that an abnormality has occurred in the encoding acquisition module, the encoding acquisition module is restarted, and the control link and the service link are reconnected.

[0103] refer to Figure 3 , Figure 3 This is a schematic diagram of the structure of the cloud desktop system proposed in this disclosure. Figure 3 As shown, the cloud desktop system includes at least one zero terminal ZC and a cloud server. The ZC includes a first processing module (processing module 1) and a decoding module. The cloud server includes multiple VMs. The VMs include a second processing module (processing module 2), a receiving module, and an encoding and acquisition module. One ZC corresponds to one VM. The link between the ZC and the VM includes a control link and a service link. The control link is used to transmit control instructions. The first processing module of the ZC and the second processing module of the VM communicate via the control link. The service link is used to transmit encoded data. The decoding module of the ZC and the encoding and acquisition module of the VM communicate via the service link.

[0104] based on Figure 3 The cloud desktop system shown, Figure 1 and Figure 2The corresponding embodiment provides a self-check method based on a cloud desktop system. Another embodiment of the present disclosure provides a self-check method based on a cloud desktop system, which is applied to a cloud desktop system, including a zero terminal and a virtual machine, such as Figure 4 As shown, the self-checking method based on the cloud desktop system includes the following steps:

[0105] In step S1, the processing module 1 of ZC sends a heartbeat detection message to the processing module 2 of VM through the control link; it is determined whether a response message to the heartbeat detection message is received within the preset first time length. If yes, it means that the control link is normal, and step S2 is executed. If no, it means that the control link is abnormal, disconnect with the VM, and execute step S7.

[0106] In this step, the processing module 1 can periodically send a heartbeat detection message to the processing module 2 of the VM through the control link. If the VM can normally send a response message to the heartbeat detection message to the ZC, that is, the processing module 1 can receive the response message sent by the VM within the preset first time period, then it means that the control link between the ZC and the VM is normal, and the next step of inspection can be performed through subsequent steps; if the VM cannot normally send a response message to the heartbeat detection message to the ZC, that is, the processing module 1 does not receive the response message sent by the VM within the preset first time period, then it means that the control link between the ZC and the VM is abnormal, and the connection between the ZC and the VM needs to be disconnected, and reconnected through step S7.

[0107] Among them, the preset first time length can be specifically 30s, and the processing module 1 can send a heartbeat detection message to the processing module 2 every 10 minutes. After the processing module 1 sends the heartbeat detection message to the processing module 2, if no response message of the heartbeat detection message is received within 30s, it means that the control link may be abnormal.

[0108] Step S2: The processing module 1 sends a query message 1 to the decoding module. The query message 1 is used to determine whether the decoding module receives the encoded data sent by the VM within a preset second time period.

[0109] In this step, after determining that the control link is normal, processing module 1 sends query message 1 to decoding module to determine whether the service link is normal. After receiving query message 1, decoding module determines whether encoded data from the VM has been received within a preset second time period. If so, reply message 1 to query message 1 carries a confirmation flag. If not, reply message 1 to query message 1 carries a denial flag.

[0110] It should be noted that the encoded data is transmitted from the encoding module of the VM to the decoding module of the ZC through the business link. If the decoding module can receive the encoded data sent by the VM within the preset second time length, it can be said that the business link and the encoding acquisition module of the VM are normal. If the decoding module 1 does not receive the encoded data sent by the VM within the preset second time length, it means that the business link or the encoding acquisition module of the VM is abnormal and needs further investigation.

[0111] Specifically, the preset second time length may be 5 seconds. That is, if the decoding module 1 does not receive the encoded data within 5 seconds, it can be considered that an abnormality occurs in the service link or the encoding collection module of the VM.

[0112] Step S3, after receiving the reply message 1 corresponding to the query message 1 sent by the decoding module, the processing module 1 determines whether the decoding module 1 receives the encoded data sent by the VM within the preset second time period by parsing the reply message 1; if so, it means that the status of the business link and the VM are normal, and the processing flow ends; if not, it means that the business link or VM is abnormal, and step S4 is executed.

[0113] In this step, if the processing module 1 parses out a confirmation identifier from the reply message 1, the decoding module 1 receives the encoded data sent by the VM within the preset second time period, indicating that the business link and the encoding acquisition module of the VM are normal; if the processing module 1 parses out a denial identifier from the reply message 1, the decoding module 1 does not receive the encoded data sent by the VM within the preset second time period, indicating that the business link or the encoding acquisition module of the VM is abnormal, and further detection is required through subsequent steps to determine the specific cause of the fault.

[0114] Step S4, the processing module 1 sends a query message 2 to the receiving module of the VM through the service link, so that the receiving module forwards the query message 2 to the encoding acquisition module. The query message 2 is used to determine whether the status of the encoding acquisition module is normal; determine whether a response message 2 to the query message 2 sent by the receiving module of the VM through the service link is received within the preset fourth time period; if yes, it means that the service link is normal, and step S5 is executed; if no, it means that the service link is abnormal, disconnect with the VM, and execute step S7.

[0115] In this step, after determining that the service link or the encoding acquisition module of the VM may be abnormal, the processing module 1 sends a query message 2 to the VM through the service link. It can be understood that the query message 2 is obtained by the receiving module of the VM and sent to the encoding acquisition module.

[0116] If the processing module 1 does not receive the response message 2 sent by the VM's receiving module through the service link to the query message 2 within the preset fourth time period, it means that the VM's receiving module has not received the query message 2, and there may be an abnormality in the service link between the VM and ZC. The connection between ZC and VM can be disconnected and reconnected through step S7.

[0117] If the processing module 1 receives a response message 2 to the query message 2 sent by the VM's receiving module through the service link within the preset fourth time period, it means that the VM's receiving module has received the query message 2, and the service link between the VM and ZC is normal. Subsequent steps can be used to continue detection to determine whether there is an abnormality in the VM's encoding acquisition module.

[0118] The preset fourth time length may be 10 seconds, that is, if the processing module 1 does not receive the response message 2 returned by the receiving module of the VM within 10 seconds, it may indicate that an abnormality may occur in the service link.

[0119] Step S5, the receiving module sends a query message 2 to the coding acquisition module; determine whether a response message 3 for the query message 2 sent by the coding acquisition module is received within the preset fifth time length. If received, execute S6; if not, it means that the coding acquisition module is in an abnormal state, restart the coding acquisition module, and execute S7.

[0120] In this step, the receiving module of the VM forwards the query message 2 to the encoding module. If a response message 3 for the query message 2 sent by the encoding acquisition module is received within the preset fifth time period, it means that the receiving and sending functions of the encoding acquisition module are normal, and the subsequent steps can be continued to check. If no response message 3 for the query message 2 sent by the encoding acquisition module is received within the preset fifth time period, it means that the receiving and sending functions of the encoding acquisition module are abnormal, and the encoding acquisition module may be in a faulty state. The encoding acquisition module can be restarted, and after disconnecting the connection between ZC and VM, the connection can be re-established by executing step S7.

[0121] It should be noted that after restarting the encoding and acquisition module, the connection between ZC and VM will be automatically disconnected.

[0122] Among them, the preset fifth time length can be specifically 1s, that is, after the receiving module forwards the query message 2 to the coding acquisition module, if it does not receive the response message 3 sent by the coding acquisition module within 1s, it means that the coding acquisition module may be abnormal.

[0123] Step S6: After receiving the query message 2, the coding acquisition module determines whether coding data is generated within the preset third time period. If yes, it means that the coding acquisition module is in normal status and the processing flow ends; if not, it means that the coding acquisition module is abnormal, restart the coding acquisition module and execute step S7.

[0124] In this step, after receiving the query message 2, the coding acquisition module detects its own coding function. Specifically, it determines whether coding data is generated within the preset third time period. If yes, it means that the coding function is normal and the processing flow ends. At this time, the user can be prompted "The connection between ZC and VM is normal, the acquisition coding module function of VM is normal, please check other functional modules", so that the user can conduct in-depth inspection by themselves or contact the manufacturer according to the situation; if no, it means that the coding function is abnormal and cannot generate coding data. At this time, the acquisition coding module can be restarted, and after disconnecting the connection between ZC and VM, the connection can be re-established by executing S7.

[0125] The preset third time length may specifically be 1 second. That is, if the encoding acquisition module does not generate encoding data within 1 second, it indicates that an abnormality may occur in the encoding function of the encoding acquisition module.

[0126] Step S7: re-establish the connection between ZC and VM, and the processing flow ends.

[0127] It should be noted that in actual applications, when a user finds that the screen is frozen, the self-test method of the present invention can be triggered to troubleshoot the cause of the fault. The self-test method of the present invention can also be set to run periodically to ensure the normal operation of the cloud desktop system. Of course, according to actual needs, all or part of the detection process can be disabled through the ZC end. For example, the detection process for VMs in steps S4 to S6 can be disabled.

[0128] The self-check method based on the cloud desktop system provided by the embodiment of the present disclosure is that ZC can actively detect the connection status between ZC and VM and the status of the acquisition and coding module of VM, specifically including whether the status of the control link and the business link between ZC and VM are normal, and whether the status of the acquisition and coding module of VM is normal; if it is found that the control link or the business link is abnormal after detection, the communication connection between ZC and VM is disconnected and an attempt is made to reconnect; if it is found that the coding acquisition module is abnormal after detection, the coding acquisition module is restarted, and an attempt is made to reconnect after ZC is disconnected from VM. The present disclosure can actively detect the connection status between the zero terminal and the virtual machine. In the fault scenario where the display screen on the zero terminal display is stuck, the cause of the fault can be detected without the need for manual processing by the user, which saves time and effort and improves the user experience.

[0129] Based on the above Figure 1 、 Figure 2and Figure 4 The self-check method based on the cloud desktop system described in the corresponding embodiment is the following system embodiment of the present disclosure, which can be used to execute the method embodiment of the present disclosure.

[0130] The present disclosure provides a self-checking system. Figure 5 As shown, the self-checking system 30 includes at least one zero terminal 301 and a server, the server includes at least one virtual machine 302, and the zero terminal 301 corresponds to the virtual machine 302 one by one; the zero terminal 301 includes a first processing module 3011 and a decoding module 3012, and the virtual machine 302 includes a second processing module 3021, a receiving module 3022 and a coding collection module 3023;

[0131] The zero terminal 301 is configured to execute any one of the above-mentioned self-checking methods based on the cloud desktop system applied to the zero terminal 301;

[0132] The virtual machine 302 is used to execute any one of the above-mentioned self-checking methods based on the cloud desktop system applied to the virtual machine 302.

[0133] The self-checking system provided in the disclosed embodiments includes at least one zero terminal 301 and a server. The server includes at least one virtual machine 302, with a one-to-one correspondence between the zero terminal 301 and the virtual machine 302. The zero terminal 301 includes a first processing module 3011 and a decoding module 3012, while the virtual machine 302 includes a second processing module 3021, a receiving module 3022, and a code acquisition module 3023. The disclosed system can proactively detect the connection status between the zero terminal 301 and the virtual machine 302. In the event of a display freeze on the zero terminal 301 display, the cause of the failure can be detected without requiring manual user intervention, saving time and effort and improving the user experience.

[0134] Based on the above Figure 1 、 Figure 2 and Figure 4 In accordance with the self-checking method based on the cloud desktop system described in the corresponding embodiment, the embodiment of the present disclosure further provides a computer-readable storage medium. For example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, or an optical data storage device. The storage medium stores at least one computer instruction for executing the above-mentioned Figure 1 、 Figure 2 and Figure 4 The self-check method based on the cloud desktop system described in the corresponding embodiment will not be repeated here.

[0135] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0136] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A self-checking method based on a cloud desktop system, characterized in that: Applied to a null terminal, the null terminal includes a first processing module and a decoding module, and the method includes: The first processing module sends the detection message to the virtual machine corresponding to the null terminal through the control link; The first processing module determines whether a first response message sent by the virtual machine through the control link is received within a preset first time period; If yes, the first processing module sends the first query message to the decoding module; The first processing module determines whether a coding confirmation message sent by the decoding module is received within a preset second time period, the coding confirmation message including a coding confirmation identifier, and the coding confirmation identifier is used to indicate that the decoding module has received the coded data sent by the virtual machine through the service link; If so, it is determined that the zero terminal is connected to the virtual machine normally.

2. The self-checking method based on the cloud desktop system according to claim 1, characterized in that: After the first processing module determines whether a first response message sent by the virtual machine through the control link is received within a preset first time period, the method further includes: If the first processing module does not receive a first response message sent by the virtual machine through the control link within a preset first time period, the control link and the service link are reconnected.

3. The self-checking method based on the cloud desktop system according to claim 1, characterized in that: After the first processing module determines whether the encoding confirmation message sent by the decoding module is received within the preset second time period, the method further includes: If the first processing module receives a coding NAK message sent by the decoding module within a preset second time period, sending a second query message to the virtual machine through the service link, where the coding NAK message includes a coding NAK identifier, where the coding NAK identifier is used to indicate that the decoding module has not received the coded data sent by the virtual machine; Determining whether the first processing module receives a second response message sent by the virtual machine through the service link within a preset third time period; If not, reconnect the control link and the service link.

4. The self-checking method based on the cloud desktop system according to claim 3, characterized in that: After determining whether the first processing module receives a second response message sent by the virtual machine through the service link within a preset third time period, the method further includes: If the first processing module receives a second response message sent by the virtual machine through the service link within a preset third time period, it is determined that the service link is normal.

5. A self-checking method based on a cloud desktop system, characterized in that: Applied to a virtual machine, the virtual machine includes a receiving module and a coding acquisition module, and the method includes: The receiving module sends the second query message as claimed in claim 3 to the code acquisition module; Determining whether the receiving module receives a third response message sent by the code acquisition module within a preset fourth time period; If not, restart the encoding acquisition module and reconnect the control link and the service link.

6. The self-checking method based on the cloud desktop system according to claim 5, characterized in that: After determining whether the receiving module receives the third response message sent by the encoding acquisition module within the preset fourth time period, the method further includes: If the receiving module receives the third response message sent by the code acquisition module within the preset fourth time period, it is determined that the sending and receiving functions of the code acquisition module are normal.

7. The self-checking method based on the cloud desktop system according to claim 5, characterized in that: The method further comprises: The coding acquisition module determines whether coding data is generated within a preset fifth time period; If not, restart the encoding acquisition module and reconnect the control link and the service link.

8. The self-checking method based on the cloud desktop system according to claim 7, characterized in that: After the code acquisition module determines whether code data is generated within the preset fifth time period, the method further includes: If the encoding acquisition module generates encoding data within the preset fifth time period, it is determined that the encoding acquisition module is normal.

9. The self-checking method based on the cloud desktop system according to claim 5, characterized in that: The virtual machine further includes a second processing module, and the method further includes: The second processing module receives the detection message according to claim 1 sent by the null terminal through the control link, and sends the first response message to the null terminal through the control link.

10. A self-checking system, characterized in that: The system comprises at least one zero terminal and a server, wherein the server comprises at least one virtual machine, and the zero terminal corresponds to the virtual machine in a one-to-one manner; the zero terminal comprises a first processing module and a decoding module, and the virtual machine comprises a second processing module, a receiving module, and a coding and acquisition module; The zero terminal is used to execute the method according to any one of claims 1 to 4; The virtual machine is used to execute the method according to any one of claims 5 to 9.

Citation Information

Patent Citations

  • Negotiation method, device and system for virtual desktop service parameters

    CN103248654A

  • Remote control method and system

    CN111414237A