CN115314540A - Request response timeout processing method, device, equipment and medium - Google Patents

Request response timeout processing method, device, equipment and medium Download PDF

Info

Publication number
CN115314540A
CN115314540A CN202210950722.8A CN202210950722A CN115314540A CN 115314540 A CN115314540 A CN 115314540A CN 202210950722 A CN202210950722 A CN 202210950722A CN 115314540 A CN115314540 A CN 115314540A
Authority
CN
China
Prior art keywords
response
equipment
request
data
data sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210950722.8A
Other languages
Chinese (zh)
Inventor
刘新
李森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202210950722.8A priority Critical patent/CN115314540A/en
Publication of CN115314540A publication Critical patent/CN115314540A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a request response timeout processing method, a request response timeout processing device, request response timeout processing equipment and a request response timeout processing medium, which relate to the technical field of communication and are applied to first transmission equipment, and the request response timeout processing method comprises the following steps: when a request message sent by data sending equipment is acquired, starting timing operation; sending the request message to the data receiving equipment through the second transmission equipment; and if the response message corresponding to the request message returned by the data receiving equipment is not received within the time limit specified by the timing operation, replying a negative response code to the data sending equipment to increase the response waiting time. As can be seen, after the first transmission device acquires the request message sent by the data sending device, the first transmission device starts a timing operation, and if the response message is not received within a time limit specified by the timing operation, the first transmission device replies a negative response code to the data sending device to increase response waiting time. Therefore, the problem of network delay is solved, and the problem of poor user experience caused by unconditional response to the negative response code is also avoided.

Description

Request response timeout processing method, device, equipment and medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a medium for processing request response timeout.
Background
In remote diagnosis of a vehicle, the architecture diagram shown in fig. 1 is usually adopted, in fig. 1, a second transmission device, for example, a C terminal (user terminal) in fig. 1, is connected to the vehicle for interaction through ethernet, and a first transmission device, for example, a B terminal (enterprise terminal) in fig. 1, is connected to the diagnosis device for interaction through ethernet, and in practical applications, the first transmission device and the second transmission device are far apart. The diagnosis of the vehicle is time-delayed and if time out, the diagnosis is likely to fail. However, in the remote diagnosis, the network delay is unreliable, and it is difficult to ensure that the network delay always meets the requirement, especially when the user uses wifi or 4G wireless networks, etc., the network delay is more unreliable. In order to solve the problem, currently, all the service codes of the UDS support a 0x78 passive response code, the B-side replaces a 0x78 passive response code when receiving a request of the diagnostic device, and the diagnostic device waits for at least 5 seconds after receiving the passive response code, so that the problem of diagnostic failure caused by network delay of more than 50 milliseconds can be avoided.
However, this approach, while solving the timeout problem, brings other problems, and on one hand, many diagnostic devices usually wait longer when they receive a negative response code of 0x78 and then send the next service request. On the other hand, some diagnostic devices may directly determine that an error has occurred when they receive a negative response code of 0x78, indicating that the diagnosis has failed. That is, unconditional generation of a negative response code of 0x78 may cause failure of diagnosis in case of a good network and result in poor user experience.
In summary, how to more accurately reply a negative response code to a data sending device to avoid a request response timeout and further improve the user experience is a problem to be solved at present.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, an apparatus, a device, and a medium for processing request response timeout, which can more accurately reply a negative response code to a data sending device to avoid the request response timeout, and further improve user experience. The specific scheme is as follows:
in a first aspect, the present application discloses a method for processing request response timeout, which is applied to a first transmission device, where the first transmission device establishes communication connections with a second transmission device and a data sending device, respectively, and the second transmission device establishes communication connections with a data receiving device, and the method includes:
when a request message sent by the data sending equipment is acquired, starting timing operation;
sending the request message to the data receiving equipment through the second transmission equipment;
and if the response message corresponding to the request message returned by the data receiving equipment is not received within the time limit specified by the timing operation, replying a negative response code to the data sending equipment to increase response waiting time.
Optionally, after sending the request packet to the data receiving device through the second transmission device, the method further includes:
and if a response message corresponding to the request message returned by the data receiving equipment is received within the time limit specified by the timing operation, replying the response message to the data sending equipment, and stopping the timing operation.
Optionally, the method for processing request response timeout further includes:
and configuring the response waiting time through a preset time configuration interface, and setting the time limit of the timing operation based on the response waiting time.
Optionally, after acquiring the request packet sent by the data sending device, the method further includes:
and analyzing the request message to acquire a CAN bus identifier and a service identifier.
Optionally, the replying a negative response code to the data transmission device to increase the response latency includes:
setting a negative response code based on the CAN bus identifier, the service identifier and the negative response code, and replying the negative response code to the data transmission apparatus to increase response latency.
Optionally, after replying a negative response code to the data transmission device to increase response latency, the method further includes:
and when a response message corresponding to the request message returned by the data receiving equipment through the second transmission equipment is received, replying the response message to the data sending equipment.
Optionally, the method for processing request response timeout further includes:
the data transmitting device is a diagnostic device, and the data receiving device is a vehicle.
In a second aspect, the present application discloses a processing apparatus for request response timeout, which is applied to a first transmission device, where the first transmission device establishes communication connections with a second transmission device and a data sending device, respectively, and the second transmission device establishes communication connections with a data receiving device, where the apparatus includes:
the timing starting module is used for starting timing operation when a request message sent by the data sending equipment is obtained;
the data sending module is used for sending the request message to the data receiving equipment through the second transmission equipment;
and the negative response replying module is used for replying a negative response code to the data sending equipment to increase response waiting time if a response message which is returned by the data receiving equipment and corresponds to the request message is not received within a time limit specified by the timing operation.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the method for processing request response timeout disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program realizes the steps of the method for processing request response time-out disclosed in the foregoing when being executed by a processor.
Therefore, the method is applied to the first transmission device, and when the request message sent by the data sending device is obtained, timing operation is started; sending the request message to the data receiving equipment through the second transmission equipment; and if the response message corresponding to the request message returned by the data receiving equipment is not received within the time limit specified by the timing operation, replying a negative response code to the data sending equipment to increase response waiting time. Therefore, in the application, after the first transmission device obtains the request message sent by the data sending device, the first transmission device starts timing operation, transmits the request message to the data receiving device, and then waits for a response message corresponding to the request message and returned by the data receiving device; if the response message is not received within the time limit specified by the timing operation, the first transmission equipment replies a negative response code to the data sending equipment so as to increase the response waiting time. Therefore, the passive response code can be more accurately replied to the data sending equipment to avoid overtime of the request response, so that the problem of network delay is solved, and the problem of poor user experience caused by unconditional reply of the passive response code is also avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a diagram of a remote diagnostic architecture as disclosed herein;
FIG. 2 is a flowchart of a request response timeout processing method disclosed herein;
FIG. 3 is a flowchart of a specific request response timeout processing method disclosed herein;
FIG. 4 is a schematic structural diagram of a request response timeout processing apparatus disclosed in the present application;
fig. 5 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Currently, all the service codes of the UDS support a 0x78 negative response code, the B-side replaces a 0x78 negative response code when receiving a request from the diagnostic device, and the diagnostic device waits at least 5 seconds after receiving the negative response code, so that the problem of diagnostic failure due to network delay of more than 50 milliseconds can be avoided. However, the unconditional reply of the negative response code may cause the remote diagnosis to take longer, for example, when the diagnostic device sends a Service request message with SID (Service identity) of 0X36, the vehicle returns a reply message of 0X76, and when the diagnostic device receives the reply message, the diagnostic device sends the next Service request after about 10 milliseconds; however, if the diagnostic device sends a service request with SID 0X36, the B-side will wait for 100 milliseconds before sending the next service request when receiving a negative response code of 0X76 from the vehicle after replacing a negative response code of 0X7f 0xc 36 0xc 78. This greatly increases the time consumption of remote diagnosis in the case of a large amount of data. For example, programming an ECU (Electronic Control Unit), if the same network delay is used, it takes 20 minutes if the passive response code of 0x78 is not replaced; in the case where each frame is substituted back for a negative response code, the time consumption is more than 1 hour, which seriously affects the user experience. Therefore, the embodiment of the application discloses a method, a device, equipment and a medium for processing request response timeout, which can more accurately reply a negative response code to data sending equipment to avoid the request response timeout and further improve the user experience.
Referring to fig. 1, an embodiment of the present application discloses a request response timeout processing method, which is applied to a first transmission device, where the first transmission device establishes a communication connection with a second transmission device and a data sending device, respectively, and the second transmission device establishes a communication connection with a data receiving device, and the method includes:
step S11: and starting timing operation when the request message sent by the data sending equipment is acquired.
In this embodiment, the timing operation may be started in various ways, and in a specific implementation manner, the timer may be started, that is, after the first transmission device acquires the request packet sent by the data sending device, the timer is started, and the timer starts to record time.
Step S12: and sending the request message to the data receiving equipment through the second transmission equipment.
In this embodiment, the first transmission device needs to send the request message to the data receiving device through the second transmission device, and then waits for the data receiving device to return a corresponding response message.
Step S13: and if the response message corresponding to the request message returned by the data receiving equipment is not received within the time limit specified by the timing operation, replying a negative response code to the data sending equipment to increase response waiting time.
In this embodiment, it can be understood that the timing operation sets a time limit in advance. If the response message corresponding to the request message returned by the data receiving equipment is not received within the time limit specified by the timing operation, it indicates that the response may be overtime currently due to network delay and other reasons. At this time, a negative response code, which may be, in particular, 0x7F SID 0X78, where 7f denotes a negative response and 78 is a negative response code, needs to be replied to the data transmission apparatus by the first transmission apparatus to increase the response waiting time. After the data sending device receives the negative response code, the response waiting time is increased, and the data receiving device continues to wait for a response message to return.
Therefore, the method is applied to the first transmission device, and when the request message sent by the data sending device is obtained, timing operation is started; sending the request message to the data receiving equipment through the second transmission equipment; and if the response message corresponding to the request message returned by the data receiving equipment is not received within the time limit specified by the timing operation, replying a negative response code to the data sending equipment to increase response waiting time. Therefore, in the application, after the first transmission device obtains the request message sent by the data sending device, the first transmission device starts timing operation, transmits the request message to the data receiving device, and then waits for a response message corresponding to the request message and returned by the data receiving device; if the response message is not received within the time limit specified by the timing operation, the first transmission equipment replies a negative response code to the data sending equipment so as to increase the response waiting time. Therefore, the passive response code can be more accurately replied to the data sending equipment to avoid overtime of the request response, so that the problem of network delay is solved, and the problem of poor user experience caused by unconditional reply of the passive response code is also avoided.
Referring to fig. 2, the embodiment of the present application discloses a specific request response timeout processing method, and compared with the previous embodiment, the present embodiment further describes and optimizes the technical solution. The method specifically comprises the following steps:
step S21: and when the request message sent by the data sending equipment is acquired, starting timing operation, and analyzing the request message to acquire a CAN bus identifier and a service identifier.
In this embodiment, the data sending device may specifically be a diagnostic device. After the request message sent by the diagnostic device is acquired, the request message needs to be analyzed to acquire a CAN bus identifier (namely CAN id) and a service identifier (namely SID), which are respectively used for indicating a CAN node address and which service is specified. For example, when the request message sent by the diagnostic device is 000007e0 02 31 e0 55 55 55, the request message is analyzed to obtain CAN id of 7e0 and sid of 31.
Step S22: and sending the request message to the data receiving equipment through the second transmission equipment.
In this embodiment, the data receiving device may be a vehicle.
Step S23: if the response message corresponding to the request message returned by the data receiving equipment is not received within the time limit specified by the timing operation, a negative response code is set based on the CAN bus identifier, the service identifier and the negative response code, and the negative response code is replied to the data sending equipment to increase response waiting time.
In this embodiment, the passive response code may be specifically set based on the CAN bus identifier, the service identifier, and the passive response code. It should be noted that the CAN bus identifiers are paired, for example, if the CAN bus identifier of the request message is 7e0, the CAN bus identifier in the negative response code returned by the first transmission device is 7e8, and the negative response code specifically is: 000007e8 03 7f 31 0000 0000, 31 being a service identifier and 78 being a negative response code. The method further comprises the following steps: and configuring the response waiting time through a preset time configuration interface, and setting the time limit of the timing operation based on the response waiting time. That is, the time limit of the timing operation is also the response waiting time configured in advance through the preset time configuration interface, and may be configured to be 50 milliseconds, for example, so that when the response message is not acquired within 50 milliseconds after the timer is started, it indicates that the current response is overtime, and a negative response needs to be sent to the data sending device to increase the response waiting time.
Further, after replying a negative response code to the data transmission device to increase the reply waiting time, the method further includes: and when a response message corresponding to the request message returned by the data receiving equipment through the second transmission equipment is received, replying the response message to the data sending equipment. That is, when the response message corresponding to the request message returned by the data receiving device through the second transmission device is acquired within the period after the response waiting time is increased, the response message is returned to the data sending device. The extra response waiting time can be set to 5 seconds, that is, after the negative response code is replied to the data sending device, the data sending device waits for 5 seconds again, and if the first transmission device receives the response message within the 5 seconds, the response message is replied to the data sending device; if after 5 seconds, the first transmission device does not receive the response message returned by the data receiving device through the second transmission device, the data sending device may select to send the request message again, or directly prompt that the diagnosis is failed, which is not specifically limited in this application.
In another specific embodiment, the method further includes: and if a response message corresponding to the request message returned by the data receiving equipment is received within the time limit specified by the timing operation, replying the response message to the data sending equipment, and stopping the timing operation. That is, if the current network state is good, the first transmission device obtains the response message returned by the data receiving device within the time limit specified by the timing operation, directly returns the response message to the data sending device, and stops the timing operation, that is, closes the timer, and at this time, the first transmission device does not need to return the negative response code to the data sending device. Compared with the prior art, the problems that time is consumed for remote diagnosis and user experience is influenced due to the fact that the negative response codes are replied blindly under the condition that the network state is good are solved.
For a more specific processing procedure of the step S22, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Therefore, in the application, after the request message is obtained, the request message needs to be analyzed to obtain the CAN bus identifier and the service identifier, so that the negative response code is set according to the CAN bus identifier and the service identifier. And if the response message is received within the time limit specified by the timing operation, directly replying the response message to the data sending equipment, and stopping the timing operation. Therefore, the passive response code does not need to be replied under the good state of the network, so that the problems that the remote diagnosis is time-consuming and the user experience is influenced due to the blind replying of the passive response code in the prior art are solved.
Referring to fig. 4, an embodiment of the present application discloses a processing apparatus for request response timeout, which is applied to a first transmission device, where the first transmission device establishes communication connections with a second transmission device and a data sending device, respectively, and the second transmission device establishes communication connections with a data receiving device, and the apparatus includes:
a timing starting module 11, configured to start a timing operation when a request packet sent by the data sending device is obtained;
a data sending module 12, configured to send the request packet to the data receiving device through the second transmission device;
and a negative response replying module 13, configured to reply a negative response code to the data sending apparatus to increase response waiting time if a response message corresponding to the request message returned by the data receiving apparatus is not received within a time limit specified by the timing operation.
Therefore, the method is applied to the first transmission device, and when the request message sent by the data sending device is obtained, timing operation is started; sending the request message to the data receiving equipment through the second transmission equipment; and if the response message corresponding to the request message returned by the data receiving equipment is not received within the time limit specified by the timing operation, replying a negative response code to the data sending equipment to increase response waiting time. Therefore, in the application, after acquiring the request message sent by the data sending equipment, the first transmission equipment starts timing operation, transmits the request message to the data receiving equipment, and then waits for a response message corresponding to the request message and returned by the data receiving equipment; if the response message is not received within the time limit specified by the timing operation, the first transmission device replies a negative response code to the data transmission device to increase the response waiting time. Therefore, the passive response code can be more accurately replied to the data sending equipment to avoid overtime of the request response, so that the problem of network delay is solved, and the problem of poor user experience caused by unconditional reply of the passive response code is also avoided.
In some specific embodiments, after the data sending module 12, the method may further include:
and the first response message replying unit is used for replying the response message to the data sending equipment and stopping the timing operation if the response message corresponding to the request message returned by the data receiving equipment is received within the time limit specified by the timing operation.
In some specific embodiments, the processing device for requesting response timeout may further include:
and the time limit setting unit is used for configuring the response waiting time through a preset time configuration interface and setting the time limit of the timing operation based on the response waiting time.
In some specific embodiments, the timing starting module 11 may specifically include:
and the request message analysis unit is used for analyzing the request message to acquire the CAN bus identifier and the service identifier.
In some specific embodiments, the negative response reply module 13 may specifically include:
a passive response setting unit for setting a passive response code based on the CAN bus identifier, the service identifier and the passive response code, and replying the passive response code to the data transmission apparatus to increase response latency.
In some specific embodiments, after the negative response reply module 13, the method may further include:
and a second response message replying unit, configured to, when receiving a response message corresponding to the request message and returned by the data receiving device through the second transmission device, reply the response message to the data sending device.
In some specific embodiments, in the processing device for requesting response timeout, the data sending device is a diagnostic device, and the data receiving device is a vehicle.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The method specifically comprises the following steps: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the processing method for processing request response timeout performed by an electronic device disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
In addition, the storage 22 is used as a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., the resources stored thereon include an operating system 221, a computer program 222, data 223, etc., and the storage may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the mass data 223 in the memory 22 by the processor 21, which may be Windows, unix, linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the processing method for request response timeout performed by the electronic device 20 disclosed in any of the foregoing embodiments. The data 223 may include data received by the electronic device and transmitted from an external device, or may include data collected by the input/output interface 25 itself.
Further, an embodiment of the present application further discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the method steps executed in the processing procedure of the request response timeout disclosed in any of the foregoing embodiments are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The method, the apparatus, the device and the storage medium for processing request response timeout provided by the present invention are described in detail above, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A processing method for request response timeout is applied to a first transmission device, the first transmission device establishes communication connection with a second transmission device and a data sending device respectively, the second transmission device establishes communication connection with a data receiving device, and the method comprises the following steps:
when a request message sent by the data sending equipment is acquired, starting timing operation;
sending the request message to the data receiving equipment through the second transmission equipment;
and if the response message corresponding to the request message returned by the data receiving equipment is not received within the time limit specified by the timing operation, replying a negative response code to the data sending equipment to increase response waiting time.
2. The method for processing request response timeout according to claim 1, wherein after the sending the request packet to the data receiving device through the second transmission device, the method further comprises:
and if a response message corresponding to the request message returned by the data receiving equipment is received within the time limit specified by the timing operation, replying the response message to the data sending equipment, and stopping the timing operation.
3. The method for processing request response timeout according to claim 1, further comprising:
and configuring the response waiting time through a preset time configuration interface, and setting the time limit of the timing operation based on the response waiting time.
4. The method for processing request response timeout according to claim 1, after acquiring the request packet sent by the data sending device, further comprising:
and analyzing the request message to acquire a CAN bus identifier and a service identifier.
5. The method for processing request response timeout according to claim 4, wherein said replying a negative response code to the data transmission apparatus to increase response latency includes:
setting a negative response code based on the CAN bus identifier, the service identifier and the negative response code, and replying the negative response code to the data transmission apparatus to increase response latency.
6. The method for processing request response timeout according to any one of claims 1 to 5, wherein after replying a negative response code to the data transmission apparatus to increase response latency, the method further comprises:
and when a response message corresponding to the request message returned by the data receiving equipment through the second transmission equipment is received, replying the response message to the data sending equipment.
7. The method for processing request response timeout according to claim 6, further comprising:
the data transmitting device is a diagnostic device, and the data receiving device is a vehicle.
8. A processing device for requesting response timeout is applied to a first transmission device, the first transmission device establishes communication connection with a second transmission device and a data sending device respectively, the second transmission device establishes communication connection with a data receiving device, and the method includes:
the timing starting module is used for starting timing operation when the request message sent by the data sending equipment is obtained;
a data sending module, configured to send the request packet to the data receiving device through the second transmission device;
and the negative response replying module is used for replying a negative response code to the data sending equipment to increase response waiting time if a response message which is returned by the data receiving equipment and corresponds to the request message is not received within a time limit specified by the timing operation.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing said computer program for carrying out the steps of the method for processing request reply timeout according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program realizes the steps of the method for processing request reply timeout according to any one of claims 1 to 7 when executed by a processor.
CN202210950722.8A 2022-08-09 2022-08-09 Request response timeout processing method, device, equipment and medium Pending CN115314540A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210950722.8A CN115314540A (en) 2022-08-09 2022-08-09 Request response timeout processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210950722.8A CN115314540A (en) 2022-08-09 2022-08-09 Request response timeout processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115314540A true CN115314540A (en) 2022-11-08

Family

ID=83860855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210950722.8A Pending CN115314540A (en) 2022-08-09 2022-08-09 Request response timeout processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115314540A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088470A (en) * 2022-12-28 2023-05-09 镁佳(武汉)科技有限公司 Automobile diagnosis method, device, computer equipment and medium
CN117061072A (en) * 2023-10-10 2023-11-14 苏州元脑智能科技有限公司 Message transmission method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190354630A1 (en) * 2018-05-17 2019-11-21 International Business Machines Corporation Reducing negative effects of service waiting time in humanmachine interaction to improve the user experience
CN114253251A (en) * 2022-01-20 2022-03-29 深圳市元征科技股份有限公司 Vehicle remote diagnosis method and device, equipment connector and storage medium
CN114815782A (en) * 2022-05-19 2022-07-29 深圳市元征科技股份有限公司 Remote diagnosis method, apparatus, device and medium
CN114866585A (en) * 2022-04-24 2022-08-05 深圳市元征科技股份有限公司 Remote upgrading method, device and system and equipment end connector

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190354630A1 (en) * 2018-05-17 2019-11-21 International Business Machines Corporation Reducing negative effects of service waiting time in humanmachine interaction to improve the user experience
CN114253251A (en) * 2022-01-20 2022-03-29 深圳市元征科技股份有限公司 Vehicle remote diagnosis method and device, equipment connector and storage medium
CN114866585A (en) * 2022-04-24 2022-08-05 深圳市元征科技股份有限公司 Remote upgrading method, device and system and equipment end connector
CN114815782A (en) * 2022-05-19 2022-07-29 深圳市元征科技股份有限公司 Remote diagnosis method, apparatus, device and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088470A (en) * 2022-12-28 2023-05-09 镁佳(武汉)科技有限公司 Automobile diagnosis method, device, computer equipment and medium
CN117061072A (en) * 2023-10-10 2023-11-14 苏州元脑智能科技有限公司 Message transmission method, device, equipment and storage medium
CN117061072B (en) * 2023-10-10 2024-02-06 苏州元脑智能科技有限公司 Message transmission method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN115314540A (en) Request response timeout processing method, device, equipment and medium
EP3585095A1 (en) Method for controlling quality of service, and device, smf, upf, ue, pcf and an therefor
EP3355517A1 (en) Service and resource orchestration system, method and device
CN108322437B (en) Adaptive communication method and device for multiple protocol devices
CN109040295B (en) Method and device for determining abnormal disconnection, terminal and storage medium
CN112769652B (en) Node service monitoring method, device, equipment and medium
CN112311628A (en) Network speed measuring method, system, network equipment and storage medium
CN114205866A (en) Deterministic information reporting and issuing method and device, storage medium and electronic equipment
CN110417876A (en) Node server and main control device in session method, distributed system
CN113965904A (en) Device registration method, device and storage medium
CN111901395B (en) Multi-cluster switching method and device
WO2024103943A1 (en) Service processing method and apparatus, storage medium, and device
CN107425994B (en) Method, terminal and server for realizing remote parameter management
US8855693B2 (en) Method and apparatus for controlling wireless devices
CN106982156B (en) Priority setting method, device, communication system, equipment and readable storage medium storing program for executing
CN114157725B (en) Method, device, server, electronic equipment and storage medium for equipment linkage
CN114697339A (en) Load balancing method and device under centralized architecture
CN116974655A (en) Capability scheduling method and capability scheduling functional entity
CN107465751B (en) Communication method, device, client and computer storage medium
CN115065699B (en) Routing activation method, device, equipment and medium based on remote diagnosis
CN113543189A (en) Energy efficiency evaluation method and related equipment
CN105491622B (en) The methods, devices and systems of wireless network parameter configuration
CN113472841B (en) Implementation method and device for terminating remote procedure call request
CN112995571B (en) Communication management method and communication management device for wireless conference system
CN116527793B (en) Protocol connection method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination