Methods, systems, equipment, and media for handling data channel anomalies
By utilizing the interaction mechanism of simulated messages and feedback information in vehicle remote control and vehicle status reporting services, the repair operation of the data channel is automatically determined, which solves the problems of lagging and inefficient data communication anomaly handling in the existing technology and realizes efficient automatic repair and disaster recovery capabilities.
Patent Information
- Application Number
- CN202110871529.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-30
- Publication Date
- 2026-03-06
- Estimated Expiration
- 2041-07-30
AI Technical Summary
Existing technologies for handling data communication anomalies suffer from lag and low efficiency, especially in vehicle remote control and vehicle status reporting services. When messages or connections are lost, manual intervention and service restarts are often required, resulting in an inefficient processing flow.
The system receives and sends simulated messages through the data channel between the vehicle terminal and the cloud server, generates feedback information, and determines whether to perform data channel repair operations based on the number of times messages are sent and received, thereby achieving automatic repair and reducing manual intervention.
It improves the processing efficiency of the data channel, avoids processing delays, enhances the disaster recovery capability of the data channel, and reduces manual intervention.
Smart Images

Figure CN115701048B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle network communication technology, and in particular to a method, system, device and medium for handling data channel anomalies. Background Technology
[0002] Currently, the technical implementation of vehicle remote control and vehicle status reporting services generally adopts MQ (Message Queuing) technology to complete message communication between the user APP (application) terminal, the cloud, and the vehicle. The specific communication process is as follows: Message vehicle status uplink: TBOX (Vehicle Network System) publishes the specified message to the topic (transmission intermediary between message publishers and subscribers), and the cloud subscribes to the topic messages of the MQ server; Message remote control downlink: The cloud publishes the topic messages of the MQ server, and TBOX subscribes to the specified message to the topic.
[0003] Message queues (MQ) typically offer high reliability and low latency. However, when application programs connect to MQ, issues such as message loss and connection loss often arise. These problems can be caused by network anomalies, resource issues, or MQ server problems. Currently, the common approach is to restart the service to quickly resolve these issues. However, this approach suffers from several drawbacks: delayed problem detection, uncontrollable impact of the problem, relatively simple problem-solving requiring significant manual intervention, and overall low efficiency. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to overcome the defects of the existing technology in handling data communication anomalies, which are slow and inefficient, and to provide a method, system, device and medium for handling data channel anomalies.
[0005] One objective of this invention is to provide a method for handling data channel anomalies. Its advantage lies in first receiving multiple simulated messages sent by the cloud server through a first data channel between the vehicle-mounted terminal and the cloud server; then generating feedback information for each simulated message; and finally sending the feedback information to the cloud server through the first data channel. The cloud server then sends the feedback information to the mobile terminal through a second data channel. This allows the mobile terminal to determine whether to perform repair operations on the first and / or second data channels based on the number of simulated messages sent and the number of feedback messages received. This achieves the operation of repairing the first and / or second data channels based on the interaction between the vehicle-mounted terminal, the cloud server, and the mobile terminal, avoiding processing delays and improving work efficiency.
[0006] Another objective of this invention is to provide a method for handling data channel anomalies. Its advantage lies in storing the simulated message, the time of its reception, and the identifier of the receiving device upon receiving a simulated message. This serves two purposes: firstly, it indicates whether the vehicle-mounted terminal successfully received the simulated message; secondly, it facilitates subsequent review.
[0007] Another objective of this invention is to provide a method for handling data channel anomalies. Its advantage lies in first sending multiple simulated messages to the cloud server via a second data channel between the mobile terminal and the cloud server, so that the cloud server can then send the simulated messages to the vehicle terminal via a first data channel between the vehicle terminal and the cloud server. Then, based on the number of simulated messages sent and the number of feedback messages received, a decision is made on whether to perform operations to repair the first and / or second data channels. This achieves automatic repair of the first and / or second data channels via the mobile terminal, avoiding manual intervention, improving work efficiency, and enhancing the disaster recovery capabilities of the first and second data channels.
[0008] Another objective of this invention is to provide a method for handling data channel anomalies. Its advantage lies in that it performs repair operations on the first data channel and / or the second data channel when the difference between the number of times simulated messages are sent and the number of times feedback information is received exceeds a difference threshold. Alternatively, a repair value is calculated based on normal and abnormal values; if the repair value exceeds a repair threshold, repair operations on the first data channel and / or the second data channel are performed. This allows for more accurate monitoring of the transmission status of the first data channel and / or the second data channel, thereby enabling rapid and automatic repair of the first data channel and / or the second data channel.
[0009] Another objective of this invention is to provide a method for handling data channel anomalies. Its advantage lies in first sending multiple simulated messages to the cloud server via a second data channel between the mobile terminal and the cloud server; then forwarding the received simulated messages to the vehicle terminal via a first data channel between the vehicle terminal and the cloud server; subsequently, upon receiving the simulated messages, the vehicle terminal generates feedback information for each simulated message and sends this feedback information to the cloud server via the first data channel; the cloud server then forwards the feedback information to the mobile terminal via the second data channel; finally, the vehicle terminal determines whether to perform repair operations on the first and / or second data channels based on the number of simulated messages sent and the number of feedback messages received. This achieves automatic repair of the first and / or second data channels via the mobile terminal, avoiding manual intervention and processing delays, improving work efficiency, and enhancing the disaster recovery capabilities of the first and second data channels.
[0010] Another objective of this invention is to provide a method for handling data channel anomalies. Its advantage lies in first receiving multiple simulated messages sent by the cloud server through a first data channel between the vehicle terminal and the cloud server; then generating feedback information for each simulated message; and finally sending the feedback information to the cloud server through the first data channel. The cloud server then sends the feedback information to the mobile terminal through a second data channel. This allows the mobile terminal to determine whether to perform operations to repair the first and / or second data channels based on the number of simulated messages sent and the number of feedback messages received. This achieves the operation of repairing the first and / or second data channels based on the interaction between the vehicle terminal, the cloud server, and the mobile terminal, avoiding processing delays and improving work efficiency.
[0011] Another objective of this invention is to provide a method for handling data channel anomalies. Its advantage lies in first sending multiple simulated messages to the cloud server via a second data channel between the mobile terminal and the cloud server, so that the cloud server can then send the simulated messages to the vehicle terminal via a first data channel between the vehicle terminal and the cloud server. Then, based on the number of simulated messages sent and the number of feedback messages received, a decision is made on whether to perform operations to repair the first and / or second data channels. This achieves automatic repair of the first and / or second data channels via the mobile terminal, avoiding manual intervention, improving work efficiency, and enhancing the disaster recovery capabilities of the first and second data channels.
[0012] Another objective of this invention is to provide a method for handling data channel anomalies. Its advantage lies in first sending multiple simulated messages to the cloud server via a second data channel between the mobile terminal and the cloud server; then forwarding the received simulated messages to the vehicle terminal via a first data channel between the vehicle terminal and the cloud server; subsequently, upon receiving the simulated messages, the vehicle terminal generates feedback information for each simulated message and sends this feedback information to the cloud server via the first data channel; the cloud server then forwards the feedback information to the mobile terminal via the second data channel; finally, the vehicle terminal determines whether to perform repair operations on the first and / or second data channels based on the number of simulated messages sent and the number of feedback messages received. This achieves automatic repair of the first and / or second data channels via the mobile terminal, avoiding manual intervention and processing delays, improving work efficiency, and enhancing the disaster recovery capabilities of the first and second data channels.
[0013] Another objective of this invention is to provide an in-vehicle terminal, which has the advantage of executing the above-mentioned data channel anomaly handling method to realize the operation of repairing the first data channel and / or the second data channel based on the interaction between the in-vehicle terminal, the cloud server and the mobile terminal, thereby avoiding processing delays and improving work efficiency.
[0014] Another objective of this invention is to provide a mobile terminal that has the advantage of executing the above-mentioned data channel anomaly handling method to automatically repair the first data channel and / or the second data channel through the mobile terminal, avoiding manual intervention, improving work efficiency, and enhancing the disaster recovery capabilities of the first and second data channels.
[0015] Another objective of this invention is to provide a computer-readable storage medium, which has the advantage of executing the above-mentioned data channel anomaly handling method to realize the interaction between the vehicle terminal, cloud server and mobile terminal and automatically repair the first data channel and / or the second data channel through the mobile terminal, avoiding manual intervention and processing delays, improving work efficiency and enhancing the disaster recovery capabilities of the first data channel and the second data channel.
[0016] The present invention solves the above-mentioned technical problems through the following technical solution:
[0017] The first aspect of this invention provides a method for handling data channel anomalies, the method being applied to an in-vehicle terminal, the method comprising:
[0018] The mobile terminal receives multiple simulated messages sent by the cloud server through the first data channel between the vehicle terminal and the cloud server. The simulated messages are generated by the mobile terminal and sent to the cloud server by the mobile terminal through the second data channel between the mobile terminal and the cloud server.
[0019] Generate feedback information for each simulated message;
[0020] The feedback information is sent to the cloud server through the first data channel, and the cloud server sends the feedback information to the mobile terminal through the second data channel, so that the mobile terminal decides whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of times the simulated message is sent and the number of times the feedback information is received.
[0021] Preferably, the processing method further includes:
[0022] Upon receiving the simulated message, the simulated message, the time of receipt of the simulated message, and the device identifier that received the simulated message are stored.
[0023] A second aspect of the present invention provides a method for handling data channel anomalies, the method being applied to a mobile terminal, the method comprising:
[0024] The mobile terminal sends multiple simulated messages to the cloud server through the second data channel between the mobile terminal and the cloud server, so that the cloud server can send the simulated messages to the vehicle terminal through the first data channel between the vehicle terminal and the cloud server.
[0025] The decision to perform the repair operation on the first data channel and / or the second data channel is determined based on the number of times the simulated messages are sent and the number of times the feedback information is received; the feedback information is generated by the vehicle terminal for each received simulated message and sent to the mobile terminal through the cloud server.
[0026] Preferably, the step of determining whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of times the simulated message is sent and the number of times the feedback information is received includes:
[0027] If the difference between the number of times the simulated message is sent and the number of times the feedback information is received is greater than a difference threshold, the operation of repairing the first data channel and / or the second data channel is performed.
[0028] Alternatively, a repair value can be calculated based on normal and abnormal values. If the repair value is greater than the repair threshold, the operation of repairing the first data channel and / or the second data channel can be performed. The normal value is the number of times the feedback information is received within a preset time after the simulated message is sent, and the abnormal value is the number of times the feedback information is not received within a preset time after the simulated message is sent.
[0029] A third aspect of the present invention provides a method for handling data channel anomalies, the method being applied to a communication system, the communication system including an in-vehicle terminal, a cloud server, and a mobile terminal, the method comprising:
[0030] The mobile terminal sends simulated messages to the cloud server multiple times through the second data channel between the mobile terminal and the cloud server.
[0031] The cloud server forwards the received simulated messages to the vehicle terminal through the first data channel between the vehicle terminal and the cloud server;
[0032] Upon receiving the simulated message, the vehicle terminal generates feedback information for each simulated message and sends the feedback information to the cloud server through the first data channel.
[0033] The cloud server forwards the feedback information to the mobile terminal through the second data channel;
[0034] The mobile terminal determines whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of times the simulated message is sent and the number of times the feedback information is received.
[0035] A fourth aspect of the present invention provides a data channel anomaly processing device, the processing device being applied to an in-vehicle terminal, the processing device comprising:
[0036] The receiving module is used to receive simulated messages sent multiple times by the cloud server through a first data channel between the vehicle terminal and the cloud server. The simulated messages are generated by the mobile terminal and sent to the cloud server by the mobile terminal through a second data channel between the mobile terminal and the cloud server.
[0037] The generation module is used to generate feedback information for each simulated message;
[0038] A first sending module is configured to send the feedback information to the cloud server through the first data channel, so that the cloud server can send the feedback information to the mobile terminal through the second data channel, so that the mobile terminal can decide whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of times the simulated message is sent and the number of times the feedback information is received.
[0039] The fifth aspect of the present invention provides a data channel anomaly processing apparatus, the processing apparatus being applied to a mobile terminal, the processing apparatus comprising:
[0040] The second sending module is used to send simulated messages to the cloud server multiple times through the second data channel between the mobile terminal and the cloud server, so that the cloud server can send the simulated messages to the vehicle terminal through the first data channel between the vehicle terminal and the cloud server.
[0041] The decision module is used to determine whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of times the simulated messages are sent and the number of times the feedback information is received; the feedback information is generated by the vehicle terminal for each received simulated message and sent to the mobile terminal through the cloud server.
[0042] The sixth aspect of the present invention provides a data channel anomaly handling system, wherein the communication system includes an in-vehicle terminal, a cloud server, and a mobile terminal;
[0043] The mobile terminal sends simulated messages to the cloud server multiple times through the second data channel between the mobile terminal and the cloud server.
[0044] The cloud server forwards the received simulated messages to the vehicle terminal through the first data channel between the vehicle terminal and the cloud server;
[0045] Upon receiving the simulated message, the vehicle terminal generates feedback information for each simulated message and sends the feedback information to the cloud server through the first data channel.
[0046] The cloud server forwards the feedback information to the mobile terminal through the second data channel;
[0047] The mobile terminal determines whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of times the simulated message is sent and the number of times the feedback information is received.
[0048] The seventh aspect of the present invention provides a vehicle-mounted terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the data channel anomaly handling method as described in the first aspect.
[0049] The eighth aspect of the present invention provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the data channel anomaly handling method as described in the second aspect.
[0050] The ninth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the data channel anomaly handling method as described in the first and second aspects. Attached Figure Description
[0051] Figure 1 This is a flowchart of the data channel anomaly handling method of Embodiment 1 of the present invention.
[0052] Figure 2 This is another flowchart of the data channel anomaly handling method in Embodiment 2 of the present invention.
[0053] Figure 3 This is another flowchart of the data channel anomaly handling method in Embodiment 3 of the present invention.
[0054] Figure 4 This is a schematic diagram of a module of the data channel anomaly processing device according to Embodiment 4 of the present invention.
[0055] Figure 5 This is a schematic diagram of another module of the data channel anomaly processing device in Embodiment 5 of the present invention.
[0056] Figure 6 This is a schematic diagram of the communication system modules of the data channel anomaly handling system of Embodiment 6 of the present invention.
[0057] Figure 7 This is a schematic diagram of the structure of the electronic device according to Embodiment 7 of the present invention. Detailed Implementation
[0058] The present invention will be further illustrated by way of embodiments below, but the present invention is not limited to the scope of the embodiments described herein.
[0059] Example 1
[0060] This embodiment provides a method for handling data channel anomalies, which is applied to vehicle-mounted terminals, such as... Figure 1 As shown, the processing method includes:
[0061] Step 101: Receive simulated messages sent multiple times by the cloud server through the first data channel between the vehicle terminal and the cloud server. The simulated messages are generated by the mobile terminal and sent to the cloud server by the mobile terminal through the second data channel between the mobile terminal and the cloud server.
[0062] In this embodiment, the simulated message is generated by the mobile terminal. Specifically, the mobile terminal defines the simulated message according to the topic (transmission intermediary between message publishers and subscribers) of the message queue in the cloud server. For example, the topic is public / mobile or public / tbox, and the corresponding business enumeration is 1000 or 10001.
[0063] Then, the message body for the corresponding business is defined as follows:
[0064] {"time":"1619419408637","serviceid":"1000","nodeip":"172.16.0.1"}, where time represents the time when the simulated message is sent, serviceid represents the enumeration corresponding to the topic, and nodeip represents the IP address of the node corresponding to the simulated message publication.
[0065] Step 102: Generate feedback information for each simulated message.
[0066] In this embodiment, the vehicle terminal generates feedback information for each simulated message upon receiving the simulated message.
[0067] Step 103: Send feedback information to the cloud server through the first data channel, so that the cloud server can send the feedback information to the mobile terminal through the second data channel, so that the mobile terminal can decide whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of times the simulated message is sent and the number of times the feedback information is received.
[0068] In one feasible solution, the processing method further includes:
[0069] Upon receiving a simulated message, store the simulated message, the time the simulated message was received, and the identifier of the device that received the simulated message.
[0070] In this embodiment, when the vehicle terminal receives a simulated message, it stores the simulated message, the time of receiving the simulated message, and the device identifier that received the simulated message in Redis (remote dictionary service). This can mark whether the vehicle terminal has successfully received the simulated message, and it can also be easily retrieved later.
[0071] This embodiment receives multiple simulated messages sent by the cloud server through a first data channel between the vehicle terminal and the cloud server; generates feedback information for each simulated message; and sends the feedback information to the cloud server through the first data channel. The cloud server then sends the feedback information to the mobile terminal through a second data channel. This allows the mobile terminal to determine whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of simulated messages sent and the number of feedback information received. This achieves the operation of repairing the first data channel and / or the second data channel based on the interaction between the vehicle terminal, the cloud server, and the mobile terminal, avoiding processing delays and improving work efficiency.
[0072] Example 2
[0073] This embodiment provides a method for handling data channel anomalies, which is applied to mobile terminals, such as... Figure 2 As shown, the processing method includes:
[0074] Step 201: Send simulated messages to the cloud server multiple times through the second data channel between the mobile terminal and the cloud server, so that the cloud server can send the simulated messages to the vehicle terminal through the first data channel between the vehicle terminal and the cloud server.
[0075] In this embodiment, the mobile terminal sends the defined simulated message to the cloud server multiple times through the second data channel between the mobile terminal and the cloud server. Specifically, the mobile terminal sends the defined simulated message to the message queue in the cloud server through the second data channel between the mobile terminal and the cloud server, so that the message queue in the cloud server can send the simulated message to the vehicle terminal through the first data channel between the vehicle terminal and the cloud server.
[0076] Step 202: Determine whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of times the simulated messages are sent and the number of times the feedback information is received; the feedback information is generated by the vehicle terminal for each received simulated message and sent to the mobile terminal through the cloud server.
[0077] In one feasible embodiment, step 202 includes:
[0078] If the difference between the number of simulated messages sent and the number of feedback messages received is greater than a threshold, it indicates that many simulated messages sent by the mobile terminal cannot be received by the vehicle terminal, suggesting an anomaly in the first data channel and / or the second data channel. In this case, operations to repair the first data channel and / or the second data channel will be performed. If the difference between the number of simulated messages sent and the number of feedback messages received is less than or equal to a threshold, it indicates that most or all of the simulated messages sent by the mobile terminal are received by the vehicle terminal, suggesting that the first data channel and / or the second data channel are functioning normally.
[0079] Alternatively, a repair value can be calculated based on normal and abnormal values. If the repair value is greater than the repair threshold, it indicates that many simulated messages sent by the mobile terminal cannot be received by the vehicle terminal, suggesting an anomaly in the first and / or second data channels. In this case, the operation to repair the first and / or second data channels is performed. If the repair value is less than or equal to the repair threshold, it indicates that most or all of the simulated messages sent by the mobile terminal are received by the vehicle terminal, suggesting that the first and / or second data channels are normal. Here, the normal value is the number of times feedback information is received within a preset time after sending a simulated message, and the abnormal value is the number of times no feedback information is received within a preset time after sending a simulated message.
[0080] It should be noted that the difference threshold, preset duration, and repair threshold are all set according to the actual situation, and there are no specific limitations here. For example, the repair threshold can be set to 80%, or it can be set to other values.
[0081] For example, if the preset duration is 5 minutes, and feedback is received within 5 minutes after sending the simulated message, the normal value is incremented by 1, and the cumulative number of times feedback is received within 5 minutes is recorded as the normal value; if no feedback is received within 5 minutes after sending the simulated message, the abnormal value is incremented by 1, and the cumulative number of times no feedback is received within 5 minutes is recorded as the abnormal value.
[0082] In this embodiment, the formula for calculating the repair value is: P = Q / (Q + W)
[0083] Where P represents the repair value, Q represents the abnormal value within a unit of time, and W represents the normal value within a unit of time.
[0084] For example, if the repair threshold is 80%, the preset duration is 5 minutes, Q=90, W=10, then P=90 / 100=90%. Since the repair value of 90% is greater than the repair threshold of 80%, the mobile terminal performs the operation of repairing the first data channel and / or the second data channel.
[0085] In this embodiment, if the repair value is not greater than the repair threshold, the mobile terminal continues to send simulated messages.
[0086] In this embodiment, starting from the time the simulated message is sent, if the time difference between the sending time and a certain time reaches a preset duration, the normal and abnormal values within the preset duration are reset. This is to prevent the self-repair process from being mistakenly triggered again after it has already started. It should be noted that, typically, both the normal and abnormal values within the preset duration are reset to 0.
[0087] For example, with a preset duration of 5 minutes and a simulated message sending time of 9:10 on June 30, 2021, starting from 9:10 on June 30, 2021, when the time reaches 9:15 on June 30, 2021, the time difference between 9:10 and 9:15 on June 30, 2021 is equal to the preset duration of 5 minutes. Therefore, both normal and abnormal values between 9:10 and 9:15 on June 30, 2021 are reset to 0.
[0088] This embodiment defines and sends simulated messages through a mobile terminal, and monitors the transmission status of the first and second data channels based on the interaction between the mobile terminal, the cloud server, and the vehicle terminal. This enables automatic repair of the first and / or second data channels through the mobile terminal, avoiding manual intervention, improving work efficiency, and enhancing the disaster recovery capabilities of the first and second data channels.
[0089] Example 3
[0090] This embodiment provides a method for handling data channel anomalies, further illustrating Embodiment 1 or Embodiment 2 through the interaction between a mobile terminal, a cloud server, and an in-vehicle terminal. This method is applied to a communication system, which includes an in-vehicle terminal, a cloud server, and a mobile terminal. Figure 3 As shown, the processing method includes:
[0091] Step 301: The mobile terminal sends simulated messages to the cloud server multiple times through the second data channel between the mobile terminal and the cloud server.
[0092] In this embodiment, the mobile terminal sends the defined simulated message to the cloud server multiple times through the second data channel between the mobile terminal and the cloud server. Specifically, the mobile terminal sends the defined simulated message to the message queue in the cloud server through the second data channel between the mobile terminal and the cloud server, so that the message queue in the cloud server can send the simulated message to the vehicle terminal through the first data channel between the vehicle terminal and the cloud server.
[0093] Step 302: The cloud server forwards the received simulated message to the vehicle terminal through the first data channel between the vehicle terminal and the cloud server.
[0094] Step 303: Upon receiving a simulated message, the vehicle terminal generates feedback information for each simulated message.
[0095] Step 304: The vehicle terminal sends the feedback information to the cloud server through the first data channel.
[0096] Step 305: The cloud server forwards the feedback information to the mobile terminal through the second data channel.
[0097] Step 306: The mobile terminal decides whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of times the simulated messages are sent and the number of times the feedback information is received.
[0098] Steps 301-306 are similar to the specific implementation of steps 101-103 or steps 201-202 described above, and the specific implementation process will not be repeated here.
[0099] This embodiment monitors the transmission status of the first and second data channels through the interaction between the mobile terminal, the cloud server, and the vehicle terminal. It enables automatic repair of the first and / or second data channels via the mobile terminal, avoiding manual intervention, improving work efficiency, and enhancing the disaster recovery capabilities of the first and second data channels.
[0100] Example 4
[0101] This embodiment provides a data channel anomaly handling device, which is applied to an in-vehicle terminal, such as... Figure 4 As shown, the processing apparatus includes:
[0102] The receiving module 41 is used to receive simulated messages sent multiple times by the cloud server through the first data channel between the vehicle terminal and the cloud server. The simulated messages are generated by the mobile terminal and sent to the cloud server by the mobile terminal through the second data channel between the mobile terminal and the cloud server.
[0103] In this embodiment, the simulated message is generated by the mobile terminal. Specifically, the mobile terminal defines the simulated message according to the topic (transmission intermediary between message publishers and subscribers) of the message queue in the cloud server. For example, the topic is public / mobile or public / tbox, and the corresponding business enumeration is 1000 or 10001.
[0104] Then, the message body for the corresponding business is defined as follows:
[0105] {"time":"1619419408637","serviceid":"1000","nodeip":"172.16.0.1"}, where time represents the time when the simulated message is sent, serviceid represents the enumeration corresponding to the topic, and nodeip represents the IP address of the node corresponding to the simulated message publication.
[0106] The generation module 42 is used to generate feedback information for each simulated message.
[0107] In this embodiment, the generation module 42 is used to generate feedback information for each simulated message when the vehicle terminal receives a simulated message.
[0108] The first sending module 43 is used to send feedback information to the cloud server through the first data channel, so that the cloud server can send the feedback information to the mobile terminal through the second data channel, so that the mobile terminal can decide whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of times the simulated message is sent and the number of times the feedback information is received.
[0109] This embodiment receives multiple simulated messages sent by the cloud server through a first data channel between the vehicle terminal and the cloud server; generates feedback information for each simulated message; and sends the feedback information to the cloud server through the first data channel. The cloud server then sends the feedback information to the mobile terminal through a second data channel. This allows the mobile terminal to determine whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of simulated messages sent and the number of feedback information received. This achieves the operation of repairing the first data channel and / or the second data channel based on the interaction between the vehicle terminal, the cloud server, and the mobile terminal, avoiding processing delays and improving work efficiency.
[0110] Example 5
[0111] This embodiment provides a data channel anomaly handling device, which is applied to a mobile terminal, such as... Figure 5 As shown, the processing apparatus includes:
[0112] The second sending module 51 is used to send simulated messages to the cloud server multiple times through the second data channel between the mobile terminal and the cloud server, so that the cloud server can send the simulated messages to the vehicle terminal through the first data channel between the vehicle terminal and the cloud server.
[0113] In this embodiment, the mobile terminal sends the defined simulated message to the cloud server multiple times through the second data channel between the mobile terminal and the cloud server. Specifically, the mobile terminal sends the defined simulated message to the message queue in the cloud server through the second data channel between the mobile terminal and the cloud server, so that the message queue in the cloud server can send the simulated message to the vehicle terminal through the first data channel between the vehicle terminal and the cloud server.
[0114] The decision module 52 is used to determine whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of times the simulated messages are sent and the number of times the feedback information is received; the feedback information is generated by the vehicle terminal for each received simulated message and sent to the mobile terminal through the cloud server.
[0115] This embodiment defines and sends simulated messages through a mobile terminal, and monitors the transmission status of the first and second data channels based on the interaction between the mobile terminal, the cloud server, and the vehicle terminal. This enables automatic repair of the first and / or second data channels through the mobile terminal, avoiding manual intervention, improving work efficiency, and enhancing the disaster recovery capabilities of the first and second data channels.
[0116] Example 6
[0117] This embodiment provides a data channel anomaly handling system, which further illustrates Embodiment 4 or Embodiment 5 through the interaction between a mobile terminal, a cloud server, and an in-vehicle terminal. Figure 6 As shown, the communication system includes an in-vehicle terminal 61, a cloud server 62, and a mobile terminal 63.
[0118] Mobile terminal 63 sends simulated messages to cloud server 62 multiple times through the second data channel between mobile terminal 63 and cloud server 62.
[0119] In this embodiment, the mobile terminal sends the defined simulated message to the cloud server multiple times through the second data channel between the mobile terminal and the cloud server. Specifically, the mobile terminal sends the defined simulated message to the message queue in the cloud server through the second data channel between the mobile terminal and the cloud server, so that the message queue in the cloud server can send the simulated message to the vehicle terminal through the first data channel between the vehicle terminal and the cloud server.
[0120] The cloud server 62 forwards the received analog messages to the vehicle terminal 61 through the first data channel between the vehicle terminal 61 and the cloud server 62.
[0121] Upon receiving a simulated message, the vehicle-mounted terminal 61 generates feedback information for each simulated message and sends the feedback information to the cloud server 62 through the first data channel.
[0122] The cloud server 62 forwards the feedback information to the mobile terminal 63 through the second data channel.
[0123] The mobile terminal 63 determines whether to perform the operation of repairing the first data channel and / or the second data channel based on the number of times the simulated messages are sent and the number of times the feedback information is received.
[0124] The specific implementation method of this embodiment is similar to that of Embodiment 4 or Embodiment 5, and the specific implementation process will not be described in detail here.
[0125] This embodiment monitors the transmission status of the first and second data channels through the interaction between the mobile terminal, the cloud server, and the vehicle terminal. It enables automatic repair of the first and / or second data channels via the mobile terminal, avoiding manual intervention, improving work efficiency, and enhancing the disaster recovery capabilities of the first and second data channels.
[0126] Example 7
[0127] Figure 7This is a schematic diagram of the structure of an electronic device provided in Embodiment 7 of the present invention. The electronic device is a vehicle-mounted terminal or a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the data channel anomaly handling method of Embodiment 1 or 2. Figure 7 The electronic device 30 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.
[0128] like Figure 7 As shown, the electronic device 30 can be manifested as a general-purpose computing device, such as a server device. The components of the electronic device 30 may include, but are not limited to: at least one processor 31, at least one memory 32, and a bus 33 connecting different system components (including memory 32 and processor 31).
[0129] Bus 33 includes a data bus, an address bus, and a control bus.
[0130] The memory 32 may include volatile memory, such as random access memory (RAM) 321 and / or cache memory 322, and may further include read-only memory (ROM) 323.
[0131] The memory 32 may also include a program / utility 325 having a set (at least one) of program modules 324, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0132] The processor 31 executes various functional applications and data processing by running computer programs stored in the memory 32, such as the data channel anomaly handling method of Embodiment 1 or 2 of the present invention.
[0133] Electronic device 30 can also communicate with one or more external devices 34 (e.g., keyboard, pointing device, etc.). This communication can be performed via input / output (I / O) interface 35. Furthermore, the model-generating device 30 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 36. Figure 7 As shown, network adapter 36 communicates with other modules of the model-generated device 30 via bus 33. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems.
[0134] It should be noted that although several units / modules or sub-units / modules of the electronic device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.
[0135] Example 8
[0136] This embodiment provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the data channel anomaly handling methods provided in Embodiments 1 and 2.
[0137] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.
[0138] In a possible implementation, the present invention can also be implemented as a program product comprising program code, which, when the program product is run on a terminal device, causes the terminal device to execute the data channel anomaly handling method described in embodiments 1 and 2.
[0139] The program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed entirely on the user device, partially on the user device, as a standalone software package, partially on the user device and partially on a remote device, or entirely on a remote device.
[0140] While specific embodiments of the present invention have been described above, those skilled in the art should understand that these are merely illustrative examples, and the scope of protection of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but all such changes and modifications fall within the scope of protection of the present invention.
Claims
1. A method of handling data channel anomalies, characterized by, The processing method is applied to a vehicle terminal, and the processing method comprises: receiving, by a first data channel between the vehicle terminal and a cloud server, simulated messages sent by the cloud server for multiple times, the simulated messages being generated by a mobile terminal and sent to the cloud server by the mobile terminal through a second data channel between the mobile terminal and the cloud server; generating feedback information for each simulated message; sending the feedback information to the cloud server through the first data channel, so that the cloud server sends the feedback information to the mobile terminal through the second data channel, and the mobile terminal determines whether to perform an operation of repairing the first data channel and / or the second data channel according to a number of times of sending the simulated messages and a number of times of receiving the feedback information.
2. The processing method of data channel exception according to claim 1, further comprising: in the case of receiving the simulated messages, storing the simulated messages, a time of receiving the simulated messages, and an equipment identifier of receiving the simulated messages.
3. A method of handling data channel anomalies, characterized by, The processing method is applied to a mobile terminal, and the processing method comprises: sending, by a second data channel between the mobile terminal and a cloud server, simulated messages to the cloud server for multiple times, so that the cloud server sends the simulated messages to a vehicle terminal through a first data channel between the vehicle terminal and the cloud server; determining whether to perform an operation of repairing the first data channel and / or the second data channel according to a number of times of sending the simulated messages and a number of times of receiving feedback information, the feedback information being generated by the vehicle terminal for each received simulated message and sent to the mobile terminal by the cloud server.
4. The processing method of data channel exception according to claim 3, wherein the determining whether to perform the operation of repairing the first data channel and / or the second data channel according to the number of times of sending the simulated messages and the number of times of receiving the feedback information comprises: in the case that a difference between the number of times of sending the simulated messages and the number of times of receiving the feedback information is greater than a difference threshold value, performing the operation of repairing the first data channel and / or the second data channel; or, calculating a repair value according to a normal value and an abnormal value, and in the case that the repair value is greater than a repair threshold value, performing the operation of repairing the first data channel and / or the second data channel, wherein the normal value is a number of times of receiving the feedback information within a preset time period after sending the simulated messages, and the abnormal value is a number of times of not receiving the feedback information within the preset time period after sending the simulated messages.
5. A method of handling data channel anomalies, characterized by, The processing method is applied to a communication system comprising a vehicle terminal, a cloud server, and a mobile terminal, and the processing method comprises: the mobile terminal sends simulated messages to the cloud server for multiple times through a second data channel between the mobile terminal and the cloud server; the cloud server forwards the received simulated messages to the vehicle terminal through a first data channel between the vehicle terminal and the cloud server; The vehicle-mounted terminal generates feedback information for each simulated message when receiving the simulated message, and sends the feedback information to the cloud server through the first data channel; The cloud server forwards the feedback information to the mobile terminal through the second data channel; The mobile terminal determines whether to perform an operation of repairing the first data channel and / or the second data channel according to the number of times of sending the simulated message and the number of times of receiving the feedback information.
6. An apparatus for handling data channel anomalies, the apparatus comprising: The processing device is applied to a vehicle-mounted terminal, and the processing device comprises: A receiving module is configured to receive simulated messages sent by a cloud server through a first data channel between the vehicle-mounted terminal and the cloud server, wherein the simulated messages are generated by a mobile terminal and sent to the cloud server by the mobile terminal through a second data channel between the mobile terminal and the cloud server; A generating module is configured to generate feedback information for each simulated message; A first sending module is configured to send the feedback information to the cloud server through the first data channel, so that the cloud server sends the feedback information to the mobile terminal through the second data channel, and the mobile terminal determines whether to perform an operation of repairing the first data channel and / or the second data channel according to the number of times of sending the simulated message and the number of times of receiving the feedback information.
7. An apparatus for handling data channel anomalies, the apparatus comprising: The processing device is applied to a mobile terminal, and the processing device comprises: A second sending module is configured to send simulated messages to a cloud server through a second data channel between the mobile terminal and the cloud server, so that the cloud server sends the simulated messages to a vehicle-mounted terminal through a first data channel between the vehicle-mounted terminal and the cloud server; A determining module is configured to determine whether to perform an operation of repairing the first data channel and / or the second data channel according to the number of times of sending the simulated message and the number of times of receiving the feedback information, wherein the feedback information is generated by the vehicle-mounted terminal for each received simulated message and sent to the mobile terminal by the cloud server.
8. A system for handling data channel anomalies, characterized by A communication system comprises a vehicle-mounted terminal, a cloud server, and a mobile terminal; The mobile terminal sends simulated messages to the cloud server through a second data channel between the mobile terminal and the cloud server; The cloud server forwards the received simulated messages to the vehicle-mounted terminal through a first data channel between the vehicle-mounted terminal and the cloud server; The vehicle-mounted terminal generates feedback information for each simulated message when receiving the simulated message, and sends the feedback information to the cloud server through the first data channel; The cloud server forwards the feedback information to the mobile terminal through the second data channel; The mobile terminal determines whether to perform an operation of repairing the first data channel and / or the second data channel according to the number of times of sending the simulated message and the number of times of receiving the feedback information.
9. A vehicle terminal, characterized by The computer program comprises a computer program and a storage medium, wherein the computer program can be stored in the storage medium and can be run on the processor, and the processor implements the data channel exception processing method according to any one of claims 1-4 when the computer program is run.
10. A mobile terminal, characterized by The computer program comprises a computer program and a storage medium, wherein the computer program can be stored in the storage medium and can be run on the processor, and the processor implements the data channel exception processing method according to any one of claims 1-4 when the computer program is run. 11.A computer readable storage medium, storing a computer program, wherein the computer program is executed by a processor to implement the data channel exception processing method according to any one of claims 1-4.
Citation Information
Patent Citations
Terminal Internet surfing abnormality processing method and device and medium
CN111263386A
Communication link detection method and related device
CN111756588A