Abnormality monitoring method and device of data channel, electronic equipment and vehicle
Real-time data channel monitoring using daemon threads addresses untimely network monitoring issues, enhancing data transmission quality and user experience by detecting abnormalities promptly.
Patent Information
- Application Number
- CN202310778083.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2024-12-31
AI Technical Summary
Existing wireless communication technologies fail to timely monitor abnormalities in data channels, leading to untimely network monitoring and reduced user experience during data transmission between clients and remote servers.
A method and device utilizing a daemon thread to monitor data channels for channel information, performing network monitoring based on status strategies to detect abnormalities in real-time, including multiple daemon threads for parallel monitoring of network detection, negative feedback, transmission success rate, and wireless network signal quality.
Real-time monitoring of data channel abnormalities shortens discovery time, ensuring data transmission quality and improving user experience by promptly addressing network issues.
Smart Images

Figure CN119233299A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data channel monitoring, and specifically to a method, device, electronic equipment and vehicle for monitoring abnormalities in a data channel. Background Art
[0002] With the development of wireless communication technology, people are increasingly dependent on wireless terminals.
[0003] In the prior art, when a client of a wireless terminal communicates data with a remote server, the client attempts to re-register with the network and dial up only when the mobile network is disconnected or the Packet Data Network (PDN) connection is disconnected. This results in untimely network monitoring, which affects data transmission between the client and the remote server, thereby reducing the user experience. Summary of the invention
[0004] In view of this, the present disclosure provides a method, device and electronic device for monitoring abnormalities in a data channel, the main purpose of which is to solve the problem that abnormalities in a data channel are not monitored in a timely manner, affecting data transmission between a client and a remote server, thereby reducing user experience.
[0005] In a first aspect, the present disclosure provides a method for monitoring anomalies of a data channel, comprising:
[0006] Creating a data channel between the host computer system and the server, wherein the data channel is used for data communication between the host computer system and the server;
[0007] Using a daemon thread to monitor the data channel to obtain channel information of the data channel;
[0008] The data channel is subjected to network monitoring based on the channel information, and it is determined whether the communication status of the data channel is abnormal according to a status monitoring strategy.
[0009] In a second aspect, the present disclosure provides a data channel abnormality monitoring device, comprising:
[0010] A creation module, used for creating a data channel between the host computer system and the server, wherein the data channel is used for data communication between the host computer system and the server;
[0011] A monitoring module, used to monitor the data channel using a daemon thread to obtain channel information of the data channel;
[0012] The judgment module is used to perform network monitoring on the data channel based on the channel information, and judge whether the communication state of the data channel is abnormal according to a state monitoring strategy.
[0013] In a third aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for monitoring abnormalities in a data channel described in the first aspect.
[0014] In a fourth aspect, the present disclosure provides an electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the method for monitoring abnormalities in a data channel as described in the first aspect when executing the computer program.
[0015] By means of the above technical scheme, the present disclosure provides a method, device and electronic device for monitoring abnormalities of a data channel. Compared with the current existing technology, the present disclosure can create a data channel between the host system and the server, and the data channel is used for data communication between the host system and the server; use a daemon thread to monitor the data channel to obtain channel information of the data channel; perform network monitoring on the data channel based on the channel information, and determine whether the communication status of the data channel is abnormal according to the status monitoring strategy. By applying the technical scheme of the present disclosure, the daemon thread is used to perform real-time network monitoring on the corresponding channel information, and the abnormal situation of the data channel can be monitored at the first time, which can shorten the time of discovering channel abnormalities, thereby ensuring the data transmission quality between the client and the remote server and improving the user experience.
[0016] The above description is only an overview of the technical solution of the present disclosure. In order to more clearly understand the technical means of the present disclosure, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand, the specific implementation methods of the present disclosure are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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.
[0018] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 A schematic diagram of a flow chart of a method for monitoring abnormality of a data channel provided by an embodiment of the present disclosure is shown;
[0020] Figure 2 A schematic diagram showing a flow chart of another method for monitoring abnormality of a data channel provided by an embodiment of the present disclosure;
[0021] Figure 3 A schematic diagram of the structure of a data channel abnormality monitoring device provided by an embodiment of the present disclosure is shown;
[0022] Figure 4 A schematic structural diagram of another data channel abnormality monitoring device provided in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0023] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0024] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0025] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0026] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0027] In order to improve the technical problem that the existing technology affects the data transmission between the client and the remote server due to untimely network monitoring, thereby reducing the user experience. The present disclosure embodiment provides a method for abnormal monitoring of a data channel, such as Figure 1 As shown, the method includes:
[0028] Step 101: Create a data channel between the host system and the server.
[0029] Among them, the data channel is used for data communication between the host system and the server; the host system can be a computer or single-chip microcomputer that directly sends operation instructions, is responsible for business logic, and is used to provide a user operation interaction interface and display feedback data to the user, such as a computer, a mobile phone, a tablet, a panel, a touch screen, etc. In the embodiment of the present disclosure, the host system is taken as an example of a mobile phone to illustrate the technical solution in the present disclosure, but it does not constitute a specific limitation on the technical solution in the present disclosure. The server can be used to provide an access interface so that a data channel can be established between the host system and the server.
[0030] The execution subject of the embodiment of the present disclosure may be a baseband system, which is used to provide network access capabilities and data channels. The baseband system can create a first data channel with the network operator by registering the network, wherein the first data channel can be a channel for data transmission through a wireless network, and obtain the network and bearer information of the network operator through the first data channel, wherein the bearer information may include an Internet Protocol (IP Address, IP) address, which is not specifically limited. The baseband system transmits the network and bearer information to the host computer system through the control channel between the host computer system, and the host computer system receives the network and bearer information, completes the initialization, and establishes a second data channel with the baseband system, the second data channel can be a local data channel for data communication between the host computer system and the server, and the creation success instruction is transmitted to the baseband system through the second data channel. The host computer system can connect to the network operator through the second data channel between the baseband system and the first data channel between the baseband system and the network operator, and the network operator can access the server through the third data channel, which is a specific data channel for accessing the server. The host computer system can remotely access data connection and exchange data with the server through the first data channel, the second data channel and the third data channel.
[0031] For the embodiments of the present disclosure, the specific implementation method of creating a data channel between the host computer system and the server can be described as: creating a first data channel with the network operator and a second data channel with the host computer system, determining a third data channel for the network operator to establish a connection with the server, and determining the first data channel, the second data channel and the third data channel as the data channel between the host computer system and the server.
[0032] Step 102: Use the daemon thread to monitor the data channel and obtain channel information of the data channel.
[0033] Among them, channel information is information transmitted in the data channel, which may include image information, audio information, signal data, etc., and there is no specific restriction on this; the daemon thread is also called a background thread or a service thread. The daemon thread serves the user thread. When all the user threads in the program are executed, the daemon thread will also end. For the disclosed embodiment, the daemon thread is used to monitor the corresponding channel information in the data channel, perform network monitoring on the data channel based on the channel information, and determine whether the communication status of the data channel is abnormal according to the status monitoring strategy. The implementation process can refer to the specific description in step 103 of the embodiment.
[0034] Step 103: Perform network monitoring on the data channel based on the channel information, and determine whether the communication state of the data channel is abnormal according to the state monitoring strategy.
[0035] Among them, the state monitoring strategy is a strategy for determining whether the communication state of the data channel is an abnormal state. The state monitoring strategy may include a variety of abnormal state monitoring strategies for determining whether the communication state of the data channel is an abnormal state, and this is not limited. Exemplarily, the abnormal state monitoring strategy may be to monitor the positive feedback message ratio in the data channel. If the positive feedback message ratio is less than the preset message ratio, it indicates that the data channel transmission is abnormal, wherein the positive feedback message is a positive feedback (Acknowledgement, Ack) message. After receiving the data, the receiver replies to the positive feedback message to the sender to inform the sender that the data has been received. The preset message ratio is a ratio value that can be pre-set according to the actual situation. The abnormal state is a communication state in which the network signal strength is less than the preset strength threshold. The preset strength threshold is a pre-set network signal strength value that can ensure that the user does not experience jamming during use.
[0036] For the embodiments of the present disclosure, the purpose of network monitoring of the data channel is to evaluate the network signal quality of the data channel. If the current network signal strength is less than the preset strength threshold during the transmission of channel information of the data channel, and the communication state of the data channel is judged to be abnormal according to the state monitoring strategy, it proves that the current network signal quality is reduced, which greatly shortens the abnormality discovery time and improves the user experience.
[0037] In summary, according to the data channel abnormality monitoring method provided by the present disclosure, compared with the current existing technology, the present disclosure can create a data channel between the host system and the server, and the data channel is used for data communication between the host system and the server; use a daemon thread to monitor the data channel to obtain the channel information of the data channel; perform network monitoring on the data channel based on the channel information, and determine whether the communication state of the data channel is abnormal according to the state monitoring strategy. By applying the technical solution of the present disclosure, the daemon thread is used to perform real-time network monitoring on the corresponding channel information, and the abnormal situation of the data channel can be monitored at the first time, which can shorten the channel abnormality discovery time, thereby ensuring the data transmission quality between the client and the remote server and improving the user experience.
[0038] Further, as a refinement and extension of the above embodiment, in order to fully illustrate the specific implementation process of the method of the embodiment of the present disclosure, the embodiment of the present disclosure provides the following Figure 2 The specific method shown includes:
[0039] Step 201: Create a data channel between the host computer system and the server, where the data channel is used for data communication between the host computer system and the server.
[0040] For the implementation process of the embodiment of the present disclosure, please refer to the relevant description in step 101 of the embodiment, which will not be repeated here.
[0041] Step 202: Create multiple daemon threads respectively, and monitor the channel information of the data channel in parallel and in real time through the multiple daemon threads. The multiple daemon threads include at least two of the first daemon thread, the second daemon thread, the third daemon thread, and the fourth daemon thread.
[0042] The channel information may include network detection information, negative feedback message ratio, transmission success rate, and wireless network signal measurement value, etc., which are not specifically limited.
[0043] For the disclosed embodiment, multiple daemon threads can be created on the baseband system respectively, wherein the first daemon thread is used to monitor the network detection information of the data channel, and the network detection information is used to characterize the transmission delay of the data channel during the data transmission process; the second daemon thread is used to monitor the negative feedback message ratio of the data channel, and the negative feedback message ratio is used to characterize the loss ratio of the data channel during the data transmission process; the third daemon thread is used to monitor the transmission success rate of the data channel, and the transmission success rate is used to characterize the success ratio of the data channel during the data transmission process; the fourth daemon thread is used to monitor the wireless network signal measurement value of the data channel, and the wireless network signal measurement value is used to characterize the wireless network signal quality of the data channel. The first daemon thread, the second daemon thread, the third daemon thread and the fourth daemon thread can monitor the corresponding channel information in the data channel in real time and in parallel, and judge the communication status of the data channel based on the channel information. The specific implementation process can be found in the description of step 203 of the embodiment.
[0044] For the disclosed embodiment, when transmitting channel information, the first data channel, the second data channel and the third data channel need to be constructed into a complete data channel to transmit channel information. During the transmission process, each complete data channel will contain a variety of channel information. The function of each of the first daemon thread, the second daemon thread and the third daemon thread is to monitor the corresponding channel information of the complete data channel. Exemplarily, the first data channel is the channel between the baseband system and the network operator; the second data channel is the channel between the baseband system and the host system; the third data channel is the channel between the network operator and the server, and the complete data channel is the channel between the host system and the server. Each of the first daemon thread, the second daemon thread and the third daemon thread is suitable for monitoring the channel information of the complete data channel from the host system to the server.
[0045] For the embodiments of the present disclosure, channel information of a data channel is monitored in parallel and in real time by multiple daemon threads. The specific implementation method can be described as: using the first daemon thread to monitor the network detection information of the data channel, the network detection information is used to characterize the transmission delay of the data channel during data transmission; using the second daemon thread to monitor the negative feedback message ratio of the data channel, the negative feedback message ratio is used to characterize the loss ratio of the data channel during data transmission; using the third daemon thread to monitor the transmission success rate of the data channel, the transmission success rate is used to characterize the success ratio of the data channel during data transmission; using the fourth daemon thread to monitor the wireless network signal measurement value of the data channel, the wireless network signal measurement value is used to characterize the wireless network signal quality of the data channel.
[0046] Step 203: monitor different channel information using the abnormal status monitoring strategy corresponding to each channel information to obtain corresponding multiple monitoring results. If a preset number of monitoring results among the multiple monitoring results are abnormal, the communication status of the data channel is determined to be abnormal.
[0047] Among them, the abnormal status monitoring strategy is used to determine whether the data channel can transmit channel information normally. For example, the abnormal status monitoring strategy may be that the network signal strength is less than the preset strength threshold. If it is determined that the current network signal strength is less than the preset strength threshold, it indicates that the current network signal strength is low, then it can be determined that the communication status of the data channel is abnormal.
[0048] For the disclosed embodiment, the baseband system is mainly used to monitor whether the data channel meets the abnormal state monitoring strategy. For the disclosed embodiment, there are mainly two dimensions of abnormal state monitoring strategies, network layer (IP) data anomalies and wireless signal quality anomalies. The abnormal state monitoring strategy may include but is not limited to the following: data transmission delay, packet loss rate, success rate and wireless network signal measurement value. By monitoring the above multiple indicator data in parallel, a comprehensive judgment is made, thereby shortening the abnormal discovery event and reducing the misjudgment rate. When the network monitoring of the data transmission delay, packet loss rate, success rate and wireless network signal measurement value is performed, if there is a preset number of monitoring results that are abnormal, the communication state of the data channel is judged to be an abnormal state. Among them, the number of preset numbers can be pre-set according to the actual situation, and can include but is not limited to 2, 3, 4, etc., and there is no limitation on this.
[0049] In a specific application scenario, the baseband system can monitor the delivery time of the network detection information sent to the operator server by creating a first daemon thread. If the delivery time exceeds the preset delivery time period of the network detection information, it indicates that the data channel transmission is abnormal. Among them, network detection is a built-in function of the system. The network detection command can be used to check whether the network is unobstructed or the network connection speed. After using the network detection command, the current network status can be understood through the delivery time of the return information of the command. The first daemon thread is a thread used to monitor the delivery time of the network detection information.
[0050] In a specific application scenario, the baseband system can monitor the loss ratio of the data channel in the process of transmitting channel information by creating a second daemon thread, and can monitor the negative feedback message ratio in the data channel. If the negative feedback message ratio is greater than the preset message ratio, it indicates that the data channel transmission is abnormal. The negative feedback message is a negative feedback (NegativeAcknowledgement, NACK) message. The receiver sends a negative feedback message to the sender when the data is not received, to inform the sender that the data has not been received. The second daemon thread is a thread used to monitor the loss ratio of the data channel in the process of transmitting channel information.
[0051] In a specific application scenario, the baseband system can monitor the transmission success rate of the data channel during the transmission of channel information by creating a third daemon thread. If the transmission success rate is less than the preset success rate, it indicates that the data channel transmission is abnormal. The preset success rate is a success value that can be pre-set according to actual conditions. The third daemon thread is a thread that can be used to monitor the transmission success rate of the data channel during the transmission of channel information.
[0052] In a specific application scenario, the baseband system can monitor the periodic wireless network signal measurement value by creating a fourth daemon thread, wherein the fourth daemon thread is a thread for monitoring the wireless network signal measurement value. By reading the reference signal received power, reference signal received quality, received signal strength index and signal to interference plus noise ratio of the wireless network signal measurement value in the channel information, and comparing with the preset signal reference value, if at least one signal value is less than the preset signal reference value, it indicates that the data channel transmission is abnormal. Among them, the reference signal received power is the (Reference Signal ReceivedPower, RSRP) signal value, the reference signal received quality is the (Reference Signal Receiving Quality, RSRQ) signal value, the received signal strength index is the (Received Signal Strength Indicator, RSSI) signal value, the signal to interference plus noise ratio is the (Signal to Interference plus Noise Ratio, SINR) signal value, and the preset signal reference value is a reference value of each signal value that can be set in advance according to actual conditions, and there is no specific restriction on this.
[0053] For the embodiments of the present disclosure, for different channel information, monitoring is performed through the abnormal state monitoring strategy corresponding to each channel information to obtain corresponding multiple monitoring results. The specific implementation method can be described as: when the first daemon thread monitors the network detection information, it is determined whether the delivery time of the network detection information exceeds the preset delivery time period of the network detection information to obtain the first monitoring result, and the network detection information is used to characterize the transmission delay of the channel information during the transmission process; if the delivery time exceeds the preset delivery time period of the network detection information, the first monitoring result is abnormal; if the delivery time does not exceed the preset delivery time period of the network detection information, the first monitoring result is normal. When the second daemon thread monitors the negative feedback message ratio, it is determined whether the negative feedback message ratio is greater than the preset message ratio to obtain the second monitoring result, and the negative feedback message ratio is used to characterize the loss ratio of the channel information during the transmission process; if the negative feedback message ratio is greater than the preset message ratio, the second monitoring result is abnormal; if the negative feedback message ratio is less than or equal to the preset message ratio, the second monitoring result is normal. When the third daemon thread monitors the transmission success rate of the channel information, it determines whether the transmission success rate is less than the preset success rate to obtain the third monitoring result. The transmission success rate is used to characterize the success ratio of the channel information in the transmission process; if the transmission success rate is less than the preset success rate, the third monitoring result is abnormal; if the transmission success rate is greater than or equal to the preset success rate, the third monitoring result is normal. When the fourth daemon thread monitors the wireless network signal measurement value of the data channel, it determines whether the wireless network signal measurement value is less than the corresponding preset signal reference value to obtain the fourth monitoring result. The wireless network signal measurement value is used to characterize the wireless network signal quality of the data channel. The wireless network signal measurement value includes at least one of the following: reference signal received power, reference signal received quality, received signal strength index, and signal to interference plus noise ratio; if the wireless network signal measurement value is less than the corresponding preset signal reference value, the fourth monitoring result is abnormal; if the wireless network signal measurement value is greater than or equal to the corresponding preset signal reference value, the fourth monitoring result is normal.
[0054] For the embodiments of the present disclosure, when the current network signal strength is less than a preset strength threshold and the communication state of the data channel is judged to be an abnormal state according to the abnormal state monitoring strategy, it proves that the current network signal quality is reduced. In order to avoid the phenomenon of lag when the user uses the mobile phone due to the slow network speed, the embodiments of the present disclosure can switch the data channel to a backup data channel when it is detected that the network signal strength is less than a preset strength threshold and the communication state of the data channel is judged to be an abnormal state, or directly notify the host computer system that the communication state of the data channel is an abnormal state when the communication state of the data channel is judged to be an abnormal state.
[0055] For the embodiments of the present disclosure, after determining that the communication status of the data channel is an abnormal state, the specific implementation method can be described as: notifying the host computer system that the communication status of the data channel is an abnormal state; or, notifying the host computer system to disconnect the data connection with the server and switch the data channel to a backup data channel, which is a channel for data communication to be established between the host computer system and the server.
[0056] In summary, according to the data channel abnormality monitoring method provided by the present disclosure, compared with the current existing technology, the present disclosure can create a data channel between the host system and the server, and the data channel is used for data communication between the host system and the server; use a daemon thread to monitor the data channel to obtain the channel information of the data channel; perform network monitoring on the data channel based on the channel information, and determine whether the communication state of the data channel is abnormal according to the state monitoring strategy. By applying the technical solution of the present disclosure, the daemon thread is used to perform real-time network monitoring on the corresponding channel information, and the abnormal situation of the data channel can be monitored at the first time, which can shorten the channel abnormality discovery time, thereby ensuring the data transmission quality between the client and the remote server and improving the user experience.
[0057] Based on the above Figure 1 and Figure 2 The specific implementation of the method shown in the embodiment provides a data channel abnormality monitoring device, such as Figure 3 As shown, the device includes: a creation module 31, a monitoring module 32, and a judgment module 33;
[0058] A creation module 31 may be used to create a data channel between the host computer system and the server, the data channel being used for data communication between the host computer system and the server;
[0059] The monitoring module 32 can be used to monitor the data channel using the daemon thread to obtain channel information of the data channel;
[0060] The judgment module 33 may be used to perform network monitoring on the data channel based on the channel information, and judge whether the communication status of the data channel is abnormal according to the status monitoring strategy.
[0061] In a specific application scenario, the creation module 31 can be used to create a first data channel between the network operator and a second data channel with the host system; determine a third data channel for the network operator to establish a connection with the server; and determine the first data channel, the second data channel, and the third data channel as data channels between the host system and the server.
[0062] In a specific application scenario, the monitoring module 32 can be used to create multiple daemon threads respectively, and the multiple daemon threads include at least two of the first daemon thread, the second daemon thread, the third daemon thread and the fourth daemon thread; and monitor the channel information of the data channel in parallel and in real time through multiple daemon threads.
[0063] In a specific application scenario, the channel information includes network detection information, negative feedback message ratio, transmission success rate and wireless network signal measurement value. The monitoring module 32 can be used to use the first daemon thread to monitor the network detection information of the data channel, and the network detection information is used to characterize the transmission delay of the data channel during the data transmission process; use the second daemon thread to monitor the negative feedback message ratio of the data channel, and the negative feedback message ratio is used to characterize the loss ratio of the data channel during the data transmission process; use the third daemon thread to monitor the transmission success rate of the data channel, and the transmission success rate is used to characterize the success ratio of the data channel during the data transmission process; use the fourth daemon thread to monitor the wireless network signal measurement value of the data channel, and the wireless network signal measurement value is used to characterize the wireless network signal quality of the data channel.
[0064] In a specific application scenario, the status monitoring strategy includes multiple abnormal status monitoring strategies. The judgment module 33 can be used to monitor different channel information through the abnormal status monitoring strategies corresponding to each channel information to obtain corresponding multiple monitoring results; if there are a preset number of abnormal monitoring results among the multiple monitoring results, the communication status of the data channel is judged to be an abnormal state.
[0065] In a specific application scenario, the judgment module 33 can be used to determine whether the delivery time of the network detection information exceeds the preset delivery time period of the network detection information when the first daemon thread monitors the network detection information, and obtain the first monitoring result. The network detection information is used to characterize the transmission delay of the channel information during the transmission process; if the delivery time exceeds the preset delivery time period of the network detection information, the first monitoring result is abnormal; if the delivery time does not exceed the preset delivery time period of the network detection information, the first monitoring result is normal. When the second daemon thread monitors the negative feedback message ratio, it is determined whether the negative feedback message ratio is greater than the preset message ratio to obtain the second monitoring result. The negative feedback message ratio is used to characterize the loss ratio of the channel information during the transmission process; if the negative feedback message ratio is greater than the preset message ratio, the second monitoring result is abnormal; if the negative feedback message ratio is less than or equal to the preset message ratio, the second monitoring result is normal. When the third daemon thread monitors the transmission success rate of the channel information, it determines whether the transmission success rate is less than the preset success rate to obtain the third monitoring result. The transmission success rate is used to characterize the success ratio of the channel information in the transmission process; if the transmission success rate is less than the preset success rate, the third monitoring result is abnormal; if the transmission success rate is greater than or equal to the preset success rate, the third monitoring result is normal. When the fourth daemon thread monitors the wireless network signal measurement value of the data channel, it determines whether the wireless network signal measurement value is less than the corresponding preset signal reference value to obtain the fourth monitoring result. The wireless network signal measurement value is used to characterize the wireless network signal quality of the data channel. The wireless network signal measurement value includes at least one of the following: reference signal received power, reference signal received quality, received signal strength index, and signal to interference plus noise ratio; if the wireless network signal measurement value is less than the corresponding preset signal reference value, the fourth monitoring result is abnormal; if the wireless network signal measurement value is greater than or equal to the corresponding preset signal reference value, the fourth monitoring result is normal.
[0066] In specific application scenarios, such as Figure 4 As shown, the device further includes: a notification module 34 and a switching module 35;
[0067] The notification module 34 is used to notify the host computer system that the communication status of the data channel is abnormal; or,
[0068] The switching module 35 is used to notify the host computer system to disconnect the data connection with the server and switch the data channel to the standby data channel, which is the channel for data communication to be established between the host computer system and the server.
[0069] It should be noted that for other corresponding descriptions of the functional units involved in the data channel switching device provided in this embodiment, reference can be made to Figure 1 and Figure 2 The corresponding description in will not be repeated here.
[0070] Based on the above Figure 1 and Figure 2 The method shown in the embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figure 1 and Figure 2 The method shown.
[0071] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0072] Based on the above Figure 1 and Figure 2 The method shown, and Figure 3 and Figure 4 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides an electronic device that can be configured on the vehicle (such as an electric vehicle) side, and the device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 and Figure 2 The method shown.
[0073] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0074] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0075] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0076] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the solution of this embodiment, compared with the current prior art, the present disclosure can create a data channel between the host system and the server, and the data channel is used for data communication between the host system and the server; use a daemon thread to monitor the data channel to obtain the channel information of the data channel; perform network monitoring on the data channel based on the channel information, and determine whether the communication status of the data channel is abnormal according to the status monitoring strategy. By applying the technical solution of the present disclosure, the corresponding channel information is monitored in real time through the network using a daemon thread, and the abnormal situation of the data channel can be monitored at the first time, which can shorten the channel abnormality discovery time, thereby ensuring the data transmission quality between the client and the remote server and improving the user experience.
[0077] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0078] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.
Claims
1. A method for monitoring abnormality of a data channel, characterized in that: The method comprises: Creating a data channel between the host computer system and the server, wherein the data channel is used for data communication between the host computer system and the server; Using a daemon thread to monitor the data channel to obtain channel information of the data channel; The data channel is subjected to network monitoring based on the channel information, and it is determined whether the communication status of the data channel is abnormal according to a status monitoring strategy.
2. The method according to claim 1, characterized in that The step of creating a data channel between the host computer system and the server includes: Creating a first data channel with a network operator and a second data channel with the host computer system; Determine a third data channel for establishing a connection between the network operator and the server; The first data channel, the second data channel and the third data channel are determined as data channels between the host computer system and the server.
3. The method according to claim 2, characterized in that The using a daemon thread to monitor the data channel to obtain channel information of the data channel includes: Creating a plurality of daemon threads respectively, wherein the plurality of daemon threads include at least two of a first daemon thread, a second daemon thread, a third daemon thread, and a fourth daemon thread; The channel information of the data channel is monitored in parallel and in real time by the multiple daemon threads.
4. The method according to claim 3, characterized in that The channel information includes network detection information, negative feedback message ratio, transmission success rate and wireless network signal measurement value, and the channel information of the data channel is monitored in parallel and in real time by the multiple daemon threads, including: Using the first daemon thread to monitor network detection information of the data channel, the network detection information is used to characterize the transmission delay of the data channel during data transmission; Using the second daemon thread to monitor the negative feedback message ratio of the data channel, the negative feedback message ratio is used to characterize the loss ratio of the data channel during data transmission; Using the third daemon thread to monitor the transmission success rate of the data channel, the transmission success rate is used to characterize the success ratio of the data channel in the data transmission process; The fourth daemon thread is used to monitor a wireless network signal measurement value of the data channel, where the wireless network signal measurement value is used to characterize a wireless network signal quality of the data channel.
5. The method according to claim 4, characterized in that The state monitoring strategy includes a plurality of abnormal state monitoring strategies, and the network monitoring of the data channel based on the channel information and judging whether the communication state of the data channel is an abnormal state according to the state monitoring strategy include: For different channel information, monitoring is performed using an abnormal state monitoring strategy corresponding to each channel information to obtain corresponding multiple monitoring results; If a preset number of monitoring results among the multiple monitoring results are abnormal, it is determined that the communication state of the data channel is an abnormal state.
6. The method according to claim 5, characterized in that The monitoring is performed for different channel information by using an abnormal state monitoring strategy corresponding to each channel information to obtain corresponding multiple monitoring results, including: When the first daemon thread monitors the network detection information, it is determined whether the delivery time of the network detection information exceeds a preset delivery time period of the network detection information to obtain a first monitoring result, wherein the network detection information is used to characterize the transmission delay of the channel information during the transmission process; If the delivery time exceeds the preset delivery time period of the network detection information, the first monitoring result is abnormal; If the delivery time does not exceed the preset delivery time period of the network detection information, the first monitoring result is normal.
7. The method according to claim 5, characterized in that The monitoring is performed for different channel information by using an abnormal state monitoring strategy corresponding to each channel information to obtain corresponding multiple monitoring results, including: When the second daemon thread monitors the negative feedback message ratio, it is determined whether the negative feedback message ratio is greater than a preset message ratio to obtain a second monitoring result, wherein the negative feedback message ratio is used to characterize the loss ratio of the channel information during the transmission process; If the negative feedback message ratio is greater than the preset message ratio, the second monitoring result is abnormal; If the negative feedback message ratio is less than or equal to the preset message ratio, the second monitoring result is normal.
8. The method according to claim 5, characterized in that The monitoring is performed for different channel information by using an abnormal state monitoring strategy corresponding to each channel information to obtain corresponding multiple monitoring results, including: When the third daemon thread monitors the transmission success rate of the channel information, it is determined whether the transmission success rate is less than a preset success rate to obtain a third monitoring result, wherein the transmission success rate is used to characterize the success ratio of the channel information in the transmission process; If the transmission success rate is less than the preset success rate, the third monitoring result is abnormal; If the transmission success rate is greater than or equal to the preset success rate, the third monitoring result is normal.
9. The method according to claim 5, characterized in that The monitoring is performed for different channel information by using an abnormal state monitoring strategy corresponding to each channel information to obtain corresponding multiple monitoring results, including: When the fourth daemon thread monitors the wireless network signal measurement value of the data channel, it is determined whether the wireless network signal measurement value is less than the corresponding preset signal reference value to obtain a fourth monitoring result, wherein the wireless network signal measurement value is used to characterize the wireless network signal quality of the data channel, and the wireless network signal measurement value includes at least one of the following: reference signal received power, reference signal received quality, received signal strength index, and signal to interference plus noise ratio; If the wireless network signal measurement value is less than the corresponding preset signal reference value, the fourth monitoring result is abnormal; If the wireless network signal measurement value is greater than or equal to the corresponding preset signal reference value, the fourth monitoring result is normal.
10. The method according to claim 5, characterized in that After determining that the communication state of the data channel is an abnormal state, the method further includes: Notify the host computer system that the communication status of the data channel is abnormal; or, The host computer system is notified to disconnect the data connection with the server and switch the data channel to a backup data channel, where the backup data channel is a channel for data communication to be established between the host computer system and the server.
11. A data channel abnormality monitoring device, characterized in that: include: A creation module, used for creating a data channel between the host computer system and the server, wherein the data channel is used for data communication between the host computer system and the server; A monitoring module, used to monitor the data channel using a daemon thread to obtain channel information of the data channel; The judgment module is used to perform network monitoring on the data channel based on the channel information, and judge whether the communication state of the data channel is abnormal according to a state monitoring strategy.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
13. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 10 is implemented.