Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present application with reference to the accompanying drawings.
Along with the rapid development of the internet of vehicles technology, more and more vehicle types start to support vehicle owners to inquire the current condition of a vehicle through terminal equipment such as a mobile phone or to control the functions of the vehicle, for example, the vehicle owners can check whether the vehicle window is closed or not through a mobile phone application program in rainy days, if not, the vehicle owners can directly send a command for closing the vehicle window to the vehicle through the mobile phone. The implementation of the function is that a user generally sends an operation instruction for the vehicle to a server through a device such as a mobile phone, the server forwards an instruction data packet to a corresponding vehicle, and the vehicle can transmit the instruction data packet sent by the server to a corresponding functional module for execution through a data transmission link after receiving the instruction data packet. Meanwhile, after the operation required by the user is completed, the corresponding functional module feeds back a data packet for representing the execution result, and the data packet is up-transmitted to the server again through the data transmission link, so that the data packet is fed back to the mobile phone and other devices of the user, and the user can know the execution condition of the vehicle on the instruction.
Because the data transmission link in the vehicle is longer, any one of the transmission modules fails, the vehicle cannot smoothly feed back the execution result of the user instruction to the user, and therefore the use experience of the user is reduced. Therefore, the developer must check out the transmission module with abnormality in the data transmission link of the vehicle every time abnormality occurs in data transmission. However, in general, in the case that the server cannot receive the data packet fed back by the vehicle, the technician cannot accurately locate the transmission module with the fault in the data transmission link in the vehicle, that is, the technician needs to check each transmission module in the data transmission link of the vehicle in turn, which results in low efficiency and more time consumption of fault detection.
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 target module of the vehicle for the downlink data packet within the target duration, the first transmission module automatically generates the target data packet and transmits the uplink data packet, so that the server can accurately position the abnormal transmission module in the data transmission link based on the target data packet, the cost of fault detection of the data transmission link is reduced, and the maintenance efficiency is improved. The specific data stream transmission monitoring method is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data flow transmission monitoring method according to an embodiment of the present application, and the flow chart shown in fig. 1 will be described in detail, where the data flow transmission monitoring method is applied to a vehicle, and may specifically include the following steps:
and step S110, transmitting the downlink data packet sent by the server to a target module in the vehicle through a data transmission link in the vehicle.
In the embodiment of the application, the downlink data packet includes a session identifier, and the target module is configured to feed back an uplink data packet to the server through the data transmission link after processing the downlink data packet, where the uplink data packet includes a first indication identifier and a session identifier, and the first indication identifier characterizes that the downlink data packet is successfully processed. The downlink data packet sent by the server to the vehicle is generally a data packet formed by a control instruction issued by a certain target module in the vehicle based on a user requirement, that is, after the vehicle receives the downlink data packet, the vehicle can transmit the downlink data packet to the corresponding target module through a data transmission link for execution, so as to meet the user requirement. The data transmission link may include a plurality of different transmission modules, and each transmission module may not only forward the data packet to the next corresponding transmission module according to a given data flow direction, but also perform corresponding processing, such as deconstructing, encapsulation, and other operations on the data packet. After the target module acquires the downlink data packet, the target module executes corresponding operation according to the instruction in the downlink data packet, forms an uplink data packet according to the execution result, and feeds back the uplink data packet to the server through the data transmission link.
It will be appreciated that the user may send similar control commands to the vehicle a plurality of times in succession, and that the server may form a corresponding downstream data packet for each control command of the user to the vehicle, in order to facilitate distinguishing between a plurality of consecutive control commands initiated by the user, and confirming whether each control instruction is accurately executed by the vehicle, wherein the server can allocate a session identification code for the downlink data packet corresponding to each control instruction, and the session identification code can uniquely identify one downlink data packet and the session identification codes corresponding to different downlink data packets are different. Meanwhile, each time a downlink data packet is processed by the target module, a corresponding uplink data packet is generated and fed back to the server, and the uplink data packet comprises the same session identification code as the processed downlink data packet, so that the server can determine which downlink data packet corresponds to the command through the session identification code in the data packet when receiving the uplink data packet. The uplink data packet may further include a first indication identifier for indicating that the vehicle successfully processes the following data packet.
For example, if the user wants to remotely reduce the temperature of the air conditioner of the vehicle by three degrees through the mobile phone application program, the user can send an instruction for controlling the air conditioner to reduce the temperature by one degree to the server three times continuously, and the three sequentially generated instructions are respectively generated by the server to generate downlink data packets with different session identification codes and send the downlink data packets to the vehicle. And when the target module in the vehicle, namely the air conditioner control module, receives one downlink data packet, the air conditioner temperature is controlled to be reduced once, and an uplink data packet is fed back to the server after the execution is finished, wherein the uplink data packet comprises a first indication identification code for representing that the vehicle successfully adjusts the air conditioner temperature and a session identification code corresponding to the downlink data packet. If all three downlink data packets are smoothly transmitted to the target module, the air conditioner of the vehicle can meet the user requirement by three degrees, and if the target module of the vehicle transmits all three uplink data packets fed back by aiming at the three downlink data packets to the server smoothly, the user can know that the vehicle has successfully executed corresponding operation.
Step S120, if the first transmission module in the data transmission link does not receive the uplink data packet including the session identification code within the target duration, generating a target data packet by the first transmission module.
In the embodiment of the application, the target data packet comprises a second indication identification code, a session identification code and a module identification code corresponding to the first transmission module, wherein the second indication identification code characterizes that the data transmission link is abnormal. The vehicle needs to transmit the downlink data packet sent by the server to the target module through the data transmission link for execution, and the data transmission link generally includes a plurality of different transmission modules, so once an abnormality exists in a certain transmission module in the data transmission link, the server cannot receive the uplink data packet fed back by the target module at the vehicle end, and cannot determine which transmission module specifically exists in the data transmission link and causes the data packet to be lost, and a technician needs to check each transmission module in the data transmission link, but if most of the transmission modules are all without problems, a great deal of human resources are wasted. Therefore, if the data transmission link is abnormal, each transmission module can receive the uplink data packet with the same session identification code as the downlink data packet fed back by the target module in the corresponding target time length, and 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 always receive the uplink data packet with the same session identifier code as the downlink data packet within the target duration, it indicates that in the uplink transmission process, the transmission module before the first transmission module has a packet loss fault, and at this time, the first transmission module can generate the target data packet and perform uplink transmission on the target data packet, so that the server can receive the target data packet, and further quickly determine the transmission module with the packet loss fault based on the module identifier code included in the target data packet, so that the fault location is accurately located, without manual sequential investigation, and a great amount of manpower and time are saved.
The first transmission module may include a second indication identifier in the generated target data packet when the data packet is not received, and the server may determine that the vehicle has not successfully processed the downlink data packet based on the second indication identifier. The target data packet can also comprise a module identification code corresponding to the first transmission module, so that the server can quickly locate the transmission module with abnormal faults in the data transmission link based on the module identification code. The module identification codes can uniquely identify the transmission modules in the data transmission link, and the module identification codes corresponding to different transmission modules are different. The target data packet may further include a session identifier, so that the server may determine which data packet is the downstream data packet lost in the transmission process based on the session identifier after receiving the target data packet.
It can be understood that if the server successfully receives the uplink data packet including the first indication identifier fed back by the target module of the vehicle, the server indicates that the data transmission link has no transmission abort fault 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 identifier, at this time, it may be that the data transmission link of the vehicle is abnormal, that is, the target module successfully processes the uplink data packet returned after the downlink data packet, and in the transmission process of the link, the situation that the target module of the vehicle fails to process the downlink data packet may also be that the transmission module in the data transmission link does not timely receive the uplink data packet returned by the target module.
In some embodiments, the data transmission link may have a failure due to abnormal data transmission, in which case the target module of the vehicle has not executed the control instruction corresponding to the downlink data packet, or the target module has executed the control instruction corresponding to the downlink data packet, but the target module may have abnormal packet loss during uplink transmission of the uplink data packet fed back by the target module for the downlink data packet. Both of these cases may result in the first transmission module not receiving the uplink data packet including the session identification code within the target duration.
In some embodiments, the uplink data packet that is not received by the first transmission module in the target duration may be an uplink data packet that includes the first indication identifier and the session identifier and is fed back by the target module for the downlink data packet. The data transmission module may be a transmission module located before the first transmission module when the data transmission link performs uplink transmission, and may be a target data packet generated when the uplink data packet of the uplink transmission is not received. That is, when the data transmission link performs uplink transmission, if the second transmission module is located before the first transmission module and the second transmission module does not receive the uplink data packet fed back by the target module within the corresponding target time period, the second transmission module generates a target data packet, but the target data packet is lost abnormally in the uplink transmission process to the first transmission module, so that the first transmission module does not receive the target data packet generated by the second transmission module, and after the corresponding target time period is reached, the first transmission module also generates a corresponding target data packet and transmits the corresponding target data packet to the next transmission module according to the uplink transmission sequence. The server may receive the target data packet because each transmission module in the data transmission link has a mechanism that generates the target data packet when the timeout occurs, that is, no matter which transmission module or no matter how many transmission modules have faults, and further determine, based on the target data packet, a module identifier corresponding to a transmission module in the data transmission link, where transmission is abnormally suspended.
In some embodiments, a plurality of different transmission modules may be included in the data transmission link. Referring to fig. 2, a flow of data transmission between each transmission module included in the data transmission link in the case that the target module is an air conditioner controller is shown. The data transmission link totally relates to three parts of the vehicle, namely a remote communication terminal (TELEMATICS BOX, TBOX) unit, a clock control (Clocking and Clock Control Unit, CCU) unit and an air conditioner control module, wherein the TBOX unit comprises a message queue telemetry transmission (Message Queuing Telemetry Transport, MQTT) protocol stack module, a vehicle cloud protocol stack, a someip (Scalable service-Oriented MiddlewarE over IP) protocol stack and other software transmission modules, and the CCU unit comprises a remote control module, a vehicle cloud protocol stack, a someip protocol stack and other software transmission modules.
And S130, carrying out uplink transmission on the target data packet through the first transmission module so as to transmit the target data packet to the server, determining that the data transmission link of the vehicle is abnormal according to the second indication identification code and the session identification code after the target data packet is received by the server, and determining the transmission module generating abnormal suspension of the data flow in the vehicle according to the module identification code.
In the embodiment of the application, after the first transmission module generates the target data packet, the first transmission module can perform uplink transmission on the target data packet, that is, when the target data packet is sent to the data transmission link for uplink transmission, the next transmission module adjacent to the first transmission module, the timing duration of the next transmission module does not reach the corresponding target duration, so that the transmission module can continuously send the target data packet to the next transmission module according to the uplink transmission data flow direction until the target data packet is finally sent to the server.
It will be appreciated that the target data packet is different from the upstream data packet, and the second indication identifier and the session identifier included in the target data packet may enable the server to determine that the vehicle has not successfully processed the downstream data packet, that is, that there is a failure in the data transmission link of the vehicle due to abnormal suspension of data transmission. Meanwhile, the module identification code in the target data packet can also enable the server to determine the abnormal transmission module in the data transmission link, so that corresponding technicians are notified of checking the abnormal transmission module.
The data stream transmission monitoring method provided by the embodiment of the application comprises the steps of transmitting a downlink data packet sent by a server to a target module in a vehicle through a data transmission link in the vehicle, wherein the downlink data packet comprises a session identification code, the target module is used for feeding back an uplink data packet to the server through the data transmission link after processing the downlink data packet, the uplink data packet comprises a first indication identification code and the session identification code, the first indication identification code represents that the downlink data packet is successfully processed, if the first transmission module in the data transmission link does not receive the data packet which comprises the session identification code and is transmitted in the uplink in a target time length, the target data packet is generated through the first transmission module, the target data packet comprises a second indication identification code, the session identification code and a module identification code corresponding to the first transmission module, the second indication code represents that the data transmission link is abnormal, the target data packet is transmitted in the uplink through the first transmission module, the target data packet is used for being transmitted to the server, and after the target data packet is used for being received by the server, the data transmission of the vehicle is determined to exist according to the second indication code and the session identification code, and the abnormal stream transmission module is determined to stop the data transmission module in the vehicle. 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 target module of the vehicle aiming at the downlink data packet within the target time length, the target data packet is automatically generated and uplink transmission is performed, so that the server can determine the downlink data packet which is not successfully processed by the vehicle based on the target data packet, and accurately position the transmission module with abnormality in the process of transmitting the downlink data packet, thereby reducing the cost of fault investigation on the data transmission link and improving the maintenance efficiency.
Referring to fig. 3, fig. 3 is a schematic flow chart of a data flow transmission monitoring method according to another embodiment of the present application, and the flow chart shown in fig. 3 will be described in detail, where the data flow transmission monitoring method is applied to a vehicle, and may specifically include the following steps:
Step S210, under the condition that a downlink data packet to be transmitted to the target module sent by a server is received, transmitting the downlink data packet to the target module through the data transmission link, and timing each transmission module in the data transmission link when each transmission module receives the downlink data packet.
In the embodiment of the application, when the vehicle receives the downlink data packet to be transmitted to the target module sent by the server, the vehicle can transmit the downlink data packet to the target module through each transmission module in the data transmission modules. In order to enable the transmission modules to timely generate the target data packet when the transmission is aborted, each transmission module can start timing aiming at each transmission module when receiving the downlink data packet, so that the target data packet is timely generated and sent to the server when the target duration is reached. Specifically, for each transmission module, when each downlink data packet is received, the downlink data packet is clocked, the timing of starting the timing of different downlink data packets is different, and for each downlink data packet, when each downlink data packet passes through each transmission module, the transmission module clocks the downlink data packet, and the timing of starting the timing of the downlink data packet on different transmission modules is also different.
In some embodiments, when each transmission module in the data transmission link receives a downstream data packet, the vehicle may clock for each transmission module by:
When each transmission module in the data transmission link receives the 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.
Specifically, each transmission module may acquire a session identifier included in a downlink data packet when receiving the downlink data packet for downlink transmission, and configure a timer associated with the session identifier for the transmission module. At this time, the timer starts to count, and the time counted by the timer characterizes the duration that the downlink data packet is transmitted along the data transmission link after the current transmission module, if the transmission module still does not receive the uplink data packet for a long time, it indicates that the data packet has a high probability of being lost. It is of course also possible to delay the transmission of the data packets, but in practice, the data packets may be regarded as lost in the case of delayed transmission of the data packets. 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 the target data packet back to the server.
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 data packet including the session identification code, the first transmission module generates the target data packet.
In the embodiment of the application, each transmission module in the data transmission link can judge whether the transmission abnormal suspension fault exists in the data transmission link or not through 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 uplink data packet including the session identifier in the timing duration, it indicates that a packet loss condition occurs in the downlink transmission process of the downlink data packet including the session identifier, that is, when the data transmission link performs downlink transmission, a certain transmission module located behind the first transmission module has a fault of abnormal suspension of data transmission, or when the data transmission link performs uplink transmission, a transmission module located in front of the first transmission module has a fault of abnormal suspension of data transmission. In this case, the first transmission module may generate the target data packet and perform uplink transmission, so that the server may determine that an abnormality exists in the data transmission link of the vehicle based on the target data packet, and determine, through the module identification code, a transmission module that specifically fails in the data transmission link.
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 uplink data packet including the session identification code, the first transmission module generates the target data packet 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.
In the embodiment of the application, when each transmission module in the data transmission link receives the downlink data packet, the vehicle configures a timer associated with the session identification code included in the downlink data packet for the transmission module, and controls the timer to start timing. Therefore, each transmission module can judge whether the link has a transmission aborted fault or not in the subsequent data transmission process based on the relation 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 the uplink data packet within the timing duration, the target data packet may be generated according to the session identifier associated with the timer, the module identifier corresponding to the first transmission module, and the second indicator identifier, so that the server may determine, based on the session identifier and the second indicator identifier, which downlink data packet is not successfully processed by the target module of the vehicle after receiving the target data packet, and determine, based on the session identifier, that there may be a faulty transmission module in the data transmission link of the vehicle.
After the timing duration reaches the target duration, the first transmission module generates a target data packet, which includes a module identification code corresponding to the first transmission module. After receiving the target data packet, the server may determine, based on the module identifier, whether a module with a fault exists in the data transmission link, which may be a first transmission module or a next transmission module adjacent to the first transmission module in downlink transmission of the data transmission link. At this time, the server can limit the range of the transmission module with the fault in the data transmission link from all the transmission modules to the first transmission module and the transmission module located behind the first transmission module during downlink transmission based on the module identification code in the target data packet, so that the range of overhauling and checking by technicians is greatly reduced, and the labor and time for troubleshooting are saved.
In some embodiments, the target duration corresponding to each transmission module in the data transmission link in the vehicle increases sequentially in the order of uplink transmission. It can be understood that the data transmission link includes a plurality of different transmission modules, and since the data packets are sequentially transmitted in a certain order in the data transmission link, the transmission module farther from the target module corresponds to the transmission module with a longer target duration, and the transmission module closer to the target module corresponds to the transmission module with a shorter target duration. For example, referring again to fig. 2, if the target duration corresponding to the remote control module of the CCU unit is 2 seconds, the target duration corresponding to the cloud protocol stack module of the CCU unit must be greater than 2 seconds, and if set to 3 seconds, the target duration corresponding to the someip protocol stack module of the CCU unit must be greater than 3 seconds. Specifically, the difference between the target durations corresponding to the different transmission modules may be determined by the transmission durations of the data packets between the different transmission modules and the durations of processing the data packets by the different modules, which are not limited herein.
In some embodiments, the vehicle may generate the target data packet via the first transmission module in accordance with a specified data packet format. Specifically, the packet format may be as shown in the following table:
and S230, carrying out uplink transmission on the target data packet through the first transmission module so as to transmit the target data packet to the server, determining that the data transmission link of the vehicle is abnormal according to the second indication identification code and the session identification code after the target data packet is received by the server, and determining the transmission module generating the abnormality in the vehicle according to the module identification code.
In the embodiment of the present application, step S230 may refer to the explanation in other embodiments, which is not specifically described herein.
According to the data flow transmission monitoring method, under the condition that the downlink data packet to be transmitted to the target module is received, the downlink data packet is transmitted to the target module through the data transmission link, when each transmission module in the data transmission link receives the downlink data packet, timing is conducted on each 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 does not receive the uplink data packet comprising the session identification code, the first transmission module generates the target data packet, and uplink transmission is conducted on the target data packet through the first transmission module, so that the target data packet is transmitted to the server. Therefore, when a fault of abnormal data transmission suspension occurs, a transmission module in the data transmission link can timely generate a corresponding target data packet and feed the corresponding target data packet back to the server, and the server can accurately position the fault occurrence position through the information such as the module identification code, the session identification code and the like included in the target data packet, so that the labor time consumption for fault investigation is reduced, and the efficiency of fault investigation is improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of a data stream transmission monitoring method according to another embodiment of the present application, and the detailed description will be given below with respect to the flow chart shown in fig. 4, where the data stream transmission monitoring method is applied to a server, and may specifically include the following steps:
Step S310, a downlink data packet is sent to a target module in the vehicle, wherein the downlink data packet comprises a session identification code.
In the embodiment of the application, the server can receive the control instruction sent by the user through the mobile phone and other equipment based on the control requirement of the user on the vehicle, and send the downlink data packet to the corresponding vehicle so as to instruct the vehicle to execute the corresponding operation. In order to better distinguish different downlink data packets, the server may allocate a corresponding session identifier to each downlink data packet, where the session identifiers corresponding to the different downlink data packets are different. Therefore, after receiving the data packet fed back by the vehicle, the server can determine which downlink data packet the vehicle feeds back to based on the session identification code included in the fed back data packet, and further determine the processing condition of the vehicle on the downlink data packet based on other information included in the fed back data packet.
Step S320, receiving a target data packet sent by a vehicle, wherein the target data packet comprises a second indication identification code, a module identification code corresponding to a first transmission module and a session identification code, the first transmission module is any transmission module in a 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 the uplink data packet comprising the session identification code within a target duration after the vehicle transmits the downlink data packet to the target module through the data transmission link, and the second indication identification code characterizes that the data transmission link is abnormal.
In the embodiment of the application, after the server transmits the downlink data packet to the vehicle, the server can receive the target data packet which is sent by the vehicle and comprises the session identification code corresponding to the downlink data packet, and the target data packet is automatically generated and comprises the second indication identification code, the module identification code corresponding to the first transmission module and the session identification code corresponding to the downlink data packet when the first transmission module in the data transmission link of the vehicle does not receive the uplink data packet within the target duration.
Step S330, determining that the data transmission link of the vehicle is abnormal according to the second indication identification code and the session identification code in the target data packet.
In the embodiment of the application, after receiving the target data packet, the server can determine that the vehicle does not successfully process a downlink data packet based on the second indication identifier in the target data packet, and can further determine which downlink data packet issued by the server is not successfully processed by the vehicle based on the session identifier in the target data packet. In some embodiments, after the subsequent troubleshooting solves the failure in the data transmission link of the vehicle, the server may determine whether to resend the downstream data packet to the vehicle based on the control instructions in the downstream data packet that the vehicle did not successfully process, so as to ensure that the vehicle executes the corresponding instructions.
And step 340, determining a transmission module generating data flow abnormal suspension in the vehicle according to the module identification code in the target data packet.
In the embodiment of the application, if the first transmission module in the data transmission link of the vehicle generates the target data packet and successfully feeds back the target data packet to the server, the target data packet received by the server necessarily includes the module identification code corresponding to the first transmission module, and at this time, the server can determine that the transmission module with the abnormality in the data transmission link of the vehicle is likely to be the first transmission module or is a second transmission module adjacent to the first transmission module when the data transmission link performs downlink transmission based on the module identification code. The server can determine that the transmission module generating the abnormality in the vehicle is necessarily among the first transmission module and the second transmission module, so that technicians related to the two transmission modules can be informed to conduct troubleshooting, the technicians related to each transmission module on the data transmission link are not required to conduct troubleshooting, labor time cost is saved, and troubleshooting efficiency is improved.
The data flow transmission monitoring method includes the steps of sending a downlink data packet to a target module in a vehicle, wherein the downlink data packet comprises a session identification code, receiving the target data packet sent by the vehicle, wherein the target data packet comprises a second indication identification code, a module identification code corresponding to a first transmission module and the session identification code, the first transmission module is any transmission module in a 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 the data packet which is transmitted in the uplink and comprises the session identification code in a target time length after the vehicle transmits the downlink data packet to the target module through the data transmission link, the second indication identification code indicates that the data transmission link is abnormal, determining that the data transmission link of the vehicle is abnormal according to the second indication identification code in the target data packet and the session identification code, and determining a transmission module generating the abnormality in the vehicle according to the module identification code in the target data packet. Therefore, the server can still receive the target data packet from the vehicle under the condition that the data transmission link of the vehicle has faults, and determines the transmission module with the specific faults in the data transmission link based on the target data packet, so that the accurate positioning of the faults is realized, the fault troubleshooting cost is reduced, and the fault detection efficiency is improved.
Referring to fig. 5, a block diagram of a data flow transmission monitoring device 200 according to an embodiment of the present application is shown, where the data flow 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 downstream data transmission module 210 is configured to transmit, to a target module in the vehicle, a downstream data packet sent by the server through a data transmission link in the vehicle, where the downstream data packet includes a session identifier, the target module is configured to feed back, to the server through the data transmission link after processing the downstream data packet, an upstream data packet including a first indication identifier and a session identifier, where the first indication identifier characterizes that the downstream data packet is successfully processed, and the target data generation module 220 is configured to generate, by the first transmission module, a target data packet including a second indication identifier, a session identifier and a module identifier corresponding to the first transmission module if the first transmission module in the data transmission link does not receive the upstream data packet including the session identifier within a target duration, where the second indication identifier indicates that the data transmission link is abnormal, and the target data feedback module 230 is configured to transmit, by the first transmission module, the target data packet to the server, the target data packet, and determine that the data transmission link is abnormal according to the second indication identifier and the session identifier, and determine that the data transmission module in the vehicle has an abnormal data transmission link is stopped.
As a possible implementation manner, the downstream data transmission module 210 is further configured to, when receiving a downstream data packet sent by the server and to be transmitted to the target module, transmit the downstream data packet to the target module through the data transmission link, and when each transmission module in the data transmission link receives the downstream data packet, time each transmission module, and the target data generation module 220 is further configured to, if the time duration corresponding to the first transmission module in the data transmission link reaches the target time duration corresponding to the first transmission module, and the first transmission module does not receive the upstream data packet including the session identifier, generate the target data packet through the first transmission module.
As a possible implementation manner, the downlink data transmission module 210 is further configured to configure a timer associated with the session identifier for each transmission module in the data transmission link and control the timer to start timing when the downlink data packet is received by each transmission module in the data transmission link, and 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 uplink data packet including the session identifier, then the first transmission module generates the target data packet according to the session identifier associated with the timer, the module identifier corresponding to the first transmission module and the second indicator identifier.
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.
Referring to fig. 6, a block diagram of another data flow transmission monitoring apparatus 300 according to an embodiment of the present application is shown, where the data flow transmission monitoring apparatus 300 is applied to a server and includes a downstream data sending module 310, a target data receiving module 320, a processing result judging module 330 and a fault location determining module 340. The downlink data sending module 310 is configured to send a downlink data packet to a target module in the vehicle, where the downlink data packet includes a session identifier, the target data receiving module 320 is configured to receive a target data packet sent by the vehicle, where the target data packet includes a second indicator identifier, a module identifier corresponding to a first transmission module, and a session identifier, the first transmission module is any transmission module in a 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 a data packet including the session identifier in a target duration after the vehicle transmits the downlink data packet to the target module through the data transmission link, the second indicator identifier indicates that the data transmission link is abnormal, the processing result determining module 330 is configured to determine that the data transmission link of the vehicle is abnormal according to the second indicator identifier and the session identifier in the target data packet, and the failure location determining module 340 is configured to determine a transmission module generating a data flow abnormality suspension in the vehicle according to the module identifier in the target data packet.
As a possible implementation manner, the fault location determining module 340 is further configured to determine, according to the module identifier, a first transmission module corresponding to the module identifier, and all transmission modules located after the first transmission module when the data transmission link performs downlink transmission are transmission modules that generate an abort of the data stream in the vehicle.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided by the present application, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
In summary, the scheme provided by the application is that a downlink data packet sent by a server is transmitted to a target module in a vehicle through a data transmission link in the vehicle, if a first transmission module in the data transmission link does not receive an uplink data packet within a target duration, the first transmission module generates the target data packet, and the first transmission module transmits the target data packet in an uplink mode so as to transmit the target data packet to the server. 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 target module of the vehicle aiming at the downlink data packet within the target time length, the target data packet is automatically generated and uplink transmission is performed, so that the server can determine the downlink data packet which is not successfully processed by the vehicle based on the target data packet, and accurately position the transmission module with abnormality in the process of transmitting the downlink data packet, thereby reducing the cost of fault investigation on the data transmission link and improving the maintenance efficiency.
Referring to fig. 7, a block diagram of a vehicle 400 according to an embodiment of the application is shown. The vehicle 400 of the present application may include one or more processors 410, memory 420, and one or more applications, wherein the one or more applications may be stored in the memory 420 and configured to be executed by the one or more processors 410, the one or more applications configured to perform the methods as described in the foregoing method embodiments.
Processor 410 may include one or more processing cores. The processor 410 utilizes various interfaces and lines to connect various portions of the overall computer device, perform various functions of the computer device, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 420, and invoking data stored in the memory 420. Alternatively, the processor 410 may be implemented in hardware in at least one of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 410 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like, the GPU is used for rendering and drawing display contents, and the modem is used for processing wireless communication. It will be appreciated that the modem may not be integrated into the processor 410 and may be implemented solely by a single communication chip.
Memory 420 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Memory 420 may be used to store instructions, programs, code sets, or instruction sets. The memory 420 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the computer device in use (e.g., phonebook, audio-video data, chat-record data), etc.
Embodiments of the present application provide a computer-readable storage medium. The computer readable medium has stored therein program code which is callable by a processor to perform the method described in the method embodiments described above.
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. Optionally, the computer readable storage medium comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium has storage space for program code to perform any of the method steps described above. The program code can be read from or written to one or more computer program products. The program code may be compressed, for example, in a suitable form.
It should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present application and not for limiting the same, and although the present application has been described in detail with reference to the above-mentioned embodiments, it will be understood by those skilled in the art that the technical solution described in the above-mentioned embodiments may be modified or some technical features may be equivalently replaced, and these modifications or replacements do not drive the essence of the corresponding technical solution to deviate from the spirit and scope of the technical solution of the embodiments of the present application.