CN110764795B - Vehicle online upgrading device, system and method - Google Patents

Vehicle online upgrading device, system and method Download PDF

Info

Publication number
CN110764795B
CN110764795B CN201810837187.9A CN201810837187A CN110764795B CN 110764795 B CN110764795 B CN 110764795B CN 201810837187 A CN201810837187 A CN 201810837187A CN 110764795 B CN110764795 B CN 110764795B
Authority
CN
China
Prior art keywords
vehicle
gateway
connection request
upgrading
communication module
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.)
Active
Application number
CN201810837187.9A
Other languages
Chinese (zh)
Other versions
CN110764795A (en
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.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group 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 Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN201810837187.9A priority Critical patent/CN110764795B/en
Publication of CN110764795A publication Critical patent/CN110764795A/en
Application granted granted Critical
Publication of CN110764795B publication Critical patent/CN110764795B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application relates to a vehicle-mounted upgrading communication module, a vehicle online upgrading device, a vehicle online upgrading system and a vehicle online upgrading method. The vehicle-mounted upgrading communication module comprises a communication module and a gateway; the communication module is used for receiving the software upgrading data packet and forwarding the software upgrading data packet to the gateway; the gateway is used for issuing the software upgrading data packet to the vehicle-mounted module to be upgraded, and the software upgrading data packet is prevented from being processed by the TBOX or the AVNT and then forwarded to the gateway for processing, so that the data processing efficiency of the vehicle-mounted module to be upgraded in the upgrading process is improved, the work load of the TBOX or the AVNT is reduced, and the performance of a vehicle is improved.

Description

Vehicle online upgrading device, system and method
Technical Field
The application relates to the technical field of vehicles, in particular to a vehicle online upgrading device, system and method.
Background
Vehicle on-line upgrade (OTA, Over-The-Technology, space download Technology) is a Technology of downloading a software upgrade data package from a remote server through a network and upgrading a system of a vehicle itself using The software upgrade data package.
However, in the implementation process, the inventor finds that at least the following problems exist in the conventional technology: in the conventional online upgrade technology, not only is the data processing efficiency slow, but also the work load of an MCU (micro control unit) in a TBOX (vehicle networking system) or an AVNT (vehicle on board) is large.
Disclosure of Invention
In view of the above, it is necessary to provide an online vehicle upgrade apparatus, system and method.
A vehicle online upgrading device comprises a service processing device, a vehicle-mounted module and a vehicle-mounted upgrading communication module; the vehicle-mounted upgrading communication module comprises a communication module and a gateway; the service processing device is connected with the communication module; the vehicle-mounted module is respectively connected with the gateway and the service processing device;
the communication module is used for forwarding the software upgrading data packet to the gateway under the condition of receiving the software upgrading data packet transmitted by the remote server; the gateway establishes OTA communication link with a remote server through a communication module currently;
the gateway is used for issuing the software upgrading data packet to the vehicle-mounted module to be upgraded; the software upgrading data packet is used for indicating the vehicle-mounted module to execute OTA upgrading;
the service processing device is used for providing transmission interfaces for data transmission between the communication module and the gateway and between the gateway and the vehicle-mounted module.
In one embodiment, the service processing device comprises a first micro control unit and a first Ethernet chip; the gateway comprises a second micro control unit and a second Ethernet chip;
the communication module is respectively connected with the first micro control unit and the first Ethernet chip; the first micro control unit is connected with the vehicle-mounted module;
the second Ethernet chip is respectively connected with the first Ethernet chip, the second micro control unit and the vehicle-mounted module.
In one embodiment, the service processing device is TBOX or AVNT.
A vehicle online upgrading system comprises a remote server and the vehicle online upgrading device;
the remote server is connected with the communication module.
In one of the embodiments, the first and second electrodes are,
the communication module receives a connection request sent by a remote server and judges whether the connection request is an upgrading connection request or not; if so, sending a mark upgrading connection request obtained by marking the connection request to the gateway;
and the gateway establishes a communication channel for receiving the software upgrading data packet with the remote server through the communication module according to the label upgrading connection request.
In one of the embodiments, the first and second electrodes are,
the communication module receives a connection request sent by a remote server and forwards the connection request to a gateway;
the gateway judges whether the connection request is an upgrading connection request, and if so, a communication channel which is established with a remote server through a communication module and used for receiving a software upgrading data packet is established according to the connection request.
A vehicle upgrading method is applied to a communication module in the vehicle online upgrading device; the method comprises the following steps:
the communication module sends the software upgrading data packet to a vehicle-mounted module to be upgraded through a gateway under the condition of receiving the software upgrading data packet transmitted by the remote server; the gateway establishes OTA communication link with a remote server through a communication module currently; the software upgrading data packet is used for indicating the vehicle-mounted module to execute OTA upgrading.
In one embodiment, before the step of receiving the software upgrade data package by the communication module, the method further includes:
the communication module receives a connection request sent by a remote server, judges whether the connection request is an upgrading connection request or not, and sends a marking upgrading connection request obtained by marking the connection request to a gateway if the connection request is the upgrading connection request;
the label upgrading connection request is used for indicating a communication channel which is established by the gateway and a remote server through the communication module and is used for receiving the software upgrading data packet.
In one embodiment, before the step of receiving the software upgrade data package by the communication module, the method further includes:
the communication module receives a connection request sent by a remote server and forwards the connection request to a gateway; the connection request is used for indicating the gateway to judge whether the connection request is an upgrading connection request, and when the judgment result is yes, a communication channel which is established with the remote server through the communication module and is used for receiving the software upgrading data packet is established.
A vehicle upgrading method is applied to a gateway in the vehicle online upgrading device; the method comprises the following steps:
the gateway receives a software upgrading data packet transmitted by the remote server and forwarded by the communication module, and issues the software upgrading data packet to the vehicle-mounted module to be upgraded; the software upgrading data packet is used for indicating the vehicle-mounted module to execute OTA upgrading;
wherein, the gateway has currently established an OTA communication link with a remote server via a communication module.
In one embodiment, before the step of the gateway receiving the software upgrade data packet transmitted by the remote server forwarded by the communication module, the method further comprises:
the gateway receives a mark upgrading connection request sent by a communication module; the upgrade connection request is marked by the communication module; the connection request is sent by a remote server;
and the gateway establishes a communication channel for receiving the software upgrading data packet with the remote server through the communication module according to the label upgrading connection request.
In one embodiment, before the step of the gateway receiving the software upgrade data packet transmitted by the remote server forwarded by the communication module, the method further comprises:
the gateway receives a connection request sent by a remote server through a communication module;
the gateway judges whether the connection request is an upgrading connection request, and if so, a communication channel which is established with a remote server through a communication module and used for receiving a software upgrading data packet is established according to the connection request.
In one embodiment, before the step of establishing the communication channel, the method further includes:
the gateway judges whether the current vehicle state meets the upgrading condition, if so, a communication channel is established; the current vehicle state includes a driving state, a battery state, and an on-board module state.
The vehicle upgrading device is applied to a communication module in the vehicle online upgrading device; the device includes:
the communication transmission module is used for transmitting the software upgrading data packet to the vehicle-mounted module to be upgraded through the gateway under the condition of receiving the software upgrading data packet transmitted by the remote server; wherein, the gateway has already established OTA communication link with the remote server at present; the software upgrading data packet is used for indicating the vehicle-mounted module to execute OTA upgrading.
The vehicle upgrading device is applied to a gateway in the vehicle online upgrading device; the device includes:
the gateway transmission module is used for receiving the software upgrading data packet transmitted by the remote server and forwarded by the communication module under the condition of confirming that the OTA communication link is established with the remote server through the communication module at present, and transmitting the software upgrading data packet to the vehicle-mounted module to be upgraded; the software upgrading data packet is used for indicating the vehicle-mounted module to execute OTA upgrading.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
One of the above technical solutions has the following advantages and beneficial effects:
the communication module directly forwards the received software upgrading data packet to the gateway, and then the gateway sends the software upgrading data packet to the vehicle-mounted module to be upgraded, so that the software upgrading data packet is prevented from being processed by the TBOX or the AVNT and then forwarded to the gateway for processing, the data processing efficiency in the upgrading process of the vehicle-mounted module to be upgraded is improved, the workload of the TBOX or the AVNT is reduced, and the performance of a vehicle is improved.
Drawings
FIG. 1 is a schematic structural diagram of a vehicle-mounted upgrade communication module according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a first structure of an online upgrade apparatus for a vehicle according to an embodiment of the present invention;
FIG. 3 is a second schematic diagram of an online upgrade apparatus for a vehicle according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an online upgrade system for a vehicle according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating the steps of a vehicle upgrade method implemented from the perspective of a communication module in accordance with one embodiment of the present invention;
FIG. 6 is a flowchart illustrating steps performed by a communications module to validate an upgrade connection request in accordance with an embodiment of the present invention;
FIG. 7 is a flowchart illustrating steps in a method for upgrading a vehicle implemented from a gateway perspective in accordance with an embodiment of the present invention;
FIG. 8 is a flowchart illustrating steps taken by a gateway to receive a tag upgrade connection request in accordance with an embodiment of the present invention;
FIG. 9 is a flowchart illustrating the steps taken by a gateway to acknowledge an upgrade connection request in accordance with one embodiment of the present invention;
FIG. 10 is a flowchart illustrating the steps of gateway determination and authentication in accordance with an embodiment of the present invention;
FIG. 11 is a flowchart illustrating the steps performed by the gateway to determine validity and integrity in accordance with one embodiment of the present invention;
FIG. 12 is a flowchart illustrating the steps of a split connection request in a vehicle upgrade method according to an embodiment of the present invention;
FIG. 13 is a flowchart illustrating the steps of copying connection requests in the vehicle upgrade method according to one embodiment of the present invention;
FIG. 14 is a schematic diagram of a vehicle upgrade apparatus implemented from the perspective of a communication module in accordance with one embodiment of the present invention;
fig. 15 is a schematic structural diagram of a vehicle upgrade apparatus implemented from a gateway perspective in one embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In order to solve the problems of slow data processing efficiency and large workload of an MCU (micro control unit) in a TBOX (vehicle networking system) or an AVNT (vehicle on board) in the conventional online upgrade technology, in one embodiment, as shown in fig. 1, a vehicle-mounted upgrade communication module is provided, which includes a communication module 110 and a gateway 120;
the communication module 110 is configured to receive the software upgrade data packet and forward the software upgrade data packet to the gateway 120;
the gateway 120 is configured to send the software upgrading data packet to the vehicle-mounted module 130 to be upgraded.
The communication module is used for realizing communication between the vehicle and the remote server, namely the vehicle obtains the software upgrading package from the remote server through the communication module.
The gateway is used for receiving the software upgrading data packet from the communication module and sending the software upgrading data packet to the vehicle-mounted module to be upgraded. The on-board module may be an ECU (Electronic Control Unit) or a GPS (Global Positioning System) module on the vehicle. In one example, in order to keep the software of the vehicle-mounted module on the vehicle in the latest version state, when the remote server monitors that the software of the vehicle-mounted module on the vehicle needs to be upgraded, the remote server actively sends a software upgrading data packet to the communication module to the gateway, the gateway issues the software upgrading data packet to the vehicle-mounted module to be upgraded, and the vehicle-mounted module to be upgraded executes the software upgrading data packet to complete the upgrading of the software of the vehicle-mounted module to be upgraded. In yet another example, the gateway on the vehicle actively queries the remote server through the communication module whether new versions of software exist, and if so, the remote server sends a software upgrade data packet to the gateway through the communication module. Further, the gateway can issue a software upgrading data packet to the corresponding vehicle-mounted module to be upgraded according to the physical address.
Based on the above, the process of upgrading the software of the vehicle-mounted module to be upgraded is as follows: the communication module obtains the software upgrading data packet from a remote server in communication connection with the communication module, forwards the software upgrading data packet to the gateway, then transmits the software upgrading data packet to the vehicle-mounted module to be upgraded by the gateway, and the vehicle-mounted module to be upgraded executes the software upgrading data packet to complete self software upgrading.
In each embodiment of the vehicle-mounted upgrading communication module, the communication module directly forwards the received software upgrading data packet to the gateway, and the gateway sends the software upgrading data packet to the vehicle-mounted module to be upgraded, so that the software upgrading data packet is prevented from being processed by the TBOX or the AVNT and then forwarded to the gateway for processing, the data processing efficiency in the upgrading process of the vehicle-mounted module to be upgraded is improved, the workload of the TBOX or the AVNT is reduced, and the performance of a vehicle is improved.
In one embodiment, as shown in fig. 2, an online vehicle upgrade apparatus is provided, which includes a service processing apparatus 140, an on-board module 150, and an on-board upgrade communication module according to an embodiment of the on-board upgrade communication module;
the service processing device 140 is connected with the communication module 110; the in-vehicle module 150 is connected to the gateway 120 and the service processing device 140.
The vehicle refers to a transportation tool used for riding instead of walk by people, and can be an automobile, an intelligent bicycle, a balance scooter and the like.
The service processing means may be configured to process service requests sent by the remote server, the service requests including an upgrade connection request, a remote emergency call service request, and the like. In one example, the service processing device is TBOX or AVNT. It should be noted that TBOX is a vehicle-mounted terminal device installed on an instrument desk of a vehicle to acquire, store and send information of all working conditions of the vehicle, and has a real-time live-action function, and can interact with a user and the outside by using a mobile network. AVNT refers to a vehicle-mounted infotainment device installed on a vehicle, which enables interaction between the vehicle and a user, and between the vehicle and the outside, and at least one of TBOX and AVNT is currently installed on the vehicle. Further, the service processing device is also connected to the on-board module, and in an example, the on-board module may be connected to the service processing device through a CAN (Controller Area Network) bus.
The communication module is used for realizing communication between the service processing device or the gateway on the vehicle and the remote server. In one example, the communication module may be provided independently of the service processing apparatus, and the communication module is connected to an MCU in the service processing apparatus. In another example, the communication module may also be built in the service processing device and connected with the MCU of the service processing device.
In a specific embodiment, as shown in fig. 3, the service processing device 140 includes a first micro control unit 142 and a first ethernet chip 144; the gateway 120 includes a second ethernet chip 122 and a second micro control unit 124;
the communication module 110 is connected to the first micro control unit 142 and the first ethernet chip 144 respectively; the first micro control unit 142 is connected with the vehicle-mounted module 150;
the second ethernet chip 124 is connected to the first ethernet chip 144, the second mcu 122 and the vehicle module 150, respectively.
The first micro control unit and the second micro control unit can be used for processing data, and the first Ethernet chip and the second Ethernet chip are used for providing Ethernet interfaces, namely the communication module is connected with the gateway through the Ethernet interfaces, and the gateway is connected with the vehicle-mounted module through the Ethernet interfaces. The communication module, the gateway and the vehicle-mounted module are connected by the Ethernet interface, so that the data transmission rate is improved, and the time for upgrading the vehicle-mounted module to be upgraded is shortened.
In one example, the communication module and the first micro control unit, and the vehicle-mounted module and the first micro control unit CAN be connected through a CAN bus. Further, the gateway also comprises a memory, and the memory is connected with the second micro control unit. In yet another embodiment, the communication module may be a 4G communication module.
In each embodiment of the vehicle online upgrading device, the remote server directly sends the software upgrading data packet to the gateway through the communication module, and the gateway sends the software upgrading data packet to the vehicle-mounted module to be upgraded, so that the software upgrading of the vehicle-mounted module to be upgraded is completed, and the software upgrading data packet is prevented from being sent to the gateway after being sent to the service processing device for processing, thereby accelerating the data processing efficiency and reducing the workload of a vehicle networking system or a vehicle machine.
In one embodiment, as shown in fig. 4, there is provided a vehicle online upgrade system, comprising a remote server 160, and an on-board online upgrade apparatus as described above;
the remote server 160 is connected to the communication module 110.
The remote server is used for providing services for the vehicle, and the services comprise software upgrading services, remote emergency call services and the like. In one example, the communication module is coupled to a remote server that provides a variety of services to the vehicle including software upgrade services, remote emergency call services, and the like. In yet another example, the communication module connects a plurality of remote servers, each of which may provide a service, for example, where one remote server provides a software upgrade service and another remote server provides a remote emergency call service.
In order to further explain the scheme of each embodiment of the vehicle online upgrade system, the implementation process of each embodiment of the invention is specifically described by taking the upgrade process of the vehicle online upgrade system as an example in practical application:
in a specific embodiment, the communication module receives a connection request sent by a remote server and judges whether the connection request is an upgrade connection request; if so, sending a mark upgrading connection request obtained by marking the connection request to the gateway;
and the gateway establishes a communication channel for receiving the software upgrading data packet with the remote server through the communication module according to the label upgrading connection request.
Further, the communication module receives a connection request sent by the remote server and judges whether the connection request is an upgrade connection request; if not, the connection request is forwarded to the service processing device.
The remote server is a calling party, the vehicle is a called party, in other words, when the remote server monitors that the vehicle needs to be served, the remote server actively sends a service request to the vehicle, and when the vehicle receives the service request, the vehicle responds to the service request and then establishes communication connection with the remote server.
And when the communication module judges that the received connection request is an upgrading connection request, the communication module marks the upgrading connection request to obtain a marked upgrading connection request and sends the marked upgrading connection request to the gateway. The gateway can recognize the connection request sent by the communication module for upgrading according to the mark. In one example, the token may employ a specific IP, a specific Socket, or other pre-designed token. The gateway establishes a communication channel of the remote server, the communication module and the gateway through handshake communication between the communication module and the remote server according to the label upgrading connection request, and the remote server directly sends a software upgrading data packet to the gateway based on the communication channel.
When the communication module judges that the received connection request is a non-upgrade connection request (including a remote control connection request or a remote emergency call service, etc.), the connection request is forwarded to the service processing device. Specifically, the service processing device establishes a control connection with the remote server through the communication module according to the remote control connection request. The service processing device establishes a session connection with a remote server through the communication module according to the remote emergency call service.
The communication module is used for distinguishing an upgrading connection request and a non-connection request sent by a remote server, the upgrading connection request is sent to the gateway, and the non-upgrading connection request is sent to the service processing device. Therefore, the connection request sent by the remote server is shunted, the upgraded connection request is directly sent to the gateway, the non-upgraded connection request is directly sent to the service processing device, the workload of the MCU in the service processing device is reduced, the secondary processing of data is avoided, the processing speed of the connection request sent by the remote server is increased, and the data transmission rate is also increased, so that the work efficiency of the vehicle online upgrading system is increased, and the time of a user is saved.
In another specific embodiment, the communication receives a connection request sent by a remote server and forwards the connection request to the gateway;
the gateway judges whether the connection request is an upgrading connection request, and if so, a communication channel which is established with a remote server through a communication module and used for receiving a software upgrading data packet is established according to the connection request.
Further, the communication receives a connection request sent by the remote server, and forwards the connection request to the service processing device;
the service processing device judges whether the connection request is an upgrading connection request or not, and if so, discards the connection request.
The communication module receives a connection request sent by a remote server and forwards the connection request to the service processing device and the gateway at the same time. In one example, the communication module may copy the connection request in one copy using a copy technique. Further, the backup data of the connection request may be sent to the service processing apparatus, and the original data of the connection request may be sent to the gateway.
The gateway judges whether the connection request is an upgrading connection request, if so, the gateway establishes a communication channel with the remote server through the communication module according to the upgrading connection request, and if not, the gateway discards the connection request.
And the service processing device judges whether the connection request is an upgrading connection request or not, if so, the service processing device discards the connection request, and if not, the service processing device establishes corresponding connection with the remote server according to the connection request.
The communication module directly forwards the connection request sent by the remote server to the gateway and the service processing device at the same time, and the gateway and the service processing device respectively judge whether the connection request is an upgrading connection request and execute corresponding actions according to the judgment result. Therefore, the repeated processing of the upgrading connection request and the software upgrading data packet to the gateway through the service processing device is avoided, the upgrading efficiency of the vehicle-mounted module to be upgraded is improved, and the serial mode of processing the data sent by the remote server by the vehicle in the traditional technology is changed.
Further, the gateway disconnects the communication channel when confirming that the vehicle-mounted module to be upgraded receives the software upgrading data packet.
In one example, the gateway determines that all the software upgrading data packets are sent to the vehicle-mounted module to be upgraded, that is, determines that the vehicle-mounted module to be upgraded receives the software upgrading data packets. In one example, the software upgrading data package includes a numerical value describing the size of the software upgrading data package, and when the size of data transmitted when the gateway transmits the software upgrading data package is equal to the numerical value, it is determined that the gateway transmits all the software upgrading data packages to the vehicle-mounted module to be upgraded. In another example, after the vehicle-mounted module to be upgraded completely receives the software upgrading data packet sent by the gateway, a reception completion notification is fed back to the gateway, and the gateway confirms that the vehicle-mounted module to be upgraded receives the software upgrading data packet according to the reception completion notification.
After the gateway confirms that the vehicle-mounted module receives the software upgrading data packet, the gateway informs the communication module to disconnect a communication channel of the remote server, the communication module and the gateway and restore the link to the default link of the remote server, the communication module and the service processing device. Thereby ensuring that the remote server can provide common services for the vehicle in real time.
In each embodiment of the vehicle online upgrading system, the upgrading connection request and the non-upgrading connection request are shunted through the communication module, or the connection request is simultaneously forwarded to the gateway and the service processing device through the communication module, so that the gateway and the service processing device can judge autonomously, the data processing efficiency related to upgrading, including the upgrading connection request, the software upgrading data packet and the like, is improved, and the workload of the service processing device is reduced.
The vehicle upgrading method provided by the application can be applied to application environments shown in fig. 1 to 4. The remote server may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in FIG. 5, a vehicle upgrade method is provided. Taking the application of the method to the communication module in fig. 1 as an example, the method includes the following steps:
step S510, the communication module receives the software upgrading data packet and issues the software upgrading data packet to the vehicle-mounted module to be upgraded through the gateway.
The software upgrading data packet is used for upgrading software of the vehicle-mounted module to be upgraded so as to ensure that the software of each vehicle-mounted module of the vehicle can be in the latest state.
After receiving the software upgrading data packet sent by the remote server, the communication module directly sends the software upgrading data packet to the gateway, and then the gateway sends the software upgrading data packet to the vehicle-mounted module to be upgraded.
In a specific embodiment, as shown in fig. 6, before the step of receiving the software upgrade data package by the communication module, the method further includes:
the communication module receives a connection request sent by a remote server, judges whether the connection request is an upgrading connection request or not, and sends a marked upgrading connection request obtained by marking the connection request to a gateway if the connection request is the upgrading connection request;
further, if not, the connection request is sent to the service processing device.
The communication module receives a connection request actively sent by the remote server, and when the communication module judges that the connection request is an upgrading connection request, the communication module marks the upgrading connection request to obtain a marked upgrading connection request and forwards the marked upgrading connection request to the gateway so as to instruct the gateway to establish a communication channel of the remote server, the communication module and the gateway.
And when the communication module judges that the connection request is a non-upgrading connection request, the communication module sends the connection request to the service processing device.
In another specific embodiment, before the step of receiving the software upgrade data package by the communication module, the method further includes:
the communication module receives a connection request sent by a remote server and forwards the connection request to a gateway; the connection request is used for indicating the gateway to judge whether the connection request is an upgrading connection request, and when the judgment result is yes, a communication channel which is established with the remote server through the communication module and is used for receiving the software upgrading data packet is established.
Further, the communication module forwards the connection request to the service processing device, and the service processing device judges whether the connection request is an upgrade connection request, and if so, discards the connection request.
The communication module sends the connection request sent by the remote server to the gateway and the service processing device at the same time, so that the gateway and the service processing device autonomously judge whether to perform corresponding action on the connection request, and secondary authentication and secondary encryption and decryption processing of data are avoided.
According to the vehicle upgrading method, the communication module directly issues the received software upgrading data packet to the vehicle-mounted module to be upgraded through the gateway, so that the online upgrading of the vehicle-mounted module to be upgraded is realized, the data transmission efficiency is improved, and the problem that the software upgrading data packet is transferred to the gateway after being processed by the service processing device in the prior art is avoided, so that the workload of the service processing device is reduced, and the data transmission and processing efficiency is improved.
In one embodiment, as shown in FIG. 7, a vehicle upgrade method is provided. Taking the gateway in fig. 4 as an example, the method includes the following steps:
step S710, the gateway receives the software upgrading data packet sent by the communication module and sends the software upgrading data packet to the vehicle-mounted module to be upgraded.
The gateway directly obtains the software upgrading data packet sent by the remote server through the communication module, and then the gateway sends the software upgrading data packet to the vehicle-mounted module to be upgraded, so that the gateway can obtain data more quickly.
In a specific embodiment, as shown in fig. 8, before the step of receiving, by the gateway, the software upgrade data packet sent by the communication module, the method further includes:
step S810, the gateway receives a mark upgrading connection request sent by the communication module; the upgrade connection request is marked by the communication module; the connection request is sent by a remote server;
and step S820, the gateway establishes a communication channel for receiving the software upgrading data packet with the remote server through the communication module according to the label upgrading connection request.
The gateway receives the tag upgrade connection request, and recognizes the tag upgrade connection request as an upgrade connection request according to a tag (a specific IP, a specific Socket, or another designed tag) attached to the tag upgrade connection request.
Further, after the step of receiving, by the gateway, the tag upgrade connection request sent by the communication module, the method further includes:
the gateway verifies the validity of the label upgrading connection request and establishes a communication channel when the verification is passed.
It should be noted that, the gateway performs validity verification on the upgrade connection request, and if the upgrade connection request is valid, a communication channel is established according to the upgrade connection request; if the connection request is illegal, the label upgrading connection request is discarded, and the initial state is returned. The initial state refers to the state that the communication channel of the remote server-communication module-gateway is disconnected, and the connection state of the remote server-communication module-service processing device is maintained. In one example, the token upgrade connection request is validated using an asymmetric algorithm. The asymmetric algorithm means that an encryption key and a decryption key of one encryption algorithm are different, and this embodiment does not exclude other validity verification algorithms. After receiving the mark upgrading connection request, the gateway carries out validity verification on the mark upgrading connection request, and only after the verification is passed, a communication channel is established, so that the safety of vehicle online upgrading is ensured, and illegal invasion such as viruses is avoided.
In a specific embodiment, as shown in fig. 9, before the step of receiving, by the gateway, the software upgrade data packet sent by the communication module, the method further includes:
the gateway receives a connection request sent by a remote server through a communication module;
the gateway judges whether the connection request is an upgrading connection request, and if so, a communication channel which is established with a remote server through a communication module and used for receiving a software upgrading data packet is established according to the connection request. Further, if not, the connection request is discarded.
Further, as shown in fig. 10, after the step of receiving, by the gateway, the connection request sent by the remote server through the communication module, the method further includes:
the gateway verifies the validity of the connection request and judges whether the connection request is an upgrading connection request or not when the verification is passed.
Wherein, in one example, the gateway uses RSA algorithm to validate the copied data. After receiving the copied data, the gateway verifies the legality of the copied data, and only after the copied data passes the verification, a communication channel is established, so that the safety of online upgrading of the vehicle is ensured, and illegal invasion such as viruses is avoided.
In a specific embodiment, as shown in fig. 10, before the step of establishing the communication channel, the method further includes:
the gateway judges whether the current vehicle state meets the upgrading condition, if so, a communication channel is established; the current vehicle state includes a driving state, a battery state, and an on-board module state.
Before establishing the communication channel according to the upgrade connection request, the gateway needs to judge whether the vehicle state meets the upgrade condition, and if so, the communication channel is established according to the upgrade connection request. In one example, the vehicle state includes a driving state, a battery state, and an on-board module state. Specifically, when the driving state is a static state, the storage battery state is sufficient, and the vehicle-mounted module state is the vehicle-mounted module idle state, the gateway judges that the current vehicle state meets the upgrading condition. Before the communication channel is established, whether the vehicle state meets the upgrading condition is checked, and the communication channel is established only after the vehicle state meets the upgrading condition, so that the environment of online upgrading of the vehicle is ensured, and errors in online upgrading are avoided.
In a specific embodiment, as shown in fig. 11, before the step of issuing the software upgrade data packet to the vehicle-mounted module to be upgraded, the method includes:
and the gateway checks the legality and integrity of the software upgrading data packet, and when the software upgrading data packet passes the checking, the gateway transmits the software upgrading data packet to the vehicle-mounted module to be upgraded.
The gateway receives the software upgrading data packet, the legality and integrity of the software upgrading data packet need to be verified, and the software upgrading data packet is issued to the vehicle-mounted module with upgrading only when the verification is passed. In one example, the gateway uses a CRC (Cyclic Redundancy Check) Check algorithm to Check the integrity of the software upgrade data packet. And the gateway adopts an asymmetric algorithm to check the legality of the software upgrading data packet. Of course other algorithms that can be used to verify the validity or integrity of data can be applied to the present invention. Before the gateway issues the software upgrading data packet to the vehicle-mounted module to be upgraded, the integrity and the legality of the software upgrading data packet need to be checked, so that the safety of the vehicle-mounted module to be upgraded in the upgrading process can be guaranteed.
Further, after the step of issuing the software upgrading data packet to the vehicle-mounted module to be upgraded, the processing process of the gateway further includes:
the communication channel is disconnected.
After the gateway sends all the software upgrading data packets to the vehicle-mounted module to be upgraded, the communication module needs to be controlled to disconnect the communication channel of the remote server, the communication module and the gateway. The gateway disconnects the communication channel after all the software upgrading data packets are sent to the vehicle-mounted module to be upgraded, so that other commonly used service channels of other remote servers can be kept connected at any time, and good experience of a vehicle is provided for a user.
In order to fully describe the scheme of each embodiment of the vehicle upgrading method of the present invention, as shown in fig. 12, the interactive system is taken as a TBOX example, and the interactive process among the remote server, the communication module and the gateway is described, and this description is not intended to limit the scheme of the present invention.
As shown in fig. 12, the vehicle upgrade method of the present invention includes the steps of:
step S1210, the remote server sends a connection request to the communication module;
step S1220, the communication module marks the connection request confirmed as the upgrade connection request, and sends the obtained mark upgrade connection request to the gateway;
step S1230, the gateway verifies the validity of the label upgrading connection request; if not, discarding the label upgrading connection request and returning to the initial state; if yes, go to step S1240;
step S1240, the gateway confirms whether the current vehicle state meets the upgrading condition, wherein the current vehicle state comprises a driving state, a storage battery state and a vehicle-mounted module state; if not, discarding the label upgrading connection request and returning to the initial state; if so, go to step S1250;
step S1250, the gateway establishes a communication channel for receiving the software upgrading data packet with the remote server through the communication module according to the mark upgrading connection request;
step S1260, the gateway receives the software upgrading data packet sent by the remote server through the communication module;
step S1270, the gateway checks the legality and integrity of the software upgrading data packet, if the software upgrading data packet does not pass the verification, the upgrading connection request is discarded and marked, and the initial state is returned; if yes, go to step S1280;
step S1280, the gateway sends the software upgrading data packet to the vehicle-mounted module to be upgraded;
step S1290, the gateway confirms whether the vehicle-mounted module to be upgraded receives the software upgrading data packet; if the software upgrading data packet is not confirmed to be received by the vehicle-mounted module, returning to the step S1250; if yes, entering step S1200;
step S1200 disconnects the communication channel.
It should be noted that, when the remote server sends a connection request to the communication module, the vehicle online upgrade system in the embodiment of the vehicle online upgrade system of the present invention is in an initial state, and in this state, the TBOX receives only the control command of the communication module. In one example, the communication module may send the control instructions over a CAN bus or an ethernet interface.
Further, as shown in fig. 13, the interactive system is taken as AVNT, and the interactive process among the remote server, the communication module and the gateway is taken as an example for description, and this description is not intended to limit the present invention. The method steps in fig. 13 are only to replace step S1320 and step S1330 in fig. 13 with step S1220 and step S1230 in fig. 12, and the remaining steps are the same and are not repeated here.
The vehicle upgrading method reduces the workload of the service processing device and improves the data processing efficiency in the upgrading process of the vehicle-mounted module.
It should be understood that although the various steps in the flowcharts of fig. 5-13 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 5-13 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 14, there is provided a vehicle upgrade apparatus, including:
and the communication transmission module is used for receiving the software upgrading data packet and transmitting the software upgrading data packet to the vehicle-mounted module to be upgraded through the gateway.
In one embodiment, as shown in fig. 15, there is provided a vehicle upgrade apparatus, including:
and the gateway transmission module is used for receiving the software upgrading data packet sent by the communication module and sending the software upgrading data packet to the vehicle-mounted module to be upgraded.
For specific limitations of the vehicle online upgrade device, reference may be made to the above limitations of the vehicle upgrade method, which will not be described herein again. The modules in the vehicle online upgrading device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
the software upgrading data packet is sent to the vehicle-mounted module to be upgraded through the gateway; the software upgrade data packet is sent by a remote server.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a software upgrading data packet sent by a remote server through a communication module;
and issuing the software upgrading data packet to a vehicle-mounted module to be upgraded.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used herein can include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (16)

1. A vehicle online upgrading device is characterized by comprising a service processing device, a vehicle-mounted module and a vehicle-mounted upgrading communication module; the vehicle-mounted upgrading communication module comprises a communication module and a gateway; the service processing device is connected with the communication module; the vehicle-mounted module is respectively connected with the gateway and the service processing device;
the communication module is used for forwarding the software upgrading data packet to the gateway under the condition of receiving the software upgrading data packet transmitted by the remote server; wherein the gateway has currently established an OTA communication link with the remote server via the communication module;
the gateway is used for issuing the software upgrading data packet to a vehicle-mounted module to be upgraded; the software upgrading data packet is used for indicating the vehicle-mounted module to execute OTA upgrading;
the service processing device is used for providing transmission interfaces for data transmission between the communication module and the gateway and between the gateway and the vehicle-mounted module.
2. The on-line vehicle upgrade apparatus according to claim 1, wherein the service processing apparatus includes a first micro control unit and a first ethernet chip; the gateway comprises a second micro control unit and a second Ethernet chip;
the communication module is respectively connected with the first micro control unit and the first Ethernet chip; the first micro control unit is connected with the vehicle-mounted module;
the second Ethernet chip is respectively connected with the first Ethernet chip, the second micro control unit and the vehicle-mounted module.
3. The vehicle online upgrade apparatus according to claim 2, wherein the service processing apparatus is TBOX or AVNT.
4. A vehicle online upgrade system, characterized by comprising a remote server, and a vehicle online upgrade apparatus according to any one of claims 1 to 3;
the remote server is connected with the communication module.
5. The vehicle online upgrade system according to claim 4,
the communication module receives a connection request sent by the remote server and judges whether the connection request is an upgrading connection request or not; if so, sending a mark upgrading connection request obtained by marking the connection request to the gateway;
and the gateway establishes a communication channel for receiving the software upgrading data packet with the remote server through the communication module according to the mark upgrading connection request.
6. The vehicle online upgrade system according to claim 4,
the communication module receives a connection request sent by the remote server and forwards the connection request to the gateway;
and the gateway judges whether the connection request is an upgrading connection request, and if so, establishes a communication channel for receiving the software upgrading data packet with the remote server through the communication module according to the connection request.
7. A vehicle upgrading method, characterized in that the method is applied to a communication module in the vehicle online upgrading device of any one of claims 1 to 3; the method comprises the following steps:
the communication module sends the software upgrading data packet to a vehicle-mounted module to be upgraded through a gateway under the condition of receiving the software upgrading data packet transmitted by the remote server; wherein the gateway has currently established an OTA communication link with the remote server via the communication module; and the software upgrading data packet is used for indicating the vehicle-mounted module to execute OTA upgrading.
8. The vehicle upgrade method according to claim 7, further comprising, before the step of the communication module receiving a software upgrade data package:
the communication module receives a connection request sent by the remote server, judges whether the connection request is an upgrading connection request or not, and sends a marking upgrading connection request obtained by marking the connection request to the gateway if the connection request is the upgrading connection request;
wherein the tag upgrade connection request is used to instruct the gateway to establish a communication channel with the remote server via the communication module for receiving the software upgrade data packet.
9. The vehicle upgrade method according to claim 7, further comprising, before the step of the communication module receiving a software upgrade data package:
the communication module receives a connection request sent by the remote server and forwards the connection request to the gateway; and the connection request is used for indicating the gateway to judge whether the connection request is an upgrading connection request or not, and when the judgment result is yes, a communication channel which is established with the remote server through the communication module and is used for receiving the software upgrading data packet is established.
10. A vehicle upgrading method, which is applied to a gateway in the vehicle online upgrading device of any one of claims 1 to 3; the method comprises the following steps:
the gateway receives a software upgrading data packet transmitted by a remote server and forwarded by a communication module, and issues the software upgrading data packet to a vehicle-mounted module to be upgraded; the software upgrading data packet is used for indicating the vehicle-mounted module to execute OTA upgrading;
wherein the gateway has currently established an OTA communication link with the remote server via the communication module.
11. The vehicle upgrade method according to claim 10, further comprising, before the step of the gateway receiving the software upgrade data packet transmitted by the remote server forwarded by the communication module:
the gateway receives a mark upgrading connection request sent by the communication module; the label upgrading connection request is obtained by labeling the connection request judged as the upgrading connection request by the communication module; the connection request is sent by the remote server;
and the gateway establishes a communication channel for receiving the software upgrading data packet with the remote server through the communication module according to the mark upgrading connection request.
12. The vehicle upgrade method according to claim 10, further comprising, before the step of the gateway receiving the software upgrade data packet transmitted by the remote server forwarded by the communication module:
the gateway receives a connection request sent by the remote server through the communication module;
and the gateway judges whether the connection request is an upgrading connection request, and if so, establishes a communication channel for receiving the software upgrading data packet with the remote server through the communication module according to the connection request.
13. The vehicle upgrade method according to claim 11 or 12, wherein the step of establishing the communication channel is preceded by the step of:
the gateway judges whether the current vehicle state meets the upgrading condition, if so, the communication channel is established; the current vehicle state comprises a driving state, a storage battery state and a vehicle-mounted module state.
14. A vehicle upgrading device, characterized in that the device is applied to a communication module in the vehicle online upgrading device of any one of claims 1 to 3; the device comprises:
the communication transmission module is used for transmitting the software upgrading data packet to a vehicle-mounted module to be upgraded through a gateway under the condition of receiving the software upgrading data packet transmitted by the remote server; wherein the gateway has currently established an OTA communication link with the remote server; and the software upgrading data packet is used for indicating the vehicle-mounted module to execute OTA upgrading.
15. A vehicle upgrading device, which is applied to a gateway in the vehicle online upgrading device of any one of claims 1 to 3; the device comprises:
the gateway transmission module is used for receiving a software upgrading data packet transmitted by the remote server and forwarded by the communication module under the condition of confirming that the OTA communication link is established with the remote server through the communication module at present, and transmitting the software upgrading data packet to a vehicle-mounted module to be upgraded; and the software upgrading data packet is used for indicating the vehicle-mounted module to execute OTA upgrading.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 7 to 13.
CN201810837187.9A 2018-07-26 2018-07-26 Vehicle online upgrading device, system and method Active CN110764795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810837187.9A CN110764795B (en) 2018-07-26 2018-07-26 Vehicle online upgrading device, system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810837187.9A CN110764795B (en) 2018-07-26 2018-07-26 Vehicle online upgrading device, system and method

Publications (2)

Publication Number Publication Date
CN110764795A CN110764795A (en) 2020-02-07
CN110764795B true CN110764795B (en) 2021-08-03

Family

ID=69326953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810837187.9A Active CN110764795B (en) 2018-07-26 2018-07-26 Vehicle online upgrading device, system and method

Country Status (1)

Country Link
CN (1) CN110764795B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256299B (en) * 2020-10-16 2023-02-28 中国第一汽车股份有限公司 Upgrading method, device, equipment and storage medium
CN115134196B (en) * 2022-06-30 2023-12-15 奇瑞新能源汽车股份有限公司 Brush writing pretreatment method and system for distributed gateway software of electric automobile

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060427A (en) * 2006-04-19 2007-10-24 华为技术有限公司 A system and method for realizing the remote software updating
CN103312786A (en) * 2013-05-17 2013-09-18 广州市雄兵汽车电器有限公司 Vehicle-mounted terminal remote upgrading method and car networking system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6369332B2 (en) * 2015-01-05 2018-08-08 株式会社オートネットワーク技術研究所 In-vehicle relay device
JP6675271B2 (en) * 2015-09-14 2020-04-01 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Gateway device, in-vehicle network system, and firmware update method
CN106850241A (en) * 2015-12-03 2017-06-13 联车(上海)信息科技有限公司 A kind of vehicle-mounted OBD terminals and its remote upgrade method
CN105871523A (en) * 2016-04-28 2016-08-17 乐视控股(北京)有限公司 TBox
JP6380461B2 (en) * 2016-06-02 2018-08-29 住友電気工業株式会社 Relay device, program update system, and program update method
CN108243212B (en) * 2016-12-24 2021-07-20 宝沃汽车(中国)有限公司 Method and device for vehicle diagnosis
CN106850839A (en) * 2017-03-06 2017-06-13 深圳市中兴物联科技有限公司 Remote upgrade method and device
CN107450518A (en) * 2017-08-16 2017-12-08 北京车和家信息技术有限责任公司 A kind of program upgrade apparatus and its control method based on vehicle-mounted Ethernet framework

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060427A (en) * 2006-04-19 2007-10-24 华为技术有限公司 A system and method for realizing the remote software updating
CN103312786A (en) * 2013-05-17 2013-09-18 广州市雄兵汽车电器有限公司 Vehicle-mounted terminal remote upgrading method and car networking system

Also Published As

Publication number Publication date
CN110764795A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
US20210051000A1 (en) Vehicle-mounted device upgrade method and related device
US20220276855A1 (en) Method and apparatus for processing upgrade package of vehicle
WO2017101310A1 (en) Remote control method, device and system for vehicle
CN111510485B (en) OTA upgrade package downloading method, device, vehicle end and server
EP3297247A1 (en) In-vehicle encrypted networking
US10812261B2 (en) Vehicle system and key distribution method
CN110929262A (en) Online upgrading method and system
CN112671763B (en) Data synchronization method and device in networking environment, computer equipment and storage medium
CN113056898B (en) Method and device for obtaining secret key and secret key management system
CN110764795B (en) Vehicle online upgrading device, system and method
CN113094062A (en) Upgrading method and device
KR20160075698A (en) Method, device and system for redirecting data service proxy
WO2024007987A1 (en) Vehicle-end firmware upgrading method and apparatus for digital key system, and device and medium
CN112422396A (en) TCP network transmission acceleration method and system based on SSLVPN channel
US9049012B2 (en) Secured cryptographic communication system
CN110474922B (en) Communication method, PC system and access control router
CN112653729A (en) Sharing upgrading method and device for Internet of things terminal, Internet of things terminal and medium
CN109802929B (en) Client program upgrading method based on dual systems and computer readable storage medium
CN113873518A (en) Credible Internet of things equipment and system based on SIM card and working method thereof
CN113687848A (en) High-reliability vehicle OTA (over the air) upgrading method aiming at logistics fleet management scene
CN110839231B (en) Method and equipment for acquiring terminal identification
CN112468453A (en) Access method, system, electronic device and storage medium of multi-protocol device
CN107444300B (en) Method for operating a data processing device for a vehicle
CN110881176A (en) Method for improving the utilization of a vehicle-to-X communication device and vehicle-to-X communication device
CN110830243A (en) Symmetric key distribution method, device, vehicle 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
GR01 Patent grant
GR01 Patent grant