Data stream transmission monitoring method, device, vehicle and storage medium
By introducing session and indicator identification codes into the vehicle data transmission link and generating target data packets to locate abnormal modules, the problem of low troubleshooting efficiency in the existing technology is solved, and fast, accurate positioning and efficient troubleshooting are achieved.
Patent Information
- Application Number
- CN202311409689.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2043-10-26
AI Technical Summary
In vehicle data transmission links, existing technologies are unable to quickly and accurately locate abnormal transmission modules, resulting in inefficient and costly troubleshooting.
By introducing session identification codes and indication identification codes into the data transmission link, target data packets are generated and transmitted upstream, allowing the server to accurately locate abnormal transmission modules and reduce troubleshooting costs.
It can quickly and accurately locate abnormal modules in the data transmission link, improve the efficiency of troubleshooting and reduce the waste of human resources.
Smart Images

Figure CN117651053B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile control technology, and more specifically, to a data stream transmission monitoring method, device, vehicle, and storage medium. Background Art
[0002] With the rapid development of connected vehicle technology, car owners can remotely check vehicle status and control vehicle functions using devices such as mobile phones, providing a better user experience. However, when a vehicle transmits data packets containing control instructions to the corresponding execution module, if a failure occurs in any link in the data transmission link, the data transmission is abnormally terminated, and the execution results cannot be obtained from the vehicle. This requires R&D personnel to monitor the data flow transmission of each transmission module in the data transmission link, which is time-consuming and inefficient. Summary of the Invention
[0003] In view of the above problems, the present application proposes a data stream transmission monitoring method, device, vehicle and storage medium, which can accurately locate abnormal transmission modules in the data transmission link, reduce troubleshooting costs and improve maintenance efficiency.
[0004] In a first aspect, an embodiment of the present application provides a data stream transmission monitoring method, which is applied to a vehicle, and the method includes: transmitting a downlink data packet sent by a server to a target module in the vehicle through a data transmission link in the vehicle, the downlink data packet including a session identification code, and the target module is used to feed back an uplink data packet to the server through the data transmission link after processing the downlink data packet, the uplink data packet including a first indication identification code and a session identification code, and the first indication identification code indicates that the downlink data packet has been successfully processed; if the first transmission module in the data transmission link does not receive the uplink transmitted data packet including the session identification code within a target time length, a target data packet is generated through the first transmission module, the target data packet including a second indication identification code, a session identification code and a module identification code corresponding to the first transmission module, and the second indication identification code indicates that there is an abnormality in the data transmission link; uplinking the target data packet through the first transmission module to transmit the target data packet to the server, and after the target data packet is received by the server, determining whether there is an abnormality in the data transmission link according to the second indication identification code and the session identification code, and determining the transmission module in the vehicle that causes the abnormal data flow termination according to the module identification code.
[0005] In a second aspect, an embodiment of the present application provides a data flow transmission monitoring method, which is applied to a server, and the method includes: sending a downlink data packet to a target module in a vehicle, the downlink data packet including a session identification code; receiving a target data packet sent by the vehicle, the target data packet including a second indication identification code, a module identification code corresponding to the first transmission module, and a session identification code, the first transmission module being any transmission module in the data transmission link of the vehicle, the target data packet is generated after the vehicle transmits a downlink data packet to the target module through the data transmission link, when the first transmission module in the data transmission link does not receive an uplink transmitted data packet including a session identification code within a target time length, the second indication identification code indicating that there is an abnormality in the data transmission link; determining that there is an abnormality in the data transmission link of the vehicle based on the second indication identification code and the session identification code in the target data packet; and determining the transmission module in the vehicle that causes the abnormal termination of the data flow based on the module identification code in the target data packet.
[0006] In a third aspect, an embodiment of the present application provides a data flow transmission monitoring device, which is applied to a vehicle, and the device includes: a downlink data transmission module, a target data generation module and a target data feedback module, wherein the downlink data transmission module is used to transmit a downlink data packet sent by a server to a target module in the vehicle through a data transmission link in the vehicle, and the downlink data packet includes a session identification code, and the target module is used to feed back an uplink data packet to the server through the data transmission link after processing the downlink data packet, and the uplink data packet includes a first indication identification code and a session identification code, and the first indication identification code indicates that the downlink data packet has been successfully processed; the target data generation ... and a session identification code, and the first indication identification code indicates that the downlink data packet has been successfully processed; the target data generation module is used to transmit a downlink data packet sent by a server to a target module in the vehicle through a data transmission link in the vehicle, and the downlink data packet includes a session identification code and a session identification code, and the target module is used to transmit a downlink data packet sent by a server to a target module in the vehicle through a data transmission link in the vehicle, and the downlink data packet includes a session identification code and a session identification code, and the target module is used to transmit a downlink data packet sent by a server to a target module in the vehicle If the first transmission module in the vehicle does not receive an uplink transmitted data packet including a session identification code within a target time length, a target data packet is generated through the first transmission module, and the target data packet includes a second indication identification code, a session identification code and a module identification code corresponding to the first transmission module, and the second indication identification code indicates that there is an abnormality in the data transmission link; the target data feedback module is used to uplink the target data packet through the first transmission module to transmit the target data packet to the server, and after the target data packet is received by the server, it is determined that there is an abnormality in the data transmission link of the vehicle according to the second indication identification code and the session identification code, and the transmission module in the vehicle that causes the abnormal termination of the data flow is determined according to the module identification code.
[0007] In a fourth aspect, an embodiment of the present application provides a data flow transmission monitoring device, which is applied to a server, and the device includes: a downlink data sending module, a target data receiving module, a processing result judgment module, and a fault location determination module. Among them, the downlink data sending module is used to send a downlink data packet to a target module in a vehicle, and the downlink data packet includes a session identification code; the target data receiving module is used to receive a target data packet sent by the vehicle, and the target data packet includes a second indication identification code, a module identification code corresponding to the first transmission module, and a session identification code. The first transmission module is any transmission module in the data transmission link of the vehicle. After the vehicle transmits a downlink data packet to the target module through the data transmission link, the target data packet is generated when the first transmission module in the data transmission link does not receive an uplink data packet including a session identification code within a target time length. The second indication identification code indicates that there is an abnormality in the data transmission link; the processing result judgment module is used to determine that there is an abnormality in the data transmission link of the vehicle based on the second indication identification code and the session identification code in the target data packet; the fault location determination module is used to determine the transmission module in the vehicle that causes the abnormal termination of the data flow based on the module identification code in the target data packet.
[0008] In a fifth aspect, an embodiment of the present application provides a vehicle comprising: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the data stream transmission monitoring method provided in the first aspect above.
[0009] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored. The program code can be called by a processor to execute the data stream transmission monitoring method provided in the first aspect above.
[0010] The solution provided by the present application is that, during the process of transmitting a downlink data packet through a data transmission link, if the first transmission module does not receive an uplink data packet fed back by the vehicle's target module for the downlink data packet within a target time length, a target data packet is automatically generated and an uplink transmission is performed, so that the server can determine the downlink data packet that has not been successfully processed by the vehicle based on the target data packet, and accurately locate the abnormal transmission module in the data transmission link during the process of transmitting the downlink data packet, thereby reducing the cost of troubleshooting the data transmission link and improving maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1 A flow chart of a data stream transmission monitoring method provided by an embodiment of the present application is shown.
[0013] Figure 2 A schematic diagram of the data transmission flow on the data transmission link in an embodiment of the present application is shown.
[0014] Figure 3 A flow chart of a data stream transmission monitoring method provided in another embodiment of the present application is shown.
[0015] Figure 4 A flow chart of a data stream transmission monitoring method provided in yet another embodiment of the present application is shown.
[0016] Figure 5 A structural block diagram of a data stream transmission monitoring device provided in an embodiment of the present application is shown.
[0017] Figure 6 A structural block diagram of another data stream transmission monitoring device provided in an embodiment of the present application is shown.
[0018] Figure 7 A structural block diagram of a vehicle provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0019] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0020] With the rapid development of Internet of Vehicles (IoV) technology, more and more car models are beginning to support owners to query the current status of the vehicle through mobile phones and other terminal devices, or to control vehicle functions and other operations. For example, on rainy days, car owners can use mobile phone applications to check whether the windows are closed. If not, they can directly send a command to close the windows to the vehicle through the mobile phone. This function is generally implemented by the user sending the vehicle operation instructions to the server through a mobile phone or other device. The server then forwards the instruction data packet to the corresponding vehicle. After receiving the instruction data packet sent by the server, the vehicle can transmit it downlink to the corresponding functional module through the data transmission link for execution. At the same time, after completing the operation required by the user, the corresponding functional module will feedback a data packet used to represent the execution result, which will be transmitted uplink to the server again through the data transmission link, and then fed back to the user's mobile phone or other device, so that the user can understand the vehicle's execution of the instruction.
[0021] Among them, since the data transmission link in the vehicle is relatively long, any failure in any transmission module will cause the vehicle to be unable to smoothly feedback the execution results of the user's instructions to the user, thereby reducing the user's experience. Therefore, R&D personnel must find out the specific abnormal transmission module in the vehicle's data transmission link every time a data transmission anomaly occurs. However, usually, when the server cannot receive the data packet feedback from the vehicle, the technician cannot accurately locate the faulty transmission module in the vehicle's data transmission link. In other words, the technician needs to check each transmission module in the vehicle's data transmission link in turn, which leads to inefficient troubleshooting and is time-consuming.
[0022] Therefore, the present application provides a data stream transmission monitoring method, device, vehicle, and storage medium. During the transmission of a downlink data packet via a data transmission link, if the first transmission module does not receive an uplink data packet fed back by the vehicle's target module for the downlink data packet within a target duration, the first transmission module automatically generates a target data packet and performs an uplink transmission, so that the server can accurately locate the abnormal transmission module in the data transmission link based on the target data packet, thereby reducing the cost of troubleshooting the data transmission link and improving maintenance efficiency. The specific data stream transmission monitoring method is described in detail in subsequent embodiments.
[0023] See also Figure 1 , Figure 1 A flow chart of a data stream transmission monitoring method provided by an embodiment of the present application is shown below. Figure 1 The process shown is described in detail. The data stream transmission monitoring method is applied to a vehicle and may specifically include the following steps:
[0024] Step S110: Transmitting the downlink data packet sent by the server to the target module in the vehicle through the data transmission link in the vehicle.
[0025] In an embodiment of the present application, the downlink data packet includes a session identification code, and the target module is used to feed back an uplink data packet to the server through the data transmission link after processing the downlink data packet. The uplink data packet includes a first indication identification code and a session identification code, and the first indication identification code represents the successful processing of the downlink data packet. Among them, the downlink data packet sent by the server to the vehicle is usually a data packet composed of control instructions issued to a target module in the vehicle based on user needs. That is to say, after receiving the downlink data packet, the vehicle can transmit the downlink data packet to the corresponding target module through the data transmission link for execution to meet the user's needs. Among them, the data transmission link can include multiple different transmission modules, each transmission module can not only forward the data packet to the next corresponding transmission module according to the established data flow direction, but also perform corresponding processing on the data packet, such as deconstruction and encapsulation operations. After obtaining the downlink data packet, the target module will perform the corresponding operation according to the instructions in the downlink data packet, and form the execution result into an uplink data packet, and again feed back to the server through the data transmission link.
[0026] It is understandable that the user can send similar control instructions to the vehicle multiple times in a row, and the server will generate a corresponding downlink data packet for each control instruction of the user and send it to the vehicle. In order to distinguish multiple consecutive control instructions initiated by the user and confirm whether each control instruction is accurately executed by the vehicle, the server can assign a session identification code to the downlink data packet corresponding to each control instruction. The session identification code can uniquely identify a downlink data packet, and different downlink data packets have different session identification codes. At the same time, each time the target module completes processing of a downlink data packet, it will generate a corresponding uplink data packet and feed it back to the server. The uplink data packet includes the same session identification code as the processed downlink data packet, so that when the server receives the uplink data packet, it can determine which downlink data packet the vehicle has successfully executed the instruction corresponding to through the session identification code in the data packet. The uplink data packet can also include a first indication identification code to indicate that the vehicle has successfully processed the following data packet.
[0027] For example, if a user wants to remotely lower the vehicle's air conditioning temperature by three degrees via a mobile app, they can send the "control the air conditioning to lower the temperature by one degree" command to the server three times in a row. These three commands will be generated by the server as downlink data packets with different session identification codes and sent to the vehicle. The target module in the vehicle, namely the air conditioning control module, will control the air conditioning temperature to lower by one degree each time it receives a downlink data packet. After execution is complete, it will send an uplink data packet back to the server. This uplink data packet includes a first indicator identification code used to indicate that the vehicle has successfully adjusted the air conditioning temperature, as well as the session identification code corresponding to the downlink data packet. If all three downlink data packets are successfully transmitted to the target module, the vehicle's air conditioning will be lowered by three degrees to meet the user's requirements. If the three uplink data packets fed back by the vehicle's target module in response to the three downlink data packets are also successfully transmitted to the server, the user will also know that the vehicle has successfully performed the corresponding operation.
[0028] Step S120: If the first transmission module in the data transmission link does not receive the data packet including the session identification code transmitted uplink within the target time period, the first transmission module generates a target data packet.
[0029] In an embodiment of the present application, the target data packet includes a second indicator identification code, a session identification code, and a module identification code corresponding to the first transmission module, and the second indicator identification code indicates that there is an abnormality in the data transmission link. Among them, since the vehicle needs to transmit the downlink data packet sent by the server to the target module for execution through the data transmission link, and the data transmission link usually includes multiple different transmission modules, once an abnormality occurs in a transmission module in the data transmission link and causes data packet loss, the server will not be able to receive the uplink data packet fed back by the target module on the vehicle side, and it is also impossible to determine which transmission module in the data transmission link has an abnormality that causes data packet loss. The technicians need to check each transmission module in the data transmission link, but if most of the transmission modules are fine, it will result in a large amount of human resources being wasted. Therefore, if during the process of transmitting the downlink data packet through the data transmission link, each transmission module can time the downlink data packet. If there is no abnormality in the data transmission link, each transmission module can receive the uplink data packet fed back by the target module with the same session identification code as the downlink data packet within the corresponding target time length. Each transmission module can stop timing when receiving the uplink data packet and smoothly transmit the uplink data packet to the server. However, if the first transmission module does not receive an uplink data packet with the same session identification code as the downlink data packet within the target time period, it indicates that during the uplink transmission, a packet loss failure occurred in the transmission module before the first transmission module. At this time, the first transmission module can generate a target data packet and transmit the target data packet uplink so that the server can receive the target data packet, and then quickly determine the transmission module where the packet loss failure occurred based on the module identification code included in the target data packet, and accurately locate the fault location without manual troubleshooting, saving a lot of manpower and time.
[0030] In the event that the first transmission module fails to receive a data packet, the generated target data packet may include a second indicator identification code, and the server may determine that the vehicle has failed to successfully process the downlink data packet based on the second indicator identification code. The target data packet may also include a module identification code corresponding to the first transmission module, so that the server can quickly locate the transmission module with an abnormal fault in the data transmission link based on the module identification code. The module identification code can uniquely identify the transmission module in the data transmission link, and different transmission modules have different module identification codes. The target data packet may also include a session identification code, so that after receiving the target data packet, the server can determine which downlink data packet was lost during transmission based on the session identification code.
[0031] It is understandable that if the server successfully receives the uplink data packet including the first indication identification code fed back by the target module of the vehicle, it indicates that there is no abnormal transmission termination failure in the data transmission link when transmitting the downlink data packet and the fed back uplink data packet. If the server receives the target data packet including the second indication identification code, it may be that there is an abnormality in the data transmission link of the vehicle, that is, the uplink data packet returned after the target module successfully processes the downlink data packet has been lost during the transmission process of the link. It may also be that the target module of the vehicle has not successfully processed the downlink data packet, resulting in the transmission module in the data transmission link not receiving the uplink data packet returned by the target module in a timely manner.
[0032] In some embodiments, a data transmission link failure may cause a data transmission abort. This may occur during the transmission of a downlink data packet to a target module, in which case the target module has not yet executed the control instruction corresponding to the downlink data packet. Alternatively, the target module may have executed the control instruction corresponding to the downlink data packet, but the uplink data packet sent back by the target module in response to the downlink data packet was lost during the uplink transmission of the data transmission link. Both of these situations may result in the first transmission module not receiving the uplink data packet containing the session identification code within the target duration.
[0033] In some embodiments, the data packet of uplink transmission that the first transmission module has not received within the target duration may be an uplink data packet including a first indication identification code and a session identification code fed back by the target module for the downlink data packet. It may also be a target data packet generated by a transmission module that is located before the first transmission module when the data transmission link is performing uplink transmission, when the uplink data packet of uplink transmission is not received. That is, when the data transmission link is performing uplink transmission, if the second transmission module is located before the first transmission module, and the second transmission module has not received the uplink data packet fed back by the target module within its corresponding target duration, then the second transmission module will generate a target data packet, but the target data packet also suffers from a packet loss exception during the process of uplink transmission to the first transmission module, resulting in the first transmission module also not receiving the target data packet generated by the second transmission module. Then, after the corresponding target duration is reached, the first transmission module will also generate a corresponding target data packet and transmit it to the next transmission module in the order of uplink transmission. Among them, since each transmission module in the data transmission link has a mechanism for generating a target data packet when a timeout occurs, that is, no matter which transmission module or no matter how many transmission modules have a fault, the server can receive the target data packet, and then determine the module identification code corresponding to the transmission module in the data transmission link where the transmission is abnormally terminated based on the target data packet.
[0034] In some embodiments, a data transmission link may include multiple different transmission modules. Figure 2 , which shows the data transmission flow between the various transmission modules included in the data transmission link when the target module is the air conditioning controller. Among them, the data transmission link involves a total of three vehicle components: the telematics box (TBOX) unit, the clock control unit (CCU) unit, and the air conditioning control module. The TBOX unit includes multiple software transmission modules such as the Message Queuing Telemetry Transport (MQTT) protocol stack module, the vehicle-cloud protocol stack, and the someip (Scalable service-oriented Middleware over IP) protocol stack. The CCU unit includes multiple software transmission modules such as the remote control module, the vehicle-cloud protocol stack, and the someip protocol stack.
[0035] Step S130: The target data packet is uplinked through the first transmission module to transmit the target data packet to the server. After the target data packet is received by the server, it is determined that there is an abnormality in the vehicle's data transmission link based on the second indication identification code and the session identification code, and the transmission module in the vehicle that causes the abnormal termination of the data flow is determined based on the module identification code.
[0036] In an embodiment of the present application, after generating a target data packet, the first transmission module can perform uplink transmission on the target data packet, that is, when sending it to the data transmission link for uplink transmission, the next transmission module adjacent to the first transmission module, at this time, the timing duration of the next transmission module has not yet reached its corresponding target duration, so the transmission module will continue to send the target data packet to the next transmission module according to the data flow direction of the uplink transmission until the target data packet is finally sent to the server.
[0037] As will be appreciated, the target data packet is distinct from the uplink data packet. The second indicator code and session identifier included in the target data packet enable the server to determine that the vehicle failed to successfully process the downlink data packet, indicating a fault in the vehicle's data transmission link that caused data transmission to abort. Furthermore, the module identifier in the target data packet enables the server to identify the anomalous transmission module in the data transmission link, thereby notifying the appropriate technicians to inspect the anomalous module.
[0038] The data stream transmission monitoring method provided in an embodiment of the present application transmits a downlink data packet sent by a server to a target module in the vehicle through a data transmission link in the vehicle, the downlink data packet including a session identification code, and the target module is used to feed back an uplink data packet to the server through the data transmission link after processing the downlink data packet, the uplink data packet including a first indication identification code and a session identification code, the first indication identification code indicating that the downlink data packet has been successfully processed; if the first transmission module in the data transmission link does not receive the uplink transmitted data packet including the session identification code within a target time length, a target data packet is generated through the first transmission module, the target data packet including a second indication identification code, a session identification code and a module identification code corresponding to the first transmission module, the second indication identification code indicating that there is an abnormality in the data transmission link; the target data packet is uplinked through the first transmission module to transmit the target data packet to the server, and after the target data packet is received by the server, it is determined that there is an abnormality in the data transmission link of the vehicle according to the second indication identification code and the session identification code, and the transmission module in the vehicle that causes the abnormal termination of the data flow is determined according to the module identification code. Therefore, in the process of transmitting the downlink data packet through the data transmission link, if the first transmission module does not receive the uplink data packet fed back by the vehicle's target module for the downlink data packet within the target time length, it automatically generates a target data packet and performs uplink transmission, so that the server can determine the downlink data packet that the vehicle has not successfully processed based on the target data packet, and accurately locate the abnormal transmission module in the data transmission link during the transmission of the downlink data packet, thereby reducing the cost of troubleshooting the data transmission link and improving maintenance efficiency.
[0039] See also Figure 3 , Figure 3 A flow chart of a data stream transmission monitoring method provided by another embodiment of the present application is shown below. Figure 3 The process shown is described in detail. The data stream transmission monitoring method is applied to a vehicle and may specifically include the following steps:
[0040] Step S210: When a downlink data packet to be transmitted to the target module is received from the server, the downlink data packet is transmitted to the target module through the data transmission link, and when each transmission module in the data transmission link receives the downlink data packet, timing is performed for each transmission module.
[0041] In an embodiment of the present application, when a vehicle receives a downlink data packet sent by a server to be transmitted to a target module, the downlink data packet can be transmitted to the target module through each transmission module in the data transmission module. In order to enable the transmission module to generate a target data packet in a timely manner when an abnormal transmission interruption occurs, each transmission module can start timing for each transmission module when receiving a downlink data packet, so that when the target duration is reached, the target data packet can be generated in a timely manner and sent to the server. Specifically, for each transmission module, it will time each downlink data packet when it receives it, and the time when different downlink data packets start timing is different. For each downlink data packet, when it passes through each transmission module, the transmission module will time the downlink data packet, and the time when the downlink data packet starts timing on different transmission modules is also different.
[0042] In some embodiments, when each transmission module in the data transmission link receives a downlink data packet, the vehicle can perform timing for each transmission module by:
[0043] When each transmission module in the data transmission link receives a downlink data packet, a timer associated with the session identification code is configured for the transmission module, and the timer is controlled to start timing.
[0044] Specifically, when each transmission module receives a downlink data packet transmitted in the downlink, it can obtain the session identification code included in the downlink data packet, and configure a timer associated with the session identification code for the transmission module. At this time, the timer starts timing, and the time counted by the timer represents the length of time the downlink data packet has been transmitted along the data transmission link after the current transmission module. If the transmission module still does not receive the uplink data packet within a long period of time, it indicates that there is a high probability that the data packet has been lost. Of course, it may also be a delay in the transmission of the data packet, but in actual applications, the situation of data packet transmission delay can also be regarded as data packet loss. Therefore, as long as the timing duration corresponding to the timer of the transmission module reaches the target duration, the transmission module can generate the target data packet and feed it back to the server.
[0045] Step S220: If the timing duration corresponding to the first transmission module in the data transmission link reaches the target duration corresponding to the first transmission module, and the first transmission module does not receive the uplink transmitted data packet including the session identification code, the target data packet is generated by the first transmission module.
[0046] In an embodiment of the present application, each transmission module in the data transmission link can determine whether there is a transmission abnormal termination fault in the data transmission link by the timing duration of the timer. Obviously, if the timing duration of the first transmission module reaches the target duration, and the first transmission module does not receive the data packet including the session identification code for uplink transmission within the timing duration, it means that the downlink data packet including the session identification code has been lost during the downlink transmission process, that is, when the data transmission link is performing downlink transmission, a transmission module located after the first transmission module has a data transmission abnormal termination fault, or when the data transmission link is performing uplink transmission, a transmission module located before the first transmission module has a data transmission abnormal termination fault. In this case, the first transmission module can generate a target data packet and perform uplink transmission, so that the server can determine that there is an abnormality in the vehicle's data transmission link based on the target data packet, and determine the specific transmission module that has failed in the data transmission link through the module identification code.
[0047] Specifically, if the timing duration of the timer corresponding to the first transmission module in the data transmission link reaches the target duration corresponding to the first transmission module, and the first transmission module does not receive the data packet including the session identification code transmitted uplink, the first transmission module generates a target data packet based on the session identification code associated with the timer, the module identification code corresponding to the first transmission module, and the second indication identification code.
[0048] In an embodiment of the present application, when each transmission module in a data transmission link of a vehicle receives a downlink data packet, a timer associated with the session identification code included in the downlink data packet is configured for the transmission module and the timer is controlled to start timing. Thus, each transmission module can determine whether a transmission abnormal termination failure has occurred in the link during the subsequent data transmission process based on the relationship between the timing duration corresponding to the timer and the target duration. That is, if the timing duration of the timer corresponding to the first transmission module in the data transmission link reaches the target duration corresponding to the first transmission module, and the first transmission module does not receive an uplink transmission data packet within the timing duration, then a target data packet can be generated based on the session identification code associated with the timer, the module identification code corresponding to the first transmission module, and the second indication identification code, so that after receiving the target data packet, the server can determine which downlink data packet was not successfully processed by the vehicle's target module based on the session identification code and the second indication identification code, and determine which transmission module in the vehicle's data transmission link may have a fault based on the session identification code.
[0049] After the timing duration of the first transmission module reaches the target duration, the target data packet generated by the first transmission module will include the module identification code corresponding to the first transmission module. After receiving the target data packet, the server can determine the faulty module in the data transmission link based on the module identification code. This module may be the first transmission module or the next transmission module adjacent to the first transmission module during downlink transmission of the data transmission link. At this time, based on the module identification code in the target data packet, the server can limit the scope of the faulty transmission modules in the data transmission link from all transmission modules to the first transmission module and the transmission modules located after the first transmission module during downlink transmission. This greatly reduces the scope of inspection and troubleshooting for technicians and saves manpower and time for troubleshooting.
[0050] In some embodiments, the target duration corresponding to each transmission module in the data transmission link in the vehicle increases in sequence according to the order of uplink transmission. It is understandable that the data transmission link includes multiple different transmission modules, and since data packets are transmitted in a certain order in the data transmission link, the farther the transmission module is from the target module, the longer the target duration corresponding to it is, and the closer the transmission module is to the target module, the shorter the target duration corresponding to it is. For example, please refer again to Figure 2 If the target duration for the CCU unit's remote control module is 2 seconds, then the target duration for the CCU unit's vehicle-to-cloud protocol stack module must be greater than 2 seconds. If it is set to 3 seconds, then the target duration for the CCU unit's SomeIP protocol stack module must be greater than 3 seconds. Specifically, the difference in target durations for different transmission modules can be determined by the transmission time of data packets between different transmission modules and the processing time of different modules, which is not specifically limited here.
[0051] In some embodiments, the vehicle can generate a target data packet through the first transmission module and in accordance with a specified data packet format. Specifically, the data packet format can refer to the following table:
[0052]
[0053]
[0054] Step S230: Uplink the target data packet through the first transmission module to transmit the target data packet to the server. After the target data packet is received by the server, it is determined that there is an abnormality in the vehicle's data transmission link based on the second indication identification code and the session identification code, and the transmission module in the vehicle that causes the abnormality is determined based on the module identification code.
[0055] In the embodiment of the present application, step S230 can refer to the explanation in other embodiments and will not be elaborated here.
[0056] The data stream transmission monitoring method provided by the embodiment of the present application is to transmit the downlink data packet to the target module through the data transmission link when receiving the downlink data packet sent by the server to be transmitted to the target module, and to time each transmission module when each transmission module in the data transmission link receives the downlink data packet; if the timing duration corresponding to the first transmission module in the data transmission link reaches the target duration corresponding to the first transmission module, and the first transmission module does not receive the data packet including the session identification code of the uplink transmission, then the target data packet is generated by the first transmission module; the target data packet is uplinked by the first transmission module to transmit the target data packet to the server. In this way, the transmission module in the data transmission link can generate the corresponding target data packet in time to feedback to the server when a fault of abnormal termination of data transmission occurs, and the module identification code and session identification code and other information included in the target data packet can enable the server to accurately locate the fault location, reduce the manpower and time consumption of fault troubleshooting, and improve the efficiency of fault troubleshooting.
[0057] See also Figure 4 , Figure 4 A flow chart of a data stream transmission monitoring method according to another embodiment of the present invention is shown. Figure 4 The process shown is described in detail. The data stream transmission monitoring method is applied to the server and may specifically include the following steps:
[0058] Step S310: Send a downlink data packet to a target module in the vehicle, where the downlink data packet includes a session identification code.
[0059] In an embodiment of the present application, the server can receive control instructions sent by the user via a mobile phone or other device based on the user's control needs for the vehicle, and send a downlink data packet to the corresponding vehicle to instruct the vehicle to perform the corresponding operation. In order to better distinguish different downlink data packets, the server can assign a corresponding session identification code to each downlink data packet, and different downlink data packets have different corresponding session identification codes. Therefore, after receiving the data packet feedback from the vehicle, the server can determine which downlink data packet the vehicle is responding to based on the session identification code included in the feedback data packet, and then determine the vehicle's processing of the downlink data packet based on other information included in the feedback data packet.
[0060] Step S320: Receive a target data packet sent by the vehicle, the target data packet including a second indication identification code, a module identification code corresponding to the first transmission module, and a session identification code. The first transmission module is any transmission module in the data transmission link of the vehicle. The target data packet is generated when the first transmission module in the data transmission link does not receive an uplink transmitted data packet including a session identification code within a target time length after the vehicle transmits a downlink data packet to the target module through the data transmission link. The second indication identification code indicates that there is an abnormality in the data transmission link.
[0061] In an embodiment of the present application, after the server sends a downlink data packet to the vehicle, it can receive a target data packet sent by the vehicle including a session identification code corresponding to the downlink data packet. The target data packet is a data packet automatically generated by the first transmission module in the vehicle's data transmission link when the first transmission module does not receive an uplink transmission data packet within a target time length, and includes a second indication identification code, a module identification code corresponding to the first transmission module, and a session identification code corresponding to the downlink data packet.
[0062] Step S330: Determine whether there is an abnormality in the data transmission link of the vehicle based on the second indication identification code and the session identification code in the target data packet.
[0063] In an embodiment of the present application, after receiving a target data packet, the server can determine that the vehicle failed to successfully process a specific downlink data packet based on the second indicator identification code in the target data packet, and can further determine which downlink data packet sent by the server the vehicle failed to successfully process based on the session identification code in the target data packet. In some embodiments, after subsequently troubleshooting and resolving a fault in the vehicle's data transmission link, the server can determine whether to resend the downlink data packet to the vehicle based on the control instructions in the downlink data packets that the vehicle failed to successfully process, to ensure that the vehicle executes the corresponding instructions.
[0064] Step S340: Determine the transmission module in the vehicle that causes the abnormal termination of the data flow based on the module identification code in the target data packet.
[0065] In an embodiment of the present application, if the first transmission module in the vehicle's data transmission link generates a target data packet and successfully feeds it back to the server, then the target data packet received by the server must include the module identification code corresponding to the first transmission module. At this time, based on the module identification code, the server can determine that the abnormal transmission module in the vehicle's data transmission link may be the first transmission module, or the second transmission module adjacent to the first transmission module when the data transmission link is performing downlink transmission. The server can determine that the abnormal transmission module in the vehicle must be between the above-mentioned first transmission module and the second transmission module, and therefore can notify the technicians related to these two transmission modules to conduct troubleshooting and repair. As a result, there is no need to arrange for the relevant technicians of each transmission module on the data transmission link to perform troubleshooting, which saves manpower and time costs and improves the efficiency of troubleshooting.
[0066] The data stream transmission monitoring method provided by the embodiment of the present application is as follows: a downlink data packet is sent to a target module in a vehicle, the downlink data packet including a session identification code; a target data packet sent by the vehicle is received, the target data packet including a second indication identification code, a module identification code corresponding to the first transmission module, and a session identification code, the first transmission module being any transmission module in the data transmission link of the vehicle; the target data packet is generated when the first transmission module in the data transmission link does not receive an uplink data packet including a session identification code within a target time period after the vehicle transmits a downlink data packet to the target module through the data transmission link; the second indication identification code indicates that there is an abnormality in the data transmission link; based on the second indication identification code and the session identification code in the target data packet, it is determined that there is an abnormality in the data transmission link of the vehicle; based on the module identification code in the target data packet, the transmission module in the vehicle that has caused the abnormality is determined. Thus, even if there is a fault in the data transmission link of the vehicle, the server can still receive the target data packet from the vehicle, and determine the specific transmission module with the fault in the data transmission link based on the target data packet, thereby accurately locating the fault, reducing the cost of troubleshooting, and improving the efficiency of fault detection.
[0067] See also Figure 5, which shows a structural block diagram of a data stream transmission monitoring device 200 provided in an embodiment of the present application. The data stream transmission monitoring device 200 is applied to a vehicle and includes: a downlink data transmission module 210, a target data generation module 220 and a target data feedback module 230. The downlink data transmission module 210 is configured to transmit a downlink data packet sent by a server to a target module in the vehicle via a data transmission link in the vehicle. The downlink data packet includes a session identification code. The target module is configured to, after processing the downlink data packet, feedback an uplink data packet to the server via the data transmission link. The uplink data packet includes a first indicator identification code and a session identification code, with the first indicator identification code indicating successful processing of the downlink data packet. The target data generation module 220 is configured to generate a target data packet via the first transmission module if the first transmission module in the data transmission link does not receive the uplink data packet including the session identification code within a target time period. The target data packet includes a second indicator identification code, a session identification code, and a module identification code corresponding to the first transmission module, with the second indicator identification code indicating an abnormality in the data transmission link. The target data feedback module 230 is configured to uplink the target data packet via the first transmission module to transmit the target data packet to the server. After the target data packet is received by the server, the server determines, based on the second indicator identification code and the session identification code, whether an abnormality exists in the data transmission link, and determines, based on the module identification code, the transmission module in the vehicle that caused the abnormal data flow termination.
[0068] As a possible implementation manner, the downlink data transmission module 210 is also used to transmit the downlink data packet to the target module through the data transmission link when a downlink data packet to be transmitted to the target module is received from the server, and to time each transmission module when each transmission module in the data transmission link receives the downlink data packet; the target data generation module 220 is also used to generate a target data packet through the first transmission module if the timing duration corresponding to the first transmission module in the data transmission link reaches the target duration corresponding to the first transmission module, and the first transmission module has not received the data packet including the session identification code transmitted uplink.
[0069] As a possible implementation method, the downlink data transmission module 210 is also used to configure a timer associated with the session identification code for each transmission module in the data transmission link and control the timer to start timing when each transmission module in the data transmission link receives a downlink data packet; if the timing duration of the timer corresponding to the first transmission module in the data transmission link reaches the target duration corresponding to the first transmission module, and the first transmission module does not receive the data packet including the session identification code transmitted uplink, the target data packet is generated through the first transmission module according to the session identification code associated with the timer, the module identification code corresponding to the first transmission module and the second indication identification code.
[0070] As a possible implementation manner, the target duration corresponding to each transmission module in the data transmission link increases sequentially according to the order of uplink transmission.
[0071] See also Figure 6 , which shows a structural block diagram of another data stream transmission monitoring device 300 provided in an embodiment of the present application. The data stream transmission monitoring device 300 is applied to a server and includes: a downlink data sending module 310, a target data receiving module 320, a processing result judgment module 330 and a fault location determination module 340. Among them, the downlink data sending module 310 is used to send a downlink data packet to the target module in the vehicle, and the downlink data packet includes a session identification code; the target data receiving module 320 is used to receive the target data packet sent by the vehicle, and the target data packet includes a second indication identification code, a module identification code corresponding to the first transmission module, and a session identification code. The first transmission module is any transmission module in the data transmission link of the vehicle. The target data packet is generated when the first transmission module in the data transmission link does not receive an uplink transmitted data packet including a session identification code within a target time length after the vehicle transmits a downlink data packet to the target module through the data transmission link. The second indication identification code indicates that there is an abnormality in the data transmission link; the processing result judgment module 330 is used to determine whether there is an abnormality in the vehicle's data transmission link based on the second indication identification code and the session identification code in the target data packet; the fault location determination module 340 is used to determine the transmission module in the vehicle where the data flow is abnormally terminated based on the module identification code in the target data packet.
[0072] As a possible implementation, the fault location determination module 340 is also used to determine, based on the module identification code, the first transmission module corresponding to the module identification code, and all transmission modules located after the first transmission module during downlink transmission of the data transmission link as the transmission modules that cause abnormal data flow termination in the vehicle.
[0073] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0074] In several embodiments provided in this application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0075] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.
[0076] In summary, the solution provided by the present application transmits the downlink data packet sent by the server to the target module in the vehicle through the data transmission link in the vehicle; if the first transmission module in the data transmission link does not receive the uplink transmission data packet within the target time length, the target data packet is generated by the first transmission module; the target data packet is uplinked by the first transmission module to transmit the target data packet to the server. Thus, in the process of transmitting the downlink data packet through the data transmission link, if the first transmission module does not receive the uplink data packet fed back by the target module of the vehicle for the downlink data packet within the target time length, the target data packet is automatically generated and uplinked, so that the server can determine the downlink data packet that the vehicle has not successfully processed based on the target data packet, and accurately locate the transmission module with abnormalities in the process of transmitting the downlink data packet in the data transmission link, thereby reducing the cost of troubleshooting the data transmission link and improving maintenance efficiency.
[0077] Please refer to Figure 7 , which shows a structural block diagram of a vehicle 400 provided in an embodiment of the present application. The vehicle 400 in the present application may include one or more of the following components: a processor 410, a memory 420, and one or more application programs, wherein the one or more application programs may be stored in the memory 420 and configured to be executed by the one or more processors 410, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0078] Processor 410 may include one or more processing cores. Processor 410 utilizes various interfaces and circuits to connect various components within the computer device. It executes instructions, programs, code sets, or instruction sets stored in memory 420, as well as accesses data stored in memory 420, to perform various functions of the computer device and process data. Optionally, processor 410 may be implemented using at least one of the following hardware forms: digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). Processor 410 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may not be integrated into processor 410 and may be implemented separately via a communications chip.
[0079] The memory 420 may include a random access memory (RAM) or a read-only memory (ROM). The memory 420 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 420 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the computer device during use (such as a phone book, audio and video data, chat history data, etc.).
[0080] The present application provides a computer-readable storage medium having program code stored therein, which can be called by a processor to execute the method described in the above method embodiment.
[0081] The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program codes for executing any of the method steps described above. These program codes can be read from or written to one or more computer program products. The program codes can be compressed, for example, in an appropriate form.
[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements 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 the present application.
Claims
1. A data stream transmission monitoring method, characterized in that: Applied to a vehicle, the method comprises: transmitting a downlink data packet sent by the server to a target module in the vehicle via a data transmission link in the vehicle, the downlink data packet including a session identification code, the target module being configured to feed back an uplink data packet to the server via the data transmission link after processing the downlink data packet, the uplink data packet including a first indication identification code and the session identification code, the first indication identification code indicating successful processing of the downlink data packet; If the first transmission module in the data transmission link does not receive an uplink transmission data packet including the session identification code within a target time period, generating a target data packet by the first transmission module, the target data packet including a second indication identification code, the session identification code, and a module identification code corresponding to the first transmission module, wherein the second indication identification code indicates that an abnormality exists in the data transmission link; The target data packet is uplinked through the first transmission module to transmit the target data packet to the server. After the target data packet is received by the server, it is determined that there is an abnormality in the data transmission link according to the second indication identification code and the session identification code, and the transmission module in the vehicle that causes the abnormal termination of the data flow is determined according to the module identification code.
2. The method according to claim 1, characterized in that The method of transmitting the downlink data packet sent by the server to the target module in the vehicle through the data transmission link in the vehicle includes: Upon receiving a downlink data packet to be transmitted to the target module from the server, transmitting the downlink data packet to the target module via the data transmission link, and timing each transmission module in the data transmission link when receiving the downlink data packet; If the first transmission module in the data transmission link does not receive the data packet including the session identification code transmitted uplink within the target time length, generating a target data packet by the first transmission module includes: If the timing duration corresponding to the first transmission module in the data transmission link reaches the target duration corresponding to the first transmission module, and the first transmission module does not receive the uplink transmitted data packet including the session identification code, the target data packet is generated by the first transmission module.
3. The method according to claim 2, characterized in that When each transmission module in the data transmission link receives the downlink data packet, timing is performed for each transmission module, including: When each transmission module in the data transmission link receives the downlink data packet, configuring a timer associated with the session identification code for the transmission module, and controlling the timer to start timing; If the timing duration corresponding to the first transmission module in the data transmission link reaches the target duration corresponding to the first transmission module, and the first transmission module does not receive the data packet including the session identification code transmitted uplink, generating the target data packet by the first transmission module includes: If the timing duration of the timer corresponding to the first transmission module in the data transmission link reaches the target duration corresponding to the first transmission module, and the first transmission module has not received the data packet including the session identification code transmitted uplink, the target data packet is generated through the first transmission module according to the session identification code associated with the timer, the module identification code corresponding to the first transmission module and the second indication identification code.
4. The method according to claim 2, characterized in that The target duration corresponding to each transmission module in the data transmission link increases sequentially according to the order of uplink transmission.
5. A data stream transmission monitoring method, characterized in that: Applied to a server, the method includes: Sending a downlink data packet to a target module in the vehicle, wherein the downlink data packet includes a session identification code; receiving a target data packet sent by the vehicle, the target data packet including a second indication identification code, a module identification code corresponding to a first transmission module, and the session identification code, the first transmission module being any transmission module in a data transmission link of the vehicle, the target data packet being generated when, after the vehicle transmits the downlink data packet to the target module via the data transmission link, the first transmission module in the data transmission link fails to receive an uplink data packet including the session identification code within a target time period, and the second indication identification code indicating an abnormality in the data transmission link; determining, based on the second indication identification code and the session identification code in the target data packet, that an abnormality exists in the data transmission link of the vehicle; The transmission module in the vehicle causing the abnormal termination of the data flow is determined according to the module identification code in the target data packet.
6. The method according to claim 5, characterized in that The step of determining, based on the module identification code in the target data packet, a transmission module in the vehicle that causes abnormal data flow termination, includes: According to the module identification code, a first transmission module corresponding to the module identification code and all transmission modules located after the first transmission module during downlink transmission of the data transmission link are determined as transmission modules in the vehicle that cause abnormal termination of data flow.
7. A data stream transmission monitoring device, characterized in that: Applied to a vehicle, the device comprises: a downlink data transmission module, configured to transmit a downlink data packet sent by a server to a target module in the vehicle via a data transmission link in the vehicle, wherein the downlink data packet includes a session identification code; the target module is configured to feed back an uplink data packet to the server via the data transmission link after processing the downlink data packet, wherein the uplink data packet includes a first indication identification code and the session identification code, wherein the first indication identification code indicates successful processing of the downlink data packet; a target data generating module, configured to generate a target data packet through the first transmission module if the first transmission module in the data transmission link does not receive a data packet including the session identification code for uplink transmission within a target duration, the target data packet including a second indication identification code, the session identification code, and a module identification code corresponding to the first transmission module, wherein the second indication identification code indicates that an abnormality exists in the data transmission link; A target data feedback module is used to uplink the target data packet through the first transmission module to transmit the target data packet to the server. After the target data packet is received by the server, the server determines that there is an abnormality in the data transmission link based on the second indication identification code and the session identification code, and determines the transmission module in the vehicle that causes the abnormal termination of the data flow based on the module identification code.
8. A data stream transmission monitoring device, characterized in that: Applied to a server, the device includes: A downlink data sending module, configured to send a downlink data packet to a target module in the vehicle, wherein the downlink data packet includes a session identification code; a target data receiving module, configured to receive a target data packet sent by the vehicle, the target data packet including a second indication identification code, a module identification code corresponding to a first transmission module, and the session identification code; the first transmission module being any transmission module in a data transmission link of the vehicle; the target data packet being generated when, after the vehicle transmits the downlink data packet to the target module via the data transmission link, the first transmission module in the data transmission link fails to receive an uplink data packet including the session identification code within a target duration; the second indication identification code indicating an abnormality in the data transmission link; a processing result judgment module, configured to determine, based on the second indication identification code and the session identification code in the target data packet, whether an abnormality exists in the data transmission link of the vehicle; The fault location determination module is used to determine the transmission module in the vehicle where the data flow is abnormally terminated based on the module identification code in the target data packet.
9. A vehicle, characterized in that: The vehicle comprises: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for monitoring data
CN108512726A
Data transmission method, device and system
CN111064674A