Method and apparatus for recovering from communication connection anomaly, electronic device, and storage medium

By using a short-range communication module to restore communication connections through a direct connection between vehicle terminals, the monitoring platform can control abnormal vehicle terminals, thus solving the control difficulties when vehicle terminals cannot connect due to abnormalities.

CN116528400BActive Publication Date: 2026-11-27SHENZHEN STREAMING VIDEO TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310472237.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-24
Publication Date
2026-11-27
Estimated Expiration
2043-04-24

AI Technical Summary

Technical Problem

When existing vehicle terminals experience communication connectivity issues, the monitoring platform is unable to effectively control them.

Method used

The first vehicle-mounted terminal, which is already connected to the regulatory platform, receives a communication connection restoration command, performs device scanning, authentication, and sends command codes to the second vehicle-mounted terminal to restore its communication connection with the regulatory platform, thereby achieving direct channel control using a short-range communication module.

Benefits of technology

The monitoring platform can indirectly control vehicle terminals with abnormal connections through direct connection channels between vehicle terminals, thus solving the control problem when vehicle terminals cannot connect due to abnormalities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116528400B_ABST
    Figure CN116528400B_ABST
Patent Text Reader

Abstract

The application provides a communication connection anomaly recovery method and device, electronic equipment and storage medium, the method comprising: receiving a communication connection recovery instruction issued by a supervision platform, the communication connection recovery instruction carrying data information of a second vehicle terminal, used to re-establish a communication connection between the second vehicle terminal and the supervision platform, the second vehicle terminal being a vehicle terminal that displays a connection anomaly on the supervision platform; according to the communication connection recovery instruction, performing equipment scanning within a preset area range, and in the case of scanning the second vehicle terminal, sending a command and a command code required for the second vehicle terminal to execute in the communication connection recovery instruction to the second vehicle terminal, so that the second vehicle terminal restores the communication connection with the supervision platform by executing the command and the command code. Based on the method, the problem that the supervision platform cannot control the vehicle terminal when the vehicle terminal cannot be connected to the supervision platform can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a method, apparatus, electronic device, and storage medium for restoring communication connection anomalies. Background Technology

[0002] With the rapid development of technology and the improvement of people's living standards, more and more people are choosing to travel by car or taxi, and the number of cars is increasing day by day. Vehicle safety has become an important issue in people's lives. In the commercial vehicle industry, such as the taxi industry, in order to effectively supervise vehicles, regulatory authorities will install vehicle-mounted terminals for safety monitoring. These terminals are connected to the regulatory platform via mobile cellular networks to report various information about the vehicle in real time, such as the vehicle's location and alarm information. The regulatory platform can also issue control commands to the vehicle-mounted terminals to manage the vehicles.

[0003] Currently, communication between existing vehicle terminals and monitoring platforms can be established normally through mobile networks or communication protocols. However, these methods of establishing normal connections are based on the premise that the vehicle terminal can connect to the monitoring platform normally. In cases of abnormal connections, such as when the Internet Protocol (IP) used to interconnect networks within the monitoring platform is disconnected or changes, or when the vehicle terminal malfunctions and cannot connect to the monitoring platform via mobile network, the monitoring platform cannot control the vehicle terminal in the event of abnormal communication connections. Summary of the Invention

[0004] In view of this, embodiments of this application provide a method, apparatus, electronic device, and storage medium for restoring abnormal communication connections, aiming to at least solve the problem that when an in-vehicle terminal fails to connect to the monitoring platform, the monitoring platform is unable to control the in-vehicle terminal.

[0005] A first aspect of this application provides a method for restoring a communication connection anomaly, applied to a first vehicle-mounted terminal connected to a monitoring platform, comprising: receiving a communication connection restoration instruction issued by the monitoring platform, the communication connection restoration instruction carrying data information of a second vehicle-mounted terminal for re-establishing a communication connection between the second vehicle-mounted terminal and the monitoring platform, the second vehicle-mounted terminal being the vehicle-mounted terminal whose connection is displayed as abnormal on the monitoring platform; according to the communication connection restoration instruction, performing a device scan within a preset area; if the second vehicle-mounted terminal is detected, sending the command and command code that the second vehicle-mounted terminal needs to execute in the communication connection restoration instruction to the second vehicle-mounted terminal, so that the second vehicle-mounted terminal can restore its communication connection with the monitoring platform by executing the command and command code.

[0006] In some possible implementations, before the step of sending the command code that the second vehicle terminal needs to execute in the communication connection restoration instruction to the second vehicle terminal, the method further includes: sending an authentication request to the second vehicle terminal and receiving the username and password information of the second vehicle terminal; comparing the username and password information of the second vehicle terminal with the username and password information corresponding to the second vehicle terminal recorded in the communication connection restoration instruction; if the information matches, it is determined that the second vehicle terminal has passed authentication.

[0007] In some possible implementations, the communication connection restoration instruction contains the name and password of the short-range communication module of the second vehicle terminal. After the step of scanning for devices within a preset area according to the communication connection restoration instruction, the method further includes: scanning for devices within the preset area according to the name and password of the short-range communication module contained in the communication connection restoration instruction; determining whether there is a target short-range communication module with the same name as the short-range communication module contained in the communication connection restoration instruction within the preset area; if the target short-range communication module is found within the preset area, connecting to the target short-range communication module according to the short-range communication module password contained in the communication connection restoration instruction, and identifying the vehicle terminal corresponding to the target short-range communication module as the second vehicle terminal.

[0008] In some possible implementations, the method further includes: receiving the execution result of the second vehicle terminal; if the execution result indicates that the command has been executed, reporting the execution result to the monitoring platform to trigger the monitoring platform to issue a command deletion instruction to all first vehicle terminals based on the execution result; the command deletion instruction carries a command code corresponding to the second vehicle terminal for deleting the command corresponding to the command code.

[0009] In some possible implementations, when the communication connection restoration instruction carries data information of more than one second vehicle-mounted terminal, the method further includes: receiving the execution result of any one of the second vehicle-mounted terminals; if the execution result indicates that the command has been executed, then forwarding the data information of all second vehicle-mounted terminals in the communication connection restoration instruction, except for the data information of the aforementioned second vehicle-mounted terminal, to the aforementioned second vehicle-mounted terminal.

[0010] A second aspect of this application provides a method for recovering from communication connection anomalies, applied to a second vehicle-mounted terminal not connected to a monitoring platform, comprising: upon receiving a command to be executed and a command code, determining whether the command has been executed based on the command code; if the command has been executed, sending an execution result indicating that the command has been executed to the first vehicle-mounted terminal; if the command has not been executed, executing the command and saving the command code corresponding to the command locally, and sending an execution result indicating that the command has been executed to the first vehicle-mounted terminal.

[0011] A third aspect of this application provides a communication connection recovery device, applied to a first vehicle-mounted terminal connected to a monitoring platform, comprising: a receiving module, configured to receive a communication connection recovery instruction issued by the monitoring platform, the communication connection recovery instruction carrying data information of a second vehicle-mounted terminal, used to re-establish the communication connection between the second vehicle-mounted terminal and the monitoring platform, the second vehicle-mounted terminal being the vehicle-mounted terminal whose connection is displayed as abnormal on the monitoring platform; and a first processing module, configured to perform device scanning within a preset area according to the communication connection recovery instruction, and, if the second vehicle-mounted terminal is detected, send the command code required to be executed by the second vehicle-mounted terminal in the communication connection recovery instruction to the second vehicle-mounted terminal, so that the second vehicle-mounted terminal can restore the communication connection with the monitoring platform by executing the command code.

[0012] A fourth aspect of this application provides a communication connection failure recovery device, applied to a second vehicle-mounted terminal not connected to a monitoring platform, comprising: a judgment module, configured to, upon receiving a command to be executed and a command code, determine whether the command has already been executed based on the command code; and a second processing module, configured to, if the command has already been executed, send an execution result indicating that the command has been executed to the first vehicle-mounted terminal; and, if the command has not been executed, execute the command and save the command code corresponding to the command locally, and send the execution result indicating that the command has been executed to the first vehicle-mounted terminal.

[0013] A fifth aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the electronic device, wherein the processor executes the computer program to implement the steps of the communication connection anomaly recovery method provided in the first or second aspect.

[0014] A sixth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the communication connection anomaly recovery method provided in the first or second aspect.

[0015] A seventh aspect of this application provides a computer program product that, when run on an electronic device, causes the electronic device to execute the steps of the communication connection failure recovery method provided in the first or second aspect.

[0016] The communication connection recovery method, apparatus, electronic device, and storage medium provided in this application have the following beneficial effects:

[0017] This application addresses the issue of a first vehicle-mounted terminal connected to a monitoring platform receiving a communication connection restoration command from the platform. This command re-establishes a communication connection between a second vehicle-mounted terminal (the one displaying a connection error on the monitoring platform) and the monitoring platform. Based on the command, a device scan is performed within a preset area. If the second vehicle-mounted terminal is detected, its legitimacy is authenticated. If authentication is successful, the command code required from the command is sent to the second vehicle-mounted terminal, enabling it to restore communication with the monitoring platform. This method allows the monitoring platform to indirectly control a vehicle-mounted terminal with connection errors via other connected terminals through a direct connection channel, thus resolving the issue of the monitoring platform's inability to control a vehicle-mounted terminal when it cannot connect. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart illustrating the implementation of a method for restoring communication connection anomalies provided in this application embodiment;

[0020] Figure 2 A flowchart illustrating a method for authenticating a second vehicle-mounted terminal in the communication connection recovery method provided in this application embodiment;

[0021] Figure 3 A flowchart illustrating one method of scanning a second vehicle-mounted terminal in the communication connection recovery method provided in this application embodiment;

[0022] Figure 4 A flowchart illustrating the implementation of another method for restoring communication connection anomalies provided in this application embodiment;

[0023] Figure 5 A basic structural block diagram of a communication connection failure recovery device provided in this application embodiment;

[0024] Figure 6 Basic structural block diagram of another communication connection failure recovery device provided in the embodiments of this application;

[0025] Figure 7 This is a basic structural block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0027] Please see Figure 1 , Figure 1 This application provides a flowchart of a method for restoring communication connection anomalies. The method described in this application is applied to a first vehicle-mounted terminal that is connected to a monitoring platform, and specifically includes steps S11 to S12.

[0028] S11: Receive a communication connection restoration instruction issued by the monitoring platform. The communication connection restoration instruction carries data information of the second vehicle terminal and is used to re-establish the communication connection between the second vehicle terminal and the monitoring platform. The second vehicle terminal is the vehicle terminal that is displayed as having an abnormal connection on the monitoring platform.

[0029] In this embodiment, the vehicle-mounted terminal is configured with a CPU main control module (Central Processing Unit), a mobile cellular network module, and a short-range communication module. The central processing unit is used to run the vehicle-mounted terminal. The mobile cellular network module is used to connect to the monitoring platform. The short-range communication module is used to enable direct communication with other vehicle-mounted terminals, specifically through Wi-Fi (Wireless Fidelity), Bluetooth, ZigBee, etc. In some specific implementations, the vehicle-mounted terminal can also communicate directly with other vehicle-mounted terminals via V2V communication technology, which refers to wireless data transmission technology between motor vehicles. The vehicle-mounted terminal is configured with a platform connection module and a business logic control module. The platform connection module enables the vehicle-mounted terminal to connect and interact with the monitoring platform, while the business logic control module controls the vehicle-mounted terminal to execute certain business logic, such as the execution of certain instructions. In this embodiment, for a first vehicle-mounted terminal already connected to the monitoring platform, if a second vehicle-mounted terminal on the monitoring platform displays a connection error, a communication connection restoration command for the second vehicle-mounted terminal will be sent to all first vehicle-mounted terminals on the monitoring platform that have normal communication connections. The communication connection restoration command is used to re-establish the communication connection between the second vehicle-mounted terminal and the monitoring platform. The first vehicle-mounted terminal, through its communication connection with the monitoring platform, receives the communication connection restoration command sent by the monitoring platform.

[0030] In some specific embodiments, the communication connection restoration command may include data information from one or more second vehicle-mounted terminals. After receiving the communication connection restoration command, the first vehicle-mounted terminal saves the data information from the second vehicle-mounted terminals contained in the command locally. For example, suppose a monitoring platform oversees the vehicle-mounted terminals of 20,000 vehicles. If one vehicle's vehicle-mounted terminal is unable to connect to the platform, the platform can issue a communication connection restoration command to the remaining 19,999 normally connected vehicle-mounted terminals for that vehicle. In this case, the command only contains the data information from that single vehicle's vehicle-mounted terminal. Conversely, suppose the platform oversees the vehicle-mounted terminals of 20,000 vehicles. If 10 vehicles' vehicle-mounted terminals are unable to connect, the platform can issue a communication connection restoration command to the remaining 19,990 normally connected vehicle-mounted terminals for those 10 vehicles. In this case, the command includes the data information from those 10 vehicles' vehicle-mounted terminals.

[0031] S12: According to the communication connection restoration instruction, perform device scanning within a preset area. If the second vehicle terminal is detected, send the command and command code that the second vehicle terminal needs to execute in the communication connection restoration instruction to the second vehicle terminal, so that the second vehicle terminal can restore the communication connection with the monitoring platform by executing the command and command code.

[0032] In this embodiment, when the vehicle-mounted terminal can connect normally to the monitoring platform, the short-range communication module is in STA mode, allowing it to connect to the short-range communication modules of other vehicle-mounted terminals. When the vehicle-mounted terminal fails to connect to the monitoring platform, the short-range communication module automatically switches to AP (Wireless Access Point) mode, which is equivalent to a router, allowing it to be connected to by other vehicle-mounted terminals. In this embodiment, after receiving a communication connection restoration command from the monitoring platform, the first vehicle-mounted terminal can scan for devices within a preset area in response to the command. It searches for vehicle-mounted terminals with short-range communication modules in AP mode within this preset area. If such a terminal exists, it connects to the vehicle-mounted terminal with its AP-mode short-range communication module and designates it as the second vehicle-mounted terminal. The communication connection restoration command carries data information including the command and command code that the second vehicle-mounted terminal needs to execute. By sending the command and command code from the communication connection restoration command to the second vehicle-mounted terminal, the second vehicle-mounted terminal executes the command to restore the communication connection with the monitoring platform. The command code is then saved locally on the second vehicle-mounted terminal after the command is executed. The purpose of the command code is to prevent the second vehicle-mounted terminal from repeatedly executing the same command and command code received from other first vehicle-mounted terminals after executing the command corresponding to that command code.

[0033] In some specific embodiments, the vehicle-mounted terminal may also have a parameter module in its software. The vehicle-mounted terminal can manage (e.g., add, delete, or modify) its own parameters through this parameter module, such as modifying the address and port number used to connect to the monitoring platform. The command that the second vehicle-mounted terminal needs to execute can be a parameter modification instruction, used to modify the local parameters of the vehicle in which the second vehicle-mounted terminal is located.

[0034] As can be seen from the above, the communication connection recovery method provided in this application embodiment, in the case of a first vehicle-mounted terminal already connected to the monitoring platform, receives a communication connection recovery command issued by the monitoring platform. Based on the command, it performs a device scan within a preset area. If a second vehicle-mounted terminal is detected, the command code required for execution by the second vehicle-mounted terminal in the communication connection recovery command is sent to the second vehicle-mounted terminal, enabling the second vehicle-mounted terminal to restore its communication connection with the monitoring platform by executing the command code. Through this method, the monitoring platform can indirectly control a vehicle-mounted terminal with abnormal connection via other vehicle-mounted terminals connected to the monitoring platform through a direct connection channel between vehicle-mounted terminals, solving the problem that the monitoring platform cannot control a vehicle-mounted terminal when it cannot connect to the monitoring platform.

[0035] In some embodiments of this application, please refer to Figure 2 , Figure 2 The flowchart of a method for authenticating a second vehicle terminal in the communication connection failure recovery method provided in this application embodiment specifically includes steps S21 to S22.

[0036] S21: Send an authentication request to the second vehicle terminal and receive the username and password information of the second vehicle terminal;

[0037] S22: Compare the username and password information of the second vehicle terminal with the username and password information corresponding to the second vehicle terminal recorded in the communication connection restoration instruction. If the information matches, it is determined that the second vehicle terminal has been authenticated.

[0038] In this embodiment, upon initial installation, the monitoring platform issues a username and password to the vehicle-mounted terminal for verification during direct local device connection. To ensure security, each vehicle's vehicle-mounted terminal uses a different username and password for verification. Within the monitoring platform, each vehicle has a unique identifier, and the platform stores the usernames and passwords for verification for all vehicle-mounted terminals, establishing a one-to-one mapping between usernames / passwords and vehicle unique identifiers. Each vehicle-mounted terminal, monitored by the platform, stores its own username and password for verification locally. In this embodiment, the vehicle-mounted terminal can also have a local login verification module in its software. When the first vehicle-mounted terminal detects a second vehicle-mounted terminal, it can further authenticate the second vehicle-mounted terminal through this local login verification module. Specifically, the data information of the second vehicle-mounted terminal carried in the communication connection restoration command contains the username and password information of the second vehicle-mounted terminal. The authentication process for the legitimacy of the second vehicle-mounted terminal can be as follows: an authentication request is sent to the second vehicle-mounted terminal to obtain the username and password information stored locally on the second vehicle-mounted terminal; the username and password information obtained from the second vehicle-mounted terminal and stored locally is compared with the username and password information carried in the communication connection restoration command to determine if the information matches. If the information matches, the second vehicle-mounted terminal is deemed to have passed authentication. This embodiment improves the accuracy of communication connection restoration by authenticating the second vehicle-mounted terminal.

[0039] In some embodiments of this application, please refer to Figure 3 , Figure 3 The flowchart of a method for scanning a second vehicle terminal in the communication connection abnormality recovery method provided in the embodiments of this application is shown, specifically including steps S31 to S32.

[0040] S31: Based on the short-range communication module name and password recorded in the communication connection restoration instruction, perform device scanning within a preset area to determine whether there is a target short-range communication module with the same name as the short-range communication module recorded in the communication connection restoration instruction within the preset area.

[0041] S32: If the target short-range communication module is detected within the preset area, then connect to the target short-range communication module according to the short-range communication module password recorded in the communication connection recovery instruction, and determine the vehicle terminal corresponding to the target short-range communication module as the second vehicle terminal.

[0042] In this embodiment, each vehicle-mounted terminal's short-range communication module is equipped with a corresponding name and password. The name and password of the short-range communication module are different for each vehicle's vehicle-mounted terminal. In this embodiment, the data information of the second vehicle-mounted terminal carried in the communication connection restoration command also records the name and password of the second vehicle-mounted terminal's short-range communication module. After receiving the communication connection restoration command, the first vehicle-mounted terminal can perform a device scan within a preset area based on the short-range communication module name and password recorded in the communication connection restoration command, to determine whether a target short-range communication module with the same name as the short-range communication module recorded in the communication connection restoration command exists within the preset area. Specifically, for example, for each short-range communication module name and password recorded in the communication connection restoration instruction, all vehicle terminals within the preset area can be traversed one by one according to the name of each short-range communication module. It can be determined whether there is a target short-range communication module name within the preset area that is the same as the name of the short-range communication module recorded in the communication connection restoration instruction. If a target short-range communication module within the preset area is found to have the same name as any short-range communication module recorded in the communication connection restoration instruction, it indicates that there is a second vehicle terminal within the preset area that cannot connect to the monitoring platform. At this time, the first vehicle terminal can connect with the vehicle terminal corresponding to the target short-range communication module according to the short-range communication module password recorded in the communication connection restoration instruction, and thus determine the vehicle terminal corresponding to the target short-range communication module as the second vehicle terminal.

[0043] For example, suppose the communication connection restoration command contains the Wi-Fi hotspot name and password for vehicle terminal A and vehicle terminal B. After receiving the command, vehicle terminal C can scan a preset area determined by its location using both the Wi-Fi hotspot names of vehicle terminal A and vehicle terminal B. This allows it to determine whether a vehicle terminal with the same Wi-Fi hotspot name as vehicle terminal A exists within that area, and whether a vehicle terminal with the same Wi-Fi hotspot name as vehicle terminal B exists within that area. If a target vehicle terminal with the same Wi-Fi hotspot name as vehicle terminal A is found within the preset area, a connection is established using the Wi-Fi password of vehicle terminal A, specifically via a socket connection. This target vehicle terminal is then identified as the second vehicle terminal.

[0044] In some specific embodiments, after the first vehicle terminal sends the command and command code to the second vehicle terminal, the second vehicle terminal, after undergoing legality authentication, executes the command if it has not executed it before, and does not execute it again if it has already executed it before. Specifically, if the second vehicle terminal has not executed the command before but is executing it this time, it reports the execution result to the first vehicle terminal; if it has already executed the command before, it reports the previously executed result. Upon receiving the execution result from the second vehicle terminal indicating that the command has been executed, the first vehicle terminal reports the execution result to the monitoring platform. After receiving the execution result, the monitoring platform issues a command deletion command to all currently connected first vehicle terminals. The command deletion command carries the command code corresponding to the command executed by the second vehicle terminal. Based on this command code, all currently connected first vehicle terminals delete the command that the second vehicle terminal needs to execute, which is stored locally.

[0045] In some specific embodiments, when there are more than one first vehicle-mounted terminal connected to the monitoring platform and more than one second vehicle-mounted terminal not connected to the monitoring platform, the monitoring platform can record the data information of all second vehicle-mounted terminals in a communication connection restoration command, and then send the communication connection restoration command to each first vehicle-mounted terminal connected to the monitoring platform. Upon receiving the communication connection restoration command, each first vehicle-mounted terminal performs a device scan according to the command and assists the monitoring platform in controlling the second vehicle-mounted terminals not connected to the monitoring platform. In this embodiment, for each first vehicle-mounted terminal, if it receives the execution result of any second vehicle-mounted terminal recorded in the communication connection restoration command and the execution result indicates that the command has been executed, it means that any second vehicle-mounted terminal has successfully connected to the monitoring platform, i.e., it has become a new first vehicle-mounted terminal. At this point, after receiving the execution result, the first vehicle terminal can further forward all the data information of the second vehicle terminals stored locally, except for the data information of any one of the second vehicle terminals, to the other second vehicle terminal. This allows the other second vehicle terminal to act as a new first vehicle terminal to perform device scanning and help the monitoring platform control other second vehicle terminals that are not connected to the monitoring platform.

[0046] For some embodiments of this application, please refer to Figure 4 , Figure 4The flowchart illustrates another method for restoring communication connection abnormalities provided in this application embodiment. The method described in this application embodiment is applied to a second vehicle-mounted terminal that is not connected to the monitoring platform, and specifically includes steps S41 to S42.

[0047] S41: Upon receiving a command to be executed and its code, determine whether the command has already been executed based on the command code;

[0048] S42: If the command has been executed, send the execution result of the command execution to the first vehicle terminal; if the command has not been executed, execute the command and save the command code corresponding to the command locally, and send the execution result of the command execution to the first vehicle terminal.

[0049] In this embodiment, when a second vehicle-mounted terminal not connected to the monitoring platform receives a command and command code from the first vehicle-mounted terminal that it needs to execute, the second vehicle-mounted terminal can first traverse its local space based on the command code to determine whether the currently received command has already been executed. For commands already executed by the second vehicle-mounted terminal, the command code is saved in its local space. If the traversal confirms the existence of the command code in the local space, the command is determined to have been executed; otherwise, it is determined that the command has not been executed. Further, if the second vehicle-mounted terminal determines that the command has been executed, it will directly send the execution result to the first vehicle-mounted terminal. If the second vehicle-mounted terminal determines that the command has not been executed, it will first execute the command, save the corresponding command code in its local space after successful execution, and then send the execution result to the first vehicle-mounted terminal.

[0050] It is understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0051] For some specific embodiments, please refer to Figure 5 , Figure 5 This is a basic structural block diagram of a communication connection failure recovery device provided in an embodiment of this application. In this embodiment, the device is applied in a first vehicle-mounted terminal connected to a monitoring platform, and the included units are used to perform the steps in the above method embodiments. Please refer to the relevant descriptions in the above method embodiments for details. For ease of explanation, only the parts relevant to this embodiment are shown. Figure 5As shown, the communication connection failure recovery device includes a receiving module 51 and a first processing module 52. The receiving module 51 receives a communication connection recovery command issued by the monitoring platform. This command carries data information from a second vehicle-mounted terminal, used to re-establish the communication connection between the second vehicle-mounted terminal and the monitoring platform. The second vehicle-mounted terminal is the one whose connection is displayed as abnormal on the monitoring platform. The first processing module 52 scans for devices within a preset area according to the communication connection recovery command. If the second vehicle-mounted terminal is detected, it sends the command code required to be executed by the second vehicle-mounted terminal in the communication connection recovery command to the second vehicle-mounted terminal, enabling the second vehicle-mounted terminal to restore its communication connection with the monitoring platform by executing the command code.

[0052] For some specific embodiments, please refer to Figure 6 , Figure 6 This is a basic structural block diagram of another communication connection failure recovery device provided in an embodiment of this application. In this embodiment, the device is applied in a second vehicle-mounted terminal that is not connected to a monitoring platform, and the various units included are used to perform the steps in the above method embodiments. Please refer to the relevant descriptions in the above method embodiments for details. For ease of explanation, only the parts relevant to this embodiment are shown. Figure 6 As shown, the communication connection failure recovery device includes a judgment module 61 and a second processing module 62. The judgment module 61, upon receiving a command to be executed and its command code, determines whether the command has already been executed based on the command code. The second processing module 62, if the command has been executed, sends an execution result indicating that the command has been executed to the first vehicle-mounted terminal; if the command has not been executed, it executes the command, saves the command code corresponding to the command locally, and sends the execution result indicating that the command has been executed to the first vehicle-mounted terminal.

[0053] It should be understood that the communication connection failure recovery device corresponds one-to-one with the communication connection failure recovery method mentioned above, and will not be described again here.

[0054] In some embodiments of this application, please refer to Figure 7 , Figure 7 This is a basic structural block diagram of an electronic device provided in an embodiment of this application. Figure 7As shown, the electronic device 7 of this embodiment includes: a processor 71, a memory 72, and a computer program 73 stored in the memory 72 and executable on the processor 71, such as a program for a method to recover from a communication connection failure. When the processor 71 executes the computer program 73, it implements the steps in each embodiment of the communication connection failure recovery method described above. Alternatively, when the processor 71 executes the computer program 73, it implements the functions of each module in the embodiment corresponding to the communication connection failure recovery device described above. Please refer to the relevant descriptions in the embodiments for details, which will not be repeated here.

[0055] For example, the computer program 73 can be divided into one or more modules (units), which are stored in the memory 72 and executed by the processor 71 to complete this application. The one or more modules can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program 73 in the electronic device 7. For example, the computer program 73 can be divided into a receiving module and a first processing module, or a judging module and a second processing module, with the functions of each module as described above.

[0056] The electronic device may include, but is not limited to, a processor 71 and a memory 72. Those skilled in the art will understand that... Figure 7 This is merely an example of electronic device 7 and does not constitute a limitation on electronic device 7. It may include more or fewer components than shown, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.

[0057] The processor 71 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0058] The memory 72 can be an internal storage unit of the electronic device 7, such as a hard disk or memory. The memory 72 can also be an external storage device of the electronic device 7, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 72 can include both internal and external storage units of the electronic device 7. The memory 72 is used to store the computer program and other programs and data required by the electronic device. The memory 72 can also be used to temporarily store data that has been output or will be output.

[0059] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0060] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above. In this embodiment, the computer-readable storage medium can be either non-volatile or volatile.

[0061] This application provides a computer program product that, when run on a mobile terminal, enables the mobile terminal to implement the steps described in the above-described method embodiments.

[0062] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0063] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0064] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0065] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for recovering from communication connection anomalies, characterized in that, Applications in the first in-vehicle terminal already connected to the regulatory platform include: The system receives a communication connection restoration command issued by the monitoring platform. The communication connection restoration command carries data information of the second vehicle terminal and is used to re-establish the communication connection between the second vehicle terminal and the monitoring platform. The second vehicle terminal is the vehicle terminal that is displayed as having a connection abnormality on the monitoring platform. According to the communication connection restoration instruction, a device scan is performed within a preset area. If the second vehicle terminal is detected, the command and command code that the second vehicle terminal needs to execute in the communication connection restoration instruction are sent to the second vehicle terminal so that the second vehicle terminal can restore the communication connection with the monitoring platform by executing the command and command code. Wherein, when the communication connection restoration instruction carries data information of more than one second vehicle-mounted terminal, the method further includes: receiving the execution result of any second vehicle-mounted terminal; if the execution result is that the command has been executed, then forwarding the data information of all second vehicle-mounted terminals in the communication connection restoration instruction, except for the data information of the any one second vehicle-mounted terminal, to the any one second vehicle-mounted terminal.

2. The method for restoring communication connection anomalies according to claim 1, characterized in that, Before the step of sending the command code that the second vehicle terminal needs to execute in the communication connection restoration instruction to the second vehicle terminal, the method further includes: Send an authentication request to the second vehicle terminal and receive the username and password information of the second vehicle terminal; The username and password information of the second vehicle terminal are compared with the username and password information corresponding to the second vehicle terminal recorded in the communication connection restoration instruction. If the information matches, it is determined that the second vehicle terminal has been authenticated.

3. The method for restoring communication connection anomalies according to claim 1, characterized in that, The communication connection restoration command contains the name and password of the short-range communication module of the second vehicle terminal. After the step of scanning for devices within a preset area according to the communication connection restoration command, the method further includes: Based on the short-range communication module name and password recorded in the communication connection restoration instruction, a device scan is performed within a preset area to determine whether there is a target short-range communication module with the same name as the short-range communication module recorded in the communication connection restoration instruction within the preset area. If the target short-range communication module is detected within the preset area, the system connects to the target short-range communication module according to the short-range communication module password recorded in the communication connection recovery instruction, and identifies the vehicle terminal corresponding to the target short-range communication module as the second vehicle terminal.

4. The method for restoring communication connection anomalies according to claim 1, characterized in that, The method further includes: The system receives the execution result from the second vehicle terminal. If the execution result indicates that the command has been executed, the system reports the execution result to the monitoring platform. Based on the execution result, the monitoring platform triggers the system to issue a command deletion instruction to all first vehicle terminals. The command deletion instruction carries the command code corresponding to the second vehicle terminal and is used to delete the command corresponding to the command code.

5. A method for recovering from communication connection anomalies, characterized in that, Applications in second vehicle terminals not connected to a regulatory platform include: Upon receiving a command to be executed and its code, determine whether the command has already been executed based on the command code. If the command has been executed, the execution result indicating that the command has been executed is sent to the first vehicle terminal; if the command has not been executed, the command is executed and the command code corresponding to the command is saved locally, and the execution result indicating that the command has been executed is sent to the first vehicle terminal. The first vehicle-mounted terminal is configured to: receive a communication connection restoration command issued by the monitoring platform, wherein the communication connection restoration command carries data information of the second vehicle-mounted terminal for re-establishing the communication connection between the second vehicle-mounted terminal and the monitoring platform; perform device scanning within a preset area according to the communication connection restoration command; and, if the second vehicle-mounted terminal is detected, send the command and command code that the second vehicle-mounted terminal needs to execute in the communication connection restoration command to the second vehicle-mounted terminal, so that the second vehicle-mounted terminal can restore the communication connection with the monitoring platform by executing the command and command code; wherein, when the communication connection restoration command carries data information of more than one second vehicle-mounted terminal, the first vehicle-mounted terminal is further configured to: receive the execution result of any one of the second vehicle-mounted terminals; if the execution result is that the command has been executed, forward the data information of all second vehicle-mounted terminals except the data information of the aforementioned second vehicle-mounted terminal to the aforementioned second vehicle-mounted terminal.

6. A device for restoring communication connection anomalies, characterized in that, Applications in the first in-vehicle terminal already connected to the regulatory platform include: The receiving module is used to receive a communication connection restoration instruction issued by the monitoring platform. The communication connection restoration instruction carries data information of the second vehicle terminal and is used to re-establish the communication connection between the second vehicle terminal and the monitoring platform. The second vehicle terminal is the vehicle terminal that is displayed as having a connection abnormality on the monitoring platform. The first processing module is used to perform device scanning within a preset area according to the communication connection restoration instruction. If the second vehicle terminal is detected, the module sends the command code that the second vehicle terminal needs to execute in the communication connection restoration instruction to the second vehicle terminal, so that the second vehicle terminal can restore the communication connection with the monitoring platform by executing the command code. Wherein, when the communication connection restoration instruction carries data information of more than one second vehicle-mounted terminal, the device is further configured to: receive the execution result of any second vehicle-mounted terminal, and if the execution result is that the command has been executed, forward the data information of all second vehicle-mounted terminals except the data information of the second vehicle-mounted terminal in the communication connection restoration instruction to the second vehicle-mounted terminal.

7. A device for restoring communication connection anomalies, characterized in that, Applications in second vehicle terminals not connected to a regulatory platform include: The judgment module is used to determine whether the command has been executed before, based on the command code, when a command to be executed and the command code are received. The second processing module is used to send the execution result of the command being executed to the first vehicle terminal if the command has been executed; and to execute the command and save the command code corresponding to the command locally if the command has not been executed, and send the execution result of the command being executed to the first vehicle terminal. The first vehicle-mounted terminal is configured to: receive a communication connection restoration command issued by the monitoring platform, wherein the communication connection restoration command carries data information of the second vehicle-mounted terminal for re-establishing the communication connection between the second vehicle-mounted terminal and the monitoring platform; perform device scanning within a preset area according to the communication connection restoration command; and, if the second vehicle-mounted terminal is detected, send the command and command code that the second vehicle-mounted terminal needs to execute in the communication connection restoration command to the second vehicle-mounted terminal, so that the second vehicle-mounted terminal can restore the communication connection with the monitoring platform by executing the command and command code; wherein, when the communication connection restoration command carries data information of more than one second vehicle-mounted terminal, the first vehicle-mounted terminal is further configured to: receive the execution result of any one of the second vehicle-mounted terminals; if the execution result is that the command has been executed, forward the data information of all second vehicle-mounted terminals except the data information of the aforementioned second vehicle-mounted terminal to the aforementioned second vehicle-mounted terminal.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 5.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Failure recovery method and device

    CN104639356A

  • Internet of things connecting method, terminal and Internet of things platform

    CN109429204A