Vehicle-mounted communication anomaly early warning method and device, electronic equipment and readable storage medium
By detecting the disconnection of the long-term connection between the vehicle terminal and the cloud server and the network signal strength, and pushing corresponding early warning information, the problem of users being unable to perceive vehicle communication failures is solved, and the accuracy of fault location is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SAIC GM WULING AUTOMOBILE CO LTD
- Filing Date
- 2022-09-27
- Publication Date
- 2026-05-29
AI Technical Summary
Users are unaware of communication failures between the vehicle terminal and the cloud server, or the reasons for such failures.
By detecting whether a long connection has been broken between the vehicle terminal and the cloud server, if a break occurs, the network signal strength is detected, and corresponding communication anomaly warning information is pushed based on the signal strength and other information to determine the cause of the fault.
This enables users to promptly detect vehicle communication faults and their causes, improving the accuracy of fault location.
Smart Images

Figure CN115643602B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle communication technology, and in particular to a method, device, electronic device and readable storage medium for early warning of abnormal vehicle communication. Background Technology
[0002] As connected vehicles become increasingly feature-rich, more and more users rely on normal communication between the vehicle terminal and the cloud platform for connected vehicle and connected vehicle services. However, when a communication failure occurs between the vehicle terminal and the cloud, users are usually unaware of the communication failure or the cause of the failure. Summary of the Invention
[0003] The main objective of this application is to provide a method, device, electronic device, and readable storage medium for early warning of abnormal vehicle communication, aiming to solve the technical problem that users cannot perceive vehicle communication failures and the causes of such failures.
[0004] To achieve the above objectives, this application provides a method for early warning of abnormal vehicle communication, applied to an in-vehicle terminal. The method includes:
[0005] Detect whether a long connection is broken between the vehicle terminal and the first cloud server. If a long connection is broken, detect the network signal strength of the area where the vehicle terminal is located.
[0006] Based on the network signal strength, detect the cause of the communication failure between the vehicle terminal and the first cloud server;
[0007] Based on the cause of the communication failure, a corresponding communication anomaly warning message is pushed.
[0008] Optionally, the step of detecting the cause of communication failure between the vehicle terminal and the first cloud server based on the network signal strength includes:
[0009] If the network signal strength is greater than the first preset signal strength threshold, the cause of the communication failure between the vehicle terminal and the first cloud server is detected through the second cloud server.
[0010] If the network signal strength is not greater than the first preset signal strength threshold, the communication failure is determined to be caused by poor network signal in the area where the vehicle terminal is located.
[0011] Optionally, the communication anomaly warning information includes a first warning information, a second warning information, and a third warning information, and the step of pushing the corresponding communication anomaly warning information according to the cause of the communication failure includes:
[0012] If the communication failure is caused by damage to the communication module of the vehicle terminal, then the corresponding first warning information will be pushed through the display module of the vehicle terminal.
[0013] If the communication failure is caused by an abnormality in the first cloud server, then the corresponding second warning information will be pushed through the display module of the vehicle terminal.
[0014] If the communication failure is caused by a poor network signal, the corresponding third warning information will be pushed through the display module of the vehicle terminal.
[0015] Optionally, the step of detecting the cause of the communication failure between the vehicle terminal and the first cloud server via the second cloud server includes:
[0016] Obtain the first key-value information that the first cloud server regularly maintains from the second cloud server;
[0017] If the acquisition fails, the communication failure is determined to be caused by damage to the communication module of the vehicle terminal.
[0018] If successful, the cause of the communication failure between the vehicle terminal and the first cloud server is detected based on the first key value information.
[0019] Optionally, the first key-value information includes a server status identifier and a first timestamp.
[0020] The step of detecting the cause of communication failure between the vehicle terminal and the first cloud server based on the first key value information includes:
[0021] If the server status identifier is the first preset identifier, then the communication failure is determined to be caused by an anomaly in the first cloud server.
[0022] If the server status identifier is the second preset identifier, then the cause of the communication failure between the vehicle terminal and the first cloud server is detected based on the first timestamp.
[0023] Optionally, the step of detecting the cause of the communication failure between the vehicle terminal and the first cloud server based on the first timestamp includes:
[0024] Obtain the time interval between the first timestamp and the current time;
[0025] If the time interval is greater than a preset time interval threshold, the communication failure is determined to be caused by an anomaly in the first cloud server.
[0026] Optionally, the vehicle communication anomaly early warning method further includes:
[0027] The second key-value information of the second cloud server is maintained regularly. The second key-value information includes vehicle status information and a corresponding second timestamp, so that the first cloud server can determine the vehicle status of the vehicle terminal by obtaining the second key-value information from the second cloud server.
[0028] To achieve the above objectives, this application also provides a vehicle communication anomaly warning device, applied to a vehicle terminal, the vehicle communication anomaly warning device comprising:
[0029] The first detection module is used to detect whether a long connection has been broken between the vehicle terminal and the first cloud server. If a long connection is broken, the network signal strength of the area where the vehicle terminal is located is detected.
[0030] The second detection module is used to detect the cause of communication failure between the vehicle terminal and the first cloud server based on the network signal strength.
[0031] The fault cause push module is used to push corresponding communication anomaly warning information based on the cause of the communication fault.
[0032] Optionally, the second detection module is further configured to:
[0033] If the network signal strength is greater than the first preset signal strength threshold, the cause of the communication failure between the vehicle terminal and the first cloud server is detected through the second cloud server.
[0034] If the network signal strength is not greater than the first preset signal strength threshold, the communication failure is determined to be caused by poor network signal in the area where the vehicle terminal is located.
[0035] Optionally, the communication anomaly warning information includes a first warning information, a second warning information, and a third warning information, and the fault cause push module is further used for:
[0036] If the communication failure is caused by damage to the communication module of the vehicle terminal, then the corresponding first warning information will be pushed through the display module of the vehicle terminal.
[0037] If the communication failure is caused by an abnormality in the first cloud server, then the corresponding second warning information will be pushed through the display module of the vehicle terminal.
[0038] If the communication failure is caused by a poor network signal, the corresponding third warning information will be pushed through the display module of the vehicle terminal.
[0039] Optionally, the second detection module is further configured to:
[0040] Obtain the first key-value information that the first cloud server maintains periodically from the second cloud server;
[0041] If the acquisition fails, the communication failure is determined to be caused by damage to the communication module of the vehicle terminal.
[0042] If successful, the cause of the communication failure between the vehicle terminal and the first cloud server is detected based on the first key value information.
[0043] Optionally, the first key-value information includes a server status identifier and a first timestamp, and the second detection module is further used for:
[0044] If the server status identifier is the first preset identifier, then the communication failure is determined to be caused by an anomaly in the first cloud server.
[0045] If the server status identifier is the second preset identifier, then the cause of the communication failure between the vehicle terminal and the first cloud server is detected based on the first timestamp.
[0046] Optionally, the second detection module is further configured to:
[0047] Obtain the time interval between the first timestamp and the current time;
[0048] If the time interval is greater than a preset time interval threshold, the communication failure is determined to be caused by an anomaly in the first cloud server.
[0049] Optionally, the vehicle-mounted communication anomaly warning device is further used for:
[0050] The second key-value information of the second cloud server is maintained regularly. The second key-value information includes vehicle status information and a corresponding second timestamp, so that the first cloud server can determine the vehicle status of the vehicle terminal by obtaining the second key-value information from the second cloud server.
[0051] This application also provides an electronic device, which is a physical device, comprising: a memory, a processor, and a program of the vehicle communication anomaly warning method stored in the memory and executable on the processor. When the program of the vehicle communication anomaly warning method is executed by the processor, it can implement the steps of the vehicle communication anomaly warning method as described above.
[0052] This application also provides a computer-readable storage medium storing a program for implementing a vehicle communication anomaly warning method. When the program for the vehicle communication anomaly warning method is executed by a processor, it implements the steps of the vehicle communication anomaly warning method as described above.
[0053] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the vehicle communication anomaly warning method described above.
[0054] This application provides a method, device, electronic device, and readable storage medium for early warning of vehicle communication anomalies. It detects whether a long-term connection between the vehicle terminal and a first cloud server has been broken. If a long-term connection is broken, it detects the network signal strength in the area where the vehicle terminal is located. Based on the network signal strength, it detects the cause of the communication failure between the vehicle terminal and the first cloud server. Based on the cause of the communication failure, it pushes corresponding communication anomaly warning information. This application, by establishing a long connection between the vehicle terminal and the cloud server, can detect in real time whether the communication between the vehicle terminal and the first cloud server is broken. Therefore, after detecting a long-term connection break, it can detect the cause of the communication failure between the vehicle terminal and the first cloud server based on the network signal strength, and push corresponding communication anomaly warning information based on the cause of the communication failure, allowing the user to perceive that the vehicle communication has failed and the reason for the failure. Attached Figure Description
[0055] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0056] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0057] Figure 1 This is a flowchart illustrating the first embodiment of the vehicle communication anomaly early warning method of this application;
[0058] Figure 2 This is a flowchart illustrating the second embodiment of the vehicle communication anomaly early warning method of this application;
[0059] Figure 3 This is a schematic diagram of the structure of the vehicle-mounted communication anomaly early warning device of this application;
[0060] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the vehicle communication anomaly early warning method in this application embodiment.
[0061] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0062] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0063] Example 1
[0064] This application provides a method for early warning of abnormal vehicle communication, applied to a vehicle terminal, as described above. Figure 1 In the first embodiment of the vehicle communication anomaly early warning method of this application, the vehicle communication anomaly early warning method includes:
[0065] Step S10: Detect whether a long connection has been broken between the vehicle terminal and the first cloud server. If a long connection has been broken, detect the network signal strength of the area where the vehicle terminal is located.
[0066] Step S20: Based on the network signal strength, detect the cause of the communication failure between the vehicle terminal and the first cloud server;
[0067] Step S30: Based on the cause of the communication failure, push the corresponding communication anomaly warning information.
[0068] As an example, steps S10 to S30 include: detecting whether a heartbeat loss has occurred between the vehicle terminal and the first cloud server; if no heartbeat loss has occurred, it is determined that no long-term connection has been broken between the vehicle terminal and the first cloud server; if a heartbeat loss has occurred, it is determined that a long-term connection has been broken between the vehicle terminal and the first cloud server; detecting the network signal strength in the area where the vehicle terminal is located; based on the network signal strength, detecting whether the communication failure between the vehicle terminal and the first cloud server is due to poor network signal; if so, pushing a communication anomaly warning message indicating poor network signal to the user through the display interface of the vehicle terminal; if not, detecting whether the communication failure is due to a damaged communication module or an abnormality of the first cloud server through the second cloud server, and pushing the corresponding communication anomaly warning message to the user through the display interface of the vehicle terminal. The display interface of the vehicle terminal can be a display screen or instrument panel, for example, the communication status on the instrument panel can be changed to "not connected".
[0069] The step of detecting the cause of communication failure between the vehicle terminal and the first cloud server based on the network signal strength includes:
[0070] Step S21: If the network signal strength is greater than the first preset signal strength threshold, the cause of the communication failure between the vehicle terminal and the first cloud server is detected through the second cloud server.
[0071] Step S22: If the network signal strength is not greater than the first preset signal strength threshold, then the cause of the communication failure is determined to be poor network signal in the area where the vehicle terminal is located.
[0072] As an example, steps S21 to S22 include: if the network signal strength is greater than a first preset signal strength threshold, it is determined that the network signal in the area where the vehicle terminal is located is poor, and then the second cloud server is used to detect whether the communication failure between the vehicle terminal and the first cloud server is caused by a damaged communication module or an abnormality of the first cloud server.
[0073] The communication anomaly warning information includes a first warning information, a second warning information, and a third warning information. The step of pushing the corresponding communication anomaly warning information according to the cause of the communication failure includes:
[0074] Step S31: If the communication failure is caused by damage to the communication module of the vehicle terminal, then the corresponding first warning information is pushed through the display module of the vehicle terminal.
[0075] Step S32: If the communication failure is caused by an abnormality in the first cloud server, then the corresponding second warning information is pushed through the display module of the vehicle terminal.
[0076] Step S33: If the communication failure is caused by poor network signal, then the corresponding third warning information is pushed through the display module of the vehicle terminal.
[0077] In this embodiment, it should be noted that after determining the cause of the communication failure, the corresponding warning information can be pushed through the display module of the vehicle terminal to notify the user that a communication failure has occurred between the vehicle terminal and the first cloud server. The first warning information is used to indicate that the communication module of the vehicle terminal is damaged, the second warning information is used to indicate that the first cloud server is abnormal, and the third warning information is used to indicate that the network signal is poor.
[0078] This application provides a method for early warning of in-vehicle communication anomalies. It detects whether a long-term connection between the in-vehicle terminal and a first cloud server has been broken. If a long-term connection is broken, it detects the network signal strength in the area where the in-vehicle terminal is located. Based on the network signal strength, it detects the cause of the communication failure between the in-vehicle terminal and the first cloud server. Based on the cause of the communication failure, it pushes corresponding communication anomaly warning information. This application, by establishing a long-term connection between the in-vehicle terminal and the cloud server, can detect in real time whether the communication between the in-vehicle terminal and the first cloud server is broken. Therefore, after a long-term connection break is detected, the cause of the communication failure between the in-vehicle terminal and the first cloud server can be detected based on the network signal strength. Based on the cause of the communication failure, corresponding communication anomaly warning information is pushed, allowing the user to perceive that the in-vehicle communication has failed and the reason for the failure.
[0079] Example 2
[0080] Reference Figure 2 Based on the first embodiment of this application, in another embodiment of this application, the step of detecting the cause of communication failure between the vehicle terminal and the first cloud server via the second cloud server includes:
[0081] Step A10: Obtain the first key-value information that the first cloud server regularly maintains from the second cloud server;
[0082] Step A20: If the acquisition fails, the communication failure is determined to be caused by damage to the communication module of the vehicle terminal.
[0083] Step A30: If successful, then based on the first key value information, detect the cause of the communication failure between the vehicle terminal and the first cloud server.
[0084] In this embodiment, it should be noted that the second cloud server is used to deploy a preset key-value database, which can be Redis. Both the vehicle terminal and the first cloud server can periodically maintain their respective key-value information in the preset key-value database.
[0085] As an example, steps A10 to A30 include: obtaining first key-value information that the first cloud server regularly maintains from the second cloud server; if the acquisition fails, it proves that the vehicle terminal cannot communicate with either the first cloud server or the second cloud server, thereby determining that the communication failure is caused by damage to the communication module of the vehicle terminal; if the acquisition is successful, it is determined, based on the first key-value information, whether the communication failure between the vehicle terminal and the first cloud server is caused by an abnormality of the first cloud server.
[0086] The first key-value information includes a server status identifier and a first timestamp.
[0087] The step of detecting the cause of communication failure between the vehicle terminal and the first cloud server based on the first key value information includes:
[0088] Step A31: If the server status identifier is the first preset identifier, then the cause of the communication failure is determined to be an anomaly in the first cloud server.
[0089] Step A32: If the server status identifier is the second preset identifier, then the cause of the communication failure between the vehicle terminal and the first cloud server is detected based on the first timestamp.
[0090] In this embodiment, it should be noted that the preset identifier is used to identify the status of the cloud server. For example, when the first preset identifier is set to 1, the status of the cloud server is identified as normal, and when the second preset identifier is set to 0, the status of the cloud server is identified as abnormal.
[0091] As an example, steps A31 to A32 include: if the server status identifier is a first preset identifier, then the cause of the communication failure is determined to be an anomaly of the first cloud server; if the server status identifier is a second preset identifier, then the cause of the communication failure between the vehicle terminal and the first cloud server is detected according to the time interval between the first timestamp and the current time.
[0092] The step of detecting the cause of the communication failure between the vehicle terminal and the first cloud server based on the first timestamp includes:
[0093] Step A321: Obtain the time interval between the first timestamp and the current time;
[0094] Step A322: If the time interval is greater than a preset time interval threshold, the communication failure is determined to be caused by an anomaly in the first cloud server.
[0095] As an example, steps A321 to A322 include: calculating the difference between the current time and the first timestamp to obtain a time interval; if the time interval is greater than a preset time interval threshold, it proves that the first cloud server did not update the first key-value information on the second cloud server on time, thereby determining that the communication failure is caused by an anomaly in the first cloud server; if the time interval is not greater than the preset time interval threshold, it proves that the first cloud server is still updating the first key-value information on the second cloud server on time, thereby determining that the first cloud server has not experienced an anomaly.
[0096] The vehicle communication anomaly early warning method further includes:
[0097] Step B10: Periodically maintain the second key-value information of the second cloud server, wherein the second key-value information includes vehicle status information and a corresponding second timestamp, so that the first cloud server can determine the vehicle status of the vehicle terminal by obtaining the second key-value information from the second cloud server.
[0098] In this embodiment, it should be noted that the second key value information can be vehicle status information and a second timestamp, wherein the vehicle status information can be an expired key value, and the second timestamp can be the timestamp when the expired key value was written.
[0099] As an example, step B10 includes: writing vehicle status information as expired key values into the preset key value database, and periodically updating the vehicle status information in the preset key value database, wherein the update interval of the vehicle status information is less than the expiration interval of the vehicle status information, so as to ensure that the vehicle status information is not deleted from the preset key value database due to expiration. Thus, the first cloud server obtains the second key value information from the second cloud server to determine whether the vehicle terminal is continuously updating the vehicle status information and the time of the last update of the vehicle status information. Therefore, after the first cloud server disconnects from the vehicle terminal, the first cloud server can further determine the vehicle status corresponding to the vehicle terminal by checking the preset key value database.
[0100] This application provides a method for early warning of communication anomalies in vehicles. After determining that the cause of the communication failure between a first cloud server and a vehicle terminal is not poor network signal, the method retrieves first key-value information, which is periodically maintained by the first cloud server, from a second cloud server. If retrieval fails, the method determines that the communication failure is caused by damage to the communication module of the vehicle terminal. If retrieval is successful, the method detects the cause of the communication failure between the vehicle terminal and the first cloud server based on the first key-value information. This method achieves the goal of confirming the cause of the communication failure by using a second cloud server, and can further identify whether the communication failure is caused by an anomaly in the first cloud server or by damage to the communication module of the vehicle terminal. It can further pinpoint the cause of the communication failure between the vehicle terminal and the first cloud server, thus improving the accuracy of locating the cause of vehicle communication failures.
[0101] Example 3
[0102] Reference Figure 3 This application also provides a vehicle communication anomaly warning device, applied to a vehicle terminal, the vehicle communication anomaly warning device comprising:
[0103] The first detection module 100 is used to detect whether a long connection has been broken between the vehicle terminal and the first cloud server. If a long connection is broken, the network signal strength of the area where the vehicle terminal is located is detected.
[0104] The second detection module 200 is used to detect the cause of the communication failure between the vehicle terminal and the first cloud server based on the network signal strength.
[0105] The fault cause push module 300 is used to push corresponding communication anomaly warning information based on the cause of the communication fault.
[0106] Optionally, the second detection module 200 is further configured to:
[0107] If the network signal strength is greater than the first preset signal strength threshold, the cause of the communication failure between the vehicle terminal and the first cloud server is detected through the second cloud server.
[0108] If the network signal strength is not greater than the first preset signal strength threshold, the communication failure is determined to be caused by poor network signal in the area where the vehicle terminal is located.
[0109] Optionally, the communication anomaly warning information includes a first warning information, a second warning information, and a third warning information, and the fault cause push module 300 is further used for:
[0110] If the communication failure is caused by damage to the communication module of the vehicle terminal, then the corresponding first warning information will be pushed through the display module of the vehicle terminal.
[0111] If the communication failure is caused by an abnormality in the first cloud server, then the corresponding second warning information will be pushed through the display module of the vehicle terminal.
[0112] If the communication failure is caused by a poor network signal, the corresponding third warning information will be pushed through the display module of the vehicle terminal.
[0113] Optionally, the second detection module 200 is further configured to:
[0114] Obtain the first key-value information that the first cloud server maintains periodically from the second cloud server;
[0115] If the acquisition fails, the communication failure is determined to be caused by damage to the communication module of the vehicle terminal.
[0116] If successful, the cause of the communication failure between the vehicle terminal and the first cloud server is detected based on the first key value information.
[0117] Optionally, the first key-value information includes a server status identifier and a first timestamp, and the second detection module 200 is further used for:
[0118] If the server status identifier is the first preset identifier, then the communication failure is determined to be caused by an anomaly in the first cloud server.
[0119] If the server status identifier is the second preset identifier, then the cause of the communication failure between the vehicle terminal and the first cloud server is detected based on the first timestamp.
[0120] Optionally, the second detection module 200 is further configured to:
[0121] Obtain the time interval between the first timestamp and the current time;
[0122] If the time interval is greater than a preset time interval threshold, the communication failure is determined to be caused by an anomaly in the first cloud server.
[0123] Optionally, the vehicle-mounted communication anomaly warning device is further used for:
[0124] The second key-value information of the second cloud server is maintained regularly. The second key-value information includes vehicle status information and a corresponding second timestamp, so that the first cloud server can determine the vehicle status of the vehicle terminal by obtaining the second key-value information from the second cloud server.
[0125] The vehicle communication anomaly warning device provided in this application adopts the vehicle communication anomaly warning method in the above embodiments, solving the technical problem that users cannot perceive vehicle communication failures and the causes of such failures. Compared with the prior art, the beneficial effects of the vehicle communication anomaly warning device provided in this application are the same as those of the vehicle communication anomaly warning method provided in the above embodiments, and other technical features of this vehicle communication anomaly warning device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0126] Example 4
[0127] This application provides an electronic device, which may be an earphone or a terminal device carrying an earphone. The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the vehicle communication anomaly warning method in the above embodiment 1.
[0128] The following is for reference. Figure 4The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0129] like Figure 4 As shown, an electronic device may include a processing unit (such as a central processing unit, graphics processing unit, etc.) that can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) or a program loaded from a storage device into random access memory (RAM). The RAM also stores various programs and data required for the operation of the electronic device. The processing unit, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.
[0130] Typically, the following systems can be connected to the I / O interface: input devices including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices including, for example, magnetic tapes, hard disks, etc.; and communication devices. Communication devices allow electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although electronic devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.
[0131] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, it performs the functions defined above in the methods of embodiments of this disclosure.
[0132] The electronic device provided in this application employs the vehicle communication anomaly warning method in the above embodiments, solving the technical problem that users cannot perceive vehicle communication failures and the causes of such failures. Compared with the prior art, the beneficial effects of the electronic device provided in this application are the same as those of the vehicle communication anomaly warning method provided in Embodiment 1 above, and other technical features of this electronic device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0133] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.
[0134] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0135] Example 5
[0136] This application provides a computer-readable storage medium having computer-readable program instructions stored thereon, which are used to execute the vehicle communication anomaly warning method in Embodiment 1 above.
[0137] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0138] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.
[0139] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by an electronic device, the electronic device causes the electronic device to: detect whether a long-term connection between the vehicle terminal and the first cloud server has been broken; if a long-term connection has been broken, detect the network signal strength of the area where the vehicle terminal is located; based on the network signal strength, detect the cause of the communication failure between the vehicle terminal and the first cloud server; and based on the cause of the communication failure, push corresponding communication anomaly warning information.
[0140] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0141] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0142] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0143] The computer-readable storage medium provided in this application embodiment stores computer-readable program instructions for executing the above-described vehicle communication anomaly warning method, solving the technical problem that users cannot perceive vehicle communication failures and their causes. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application embodiment are the same as those of the vehicle communication anomaly warning method provided in the above embodiments, and will not be repeated here.
[0144] Example 6
[0145] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the vehicle communication anomaly warning method described above.
[0146] The computer program product provided in this application solves the technical problem that users cannot perceive vehicle communication failures and the causes of such failures. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the vehicle communication anomaly early warning method provided in the above embodiments, and will not be repeated here.
[0147] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.
Claims
1. A method for early warning of abnormal vehicle communication, characterized in that, The vehicle communication anomaly early warning method, applied to vehicle-mounted terminals, includes: Detect whether a long connection is broken between the vehicle terminal and the first cloud server. If a long connection is broken, detect the network signal strength of the area where the vehicle terminal is located. Based on the network signal strength, detect the cause of the communication failure between the vehicle terminal and the first cloud server; Based on the cause of the communication failure, push corresponding communication anomaly warning information; The method of detecting the cause of communication failure between the vehicle terminal and the first cloud server based on the network signal strength includes: If the network signal strength is greater than the first preset signal strength threshold, the system obtains the first key value information that the first cloud server maintains periodically from the second cloud server; if the acquisition fails, the system determines that the communication failure is caused by damage to the communication module of the vehicle terminal; if the acquisition is successful, the system detects the cause of the communication failure between the vehicle terminal and the first cloud server based on the first key value information. If the network signal strength is not greater than the first preset signal strength threshold, then the cause of the communication failure is determined to be poor network signal in the area where the vehicle terminal is located. The first key-value information includes a server status identifier and a first timestamp. The step of detecting the cause of communication failure between the vehicle terminal and the first cloud server based on the first key-value information includes: If the server status identifier is the first preset identifier, then the communication failure is determined to be caused by an anomaly in the first cloud server. If the server status identifier is the second preset identifier, then the time interval between the first timestamp and the current time is obtained; if the time interval is greater than the preset time interval threshold, then the communication failure is determined to be caused by an anomaly in the first cloud server.
2. The vehicle communication anomaly early warning method as described in claim 1, characterized in that, The communication anomaly warning information includes a first warning information, a second warning information, and a third warning information. The step of pushing the corresponding communication anomaly warning information according to the cause of the communication failure includes: If the communication failure is caused by damage to the communication module of the vehicle terminal, then the corresponding first warning information will be pushed through the display module of the vehicle terminal. If the communication failure is caused by an abnormality in the first cloud server, then the corresponding second warning information will be pushed through the display module of the vehicle terminal. If the communication failure is caused by a poor network signal, the corresponding third warning information will be pushed through the display module of the vehicle terminal.
3. The vehicle communication anomaly early warning method as described in claim 1, characterized in that, The vehicle communication anomaly early warning method also includes: The second key-value information of the second cloud server is maintained regularly. The second key-value information includes vehicle status information and a corresponding second timestamp, so that the first cloud server can determine the vehicle status of the vehicle terminal by obtaining the second key-value information from the second cloud server.
4. A vehicle-mounted communication anomaly early warning device, characterized in that, The vehicle communication anomaly early warning device, applied to vehicle terminals, includes: The first detection module is used to detect whether a long connection has been broken between the vehicle terminal and the first cloud server. If a long connection is broken, the network signal strength of the area where the vehicle terminal is located is detected. The second detection module is used to detect the cause of communication failure between the vehicle terminal and the first cloud server based on the network signal strength. The second detection module is further used to detect the cause of communication failure between the vehicle terminal and the first cloud server via the second cloud server if the network signal strength is greater than a first preset signal strength threshold; if the network signal strength is not greater than the first preset signal strength threshold, the cause of communication failure is determined to be poor network signal in the area where the vehicle terminal is located. The second detection module is also used to obtain first key-value information regularly maintained by the first cloud server from the second cloud server; if the acquisition fails, the cause of communication failure is determined to be damage to the communication module of the vehicle terminal; if the acquisition is successful, the cause of communication failure between the vehicle terminal and the first cloud server is detected based on the first key-value information, where the first key-value information includes a server status identifier and a first timestamp. The second detection module is further used to determine the cause of communication failure as an anomaly of the first cloud server if the server status identifier is a first preset identifier; if the server status identifier is a second preset identifier, the time interval between the first timestamp and the current time is obtained; if the time interval is greater than a preset time interval threshold, the cause of communication failure is determined to be an anomaly of the first cloud server. The fault cause push module is used to push corresponding communication anomaly warning information based on the cause of the communication fault.
5. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the steps of the vehicle communication anomaly warning method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program for implementing a vehicle communication anomaly warning method, which is executed by a processor to implement the steps of the vehicle communication anomaly warning method as described in any one of claims 1 to 3.