A cloud phone operation monitoring method, system, and storage medium
Through the multi-threaded sequence parameters and picture retrieval mechanism, the problem of high false alarm rate in cloud mobile phone operation monitoring is solved, the monitoring efficiency and accuracy are improved, the labor cost is reduced, and the normal operation of the cloud mobile phone is ensured.
Patent Information
- Application Number
- CN202311614369.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-11-28
AI Technical Summary
Existing cloud phone operation monitoring methods judge the operation stability by detecting network congestion status, but have a high false alarm rate, which leads to rash restriction of bandwidth resources in the case of non-network attacks, affecting the data processing efficiency of cloud phones.
Multi-thread sequence parameter setting and picture retrieval mechanism are adopted to determine the connection status through the cloud phone network identification, save and retrieve pictures to judge the normal operation of the cloud phone, avoid repeated operations, and improve monitoring efficiency.
Reduce labor expenses, reduce labor costs, improve the efficiency of cloud mobile phone operation monitoring, reduce false alarm rates, and ensure the normal operation of cloud mobile phones.
Smart Images

Figure CN117527949B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud computing technology, and in particular to a cloud phone operation monitoring method, system, and storage medium. Background Art
[0002] With the continuous development of cloud technology, cloud phones are also emerging as one of the applications of cloud computing. Users can use ordinary mobile phone terminals to connect to the cloud phone platform to use various high-end and complex application services, including games, office, finance, etc. How to effectively monitor the operation status of cloud phones has become an important issue in the field of cloud computing. At present, the monitoring of the operation status of cloud phones is to determine whether its operation is stable by detecting the congestion status of the network. In the case of network congestion, the risk of network attacks is reduced by reducing the bandwidth resources of the port. This monitoring method has a high false alarm rate. When the network congestion is not caused by a network attack, the bandwidth resources of the port are rashly restricted, which affects the data processing efficiency of the cloud phone and further affects the normal operation of the cloud phone. Summary of the invention
[0003] Based on this, it is necessary to propose a cloud phone operation monitoring method, system, and storage medium to address the above problems.
[0004] A cloud phone operation monitoring method, the method comprising:
[0005] Sets several multithreaded sequence parameters.
[0006] According to the cloud phone network identification parameter in the multi-thread sequence parameter, it is determined that the cloud phone is connected normally for the first time, and the cloud phone is marked as a cloud phone that has successfully connected for the first time.
[0007] The cloud phone image saving path parameter in the multi-threaded sequence parameter is saved, and the current image name is named according to the network identifier of the cloud phone that is successfully connected for the first time.
[0008] According to the current picture name, the picture in the multi-thread sequence parameter is retrieved to the local file storage path parameter to the local directory of the cloud phone, and it is determined that the cloud phone is running normally.
[0009] The determining, according to the cloud phone network identification parameter in the multi-thread sequence parameter, that the cloud phone is connected normally for the first time, and marking the cloud phone as a cloud phone that has successfully connected for the first time specifically includes:
[0010] According to the cloud phone network identification parameter in the multi-threaded sequence parameter, it is determined that the cloud phone's initial connection is abnormal, and then a reconnection is performed to determine the reconnection situation.
[0011] If the reconnection is successful, it is determined whether the cloud phone is the cloud phone that is successfully connected for the first time.
[0012] If the cloud phone is the cloud phone that is successfully connected for the first time, the cloud phone that is successfully connected for the first time re-determines whether the cloud phone is connected normally for the first time based on the cloud phone network identification parameter in the multi-threaded sequence parameter.
[0013] If the cloud phone is not the cloud phone that is successfully connected for the first time, the cloud phone saving picture path parameter in the multi-thread sequence parameter is saved, and the current picture name is named according to the network identifier of the cloud phone that is successfully connected for the first time.
[0014] Wherein, determining that the first connection of the cloud phone is abnormal according to the cloud phone network identification parameter in the multi-thread sequence parameter, reconnecting, and determining the reconnection situation specifically include:
[0015] If it is determined that the reconnection is unsuccessful, it is determined whether the number of reconnection times has been exceeded.
[0016] If the number of reconnections is exceeded, the cloud phone connection is determined to be abnormal according to the cloud phone reconnection number parameter in the multi-threaded sequence parameter, and the network identifier of the cloud phone is saved to the text storage path after the cloud phone connection fails in the multi-threaded sequence parameter.
[0017] The fault identification user interface diagram is replaced according to the network identification of the cloud phone, and the result of the abnormal operation of the cloud phone is output.
[0018] If the number of reconnections is not exceeded, the cloud phone reconnects again after a preset time period according to the execution interval parameter in the multi-thread sequence parameter to determine the reconnection status.
[0019] The determining that the cloud phone connection is normal according to the cloud phone network identification parameter in the multi-thread sequence parameter and marking the cloud phone as a cloud phone that has successfully connected for the first time specifically includes:
[0020] The existence of the script is determined, and the path of the script is set according to the dynamic script path of the multi-threaded sequence parameter.
[0021] If it is determined that the script does not exist, the cloud phone image saving path parameter in the multi-threaded sequence parameter is saved, and the current image name is named according to the network identifier of the cloud phone that is successfully connected for the first time.
[0022] If it is determined that the script exists, the start or re-execution of the script is determined according to the re-execution script parameter of the multi-thread sequence parameter.
[0023] Wherein, if the script is determined to exist, determining the start or re-execution of the script according to the re-execution script parameter of the multi-thread sequence parameter specifically includes:
[0024] If it is determined that the script is to be re-executed, the script process is automatically killed, and the script is executed in the background through a suspend command.
[0025] If it is determined that the script is not started, the script is directly executed in the background through a suspend command.
[0026] If it is determined that the script has not been re-executed, it is determined whether the script has been executed.
[0027] Wherein, if it is determined that the script has not been re-executed, determining whether the script has been executed specifically includes:
[0028] If the script has been executed, the cloud phone image saving path parameter in the multi-threaded sequence parameter is saved, and the current image name is named according to the network identifier of the cloud phone that is successfully connected for the first time.
[0029] If the script is not executed, the script is directly executed in the background through a suspend command.
[0030] The retrieving the image file storage path to the local directory of the cloud phone according to the current image name and the multi-thread sequence parameter, and determining that the cloud phone is running normally, specifically includes:
[0031] Re-determine that the cloud phone connection is abnormal, then reconnect and determine the reconnection situation.
[0032] Re-determine that the cloud phone is connected normally, and then determine whether the execution time has been reached based on the total program execution time parameter in the multi-threaded sequence parameter.
[0033] If the execution time is reached, the result indicating that the cloud phone is running normally is output.
[0034] If the execution time is not reached, the existence of the input setting parameters is determined based on the manually terminated program keyword parameter in the multi-threaded sequence parameter, and the result that the cloud phone is running normally is output.
[0035] Wherein, if the execution time is not reached, determining that the input setting parameter exists according to the manually terminating program keyword parameter in the multi-thread sequence parameter, and outputting the result that the cloud phone runs normally, further includes:
[0036] If the execution time is not reached, the program keyword parameter that can be manually terminated in the multi-threaded sequence parameter is used to determine that the input setting parameter does not exist, then the cloud phone interface picture execution interval parameter is obtained according to the multi-threaded sequence parameter, the cloud phone picture saving path parameter in the multi-threaded sequence parameter is repeatedly saved, and the current picture name is named according to the network identifier of the cloud phone that successfully connected for the first time;
[0037] According to the current picture name, the picture in the multi-thread sequence parameter is retrieved to the local file storage path parameter to the local directory of the cloud phone, and it is determined that the cloud phone is running normally.
[0038] A cloud phone operation monitoring system, the system comprising:
[0039] The multi-thread sequence parameter setting module is used to set several multi-thread sequence parameters.
[0040] The cloud phone connection determination module is used to determine that the cloud phone connection is normal according to the cloud phone network identification parameter in the multi-threaded sequence parameter, and then mark the cloud phone as a cloud phone that has successfully connected for the first time.
[0041] The current picture name determination module is used to save the multi-thread sequence parameters and determine the current picture name according to the network identifier of the cloud phone that is successfully connected for the first time.
[0042] The cloud phone is running normally and determining module is used to retrieve the image retrieval file storage path to the local directory of the cloud phone according to the current image name and multi-thread sequence parameters, and then determine that the cloud phone is running normally.
[0043] A storage medium, characterized in that a computer program is stored therein, and when the computer program is executed by a processor, the processor is caused to execute the steps of the method described above.
[0044] The embodiments of the present invention have the following beneficial effects:
[0045] The present invention avoids repetitive operations based on the setting of several multi-threaded sequence parameters, and views the pictures of the current cloud phone by viewing the pictures named with the cloud phone network identifier in the directory, and retrieves the pictures in the multi-threaded sequence parameters according to the current picture name and the local file storage path parameters to the local directory of the cloud phone to determine that the cloud phone is running normally, reduce manpower expenses, reduce manpower costs, and improve the cloud phone operation monitoring efficiency based on several multi-threaded sequence parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] in:
[0048] Figure 1 It is a flow chart of an embodiment of a cloud phone operation monitoring method provided by the present invention;
[0049] Figure 2 It is a flow chart of another embodiment of a cloud phone operation monitoring method provided by the present invention;
[0050] Figure 3 It is a structural diagram of an embodiment of a cloud phone operation monitoring system provided by the present invention;
[0051] Figure 4 It is a structural schematic diagram of an embodiment of the storage medium provided by the present invention. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0053] like Figure 1 As shown, Figure 1 The present invention provides a flow chart of an embodiment of a method for monitoring the operation of a cloud phone. A method for monitoring the operation of a cloud phone, the method comprising:
[0054] S101: Setting several multi-thread sequence parameters.
[0055] In one implementation scenario, several multi-thread sequence parameters are set as follows:
[0056] Set the local file storage path parameter for retrieving images. If not set, the images will be stored in the current script directory by default.
[0057] Set the text storage path of the network logo after the cloud phone connection fails. If not set, it will be stored in the current script directory by default.
[0058] Set the execution interval parameter for obtaining the cloud phone interface image, the default is once every 30 seconds;
[0059] Set the dynamic script path. If it is not set, the script will not be executed by default.
[0060] Set the total execution time parameter of the program in minutes;
[0061] Set the re-execution script parameters for the current batch of cloud phones;
[0062] Set the cloud phone network identification parameters;
[0063] Set the keyword parameter that can manually terminate the program parameter. The default is exec. When the console enters the exec parameter, the program stops running.
[0064] Set the cloud phone image saving path parameters;
[0065] Set the number of cloud phone reconnection times. If the number of times is exceeded, the cloud machine will be considered abnormal.
[0066] S102: Determine, based on the cloud phone network identification parameter in the multi-thread sequence parameter, that the cloud phone is connected normally for the first time, and mark the cloud phone as a cloud phone that has successfully connected for the first time.
[0067] In a specific implementation scenario, the cloud phone is connected according to the cloud phone network identification parameter in the multi-threaded sequence parameter, and the first connection status of the current batch of cloud phones is determined. If it is determined that the cloud phone is connected normally for the first time, the cloud phone is marked as a cloud phone that has successfully connected for the first time; if it is determined that the cloud phone is connected abnormally for the first time, a reconnection is performed to determine the reconnection status.
[0068] S103: Save the cloud phone image saving path parameter in the multi-thread sequence parameter, and name the current image according to the network identifier of the cloud phone that is successfully connected for the first time.
[0069] In a specific implementation scenario, the directory for storing pictures inside the cloud phone is set according to the cloud phone image saving path parameter in the multi-threaded sequence parameters. When different devices may have some permission issues that make it impossible to store pictures, the relevant pictures are obtained by manually specifying an available directory for storage.
[0070] S104: According to the current picture name, the picture in the multi-thread sequence parameter is retrieved to the local file storage path parameter and retrieved to the local directory of the cloud phone, and it is determined that the cloud phone is running normally.
[0071] In a specific implementation scenario, the local file storage path parameter of the picture retrieval in the multi-thread sequence parameter is retrieved to the local directory of the cloud phone according to the current picture name. When viewing the current cloud phone screen through the picture retrieval local file storage path parameter, there is no need to open and view them one by one.
[0072] On the one hand, it is determined that the first connection of the current batch of cloud phones is abnormal, and then reconnection is performed to determine the reconnection situation. When it is determined that the reconnection is successful, it is determined whether the cloud phone is the cloud phone that has successfully connected for the first time. If the cloud phone is the cloud phone that has successfully connected for the first time, the cloud phone that has successfully connected for the first time re-determines whether the cloud phone has connected normally for the first time based on the cloud phone network identification parameters in the multi-threaded sequence parameters. If the cloud phone is not the cloud phone that has successfully connected for the first time, the cloud phone save image path parameters in the multi-threaded sequence parameters are saved, and the current image name is named according to the network identification of the cloud phone that has successfully connected for the first time, and then the image in the multi-threaded sequence parameters is retrieved according to the current image name. The local file storage path parameters are retrieved back to the local directory of the cloud phone to determine that the cloud phone is running normally.
[0073] When it is determined that the reconnection is unsuccessful, it is determined whether the number of reconnections has been exceeded. If the number of reconnections has been exceeded, the cloud phone connection is determined to be abnormal according to the cloud phone reconnection number parameter in the multi-threaded sequence parameters, and the cloud phone network identifier is saved to the text storage path after the cloud phone connection fails in the multi-threaded sequence parameters; the fault identifier user interface diagram is replaced according to the cloud phone network identifier, and the result of the abnormal operation of the cloud phone is output. If the number of reconnections has not been exceeded, the cloud phone reconnects again after a preset time period according to the execution interval parameter in the multi-threaded sequence parameters to determine the reconnection situation.
[0074] On the other hand, after determining that the cloud phone is connected normally for the first time, the cloud phone is marked as the cloud phone that has been successfully connected for the first time, and the existence of the script is determined, and the path of the script is set according to the dynamic script path of the multi-threaded sequence parameter. If it is determined that the script does not exist, the cloud phone save image path parameter in the multi-threaded sequence parameter is saved, and the current image name is named according to the network identifier of the cloud phone that has been successfully connected for the first time, and then the image in the multi-threaded sequence parameter is retrieved according to the current image name. The local file storage path parameter is retrieved to the local directory of the cloud phone, and it is determined that the cloud phone is running normally.
[0075] If it is determined that the script exists, the script is started or re-executed according to the re-execution script parameter of the multi-thread sequence parameter.
[0076] Specifically, if it is determined that the script is re-executed, the script process is automatically killed, and the script is executed in the background through a suspend command; if it is determined that the script is not started, the script is directly executed in the background through a suspend command; if it is determined that the script is not re-executed, it is determined whether the script has been executed.
[0077] Furthermore, if the script has been executed, the cloud phone image saving path parameters in the multi-threaded sequence parameters are saved, and the current image name is named according to the network identifier of the cloud phone that successfully connected for the first time. Then, according to the current image name, the image in the multi-threaded sequence parameters is retrieved to the local directory of the cloud phone according to the local file storage path parameters to determine that the cloud phone is running normally.
[0078] If the script is not executed, the script is directly executed in the background through the suspend command.
[0079] Further, if it is re-determined that the cloud phone connection is abnormal, reconnect and determine the reconnection situation; if it is re-determined that the cloud phone connection is normal, it is determined whether the execution time is reached according to the total program execution time parameter in the multi-threaded sequence parameter.
[0080] If the execution time is reached, the result that the cloud phone is running normally is output; if the execution time is not reached, the keyword parameter of the program can be manually terminated according to the multi-threaded sequence parameters, the input setting parameter is determined to exist, and the result that the cloud phone is running normally is output; if it is determined that the input setting parameter does not exist, the cloud phone interface picture execution interval parameter is obtained according to the multi-threaded sequence parameters, the cloud phone save picture path parameter in the multi-threaded sequence parameters is repeatedly saved, and the current picture name is named according to the network identifier of the cloud phone that successfully connected for the first time, and then the picture in the multi-threaded sequence parameters is retrieved according to the current picture name. The local file storage path parameter is retrieved to the local directory of the cloud phone to determine that the cloud phone is running normally.
[0081] From the above description, it can be seen that the present invention avoids repetitive operations based on the setting of several multi-threaded sequence parameters, and views the pictures of the current cloud phone by checking the pictures named with the cloud phone network identifier in the directory, and retrieves the pictures in the multi-threaded sequence parameters according to the current picture name and the local file storage path parameters to the local directory of the cloud phone to determine that the cloud phone is running normally, reduce manpower expenses, reduce manpower costs, and improve the cloud phone operation monitoring efficiency based on several multi-threaded sequence parameters.
[0082] like Figure 2 As shown, Figure 2 1 is a flow chart of another embodiment of a cloud phone operation monitoring method provided by the present invention. A cloud phone operation monitoring method, the method comprising:
[0083] S201: Setting several multi-thread sequence parameters.
[0084] S202: Determine whether the first connection of the cloud phone is normal according to the cloud phone network identification parameter in the multi-threaded sequence parameter.
[0085] S2021: Determine that the cloud phone is connected normally for the first time, and mark the cloud phone as a cloud phone that is successfully connected for the first time.
[0086] S2022: If it is determined that the cloud phone is not connected normally for the first time, reconnect.
[0087] S203: Determine the reconnection status.
[0088] S2031: Determine that the reconnection is successful.
[0089] S204: Determine whether the cloud phone is a cloud phone that is successfully connected for the first time.
[0090] S2041: If the cloud phone is the cloud phone that is successfully connected for the first time, the cloud phone that is successfully connected for the first time re-determines whether the cloud phone is connected normally for the first time based on the cloud phone network identification parameter in the multi-threaded sequence parameter.
[0091] S2042: If the cloud phone is not the first cloud phone to be successfully connected, then the cloud phone image saving path parameters in the multi-threaded sequence parameters are saved, and the current image name is named according to the network identifier of the cloud phone. According to the current image name, the image in the multi-threaded sequence parameters is retrieved back to the local directory of the cloud phone using the local file storage path parameters, and it is determined that the cloud phone is operating normally.
[0092] S2032: Determine that the reconnection is unsuccessful.
[0093] S205: Determine whether the number of reconnection times has been exceeded.
[0094] S2051: If the number of reconnection times is exceeded, the cloud phone connection abnormality is determined according to the cloud phone reconnection number parameter in the multi-threaded sequence parameters, and the network identifier of the cloud phone is saved in the text storage path after the cloud phone connection failure of the multi-threaded sequence parameters; the fault identifier user interface diagram is replaced according to the network identifier of the cloud phone, and the result of the cloud phone operation output abnormality is output.
[0095] It should be noted that after replacing the fault identification user interface diagram according to the network identification of the cloud phone, the result of abnormal operation of the cloud phone is output, and the cloud phone operation monitoring program is exited.
[0096] S2052: If the number of reconnections has not been exceeded, reconnect again after a preset time interval.
[0097] It should be noted that steps S201-S2052 are Figure 1 This has been discussed in detail in the implementation scenario shown and will not be repeated here.
[0098] S206: Determine the existence of the script, and set the script path according to the dynamic script path of the multi-threaded sequence parameter.
[0099] In a specific implementation scenario, the script is a custom command code file, including a .sh script. Based on the .sh script, you can customize operations according to your own needs during the operation of the cloud phone and write according to business requirements, repeatedly execute related script operations, and execute in the background of the device without occupying client execution resources.
[0100] S2061: If it is determined that the script does not exist, save the cloud phone image saving path parameter in the multi-threaded sequence parameter, and name the current image name according to the network identifier of the cloud phone that successfully connected for the first time; retrieve the image in the multi-threaded sequence parameter according to the local file storage path parameter to the local directory of the cloud phone according to the current image name, and determine that the cloud phone is running normally.
[0101] S2062: Determine whether the script exists.
[0102] S207: Determine the start or re-execution status of the script according to the re-execution script parameter of the multi-thread sequence parameter.
[0103] S2071: If the script is determined to be re-executed, the script process is automatically killed, and the script is executed in the background through a suspend command.
[0104] S2072: If it is determined that the script is not enabled, the script is directly executed in the background through a suspend command.
[0105] From the description of steps S206-S2072, it can be seen that executing the script on the client can improve the flexibility of the program, and the code executed on the client can interact and communicate with the main program more conveniently; and executing it in the device background can ensure the stability of the script, avoiding accidental program exit or crash resulting in incomplete script execution; it is convenient for cloud phone device debugging, and executing some key operations on the client can make it easier to debug and locate problems; it is suitable for I / O intensive tasks: when the task involves a large number of I / O operations (such as file reading and writing, network communication, etc.), executing it on the client can effectively improve the response speed of the program.
[0106] Specifically, the script is the operating program executed during the operation of the cloud phone. Writing the operating program as a .sh script and executing it in the background of the device can allow the main program to continue executing without waiting for the script to be completed, thereby realizing asynchronous operation; and the script execution process can be isolated from the main program to avoid affecting the main program and realize resource isolation.
[0107] S2073: Determine that the script is not re-executed.
[0108] S208: Determine the execution status of the script.
[0109] S2081: If it is determined that the script has been executed, the cloud phone image saving path parameter in the multi-threaded sequence parameter is saved, and the current image name is named according to the network identifier of the cloud phone that successfully connected for the first time; according to the current image name, the image in the multi-threaded sequence parameter is retrieved back to the local directory of the cloud phone through the local file storage path parameter, and it is determined that the cloud phone is running normally.
[0110] S2082: If it is determined that the script is not executed, the script is directly executed in the background through a suspend command.
[0111] S209: Re-determine whether the cloud phone connection is normal.
[0112] S2091: Re-determine that the cloud phone connection is abnormal, then reconnect and determine the reconnection status.
[0113] S2092: Re-confirm that the cloud phone connection is normal.
[0114] S210: Determine whether the execution time has been reached according to the total program execution time parameter in the multi-thread sequence parameter.
[0115] S2101: If the execution time is reached, the result indicating that the cloud phone is running normally is output.
[0116] It should be noted that after the execution time is reached, the result that the cloud phone is running normally is output and the cloud phone operation monitoring program is exited.
[0117] S2102: If the execution time is not reached, determine whether the input setting parameter exists according to the manually terminated program keyword parameter in the multi-thread sequence parameter.
[0118] S2111: If the input setting parameters exist, output the result that the cloud phone is running normally.
[0119] It should be noted that after determining that the input setting parameters exist according to the keyword parameter that can manually terminate the program in the multi-threaded sequence parameters, the result that the cloud phone is running normally is output, and the cloud phone operation monitoring program is exited.
[0120] S2112: If the input setting parameters do not exist, obtain the cloud phone interface image execution interval parameters according to the multi-threaded sequence parameters, repeatedly save the cloud phone image saving path parameters in the multi-threaded sequence parameters, and name the current image according to the network identifier of the cloud phone that successfully connected for the first time; retrieve the image in the multi-threaded sequence parameters according to the local file storage path parameters (1) and retrieve it to the local directory of the cloud phone according to the current image name, then determine that the cloud phone is running normally.
[0121] From the above description, it can be known that the present invention can replace the execution scripts of different applications or games, or not execute different scripts by setting dynamic script paths. In the detection process of games or applications, some different operations may need to be performed. At this time, the script can be flexibly changed to increase the versatility of the entire solution. At the same time, if you just want to monitor the screen of the cloud machine, you don’t need to do additional operations and you don’t need to place the script to achieve the result of monitoring the screen.
[0122] The present invention obtains the faulty cloud phone network identification by setting the faulty cloud phone network identification parameter, thereby avoiding script termination or computer crash during execution. The IP data of the faulty cloud machine that is lost can be viewed locally, and a custom directory can be customized for modification and unified management.
[0123] By setting the execution interval parameters for obtaining the cloud phone interface image, the present invention can customize the setting according to the detection frequency required by the user, avoid different application requirements from being executed too frequently or with too long intervals, and also avoid affecting device performance.
[0124] The present invention sets the total execution time parameters of the program and sets the monitoring period. It can monitor the batch of cloud mobile phone screens according to the set duration and terminate the program after the running time is reached, and perform designated period monitoring according to business requirements.
[0125] The present invention sets the local file storage path parameter for retrieving pictures, so when viewing the current cloud phone screen, there is no need to open and view them one by one.
[0126] The present invention determines whether the script needs to be re-executed by setting the re-execution script parameter. A batch of cloud phones may have cloud phones that have executed the script and cloud phones that have not executed the script. At this time, the newly added cloud phone wants to execute the script, but the cloud phones that have already executed the script do not want to stop re-execution. By setting the non-re-execution parameter, the cloud phones that have already executed the script do not re-execute, and the cloud phones that have not executed the script execute normally. If it is not set by default, all current cloud phones will execute the script, and the cloud phones that have already executed the script will automatically kill the same script and re-execute it.
[0127] The present invention sets the cloud phone's path parameters for saving pictures and sets the directory for storing pictures inside the cloud phone. When different devices may have some permission problems, resulting in the inability to store, the relevant pictures are obtained by manually specifying an available directory for storage.
[0128] The present invention can achieve a single or multiple multi-threaded or single-threaded execution effect by setting cloud phone network identification parameters and setting a batch of IP addresses of cloud phones.
[0129] The present invention can manually terminate the program by setting a keyword parameter, which defaults to exec. When the console inputs the exec parameter, the program stops running. The running of the current program can be manually stopped without directly forcibly closing it.
[0130] The present invention sets the cloud phone reconnection times parameter and the reconnection judgment times according to the actual business scenario to prevent misjudgment as an abnormal cloud phone. The cloud phone reconnection times can be appropriately increased or decreased in different scenarios.
[0131] like Figure 3 As shown, Figure 31 is a schematic diagram of a cloud phone operation monitoring system according to an embodiment of the present invention. A cloud phone operation monitoring system 10 includes:
[0132] The multi-thread sequence parameter setting module 11 is used to set a number of multi-thread sequence parameters.
[0133] The cloud phone connection determination module 12 is used to determine that the cloud phone connection is normal according to the cloud phone network identification parameter in the multi-threaded sequence parameter, and then mark the cloud phone as a cloud phone that has successfully connected for the first time.
[0134] The current picture name determination module 13 is used to save the multi-thread sequence parameters and determine the current picture name according to the network identifier of the cloud phone that is successfully connected for the first time.
[0135] The cloud phone is running normally determining module 14 is used to retrieve the image file storage path back to the local directory of the cloud phone according to the current image name and multi-thread sequence parameters, and then determine that the cloud phone is running normally.
[0136] In a specific implementation scenario, in the multi-threaded sequence parameter setting module 11, several multi-threaded sequence parameters are set, including: setting the local file storage path parameter for retrieving pictures; setting the text storage path parameter for the network identifier after the cloud phone connection fails; setting the execution interval parameter for obtaining cloud phone interface pictures; setting the dynamic script path parameter; setting the total program execution time parameter; setting the script parameter for re-executing all cloud machines in the current batch; setting the cloud phone network identification parameter; setting the keyword parameter for the program parameter that can be manually terminated; setting the path parameter for saving pictures in the cloud phone; and setting the number of cloud machine reconnection parameters.
[0137] Furthermore, in the cloud phone connection determination module 12, it is determined according to the cloud phone network identification parameters in the multi-threaded sequence parameters that the cloud phone's first connection is abnormal, and then reconnection is performed to determine the reconnection situation; if the reconnection is determined to be successful, it is judged whether the cloud phone is the cloud phone that has successfully connected for the first time; if the cloud phone is the cloud phone that has successfully connected for the first time, the cloud phone that has successfully connected for the first time re-determines whether the cloud phone's first connection is normal according to the cloud phone network identification parameters in the multi-threaded sequence parameters; if the cloud phone is not the cloud phone that has successfully connected for the first time, the cloud phone save image path parameters in the multi-threaded sequence parameters are saved, and the current image name is named according to the network identification of the cloud phone that has successfully connected for the first time.
[0138] Furthermore, in the current picture name determination module 13, the multi-thread sequence parameters are saved, and the current picture name is determined according to the network identifier of the cloud phone that is successfully connected for the first time. According to the cloud phone picture saving path parameter in the multi-thread sequence parameters, the directory for storing pictures inside the cloud phone is set. When different devices may have some permission problems and cannot be stored, the relevant pictures are obtained by manually specifying an available directory for storage.
[0139] Finally, in the cloud phone normal operation determination module 14, the image retrieval file storage path is retrieved to the local directory of the cloud phone according to the current image name and the multi-threaded sequence parameter, and it is determined that the cloud phone is running normally. According to the current image name, the image retrieval local file storage path parameter in the multi-threaded sequence parameter is retrieved to the local directory of the cloud phone. When viewing the current cloud phone screen through the image retrieval local file storage path parameter, there is no need to open and view them one by one.
[0140] like Figure 4 As shown, Figure 4 The storage medium 20 stores at least one computer program 21, which is executed by a processor to implement the following. Figure 1 and Figure 2 A cloud phone operation monitoring method is shown, and the detailed method can be found above, which will not be repeated here. In one embodiment, the storage medium 30 can be a storage chip, a hard disk or a mobile hard disk or a USB flash drive, an optical disk or other readable and writable storage tools, or a server and the like.
[0141] The above describes specific embodiments of the present specification, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0142] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0143] The apparatus, device, non-volatile computer-readable storage medium and method provided in the embodiments of this specification correspond to each other, and therefore, the apparatus, device, and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding apparatus, device, and non-volatile computer storage medium will not be repeated here.
[0144] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0145] For the convenience of description, the above device is described by being divided into various units according to their functions and described separately. Of course, when implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware. It should be understood by those skilled in the art that this specification embodiment can be provided as a method, system, or computer program product. Therefore, this specification embodiment can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification embodiment can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0146] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0149] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0150] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0151] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0152] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0153] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0154] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0155] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for monitoring the operation of a cloud phone, It is characterized in that The method comprises: Set several multi-threaded sequence parameters, including: Set several multi-threaded sequence parameters, specifically: Set the local file storage path parameter for image retrieval. If not set, it will be stored in the current script directory by default; Set the text storage path of the network logo after the cloud phone connection fails. If not set, it will be stored in the current script directory by default; Set the execution interval parameter for obtaining cloud phone interface pictures, the default is once every 30 seconds; Set the dynamic script path. If not set, the script will not be executed by default; Set the total program execution time parameter, in minutes; Set the re-execution script parameter for the current batch of cloud phones; Set the cloud phone network identification parameter; Set the keyword parameter for manually terminating the program parameter, the default is exec, and the program will stop running when the console enters the exec parameter; Set the cloud phone save image path parameter; Set the cloud phone reconnection times parameter, and the cloud machine will be judged as abnormal if the times are exceeded; Determine that the first connection of the cloud phone is normal according to the cloud phone network identification parameter in the multi-threaded sequence parameter, and mark the cloud phone as a cloud phone that successfully connected for the first time; determine that the first connection of the cloud phone is abnormal according to the cloud phone network identification parameter in the multi-threaded sequence parameter, then reconnect and determine the reconnection situation; If the reconnection is successful, then determining whether the cloud phone is the cloud phone that is successfully connected for the first time; If the cloud phone is the cloud phone that has been successfully connected for the first time, the cloud phone that has been successfully connected for the first time re-determines that the cloud phone is connected normally for the first time according to the cloud phone network identification parameter in the multi-thread sequence parameter; If the cloud phone is not the cloud phone that is successfully connected for the first time, then the cloud phone image saving path parameter in the multi-threaded sequence parameter is saved, and the current image name is named according to the network identifier of the cloud phone that is successfully connected for the first time; According to the current picture name, the picture in the multi-thread sequence parameter is retrieved to the local file storage path parameter to the local directory of the cloud phone, and it is determined that the cloud phone is running normally; If it is determined that the reconnection is unsuccessful, then determine whether the number of reconnections has been exceeded; If the number of reconnections is exceeded, the cloud phone connection is determined to be abnormal according to the cloud phone reconnection number parameter in the multi-thread sequence parameter, and the network identifier of the cloud phone is saved to the text storage path after the cloud phone connection fails in the multi-thread sequence parameter; Replace the fault identification user interface diagram according to the network identification of the cloud phone, and output the result of abnormal operation of the cloud phone; If the number of reconnections is not exceeded, the cloud phone reconnects again after a preset time period according to the execution interval parameter in the multi-thread sequence parameter to determine the reconnection status.
2. A cloud phone operation monitoring method according to claim 1, It is characterized in that After determining that the cloud phone connection is normal according to the cloud phone network identification parameter in the multi-thread sequence parameter and marking the cloud phone as a cloud phone that has successfully connected for the first time, specifically includes: Determine the existence of the script, and set the path of the script according to the dynamic script path of the multi-threaded sequence parameter; If it is determined that the script does not exist, then the cloud phone image saving path parameter in the multi-threaded sequence parameter is saved, and the current image name is named according to the network identifier of the cloud phone that is successfully connected for the first time; If it is determined that the script exists, the start or re-execution of the script is determined according to the re-execution script parameter of the multi-thread sequence parameter.
3. A cloud phone operation monitoring method according to claim 2, It is characterized in that The determining that the script exists, then determining the start or re-execution of the script according to the re-execution script parameter of the multi-thread sequence parameter, specifically includes: If it is determined that the script is to be re-executed, the script process is automatically killed, and the script is executed in the background through a suspend command; If it is determined that the script is not started, the script is directly executed in the background through a suspend command; If it is determined that the script has not been re-executed, it is determined whether the script has been executed.
4. A cloud phone operation monitoring method according to claim 3, It is characterized in that The step of determining that the script has not been re-executed, then determining whether the script has been executed, specifically includes: If the script has been executed, the cloud phone image saving path parameter in the multi-threaded sequence parameter is saved, and the current image name is named according to the network identifier of the cloud phone that is successfully connected for the first time; If the script is not executed, the script is directly executed in the background through a suspend command.
5. A cloud phone operation monitoring method according to claim 4, It is characterized in that The retrieving the image file storage path to the local directory of the cloud phone according to the current image name and the multi-thread sequence parameter, and after determining that the cloud phone is running normally, specifically includes: Re-determine that the cloud phone connection is abnormal, then reconnect, and determine the reconnection status; Re-determine that the cloud phone is connected normally, and then determine whether the execution time has been reached according to the total program execution time parameter in the multi-thread sequence parameter; If the execution time is reached, the result that the cloud phone runs normally is output; If the execution time is not reached, the existence of the input setting parameters is determined based on the manually terminated program keyword parameter in the multi-threaded sequence parameter, and the result that the cloud phone is running normally is output.
6. A cloud phone operation monitoring method according to claim 5, It is characterized in that If the execution time is not reached, the manual program termination keyword parameter in the multi-thread sequence parameter is used to determine whether the input setting parameter exists, and output the result that the cloud phone runs normally, and further includes: If the execution time is not reached, the program keyword parameter that can be manually terminated in the multi-threaded sequence parameter is used to determine that the input setting parameter does not exist, then the cloud phone interface picture execution interval parameter is obtained according to the multi-threaded sequence parameter, the cloud phone picture saving path parameter in the multi-threaded sequence parameter is repeatedly saved, and the current picture name is named according to the network identifier of the cloud phone that successfully connected for the first time; According to the current picture name, the picture in the multi-thread sequence parameter is retrieved to the local file storage path parameter to the local directory of the cloud phone, and it is determined that the cloud phone is running normally.
7. A cloud phone operation monitoring system, It is characterized in that The system comprises: The multi-threaded sequence parameter setting module is used to set several multi-threaded sequence parameters, including: setting several multi-threaded sequence parameters, specifically: setting the local file storage path parameter for retrieving pictures, if not set, the default is to store in the current script directory; setting the text storage path of the network logo after the cloud phone connection fails, if not set, the default is to store in the current script directory; setting the execution interval parameter for obtaining cloud phone interface pictures, the default is once every 30 seconds; setting the dynamic script path, if not set, the script will not be executed by default; setting the total program execution time parameter, in minutes; setting the re-execution script parameter for the current batch of cloud phones; setting the cloud phone network identification parameter; setting the keyword parameter for manually terminating the program parameter, the default is exec, and the program will stop running when the console enters the exec parameter; setting the cloud phone save picture path parameter; setting the cloud phone reconnection times parameter, and judging the cloud machine as abnormal if the times are exceeded; A cloud phone connection determination module is used to determine that the first connection of the cloud phone is abnormal according to the cloud phone network identification parameter in the multi-threaded sequence parameter, and then reconnect to determine the reconnection situation; if it is determined that the reconnection is unsuccessful, it is judged whether the number of reconnections is exceeded; if the number of reconnections is exceeded, the cloud phone connection is determined to be abnormal according to the cloud phone reconnection number parameter in the multi-threaded sequence parameter, and the network identification of the cloud phone is saved to the text storage path after the cloud phone connection failure of the multi-threaded sequence parameter; replace the fault identification user interface diagram according to the network identification of the cloud phone, and output the result of the abnormal operation of the cloud phone; if the number of reconnections is not exceeded, the cloud phone reconnects again after a preset time period according to the execution interval parameter in the multi-threaded sequence parameter to determine the reconnection situation; if the reconnection is successful, it is judged whether the cloud phone is the cloud phone that has successfully connected for the first time; if the cloud phone is the cloud phone that has successfully connected for the first time, the cloud phone that has successfully connected for the first time re-determines that the first connection of the cloud phone is normal according to the cloud phone network identification parameter in the multi-threaded sequence parameter; A current picture name determination module, for saving the cloud phone picture saving path parameter in the multi-thread sequence parameter if the cloud phone is not the cloud phone that is successfully connected for the first time, and naming the current picture according to the network identifier of the cloud phone that is successfully connected for the first time; The cloud phone is running normally and determining module is used to retrieve the image retrieval file storage path to the local directory of the cloud phone according to the current image name and multi-thread sequence parameters, and then determine that the cloud phone is running normally.
8. A storage medium, It is characterized in that A computer program is stored, and when the computer program is executed by a processor, the processor is caused to execute the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Cloud mobile phone fault monitoring method and system
CN110149653A
Fault processing method based on cloud mobile phone, device and equipment and storage medium
CN113194191A
Performance monitoring method and device of cloud mobile phone, equipment and storage medium
CN113704063A
Cloud mobile phone monitoring method and device, electronic equipment and storage medium
CN114157584A
Cloud mobile phone information acquisition method and device, equipment and storage medium
CN114374703A
