Transmission connection control method and device and computer equipment

By creating socket monitoring modules and other modules in the wireless upgrade main control module, monitoring and managing the shutdown operation of transmission connections, the problem that the transmission connection may be in a 'dead' state during the OTA upgrade process is solved, and resource conservation and Reliability of data transmission.

CN119421265APending Publication Date: 2025-02-11CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411262851.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

During the OTA upgrade of the vehicle, the transmission connection may be in a ‘dead wait’ state when closed, resulting in wasted resources or a downtime due to too heavy load.

Method used

Monitor and manage the shutdown operation of the transmission connection to ensure that the connection is automatically closed when timeout is achieved by creating a socket monitoring module, a socket closing timing module and a socket thread control module in the wireless upgrade master module.

Benefits of technology

It effectively avoids invalid connections occupying system and memory resources, prevents resource waste and downtime, improves the reliability of data transmission and the performance of upgrading and writing of electronic control units.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119421265A_ABST
    Figure CN119421265A_ABST
Patent Text Reader

Abstract

The invention relates to a transmission connection control method and device and computer equipment. The method comprises the steps that when a wireless upgrading file of an electronic control unit of a vehicle is obtained, transmission connection with the electronic control unit is established, and a socket monitoring module, a socket closing timing module and a socket thread control module are established; in the process of upgrading the electronic control unit according to the wireless upgrading file, when a socket monitoring module monitors a closing operation of transmission connection, a closing state is generated and sent to a socket closing timing module; a socket closing timing module is used for timing the closing state, and when the duration of the closing state is greater than a first preset duration, connection closing timeout information is generated and sent to a socket monitoring module; and when the socket monitoring module monitors that the transmission connection is not closed, the transmission connection with the electronic control unit is closed through the socket thread control module. By adopting the method, resources can be saved, and downtime caused by too heavy load is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless upgrade technology, and in particular to a transmission connection control method, device and computer equipment. Background Art

[0002] Over the Air Technology (OTA), also known as air download technology, refers to the technology of remotely updating vehicles through wireless networks. OTA not only brings a more convenient way to upgrade vehicles, but also allows consumers to experience a smarter and more convenient car experience. As smart vehicles become more and more versatile, the number of ECU (Electronic Control Unit) components in the vehicle system is increasing, and the functions are becoming more and more complex and rich. It is necessary to use Ethernet-based parallel upgrade to flash ECU components to improve upgrade efficiency and save time.

[0003] In traditional technology, OTA upgrades of vehicle ECU components are usually implemented based on in-vehicle Ethernet (Diagnostic communication over Internet Protocol, DoIP). Specifically, a transmission control protocol (Transmission Control Protocol, TCP) connection is established between the client of the vehicle OTA upgrade main control module (Unified Module Controller, UMC) and the vehicle ECU to implement OTA upgrades of vehicle ECU components. However, when the client of the vehicle OTA upgrade main control module or the vehicle ECU closes the connection, if there is still some data to be read, if the active closing party does not receive feedback from the other end, it will remain in a "dead waiting" state, resulting in a waste of resources or downtime due to excessive load. Summary of the invention

[0004] Based on this, it is necessary to provide a transmission connection control method, device and computer equipment that can save resources and avoid downtime due to heavy load in order to solve the above technical problems.

[0005] In a first aspect, the present application provides a transmission connection control method, which is applied to a wireless upgrade main control module of a vehicle, comprising:

[0006] When the wireless upgrade file of the electronic control unit of the vehicle is obtained, a transmission connection with the electronic control unit is established, and a socket monitoring module, a socket closing timing module and a socket thread control module are created in the wireless upgrade main control module;

[0007] In the process of upgrading the electronic control unit according to the wireless upgrade file, the socket monitoring module monitors the closing operation of the transmission connection by the wireless upgrade main control module, and when the closing operation of the transmission connection is detected, a closing state is generated and sent to the socket closing timing module;

[0008] The closed state is timed by the socket closing timing module, and when the duration of the closed state is greater than the first preset duration, connection closing timeout information is generated and sent to the socket monitoring module;

[0009] When the socket monitoring module detects that the transmission connection is not closed, the connection closing timeout information is sent to the socket thread control module, and the transmission connection with the electronic control unit is closed through the socket thread control module.

[0010] In one embodiment, the method further comprises:

[0011] When establishing a transmission connection with the electronic control unit, a link disconnection timeout module is created in the wireless upgrade main control module; the wireless upgrade main control module includes a link layer;

[0012] The link disconnection timeout module monitors the link channel change of the link layer during the transmission connection process, and when the link channel is detected to be disconnected, a link connection signal is sent to the electronic control unit through the link layer;

[0013] When the link disconnection timeout module detects that the duration of link channel disconnection exceeds the second preset duration, it generates link channel disconnection timeout information, sends it to the socket thread control module, and closes the transmission connection with the electronic control unit through the socket thread control module.

[0014] In one embodiment, the method further comprises:

[0015] When the transmission connection with the electronic control unit is closed through the socket thread control module, the socket task in the electronic control unit upgrade process is released.

[0016] In one embodiment, establishing a transmission connection with an electronic control unit includes:

[0017] For electronic control units that support Ethernet, a transmission connection is established with the electronic control unit through link layer transparent transmission via the wireless upgrade agent module;

[0018] For electronic control units that do not support Ethernet, a transmission connection is established with a wireless upgrade proxy module, the wireless upgrade file is converted into a unified diagnostic service format through the wireless upgrade proxy module, and the wireless upgrade file in the unified diagnostic service format is forwarded to the electronic control unit to establish a transmission connection with the electronic control unit.

[0019] In one embodiment, converting the wireless upgrade file into a unified diagnostic service format by the wireless upgrade agent module includes:

[0020] Determine the target address of the electronic control unit from the wireless upgrade file through the wireless upgrade agent module;

[0021] Convert the wireless upgrade file to the unified diagnostic service format according to the target address.

[0022] In one embodiment, establishing a transmission connection with an electronic control unit includes:

[0023] A transmission connection with the electronic control unit is established through the main control socket thread module in the wireless upgrade main control module.

[0024] In a second aspect, the present application also provides a transmission connection control method, which is applied to an electronic control unit of a vehicle, comprising:

[0025] When receiving a transmission connection request from the wireless upgrade main control module of the vehicle, establishing a transmission connection with the wireless upgrade main control module, and creating a socket monitoring module, a socket closing timing module and a socket thread control module in the electronic control unit;

[0026] During the process of upgrading the electronic control unit by the wireless upgrade main control module, the closing operation of the electronic control unit on the transmission connection is monitored by the socket monitoring module. When the closing operation of the transmission connection is detected, a closing state is generated and sent to the socket closing timing module;

[0027] The closed state is timed by the socket closing timing module, and when the duration of the closed state is greater than the first preset duration, connection closing timeout information is generated and sent to the socket monitoring module;

[0028] When the socket monitoring module detects that the transmission connection is not closed, the connection closing timeout information is sent to the socket thread control module, and the transmission connection with the wireless upgrade main control module is closed through the socket thread control module.

[0029] In a third aspect, the present application further provides a transmission connection control device, including:

[0030] A creation module is used to establish a transmission connection with the electronic control unit when the wireless upgrade file of the electronic control unit of the vehicle is obtained, and to create a socket monitoring module, a socket closing timing module and a socket thread control module in the wireless upgrade main control module;

[0031] A monitoring module, used for monitoring the closing operation of the wireless upgrade main control module on the transmission connection through the socket monitoring module during the process of upgrading the electronic control unit according to the wireless upgrade file, and generating a closing state when the closing operation of the transmission connection is monitored, and sending it to the socket closing timing module;

[0032] A timing module, used for timing the closing state through the socket closing timing module, and when the duration of the closing state is greater than a first preset duration, generating connection closing timeout information and sending it to the socket monitoring module;

[0033] The closing module is used to send connection closing timeout information to the socket thread control module when the socket monitoring module detects that the transmission connection is not closed, and close the transmission connection with the electronic control unit through the socket thread control module.

[0034] In a third aspect, the present application further provides a transmission connection control device, including:

[0035] A creation module, used for establishing a transmission connection with the wireless upgrade main control module when receiving a transmission connection request from the wireless upgrade main control module of the vehicle, and creating a socket monitoring module, a socket closing timing module and a socket thread control module in the electronic control unit of the vehicle;

[0036] A monitoring module is used to monitor the closing operation of the electronic control unit on the transmission connection through the socket monitoring module during the process of the wireless upgrade main control module upgrading the electronic control unit, and when the closing operation of the transmission connection is monitored, a closing state is generated and sent to the socket closing timing module;

[0037] A timing module, used for timing the closing state through the socket closing timing module, and when the duration of the closing state is greater than a first preset duration, generating connection closing timeout information and sending it to the socket monitoring module;

[0038] The closing module is used to send connection closing timeout information to the socket thread control module when the socket monitoring module detects that the transmission connection is not closed, and close the transmission connection with the wireless upgrade main control module through the socket thread control module.

[0039] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of the first aspect or the second aspect when executing the computer program.

[0040] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the method of the first aspect or the second aspect mentioned above when the computer program is executed by a processor.

[0041] In a seventh aspect, the present application further provides a computer program product, comprising a computer program, which implements the steps of the method of the first aspect or the second aspect when executed by a processor.

[0042] The above transmission connection control method, device and computer equipment, when the wireless upgrade main control module of the vehicle establishes a transmission connection with the electronic control unit of the vehicle, simultaneously creates a socket monitoring module, a socket closing timing module and a socket thread control module in the wireless upgrade main control module and the electronic control unit, monitors the closing operation of the transmission connection through the socket monitoring module, generates a closing status and sends it to the socket closing timing module. The closing status is timed by the socket closing timing module, and when the closing status of the transmission connection times out, the socket thread control module is informed to close the transmission connection, which can avoid invalid connections occupying system and memory resources, causing resource waste or downtime due to heavy load, greatly saving system and memory resources, ensuring the reliability of data transmission, and improving the performance of upgrading and flashing the electronic control unit. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] FIG1 is a schematic diagram of a client actively initiating a connection closing in a conventional technology;

[0045] FIG2 is a diagram showing an application environment of a transmission connection control method according to an embodiment;

[0046] FIG3 is a schematic diagram of a flow chart of a transmission connection control method in one embodiment;

[0047] FIG4 is a schematic diagram of the connection between the wireless upgrade main control module and the electronic control of the vehicle in one embodiment;

[0048] FIG5 is a schematic diagram of a vehicle's wireless upgrade main control module upgrading an ECU in one embodiment;

[0049] FIG6 is a schematic diagram of a process of converting a wireless upgrade file into a unified diagnostic service format in one embodiment;

[0050] FIG7 is a schematic diagram of a process of closing a link when a link is disconnected and timed out in one embodiment;

[0051] FIG8 is a schematic diagram of the structure of a CDC and a VGW in one embodiment;

[0052] FIG9 is a schematic flow chart of a transmission connection control method in another embodiment;

[0053] FIG10 is a structural block diagram of a transmission connection control device in one embodiment;

[0054] FIG. 11 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] In traditional technology, when the client of the vehicle OTA upgrade main control module or the vehicle ECU closes the connection, if there is still some data to be read, if the party that actively closes the connection does not receive feedback from the other party, it will remain in a "dead waiting" state, resulting in a waste of resources or downtime due to excessive load. The client can be called a socket client (SOCKET CLIENT), and the server can be a vehicle ECU, or a socket server (SOCKET SERVER). It takes four handshakes for the client and the server to close the transmission connection. The transmission connection must be closed actively by one party and passively by the other party. As shown in Figure 1, it is a schematic diagram of the client actively initiating the closure of the connection. The client that actively closes the connection before waving ends the ESTABLISHED stage (communication established stage), and then starts "four handshakes":

[0057] First, when the client calls shutdown() to close the connection, it sends a TCP message to the server, where the mark bit is FIN, indicating "request to close the connection". Then the client enters the FIN_WAIT1 phase, which is the half-close phase. And stops sending data from the client to the server, but the client can still receive data transmitted from the server. It should be noted that what is not sent in this phase is the data transmitted during the normal connection (non-confirmation message), not all data, so the client can still send an ACK confirmation message.

[0058] After receiving the TCP message sent from the client, the server confirms that the client wants to close the connection. Then the server ends the ESTABLISHED phase and enters the CLOSE_WAIT phase, which is a semi-closed state and returns a TCP message, in which the flag bit is ACK, indicating "receiving the request to close the connection sent by the client". After receiving the TCP message sent from the server, the client confirms that the server has received the request to close the connection sent by the client. Then the client ends the FIN_WAIT1 phase and enters the FIN_WAIT2 phase. The first two "waves" let the server know that the client wants to close the connection, and also let the client know that the server understands its request to close the connection. Therefore, it can be confirmed that the connection from the client to the server is closed.

[0059] After the server sends the ACK confirmation message, it goes through the CLOSED_WAIT phase and is ready to close the connection from the server to the client. It sends another TCP message to the client, in which the mark bit is FIN, indicating "ready to close the connection". The server then ends the CLOSE_WAIT phase and enters the LAST-ACK phase, which is the final confirmation phase. It stops sending data from the server to the client, but the server can still receive data transmitted from the client.

[0060] The client receives the TCP message sent from the server, confirms that the server is ready to close the connection, ends the FIN_WAIT2 phase, enters the TIME-WAIT phase, and sends a message to the server, where the mark bit is ACK, indicating "received the signal from the server that it is ready to close the connection." The client then begins to wait for 2MSL in the TIME-WAIT phase. After the server receives the TCP message sent from the client, it ends the LAST_ACK phase and enters the CLOSED phase. This formally confirms the closure of the connection from the server to the client. After the client has waited for 2MSL, it ends the TIME_WAIT phase and enters the CLOSED phase, thus completing the "four waves."

[0061] When the client and server are disconnected, some application data may still need to be interacted in the current buffer after the connection is closed. If close() is called, the connection will be closed directly, and the data in the buffer will be discarded, which may cause the upgrade data to be lost and the upgrade to fail. At this time, shutdown() is needed. When shutdown closes the connection, if some application data needs to be interacted in the current buffer, the connection will be closed only after the application data in the buffer is interacted, ensuring the integrity of the data interaction. However, when the party calling shutdown does not receive the third wave (FIN message), because tcp_fin_timeout cannot control shutdown to close the connection, the connection of the active closing party (such as the client) will be in the FIN_WAIT2 state "dead waiting", resulting in the occupation of file descriptors, memory resources, system resources, etc., and in severe cases, causing downtime.

[0062] In order to solve the above technical problems, the present application proposes a transmission connection control method, which can solve the problem of transmission connection deadlock, avoid invalid connections occupying system and memory resources, causing resource waste or downtime due to heavy load.

[0063] The transmission connection control method provided in the embodiment of the present application can be applied in the application environment shown in FIG2. Among them, the wireless upgrade main control module 202 of the vehicle communicates with the server 204 through the network, and the wireless upgrade main control module 202 communicates with the electronic control unit 206 in the vehicle through the network. The wireless upgrade main control module 202 downloads the wireless upgrade file of the electronic control unit of the vehicle from the server 204, establishes a transmission connection with the electronic control unit 206, and creates a socket monitoring module, a socket closing timing module and a socket thread control module in the wireless upgrade main control module 202. In the process of upgrading the electronic control unit 206 according to the wireless upgrade file, the wireless upgrade main control module 202 monitors the closing operation of the wireless upgrade main control module on the transmission connection through the socket monitoring module. When the closing operation of the transmission connection is monitored, the closing state of the closing operation is sent to the socket closing timing module. The closing state is timed by the socket closing timing module. When the duration of the closing state is greater than the first preset duration, the connection closing timeout information is generated and sent to the socket monitoring module. When the socket monitoring module detects that the transmission connection is not closed, the connection closing timeout information is sent to the socket thread control module, and the socket thread control module closes the transmission connection with the electronic control unit 206. The server 204 may be an OTA cloud platform.

[0064] In an exemplary embodiment, as shown in FIG3 , a transmission connection control method is provided, which is described by taking the method applied to the wireless upgrade main control module of the vehicle in FIG2 as an example, and includes the following steps 302 to 308 . Among them:

[0065] Step 302, when the wireless upgrade file of the electronic control unit of the vehicle is obtained, a transmission connection with the electronic control unit is established, and a socket monitoring module, a socket closing timing module and a socket thread control module are created in the wireless upgrade main control module.

[0066] Among them, the vehicle's wireless upgrade master module, namely the vehicle OTA master control module (UMC), is the central node of the OTA system, which is used to manage the entire OTA upgrade process, and is responsible for communicating with the remote server, namely the OTA cloud platform, obtaining wireless upgrade files, and transmitting the wireless upgrade files to the corresponding electronic control unit in the vehicle through the network. The wireless upgrade file of the vehicle's electronic control unit refers to the file used to upgrade the electronic control unit.

[0067] Optionally, the wireless upgrade main control module downloads the wireless upgrade file of the vehicle's electronic control unit from the server, thereby obtaining the wireless upgrade file of the vehicle's electronic control unit. After obtaining the wireless upgrade file of the vehicle's electronic control unit, a transmission connection with the electronic control unit is established. Among them, the transmission connection refers to a TCP connection. While establishing a transmission connection with the electronic control unit, a socket monitoring module, a socket closing timing module, and a socket thread control module are also created in the wireless upgrade main control module.

[0068] Furthermore, establishing a transmission connection with the electronic control unit includes: establishing a transmission connection with the electronic control unit through a main control socket thread module in the wireless upgrade main control module.

[0069] Specifically, when the wireless upgrade main control module obtains the wireless upgrade file of the vehicle's electronic control unit, it will also create a main control socket thread module in the wireless upgrade main control module, and establish a transmission connection between the main control socket thread module and the electronic control unit.

[0070] Step 304, during the process of upgrading the electronic control unit according to the wireless upgrade file, the socket monitoring module monitors the closing operation of the wireless upgrade main control module on the transmission connection. When the closing operation of the transmission connection is detected, a closing state is generated and sent to the socket closing timing module.

[0071] After establishing a transmission connection with the electronic control unit, the wireless upgrade main control module transmits the wireless upgrade file to the electronic control unit to upgrade and flash the electronic control unit. During the process of upgrading and flashing the electronic control unit, the transmission connection status of the wireless upgrade main control module is monitored in real time through the socket monitoring module in the wireless upgrade main control module. Among them, the transmission connection status may include the closing operation of the transmission connection and the closing state of the transmission connection. The disconnection state of the transmission connection includes normal closing and not closing. Among them, the closing operation of the transmission connection may be an operation of calling a connection closing function to close the connection. For example, the connection closing function may be shutdown() or close().

[0072] When the socket monitoring module detects the wireless upgrade main control module closing the transmission connection, it generates a closing state and sends the closing state to the socket closing timing module for timing. The closing state refers to the state where the wireless upgrade main control module is ready to close the connection.

[0073] Step 306: The socket closing timing module is used to time the closing state. When the duration of the closing state is greater than a first preset duration, connection closing timeout information is generated and sent to the socket monitoring module.

[0074] The closed state of the wireless upgrade main control module is timed by the socket closing timing module in the wireless upgrade main control module. A first preset duration is pre-set in the socket closing timing module, and the first preset duration refers to the maximum duration that the wireless upgrade main control module is in the closed state. For example, the first preset duration can be set to 15s. When the duration of the closed state is greater than the first preset duration, a connection closing timeout information is generated, and the connection closing timeout information is sent to the socket monitoring module.

[0075] Step 308: When the socket monitoring module detects that the transmission connection is not closed, the connection closing timeout information is sent to the socket thread control module, and the transmission connection with the electronic control unit is closed through the socket thread control module.

[0076] The socket monitoring module is also used to monitor the closing state of the transmission connection of the wireless upgrade main control module. When the socket monitoring module detects that the transmission connection is not closed, the connection closing timeout information is sent to the socket thread control module. The socket thread control module closes the transmission connection between the wireless upgrade main control module and the electronic control unit according to the connection closing timeout information.

[0077] Furthermore, since a transmission connection is established between the wireless upgrade main control module and the electronic control unit, and the transmission connection is implemented through a socket, that is, the communication between the wireless upgrade main control module and the electronic control unit is implemented through a socket, the transmission connection can also be called a socket connection. The socket thread control module closes the socket connection between the wireless upgrade main control module and the electronic control unit according to the connection closing timeout information.

[0078] Furthermore, the above method also includes: when the transmission connection with the electronic control unit is closed through the socket thread control module, the socket task in the electronic control unit upgrade process is released.

[0079] When the wireless upgrade main control module upgrades the electronic control unit, a socket task will be created, and the electronic control unit will be upgraded according to the socket task. Therefore, when the socket thread control module closes the transmission connection between the wireless upgrade main control module and the electronic control unit, it will also release the socket task and recycle the socket task resources to ensure timely release of resources.

[0080] In the above transmission connection control method, when the wireless upgrade main control module of the vehicle establishes a transmission connection with the electronic control unit, it simultaneously creates a socket monitoring module, a socket closing timing module and a socket thread control module in the wireless upgrade main control module, monitors the closing operation of the wireless upgrade main control module on the transmission connection through the socket monitoring module, generates a closing state and sends it to the socket closing timing module. The closing state is timed by the socket closing timing module, and when the closing state of the transmission connection times out, the socket thread control module is informed to close the transmission connection with the electronic control unit, which can avoid invalid connections occupying system and memory resources, causing resource waste or downtime due to heavy load, greatly saving system and memory resources, ensuring the reliability of data transmission, and improving the performance of upgrading and flashing the electronic control unit.

[0081] In an exemplary embodiment, as shown in FIG4 , it is a schematic diagram of the connection between the wireless upgrade main control module and the electronic control of the vehicle. In order to achieve the purpose of wireless upgrade file download and electronic control unit upgrade, the processing technology of wireless upgrade file download and electronic control unit upgrade mentioned in this embodiment mainly involves the vehicle's wireless upgrade main control module, namely the OTA upgrade main control (UMC), the wireless upgrade agent module, namely the OTA upgrade agent (User Agent, UA) and the wireless upgrade slave control module, namely the OTA upgrade slave control (Upgrade Slave, US). This technology is implemented in the carried CDC (Cockpit Domain Controller, cockpit domain controller), VGW (Vehicle Gateway, vehicle gateway) and the ECU component to be upgraded and flashed, that is, the CDC carries the OTA upgrade main control, the VGW carries the OTA upgrade agent, and the ECU component carries the OTA upgrade slave control. As an intermediary, UA coordinates the communication between UMC and each ECU component, receives the OTA upgrade file from UMC, and distributes the OTA upgrade file to the correct US or directly to the ECU component. US is the terminal node that receives OTA upgrades. It communicates directly with the ECU and applies the wireless upgrade files sent by UMC to the ECU.

[0082] CDC communicates with the OTA cloud platform through a 4G or 5G communication network, and CDC is used to download OTA upgrade files on the OTA platform. CDC and VGW can be connected via 100M Ethernet (ETH). VGW and its ECU components can be connected via ETH or CAN bus. Each VGW can connect to multiple ECUs, such as ECU1-1 to ECU1-n, ECU2-1 to ECU2-n, and ECUm-1 to ECUm-n. Among them, VGW and ECU1-1 to ECU1-n, and ECUm-1 to ECUm-n are connected via 1000M ETH, and VGW and ECU2-1 to ECU2-n are connected via CAN bus. When transmitting OTA upgrade files, a port in CDC is used as the client, and the ECU port is used as the server to establish a connection, and the file is transmitted based on the established network link channel.

[0083] In an exemplary embodiment, establishing a transmission connection with an electronic control unit includes: for an electronic control unit that supports Ethernet, establishing a transmission connection with the electronic control unit through link layer transparent transmission via a wireless upgrade agent module; for an electronic control unit that does not support Ethernet, establishing a transmission connection with the wireless upgrade agent module, converting the wireless upgrade file into a unified diagnostic service format via the wireless upgrade agent module, and forwarding the wireless upgrade file in the unified diagnostic service format to the electronic control unit to establish a transmission connection with the electronic control unit.

[0084] Optionally, when the wireless upgrade main control module upgrades and flashes the electronic control unit, for electronic control units that support Ethernet, the wireless upgrade main control module and the electronic control unit perform link layer transparent transmission through the wireless upgrade proxy module to establish a transmission connection with the electronic control unit, and use the DoIP protocol for data communication transmission and upgrade flashing. For electronic control units that do not support Ethernet, the wireless upgrade main control module first establishes a transmission connection with the wireless upgrade proxy module, the wireless upgrade proxy module parses the wireless upgrade file, converts the wireless upgrade file into a unified diagnostic service format, and forwards the wireless upgrade file in the unified diagnostic service format to the electronic control unit for data communication and upgrade flashing.

[0085] As shown in Figure 5, it is a schematic diagram of the wireless upgrade main control module of the vehicle upgrading the ECU. When it is necessary to upgrade and flash multiple ECUs, such as ECU1, ECU1 to ECUn, multiple ports of CDC, such as CLIENT1, CLIENT2 to CLIENTn in the figure, can be used as clients, each client can be a socket client (SOCKET CLIENT), and the OTA slave control (USC) in multiple ECUs can be used as a server, or VGW can be used as a server, which can be a socket server (SOCKET SERVER). Each client transmits the wireless upgrade file to VGW through Ethernet (ETH). For ECU1 that supports ETH, link layer transparent transmission is performed through VGW to realize the transmission connection between CDC and ECU2. For ECU2 to ECUn that do not support ETH, that is, ECUs that support CAN bus connection, CDC first establishes a transmission connection with VGW, converts the wireless upgrade file in ETH message format into UDS (Unified diagnostic services) message format, and forwards it to ECU2 to ECUn respectively.

[0086] In an optional manner of the above embodiment, converting the wireless upgrade file into a unified diagnostic service format through the wireless upgrade agent module includes: determining a target address of the electronic control unit from the wireless upgrade file through the wireless upgrade agent module; and converting the wireless upgrade file into a unified diagnostic service format according to the target address.

[0087] Optionally, when the wireless upgrade agent module converts the message format of the wireless upgrade file, it can first parse out the target address (TA) of the electronic control unit in the wireless upgrade message, and obtain a message in a unified diagnostic service format according to the target address conversion. As shown in Figure 6, it is a schematic diagram of the process of converting the wireless upgrade file to the unified diagnostic service format. The data of the Ethernet message includes an Ethernet frame, and the Ethernet frame includes an Ethernet header EthHead, an IP header IPHead, a TCP / UDP header TCP / UDP Head, a DOIP header DOIP Head, an ECU source address (SourceAddress, SA), an ECU target address (TA) and DOIP data. Among them, the TCP / UDP Head is determined based on the selected protocol number. When the TCP protocol is selected, the TCP / UDP Head is TCP Head, and when the UDP protocol is selected, the TCP / UDP Head is UDPHead. DOIP data may include UDS data. The UDS message is a UDS message on the CAN network.

[0088] In this embodiment, by selecting corresponding data communication modes for electronic control units with different communication connection modes, it is possible to implement upgrade and flashing of different types of electronic control units, thereby improving the applicability of electronic control unit upgrades.

[0089] In an exemplary embodiment, as shown in FIG. 7 , the method further includes a link disconnection timeout closing step, including steps 702 to 706, wherein:

[0090] Step 702: When establishing a transmission connection with the electronic control unit, create a link disconnection timeout module in the wireless upgrade main control module; the wireless upgrade main control module includes a link layer.

[0091] Step 704: monitor the link channel change of the link layer during the transmission connection process through the link disconnection timeout module, and when it is detected that the link channel is disconnected, send a link connection signal to the electronic control unit through the link layer.

[0092] Step 706: When the link disconnection timeout module detects that the duration of the link channel disconnection exceeds the second preset duration, a link channel disconnection timeout information is generated and sent to the socket thread control module, and the transmission connection with the electronic control unit is closed through the socket thread control module.

[0093] When the link channel of the link layer in the wireless upgrade main control module is disconnected (linkdown), the application layer cannot perceive the link channel disconnection within a certain period of time. At this time, the client and the server will not be able to exchange data normally, and the server's response cannot be replied to the client for processing. It can only wait for the socket timeout processing time, which is about 5 minutes, and this time is unbearable. Therefore, when the vehicle's wireless upgrade main control module establishes a transmission connection with the electronic control unit, it will create a link disconnection timeout module and a link status module in the wireless upgrade main control module. The link disconnection timeout module is used to automatically close the transmission connection when the link disconnection times out. The link status module is used to obtain the link channel change status of the link layer.

[0094] The link status module is used to obtain the link channel change status of the link layer during the transmission connection process in real time, and the link disconnection timeout module monitors the link channel changes in the link status module in real time. When the link channel is detected to be disconnected, a link connection signal is sent to the electronic control unit through the link layer to connect. If it is still disconnected within the second preset time, the link disconnection timeout module generates link channel disconnection timeout information and sends the link channel disconnection timeout information to the socket thread control module. For example, the second preset time can be set to 15s. The socket thread control module closes the transmission connection with the electronic control unit according to the link channel disconnection timeout information, that is, closes the socket connection during the upgrade of the electronic control unit. The socket thread control module will also release the socket tasks during the upgrade of the electronic control unit at the same time and recycle the socket task resources.

[0095] In this embodiment, by creating a link disconnection timeout module, the link channel disconnection status can be sensed in time, and the transmission connection with the electronic control unit can be closed in time to ensure that resources are released in time when the link is broken, avoiding resource waste or downtime due to heavy load.

[0096] In an exemplary embodiment, as shown in FIG8 , it is a schematic diagram of the structure of CDC and VGW. Both CDC and VGW include an application layer, a network layer, a link layer and a physical layer (PHY). The application layer of CDC includes an OTA master control service, a DOIP protocol stack, a SOCKET monitoring module, a SOCKET closing timing module, a SOCKET thread processing module and a SOCKET CLIENT thread module. The SOCKET monitoring module, the SOCKET closing timing module, the SOCKET thread processing module and the SOCKET CLIENT thread module represent the socket monitoring module, the socket closing timing module, the socket thread control module and the master socket thread module respectively. The link layer also includes a link disconnection timeout module and a link status module. The application layer of VGW includes an OTA UA / US service, a DOIP protocol stack, a SOCKET monitoring module, a SOCKET closing timing module, a SOCKET thread processing module and a SOCKET SERVER thread module. The SOCKET monitoring module, SOCKET closing timing module, SOCKET thread processing module and SOCKET SERVER thread module represent the socket monitoring module, the socket closing timing module, the socket thread control module and the slave control socket thread module respectively. The CDC is connected to the SOCKET SERVER thread module in the VGW through the SOCKET CLIENT thread module to establish a transmission connection between the CDC and the VGW.

[0097] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0098] In an exemplary embodiment, as shown in FIG. 9 , a transmission connection control method is provided, which is described by taking the method applied to the electronic control unit of the vehicle in FIG. 2 as an example, and includes:

[0099] Step 902, when receiving a transmission connection request from the wireless upgrade main control module of the vehicle, establish a transmission connection with the wireless upgrade main control module, and create a socket monitoring module, a socket closing timing module and a socket thread control module in the electronic control unit.

[0100] Step 904, during the process of the wireless upgrade main control module upgrading the electronic control unit, the socket monitoring module monitors the electronic control unit's closing operation of the transmission connection. When the transmission connection closing operation is detected, a closing state is generated and sent to the socket closing timing module.

[0101] Step 906: The closed state is timed by the socket closing timing module. When the duration of the closed state is greater than the first preset duration, connection closing timeout information is generated and sent to the socket monitoring module.

[0102] Step 908: When the socket monitoring module detects that the transmission connection is not closed, the connection closing timeout information is sent to the socket thread control module, and the transmission connection with the wireless upgrade main control module is closed through the socket thread control module.

[0103] When the vehicle's electronic control unit receives a transmission connection request from the vehicle's wireless upgrade main control module, it establishes a transmission connection with the wireless upgrade main control module, and creates a socket monitoring module, a socket closing timing module, and a socket thread control module in the electronic control unit. When the electronic control unit closes the transmission connection with the wireless upgrade main control module, the closing process is the same as the closing process of the wireless upgrade main control module, which will not be repeated here. It should be noted that the slave control socket thread module in the electronic control unit has the same function as the master control socket thread module in the wireless upgrade main control module.

[0104] In the above transmission connection control method, when the wireless upgrade main control module and the electronic control unit of the vehicle establish a transmission connection, a socket monitoring module, a socket closing timing module and a socket thread control module are created in the wireless upgrade main control module and the electronic control unit respectively. The socket monitoring module monitors the closing operation of the transmission connection, generates a closing status and sends it to the socket closing timing module. The closing status is timed by the socket closing timing module. When the closing status of the transmission connection times out, the socket thread control module is informed to close the transmission connection, which can avoid invalid connections occupying system and memory resources, causing resource waste or downtime due to heavy load, greatly saving system and memory resources, ensuring the reliability of data transmission, and improving the performance of upgrading and flashing the electronic control unit.

[0105] In an exemplary embodiment, the method further includes:

[0106] When receiving a transmission connection request from the wireless upgrade main control module of the vehicle, a link disconnection timeout module is created in the electronic control unit module; the electronic control unit module includes a link layer;

[0107] The link disconnection timeout module monitors the link channel change of the link layer during the transmission connection process, and when the link channel is detected to be disconnected, a link connection signal is sent to the electronic control unit through the link layer;

[0108] When the link disconnection timeout module detects that the link channel is disconnected for a period exceeding a second preset period, a link channel disconnection timeout information is generated and sent to the socket thread control module, and the transmission connection with the wireless upgrade main control module is closed through the socket thread control module.

[0109] In an exemplary embodiment, the method further includes: when the transmission connection with the wireless upgrade main control module is closed through the socket thread control module, releasing the socket task in the electronic control unit upgrade process.

[0110] In an exemplary embodiment, establishing a transmission connection with a wireless upgrade main control module includes: for an electronic control unit that supports Ethernet, establishing a transmission connection with the wireless upgrade main control module through link layer transparent transmission via a wireless upgrade agent module; for an electronic control unit that does not support Ethernet, receiving a wireless upgrade file in a unified diagnostic service format sent by the wireless upgrade agent module to establish a transmission connection with the wireless upgrade main control module.

[0111] In an exemplary embodiment, the wireless upgrade file in the unified diagnostic service format determines the target address of the electronic control unit from the wireless upgrade file through the wireless upgrade agent module; and converts the wireless upgrade file according to the target address.

[0112] In an exemplary embodiment, establishing a transmission connection with the wireless upgrade main control module includes: establishing a transmission connection with the electronic control unit through a slave control socket thread module in the electronic control unit module.

[0113] Based on the same inventive concept, the embodiment of the present application also provides a transmission connection control device for implementing the transmission connection control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more transmission connection control device embodiments provided below can refer to the limitations of the transmission connection control method above, and will not be repeated here.

[0114] In an exemplary embodiment, as shown in FIG10 , a transmission connection control device is provided, including: a creation module 1002 , a monitoring module 1004 , a timing module 1006 and a closing module 1008 , wherein:

[0115] The creation module 1002 is used to establish a transmission connection with the electronic control unit when the wireless upgrade file of the electronic control unit of the vehicle is obtained, and to create a socket monitoring module, a socket closing timing module and a socket thread control module in the wireless upgrade main control module.

[0116] The monitoring module 1004 is used to monitor the closing operation of the wireless upgrade main control module on the transmission connection through the socket monitoring module during the process of upgrading the electronic control unit according to the wireless upgrade file. When the closing operation of the transmission connection is monitored, a closing state is generated and sent to the socket closing timing module.

[0117] The timing module 1006 is used to time the closing state through the socket closing timing module. When the duration of the closing state is greater than the first preset duration, a connection closing timeout information is generated and sent to the socket monitoring module.

[0118] The closing module 1008 is used to send connection closing timeout information to the socket thread control module when the socket monitoring module detects that the transmission connection is not closed, and close the transmission connection with the electronic control unit through the socket thread control module.

[0119] In an exemplary embodiment, the above device further includes:

[0120] A link break timeout processing module is used to create a link break timeout module in the wireless upgrade main control module when establishing a transmission connection with an electronic control unit; the wireless upgrade main control module includes a link layer; the link break timeout module monitors the link channel changes of the link layer during the transmission connection process, and when it is detected that the link channel is disconnected, a link connection signal is sent to the electronic control unit through the link layer; when the link break timeout module detects that the link channel is disconnected for a period exceeding a second preset period, a link channel disconnection timeout information is generated and sent to the socket thread control module, and the transmission connection with the electronic control unit is closed through the socket thread control module.

[0121] In an exemplary embodiment, the above device further includes:

[0122] The task release module is used to release the socket task in the process of upgrading the electronic control unit when the transmission connection with the electronic control unit is closed through the socket thread control module.

[0123] In an exemplary embodiment, the creation module 1002 is also used to establish a transmission connection with the electronic control unit that supports Ethernet through the wireless upgrade agent module for link layer transparent transmission; for the electronic control unit that does not support Ethernet, establish a transmission connection with the wireless upgrade agent module, convert the wireless upgrade file into a unified diagnostic service format through the wireless upgrade agent module, and forward the wireless upgrade file in the unified diagnostic service format to the electronic control unit to establish a transmission connection with the electronic control unit.

[0124] In an exemplary embodiment, the creation module 1002 is further configured to determine the target address of the electronic control unit from the wireless upgrade file through the wireless upgrade agent module; and convert the wireless upgrade file into a unified diagnostic service format according to the target address.

[0125] In an exemplary embodiment, the creation module 1002 is further configured to establish a transmission connection with the electronic control unit through a master control socket thread module in the wireless upgrade master control module.

[0126] In another exemplary embodiment, a transmission connection control device is provided, comprising: a creation module, a monitoring module, a timing module and a closing module, wherein:

[0127] A creation module is used to establish a transmission connection with the wireless upgrade main control module when receiving a transmission connection request from the vehicle's wireless upgrade main control module, and to create a socket monitoring module, a socket closing timing module, and a socket thread control module in the vehicle's electronic control unit.

[0128] The monitoring module is used to monitor the closing operation of the electronic control unit on the transmission connection through the socket monitoring module during the process of the wireless upgrade main control module upgrading the electronic control unit. When the closing operation of the transmission connection is monitored, a closing state is generated and sent to the socket closing timing module.

[0129] The timing module is used to time the closing state through the socket closing timing module, and when the duration of the closing state is greater than the first preset duration, a connection closing timeout information is generated and sent to the socket monitoring module.

[0130] The closing module is used to send connection closing timeout information to the socket thread control module when the socket monitoring module detects that the transmission connection is not closed, and close the transmission connection with the wireless upgrade main control module through the socket thread control module.

[0131] In an exemplary embodiment, the above device further includes:

[0132] A link break timeout processing module is used to create a link break timeout module in the electronic control unit module when receiving a transmission connection request from the vehicle's wireless upgrade main control module; the electronic control unit module includes a link layer; the link break timeout module monitors the link channel changes of the link layer during the transmission connection process, and when it is detected that the link channel is disconnected, a link connection signal is sent to the electronic control unit through the link layer; when the link break timeout module detects that the link channel is disconnected for a period exceeding a second preset period, a link channel disconnection timeout information is generated and sent to the socket thread control module, and the transmission connection with the wireless upgrade main control module is closed through the socket thread control module.

[0133] In an exemplary embodiment, the creation module is further used to release the socket task in the electronic control unit upgrade process when the transmission connection with the wireless upgrade main control module is closed through the socket thread control module.

[0134] In an exemplary embodiment, the creation module is also used to establish a transmission connection with the wireless upgrade main control module through link layer transparent transmission of the wireless upgrade agent module for electronic control units that support Ethernet; for electronic control units that do not support Ethernet, receive the wireless upgrade file in a unified diagnostic service format sent by the wireless upgrade agent module to establish a transmission connection with the wireless upgrade main control module.

[0135] In an exemplary embodiment, the wireless upgrade file in the unified diagnostic service format determines the target address of the electronic control unit from the wireless upgrade file through the wireless upgrade agent module; and converts the wireless upgrade file according to the target address.

[0136] In an exemplary embodiment, the creation module is further used to establish a transmission connection with the electronic control unit through the slave socket thread module in the electronic control unit module.

[0137] Each module in the above transmission connection control device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0138] In an exemplary embodiment, a computer device is provided, and its internal structure diagram can be shown in Figure 11. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store wireless upgrade files, shutdown status, connection shutdown timeout information, etc. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a transmission connection control method is implemented.

[0139] Those skilled in the art will understand that the structure shown in FIG. 11 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0140] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0141] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0142] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0143] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0144] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0145] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0146] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A transmission connection control method, characterized in that: A wireless upgrade main control module applied to a vehicle, the method comprising: When the wireless upgrade file of the electronic control unit of the vehicle is obtained, a transmission connection with the electronic control unit is established, and a socket monitoring module, a socket closing timing module and a socket thread control module are created in the wireless upgrade main control module; In the process of upgrading the electronic control unit according to the wireless upgrade file, the socket monitoring module monitors the closing operation of the transmission connection by the wireless upgrade main control module, and when the closing operation of the transmission connection is detected, a closing state is generated and sent to the socket closing timing module; The closed state is timed by the socket closing timing module, and when the duration of the closed state is greater than a first preset duration, connection closing timeout information is generated and sent to the socket monitoring module; When the socket monitoring module detects that the transmission connection is not closed, the connection closing timeout information is sent to the socket thread control module, and the transmission connection with the electronic control unit is closed through the socket thread control module.

2. The method according to claim 1, characterized in that The method further comprises: When establishing a transmission connection with the electronic control unit, creating a link disconnection timeout module in the wireless upgrade main control module; the wireless upgrade main control module includes a link layer; Monitoring the link channel change of the link layer during the transmission connection process through the link disconnection timeout module, and sending a link connection signal to the electronic control unit through the link layer when it is detected that the link channel is disconnected; When the link disconnection timeout module detects that the duration of the link channel disconnection exceeds a second preset duration, a link channel disconnection timeout information is generated and sent to the socket thread control module, and the transmission connection with the electronic control unit is closed through the socket thread control module.

3. The method according to claim 1, characterized in that The method further comprises: When the transmission connection with the electronic control unit is closed through the socket thread control module, the socket task in the electronic control unit upgrade process is released.

4. The method according to claim 1, characterized in that: The establishing of a transmission connection with the electronic control unit comprises: For an electronic control unit that supports Ethernet, a transmission connection is established with the electronic control unit through link layer transparent transmission via a wireless upgrade agent module; For an electronic control unit that does not support Ethernet, a transmission connection is established with a wireless upgrade agent module, the wireless upgrade file is converted into a unified diagnostic service format through the wireless upgrade agent module, and the wireless upgrade file in the unified diagnostic service format is forwarded to the electronic control unit to establish a transmission connection with the electronic control unit.

5. The method according to claim 4, characterized in that The converting the wireless upgrade file into a unified diagnostic service format by the wireless upgrade agent module includes: Determine the target address of the electronic control unit from the wireless upgrade file by a wireless upgrade agent module; The wireless upgrade file is converted into a unified diagnostic service format according to the target address.

6. The method according to claim 1, characterized in that The establishing of a transmission connection with the electronic control unit comprises: A transmission connection with the electronic control unit is established through a main control socket thread module in the wireless upgrade main control module.

7. A transmission connection control method, characterized in that: Applied to an electronic control unit of a vehicle, the method comprises: When receiving a transmission connection request from the wireless upgrade main control module of the vehicle, establishing a transmission connection with the wireless upgrade main control module, and creating a socket monitoring module, a socket closing timing module and a socket thread control module in the electronic control unit; During the process of the wireless upgrade main control module upgrading the electronic control unit, the socket monitoring module monitors the closing operation of the electronic control unit on the transmission connection, and when the closing operation of the transmission connection is detected, a closing state is generated and sent to the socket closing timing module; The closed state is timed by the socket closing timing module, and when the duration of the closed state is greater than a first preset duration, connection closing timeout information is generated and sent to the socket monitoring module; When the socket monitoring module detects that the transmission connection is not closed, the connection closing timeout information is sent to the socket thread control module, and the transmission connection with the wireless upgrade main control module is closed through the socket thread control module.

8. A transmission connection control device, characterized in that: The device comprises: A creation module, used for establishing a transmission connection with the electronic control unit of the vehicle when a wireless upgrade file of the electronic control unit is obtained, and creating a socket monitoring module, a socket closing timing module and a socket thread control module in the wireless upgrade main control module; A monitoring module, used for monitoring the closing operation of the transmission connection by the wireless upgrade main control module through the socket monitoring module during the process of upgrading the electronic control unit according to the wireless upgrade file, and generating a closing state when the closing operation of the transmission connection is monitored, and sending it to the socket closing timing module; A timing module, used for timing the closed state through the socket closing timing module, and when the duration of the closed state is greater than a first preset duration, generating connection closing timeout information and sending it to the socket monitoring module; The closing module is used to send the connection closing timeout information to the socket thread control module when the socket monitoring module detects that the transmission connection is not closed, and close the transmission connection with the electronic control unit through the socket thread control module.

9. A transmission connection control device, characterized in that: The device comprises: A creation module, configured to establish a transmission connection with the wireless upgrade main control module when receiving a transmission connection request from the vehicle's wireless upgrade main control module, and to create a socket monitoring module, a socket closing timing module, and a socket thread control module in the vehicle's electronic control unit; A monitoring module, used for monitoring the closing operation of the transmission connection by the electronic control unit through the socket monitoring module during the process of the wireless upgrade main control module upgrading the electronic control unit, and generating a closing state when the closing operation of the transmission connection is monitored, and sending it to the socket closing timing module; A timing module, used for timing the closed state through the socket closing timing module, and when the duration of the closed state is greater than a first preset duration, generating connection closing timeout information and sending it to the socket monitoring module; The closing module is used to send the connection closing timeout information to the socket thread control module when the socket monitoring module detects that the transmission connection is not closed, and close the transmission connection with the wireless upgrade main control module through the socket thread control module.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.