Vehicle upgrade package obtaining method and system, medium, product, equipment and vehicle
Through the connection between the vehicle and the mobile device, the target vehicle upgrade package is obtained from the mobile device, which solves the problem of increasing traffic costs caused by the vehicle download from the first server and achieves the effect of reducing operational costs.
Patent Information
- Application Number
- CN202510551935.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-08-08
AI Technical Summary
The vehicle downloads the vehicle upgrade package from the first server side, which requires traffic, resulting in an increase in the operating costs of the vehicle enterprise.
Through the connection between the vehicle and the mobile device, the target vehicle upgrade package is obtained from the mobile device, and the mobile device downloads it from the first server and transmits it to the vehicle.
Reduces traffic expenditure of vehicle companies and reduces operating costs.
Smart Images

Figure CN120455276A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automotive electronics technology, and in particular to a method, system, medium, product, device, and vehicle for obtaining a vehicle upgrade package. Background Art
[0002] With the rapid development of new energy vehicles, software updates within smart cockpits are becoming increasingly frequent. Software updates require downloading upgrade packages from the cloud to the vehicle. However, these upgrade packages are large, and downloading them consumes significant data traffic, increasing operating costs for vehicle manufacturers. Summary of the Invention
[0003] The embodiments of the present application provide a method, system, medium, product, device and vehicle for obtaining a vehicle upgrade package, which can solve the technical problem that downloading a vehicle upgrade package to a vehicle will increase the operating costs of the vehicle company, thereby at least partially solving the above technical problem.
[0004] To achieve the above-mentioned objectives, according to a first aspect of the present application, a method for obtaining a vehicle upgrade package is provided, which is applied to a vehicle, and the method comprises:
[0005] A target vehicle upgrade package of the vehicle is obtained from the mobile device through connection between the vehicle and the mobile device, wherein the target vehicle upgrade package is downloaded by the mobile device from the first server.
[0006] According to a second aspect of the present application, a method for obtaining a vehicle upgrade package is provided, which is applied to a mobile device, and the method includes:
[0007] Downloading a target vehicle upgrade package for the vehicle from the first server;
[0008] The target vehicle upgrade package is transmitted to the vehicle through connection with the vehicle.
[0009] According to a third aspect of the present application, a vehicle upgrade package acquisition system is provided, the system comprising a vehicle, a first server cloud, and a mobile device, wherein the first server is communicatively connected to the vehicle and the mobile device respectively;
[0010] The mobile device is used to download the target vehicle upgrade package of the vehicle from the first server;
[0011] The vehicle is used to obtain the target vehicle upgrade package from the mobile device through connection with the vehicle.
[0012] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned vehicle upgrade package acquisition method is implemented.
[0013] According to a fifth aspect of the present application, a computer program product is provided, comprising a computer program, which implements the above-mentioned vehicle upgrade package acquisition method when executed by a processor.
[0014] According to a sixth aspect of the present application, a vehicle is provided, comprising the above-mentioned vehicle upgrade package acquisition or electronic device or executing the vehicle upgrade package acquisition method described in the first aspect.
[0015] The vehicle upgrade package acquisition method, system, medium, product, device, and vehicle of the embodiments of the present application utilize a connection between a vehicle and a mobile device to acquire a target vehicle upgrade package from the mobile device. The target vehicle upgrade package is downloaded from a first server by the mobile device. Since the target vehicle upgrade package is downloaded from the first server by the mobile device and then transmitted to the vehicle, this solves the problem of increased costs for vehicle companies caused by the traffic required for vehicles to download the vehicle upgrade package from the first server.
[0016] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. Those skilled in the art can also derive other drawings based on these drawings without inventive effort.
[0018] In order to more completely understand the present application and its beneficial effects, the following description will be given in conjunction with the accompanying drawings, wherein the same drawing numbers represent the same parts in the following description.
[0019] Figure 1 is a flowchart of a method for obtaining a vehicle upgrade package provided in some embodiments of the present application;
[0020] Figure 2 This is a flowchart of a vehicle power-on self-test OTA upgrade package provided in some embodiments of the present application;
[0021] Figure 3 is a schematic diagram of a process for establishing a connection between a vehicle and a mobile device provided in some embodiments of the present application;
[0022] Figure 4 is a schematic diagram of a process for a vehicle to download a target vehicle upgrade package from a mobile device provided in some embodiments of the present application;
[0023] Figure 5 is a flowchart of a method for obtaining a vehicle upgrade package provided in other embodiments of the present application;
[0024] Figure 6 is a schematic diagram of a process for a mobile device to download a target vehicle upgrade package provided in some embodiments of the present application;
[0025] Figure 7 is a schematic structural diagram of an electronic device provided in some embodiments of the present application;
[0026] Figure 8 It is a schematic structural diagram of a vehicle provided in some embodiments of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0028] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, "plurality" means two or more, unless otherwise specifically defined.
[0029] In the description of this application, the word "for example" is used to mean "used as an example, illustration or illustration". Any embodiment described in this application as "for example" is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any person skilled in the art to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.
[0030] In related technologies, since OTA upgrades are a free service provided by car manufacturers to users, vehicle-side OTA upgrade packages are downloaded via the APN3 data channel, and the data costs are borne by the car manufacturers. As the number of OTAs accumulates, data costs become a significant expense for car manufacturers.
[0031] To address the aforementioned issues, embodiments of the present application provide a method for obtaining a vehicle upgrade package. By connecting a vehicle to a mobile device, a target vehicle upgrade package for the vehicle is obtained from the mobile device. The target vehicle upgrade package is downloaded from a first server by the mobile device. Since the target vehicle upgrade package is downloaded from the first server by the mobile device and then transmitted to the vehicle, this solves the problem of increased costs for vehicle companies caused by the data traffic required for vehicles to download the vehicle upgrade package from the first server.
[0032] See also Figure 1 , provides a method for obtaining a vehicle upgrade package, which is applied to a vehicle. The method includes:
[0033] Step S100 , obtaining a target vehicle upgrade package of the vehicle from the mobile device through connection between the vehicle and the mobile device, wherein the target vehicle upgrade package is downloaded by the mobile device from a first server.
[0034] Among them, in some embodiments, the target vehicle upgrade package includes an OTA upgrade package. The OTA upgrade package (Over-The-Air Update Package) is a file collection used to implement device software or firmware updates via OTA (Over-the-Air, air download). It contains all the data and instructions required for device upgrades and can help the device upgrade from the current version to a higher version. The target vehicle upgrade package in this embodiment is applied to the vehicle to update the software in the vehicle's smart cockpit.
[0035] The first server can be an OTA cloud for storing OTA upgrade packages. The mobile device can be a mobile phone, tablet, etc. The mobile device can download the target vehicle upgrade package from the first server.
[0036] Specifically, the mobile device downloads the target vehicle upgrade package from the first server. When the vehicle is in communication with the mobile device, the mobile device retrieves the target vehicle upgrade package from the vehicle to upgrade the software in the vehicle's smart cockpit. It will be appreciated that in this embodiment, retrieving the target vehicle upgrade package from the mobile device eliminates the need to consume the vehicle company's data traffic to obtain the target vehicle upgrade package from the first server, thereby reducing data traffic expenditure and lowering the vehicle company's operating costs.
[0037] In some embodiments, before obtaining the target vehicle upgrade package of the vehicle from the mobile device through the connection between the vehicle and the mobile device, it also includes: sending upgrade package query information to the first server end, triggering the first server end to detect whether there is a target vehicle upgrade package that matches the vehicle, and transmitting the target vehicle upgrade package to the mobile device if there is a target vehicle upgrade package and the preset transmission conditions are met.
[0038] In some embodiments, the preset transmission condition includes receiving a transmission request from the mobile device and / or receiving a transmission prompt message. The transmission prompt message may be a prompt message displayed on the vehicle's central control screen for sending the target vehicle upgrade package to the mobile device.
[0039] Specifically, after the vehicle is powered on, it sends upgrade package query information to the first server, triggering the first server to detect whether there is a target vehicle upgrade package that matches the vehicle. When the first server has a target vehicle upgrade package that matches the vehicle and receives a transmission request from the mobile device and / or receives a transmission prompt message, the target vehicle upgrade package is transmitted to the mobile device, so that the target upgrade package is downloaded to the mobile device, making it convenient for subsequent vehicles to obtain the target upgrade package from the mobile device to realize the software upgrade of the vehicle.
[0040] In one embodiment, Figure 2 As shown in the figure, the process diagram of the vehicle power-on self-test OTA upgrade package is as follows, taking the mobile device as a mobile phone, the first server as the OTA cloud, and the target vehicle upgrade package as the OTA upgrade package as an example. The specific implementation process is as follows:
[0041] S101: After the vehicle is powered on, the OTA APP calls the network interface to query the cloud to detect whether there is an OTA upgrade package;
[0042] S102: The OTA cloud determines whether there is a matching OTA upgrade package. If there is a matching OTA upgrade package configured on the cloud, step S103 is executed;
[0043] S103: The OTA cloud pushes the matching OTA upgrade package information to the TSP (the cloud of the mobile phone APP);
[0044] S104: After receiving the OTA upgrade package pushed by the OTA cloud, the TSP pushes the OTA upgrade package information to the mobile phone APP.
[0045] In some embodiments, sending the upgrade package query information to the first server includes: calling a network interface through the first cloud application of the vehicle to send the upgrade package query information.
[0046] The first cloud application may be an application on the vehicle for managing and executing OTA (Over-The-Air) upgrades, namely, an OTA APP (Over-The-Air Application).
[0047] Specifically, after the vehicle is powered on, the OTA APP on the vehicle will establish a connection with the first server by calling a network interface, such as 4G / 5G, Wi-Fi, etc., and query whether the first server has an available vehicle upgrade package, so as to obtain the latest vehicle upgrade package information, thereby shortening the upgrade preparation time and improving the overall efficiency of the vehicle upgrade.
[0048] In some embodiments, the connection comprises a communications connection.
[0049] In some embodiments, the communication connection includes at least one of a local area network connection, a Bluetooth connection, and an infrared connection.
[0050] Specifically, the communication connections between the vehicle and the mobile device include, but are not limited to, local area network (LAN), Bluetooth, and infrared. The LAN connection may be Wi-Fi, the Bluetooth connection may be Bluetooth 4.0 or higher, and the infrared connection may be IrDA. By supporting multiple connection methods, the vehicle and mobile device can avoid relying on a single communication technology, thereby reducing system complexity due to technical limitations.
[0051] In some embodiments, the connection includes a local area network connection, and the step of establishing the connection between the vehicle and the mobile device includes: upon detecting that the vehicle and the mobile device are in the same local area network, establishing a TCP channel between the vehicle and the mobile device to complete the establishment of the connection.
[0052] In some embodiments, the vehicle and the mobile device are in the same local area network, including: the vehicle is connected to a first Wi-Fi hotspot opened by the mobile device, or the mobile device is connected to a second Wi-Fi hotspot of the vehicle, or the mobile device and the vehicle are connected to a third-party Wi-Fi hotspot.
[0053] Specifically, the vehicle can be connected to the first Wi-Fi hotspot opened by the mobile device, or the mobile device can be connected to the second Wi-Fi hotspot opened by the vehicle, or both the mobile device and the vehicle can be connected to a third-party Wi-Fi hotspot to ensure that the vehicle and the mobile device are in the same local area network. Then, the vehicle initiates a TCP connection request, the mobile device receives the request and responds, and the TCP handshake process is completed, thereby establishing a TCP channel and establishing a connection between the vehicle and the mobile device, so that the vehicle and the mobile device can transmit data through the TCP channel, such as downloading OTA upgrade packages, transmitting vehicle status information, etc. It can be understood that in this embodiment, the method for establishing a connection between the vehicle and the mobile device achieves an efficient, secure and automated connection by ensuring the same local area network and automatically establishing a TCP channel, providing an efficient technical solution for communication between the vehicle and the mobile device.
[0054] In some embodiments, the method further includes: when the current network of the vehicle is connected to a WI-FI hotspot or the hotspot is turned on, sending a first UDP online information to the mobile device, the first UDP online information indicating that the vehicle is online; when receiving the UDP information sent by the mobile device, determining that the vehicle and the mobile device are in the same local area network, wherein the UDP information includes response information of the first UDP online information or second UDP online information, the second UDP online information indicating that the mobile device is online.
[0055] Among them, the User Datagram Protocol (UDP), the first UDP online information is used to indicate that the vehicle has gone online.
[0056] In some embodiments, sending the first UDP online information to the mobile device includes: sending the first UDP online information to the mobile device by broadcasting.
[0057] Specifically, by sending UDP online information in a broadcasting manner, vehicles can quickly discover mobile devices within the same local area network without having to know the IP address of the mobile device in advance, which greatly improves the efficiency of mobile device discovery.
[0058] When the vehicle's current network is connected to a Wi-Fi hotspot or the hotspot is turned on, a first UDP online message is sent to the mobile device indicating that the vehicle is online. When the vehicle receives the UDP message sent by the mobile device, it is determined that the vehicle and the mobile device are in the same local area network. The UDP message includes a response to the first UDP online message or a second UDP online message indicating that the mobile device is online. This can determine that the vehicle and the mobile device are in the same local area network. The UDP protocol enables fast communication and network status detection between the vehicle and the mobile device, which has the advantages of speed, low resource consumption, and high reliability, and can significantly improve the communication efficiency between the vehicle and the mobile device.
[0059] In a specific embodiment, when the vehicle connects to a Wi-Fi hotspot or turns on the hotspot, it actively sends a first UDP online message to the mobile device to notify the mobile device that the vehicle is online. After the mobile device receives the first UDP online message, it sends a response message (response information of the first UDP online message) or actively sends a second UDP online message to notify the vehicle that it is online, completing the mobile device response. The vehicle confirms that both parties are in the same local area network by receiving the UDP message sent by the mobile device, thereby establishing a communication connection and completing the network status confirmation.
[0060] In some embodiments, after establishing the TCP channel between the vehicle and the mobile device, it also includes: receiving an upgrade package message corresponding to the target vehicle upgrade package pushed by the mobile device; and setting a download and save path corresponding to the target vehicle upgrade package according to the upgrade package message.
[0061] Among them, in some embodiments, setting the download and save path corresponding to the target vehicle upgrade package according to the upgrade package message includes: determining the upgrade package type of the target vehicle upgrade package according to the upgrade package message; and setting the download and save path according to the upgrade package type.
[0062] The target vehicle upgrade package includes, but is not limited to, a multimedia upgrade package and an electronic control unit (ECU) upgrade package. Different types of upgrade packages can use the same protocol parsing and download methods, but different download paths can be set based on the upgrade package type. The download path can be pre-configured or dynamically generated based on the upgrade package message.
[0063] Specifically, after establishing a TCP channel between the vehicle and the mobile device, the upgrade package message corresponding to the target vehicle upgrade package is received from the mobile device, and the download and save path corresponding to the target vehicle upgrade package is set according to the upgrade package message, so that the vehicle can obtain the target vehicle upgrade package from the mobile device. In addition, the download and save path is set according to the upgrade package type, which can optimize the use of storage space.
[0064] In some embodiments, receiving the upgrade package message corresponding to the target vehicle upgrade package pushed by the mobile device includes: receiving the upgrade package message corresponding to the target vehicle upgrade package pushed by the mobile device through a thread for receiving TCP messages, wherein the thread is started when the vehicle receives the UDP information sent by the mobile device.
[0065] Specifically, a thread can be started when the vehicle receives UDP information sent by a mobile device, and the thread is used to receive TCP messages and receive upgrade package messages corresponding to the target vehicle upgrade package pushed by the mobile device, so that the vehicle can obtain the target vehicle upgrade package from the mobile device according to the upgrade package message.
[0066] In one embodiment, Figure 3 The figure shows a flow chart of establishing a connection between a vehicle and a mobile device. The specific implementation process is as follows:
[0067] S201: When the current network is connected to Wi-Fi or a hotspot is turned on, a thread service for receiving UDP messages is started to receive UDP messages sent by a mobile phone APP (i.e., a second device application of the mobile device);
[0068] S202: Send a UDP online message by broadcasting to notify the mobile phone app that the vehicle (i.e., the vehicle) has come online;
[0069] S203: Determine whether a UDP online message or a UDP online response message such as a mobile phone APP is received. If the above UDP messages are received, execute step S204;
[0070] S204: After receiving the UDP message in step S203, it indicates that the mobile phone and the vehicle are now in the same local area network. The thread service for receiving TCP messages can be started to receive heartbeat packets and OTA upgrade package information;
[0071] S205: Start the thread for sending heartbeat packets and send heartbeat packets to the mobile phone at regular intervals;
[0072] S206: The mobile terminal determines whether it has received the TCP heartbeat packet message sent by the vehicle terminal. If it has been received, it means that the mobile terminal and the vehicle terminal have established a TCP channel;
[0073] S207: After the mobile phone and the vehicle have established a TCP channel, the mobile phone APP pushes the OTA upgrade package information via TCP messages;
[0074] S208: The vehicle determines whether it has received the OTA upgrade package information pushed by the mobile phone APP. If it has been received, step S209 is executed;
[0075] S209: The vehicle side parses the OTA upgrade package information according to the protocol;
[0076] S210: The vehicle side sets the download and save path of the upgrade package according to the OTA upgrade package type.
[0077] In some embodiments, a target vehicle upgrade package of the vehicle is obtained from the mobile device through a connection between the vehicle and the mobile device, including: creating a Socket channel for transmitting file stream based on the connection; and downloading the target vehicle upgrade package from a second device application of the mobile device based on the Socket channel.
[0078] The second device application of the mobile device may be an APP of the mobile device.
[0079] In some embodiments, a socket channel for transmitting a file stream is created based on a preset protocol port. The preset protocol port can be a TCP port or a UDP port. The socket channel for transmitting a file stream is created based on the preset protocol port to ensure standardization and security of communication.
[0080] Specifically, a communication connection is established between the vehicle and the mobile device via a local area network, Bluetooth, or infrared. Based on the established connection, a socket channel (such as a TCP or UDP channel) is created for transmitting the file stream. The target vehicle upgrade package is then downloaded from a second device application (such as a vehicle management application or an OTA upgrade application) on the mobile device via the socket channel. As can be understood, creating a socket channel through a preset protocol port enables efficient, secure, and reliable transmission of file streams, which not only improves the efficiency and security of data transmission, but also enhances the compatibility and flexibility of the system, providing an efficient and intelligent technical solution for file transfer between vehicles and mobile devices.
[0081] In some embodiments, downloading the target vehicle upgrade package from the second device application of the mobile device based on the Socket channel includes: writing file stream information to the second device application of the mobile device through the Socket channel, and reading the file bytes corresponding to the target vehicle upgrade package based on the file stream information; when the reading of the file bytes corresponding to the target vehicle upgrade package is completed, determining that the download of the target vehicle upgrade package is completed.
[0082] The file stream information may be a protocol request code, a file ID, etc., and is used to notify the second device application of the mobile device that it needs to start reading the file stream and the file stream of which file to read.
[0083] Specifically, the vehicle writes segmentation information to inform the second device application of the mobile device to read the starting and ending positions of the file stream, and starts reading the file bytes from the byte input stream to the local computer. The file bytes corresponding to the target vehicle upgrade package can be read based on the file stream information. When the file bytes corresponding to the target vehicle upgrade package are read, it is determined that the download of the target vehicle upgrade package is completed, thereby enabling the vehicle to download the target vehicle upgrade package from the mobile device.
[0084] In one embodiment, Figure 4 The figure shows a flow chart of a vehicle downloading a target vehicle upgrade package from a mobile device. The specific implementation process is as follows:
[0085] S301: Based on the protocol port, the vehicle creates a socket channel for transmitting the file stream;
[0086] S302: The vehicle writes the protocol request code and file ID through the created Socket channel to notify the mobile app to start reading the file stream and the file stream of the file to be read;
[0087] S303: The vehicle writes segment information and informs the mobile app to read the start and end positions of the file stream;
[0088] S304: The vehicle starts to read the file bytes from the byte input stream to the local (stored in the path set in step S310);
[0089] S305: The vehicle side determines whether the file stream has been read. If so, step S306 is executed.
[0090] S306: After the OTA upgrade package file stream is read, the OTA APP is notified that the upgrade package has been downloaded.
[0091] The above vehicle upgrade package acquisition method obtains a target vehicle upgrade package from a mobile device via a connection between the vehicle and the mobile device. The target vehicle upgrade package is downloaded from a first server by the mobile device. Since the target vehicle upgrade package is downloaded from the first server by the mobile device and then transmitted to the vehicle, this method solves the problem of increased costs for vehicle companies caused by the data traffic required for vehicles to download vehicle upgrade packages from the first server.
[0092] Based on the same inventive concept, please refer to Figure 5 This application also provides a method for obtaining a vehicle upgrade package, which is applied to a mobile device. The method includes:
[0093] Step S200: Downloading a target vehicle upgrade package from the first server;
[0094] Step S300: transmitting the target vehicle upgrade package to the vehicle through connection with the vehicle.
[0095] Among them, the first server and the target vehicle upgrade package in this embodiment are the same as those in the above embodiment. Please refer to the relevant description of the above embodiment for details and will not be repeated here.
[0096] Specifically, the mobile device downloads the target vehicle upgrade package from the first server. After establishing a connection with the vehicle, the mobile device transmits the target vehicle upgrade package to the vehicle, allowing the vehicle to perform a software upgrade based on the transmitted target vehicle upgrade package. Because the mobile device downloads the target vehicle upgrade package from the first server, the vehicle does not need to consume the vehicle company's data traffic to obtain the target vehicle upgrade package, thereby reducing data traffic expenditure and lowering the vehicle company's operating costs.
[0097] In some embodiments, downloading the target vehicle upgrade package of the vehicle from the first server includes: upon receiving an upgrade package message corresponding to the target vehicle upgrade package, downloading the target vehicle upgrade package of the vehicle from the first server based on the upgrade package message.
[0098] The upgrade package message corresponding to the target vehicle upgrade package is a data structure within the target vehicle upgrade package that contains information related to the upgrade package. These messages typically contain key information required for the device to perform the upgrade operation, such as the download address of the upgrade package, version number, file size, signature information, etc.
[0099] Specifically, when the mobile device receives the upgrade package message corresponding to the target vehicle upgrade package, it downloads the target vehicle upgrade package of the vehicle from the first server based on the upgrade package message.
[0100] In some embodiments, the upgrade package message is pushed to the mobile device by the second server upon receiving the upgrade package message sent by the first server.
[0101] The second server may be a telematics service provider (TSP) server.
[0102] Specifically, after receiving the upgrade package message sent by the first server, the second server pushes the received upgrade package message to the mobile device, so that the mobile device downloads the target vehicle upgrade package according to the upgrade package message.
[0103] In some embodiments, the upgrade package message is sent to the second server when the first server detects that there is a target vehicle upgrade package that matches the vehicle.
[0104] Specifically, when the first server detects that there is a target vehicle upgrade package that matches the vehicle, the first server sends an upgrade package message to the second server.
[0105] In some embodiments, the downloading of the target vehicle upgrade package of the vehicle from the first server based on the upgrade package message includes: when the mobile device receives the upgrade package message and meets the upgrade package download conditions, through the second device application of the mobile device, downloading the target vehicle upgrade package from the first server to the local of the mobile device according to the upgrade package message.
[0106] Among them, in some embodiments, the upgrade package download conditions include that the APP corresponding to the mobile device is in a network connection state and the storage space of the mobile device is larger than the storage space of the target vehicle upgrade package.
[0107] Specifically, when the mobile device receives the upgrade package message and meets the upgrade package download conditions, the target vehicle upgrade package is downloaded to the local device of the mobile device from the first server according to the upgrade package message through the second device application of the mobile device, so that the vehicle can obtain the target vehicle upgrade package from the mobile device.
[0108] In some embodiments, the upgrade package message includes the URL address corresponding to the target vehicle upgrade package; downloading the target vehicle upgrade package to the local of the mobile device from the first server according to the upgrade package message includes: downloading the target vehicle upgrade package to the local of the mobile device according to the URL address.
[0109] Specifically, the upgrade package message containing the target vehicle upgrade package information is received, the URL address is parsed, and the target vehicle upgrade package is downloaded from the first server according to the URL address. Finally, the target vehicle upgrade package is saved to the local storage path of the mobile device. It can be understood that in this embodiment, the upgrade package is downloaded directly from the first server via the URL address, which reduces intermediate links and improves download efficiency.
[0110] In some embodiments, after downloading the target vehicle upgrade package to the local of the mobile device from the first server according to the upgrade package message, it also includes: when the download of the target vehicle upgrade package is completed, displaying a user interface through the second device application of the mobile device, the user interface is used to ask whether to send the target vehicle upgrade package to the vehicle.
[0111] Specifically, after the mobile device downloads the target vehicle upgrade package to the local device of the mobile device, when the download of the target vehicle upgrade package is completed, a user interface is displayed through the second device application of the mobile device. The user interface is used to ask whether to send the target vehicle upgrade package to the vehicle, thereby realizing efficient, flexible and secure upgrade package management, which not only enhances the user experience, but also improves the reliability and security of the system, and provides an efficient and intelligent technical solution for the vehicle's OTA upgrade.
[0112] In one embodiment, Figure 6 The figure shows a flow chart of downloading the target vehicle upgrade package on a mobile device. The specific implementation process is as follows:
[0113] S401: After receiving the OTA upgrade package information pushed by the TSP, the mobile phone APP checks the download conditions (whether Wi-Fi is connected and whether there is enough storage space);
[0114] S402: After the download conditions are met, the mobile phone APP downloads the OTA upgrade package to the local computer according to the URL address of the OTA upgrade package;
[0115] S403: The mobile phone APP determines whether the download is complete based on the download status;
[0116] S404: After the OTA upgrade package is downloaded, the mobile phone APP displays the entrance for sending the upgrade package to the vehicle end, so that the user can choose whether to send it immediately.
[0117] The above-mentioned vehicle upgrade package acquisition method downloads a target vehicle upgrade package from a first server; then, through a connection with the vehicle, transmits the target vehicle upgrade package to the vehicle, enabling the vehicle to perform a software upgrade based on the transmitted target vehicle upgrade package. Because the mobile device downloads the target vehicle upgrade package from the first server, the vehicle does not need to consume the vehicle company's data traffic to obtain the target vehicle upgrade package, thereby reducing data traffic expenditure and lowering the vehicle company's operating costs.
[0118] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0119] Based on the same inventive concept, the present application also provides a vehicle upgrade package acquisition system, including a vehicle, a first server cloud and a mobile device, wherein the first server is respectively communicated with the vehicle and the mobile device; the mobile device is used to download the target vehicle upgrade package of the vehicle from the first server; the vehicle is used to obtain the target vehicle upgrade package from the mobile device through the connection with the vehicle.
[0120] Specifically, the mobile device downloads the target vehicle upgrade package from the first server; the vehicle is connected to the vehicle and obtains the target vehicle upgrade package from the mobile device. Since the target vehicle upgrade package is downloaded from the first server by the mobile device and then transmitted to the vehicle, this solves the problem of increased costs for vehicle companies caused by the traffic required for the vehicle to download the vehicle upgrade package from the first server.
[0121] In some embodiments, a second server is further included, which is communicated with the first server and the mobile device respectively; the second server is used to push the upgrade package information to the mobile device when it receives the upgrade package message sent by the first server.
[0122] Specifically, the second server is configured to push the upgrade package information to the mobile device upon receiving the upgrade package message sent by the first server, so that the mobile device can download the target vehicle upgrade package based on the upgrade package information.
[0123] The vehicle upgrade package acquisition system includes a vehicle, a first server-side cloud, and a mobile device. The first server is in communication with the vehicle and the mobile device, respectively. The mobile device is configured to download a target vehicle upgrade package from the first server. The vehicle, through its connection to the vehicle, retrieves the target vehicle upgrade package from the mobile device. Since the target vehicle upgrade package is downloaded from the first server via the mobile device and then transmitted to the vehicle, this solves the problem of increased costs for vehicle companies caused by the data traffic required for vehicles to download the vehicle upgrade package from the first server.
[0124] In some embodiments, an electronic device is provided, whose internal structure diagram can be as follows: Figure 7 As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, it implements a method for obtaining a vehicle upgrade package.
[0125] Optionally, the electronic device further includes a display unit. The display unit of the electronic device is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the electronic device can be a touch layer covering the display screen, a key, trackball, or touchpad provided on the electronic device housing, or an external keyboard, touchpad, or mouse.
[0126] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the control device to which the scheme of the present application is applied. The specific control device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0127] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiment methods can be implemented 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 memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. For illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The processor involved in each embodiment provided in this application can be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but is not limited thereto.
[0128] Correspondingly, an embodiment of the present application also provides an electronic device, which may be a terminal device or a server.
[0129] like Figure 7 As shown, Figure 7Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1000 includes a processor 1001 having one or more processing cores, a memory 1002 having one or more computer-readable storage media, and a computer program stored in the memory 1002 and executable on the processor. The processor 1001 is electrically connected to the memory 1002. It will be understood by those skilled in the art that the electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0130] The processor 1001 is the control center of the electronic device 1000. It connects the various parts of the entire electronic device 1000 using various interfaces and lines. By running or loading software programs and / or units stored in the memory 1002 and calling data stored in the memory 1002, it executes various functions of the electronic device 1000 and processes data, thereby monitoring the electronic device 1000 as a whole. The processor 1001 can be a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), etc., and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0131] In the embodiment of the present application, the processor 1001 in the electronic device 1000 will load the instructions corresponding to the processes of one or more application programs into the memory 1002 according to the following steps, and the processor 1001 will run the application programs stored in the memory 1002 to implement various functions, such as: compensating the target steering wheel angle of the vehicle according to the lateral error and speed of the vehicle to obtain a compensated steering wheel angle; and controlling the steering of the vehicle based on the compensated steering wheel angle. The specific implementation of each of the above operations can be found in the previous embodiments and will not be repeated here.
[0132] Alternatively, as Figure 7 As shown, the electronic device 1000 further includes: a touch screen 1003, a radio frequency circuit 1004, an audio circuit 1005, an input unit 1006, and a power supply 1007. Among them, the processor 1001 is electrically connected to the touch screen 1003, the radio frequency circuit 1004, the audio circuit 1005, the input unit 1006, and the power supply 1007 respectively. Those skilled in the art will understand that Figure 7 The electronic device structure shown in the figure does not constitute a limitation to the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0133] The touch display screen 1003 can be used to display a graphical user interface and receive user actions on the operation instructions generated by the graphical user interface. The touch display screen 1003 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light emitting diode (OLED), etc. The touch panel can be used to collect the user's touch operation on or near it (such as the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel or near the touch panel) and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch electronic device. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch electronic device; the touch electronic device receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1001, and can receive the command sent by the processor 1001 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1001 to determine the type of touch event, and then the processor 1001 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 1003 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 1003 can also be used as part of the input unit 1006 to realize the input function.
[0134] The RF circuit 1004 may be used to transmit and receive RF signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to transmit and receive signals with the network device or other electronic devices.
[0135] The audio circuit 1005 can be used to provide an audio interface between the user and the electronic device through a speaker and microphone. The audio circuit 1005 can convert the received audio data into an electrical signal and transmit it to the speaker, which then converts it into a sound signal for output. On the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1005 and converted into audio data. The audio data is then output to the processor 1001 for processing, and then sent to another electronic device through the radio frequency circuit 1004, or the audio data is output to the memory 1002 for further processing. The audio circuit 1005 may also include an earphone jack to provide communication between external headphones and the electronic device.
[0136] The input unit 1006 may be configured to receive input digital, character information, or user feature information (such as fingerprint, iris, or facial information), and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control.
[0137] The power supply 1007 is used to supply power to the various components of the electronic device 1000. Optionally, the power supply 1007 can be logically connected to the processor 1001 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 1007 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0138] although Figure 7 Not shown in the figure, the electronic device 1000 may further include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0139] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0140] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0141] To this end, embodiments of the present application provide a computer-readable storage medium storing multiple computer programs capable of being loaded by a processor to execute any of the vehicle upgrade package acquisition methods provided in embodiments of the present application. The computer program can execute the following steps of the vehicle upgrade package acquisition method: compensating the target steering wheel angle of the vehicle based on the vehicle's lateral error and speed to obtain a compensated steering wheel angle; and controlling the vehicle's steering based on the compensated steering wheel angle. The specific implementation of each of the above operations can be found in the previous embodiments and will not be repeated here.
[0142] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0143] Since the computer program stored in the computer-readable storage medium can execute any of the vehicle upgrade package acquisition methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any of the vehicle upgrade package acquisition methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0144] According to one aspect of the present application, a computer program product or computer program is also provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the methods provided in various optional implementations of the above embodiments.
[0145] According to one aspect of this application, Figure 8 As shown, a vehicle 10 is also provided, which includes the above electronic device. The vehicle has all the beneficial effects of the above electronic device, etc., which will not be described in detail in this application.
[0146] The vehicle may be a fuel vehicle, a plug-in hybrid vehicle or a new energy vehicle, etc., and this application does not make any specific restrictions on this.
[0147] In the above-described embodiments of the vehicle control device, computer-readable storage medium, electronic device, and computer program product, the descriptions of each embodiment have different focuses. For portions not described in detail in a particular embodiment, reference can be made to the relevant descriptions of other embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes and beneficial effects of the above-described vehicle control device, computer-readable storage medium, computer program product, electronic device, and their corresponding units can be referred to in the description of the vehicle upgrade package acquisition method in the above embodiments, and the details will not be repeated here.
[0148] The technical features of the above embodiments can 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.
[0149] The above are only preferred embodiments of the present application and do not constitute any form of limitation to the present application. Although the descriptions of each embodiment in the embodiments of the present application have different focuses, for parts that are not described in detail in a certain embodiment, please refer to the relevant embodiments of other embodiments. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
Claims
1. A method for obtaining a vehicle upgrade package, characterized in that: Applied to a vehicle, the method comprises: A target vehicle upgrade package of the vehicle is obtained from the mobile device through connection between the vehicle and the mobile device, wherein the target vehicle upgrade package is downloaded by the mobile device from the first server.
2. The method according to claim 1, characterized in that Before obtaining the target vehicle upgrade package of the vehicle from the mobile device through the connection between the vehicle and the mobile device, the method further includes: Sending upgrade package query information to the first server to trigger the first server to detect whether there is a target vehicle upgrade package matching the vehicle, and transmitting the target vehicle upgrade package to the mobile device if the target vehicle upgrade package exists and meets the preset transmission conditions.
3. The method according to claim 2, characterized in that The preset transmission condition includes receiving a transmission request from the mobile device and / or receiving transmission prompt information.
4. The method according to claim 2, characterized in that The sending of the upgrade package query information to the first server includes: The upgrade package query information is sent by calling a network interface through the first cloud application of the vehicle.
5. The method according to claim 1, wherein The connection includes a communication connection.
6. The method according to claim 5, characterized in that The communication connection includes at least one of a local area network connection, a Bluetooth connection, and an infrared connection.
7. The method according to claim 6, characterized in that The connection includes a local area network connection, and the steps of establishing the connection between the vehicle and the mobile device include: When it is detected that the vehicle and the mobile device are in the same local area network, a TCP channel is established between the vehicle and the mobile device to complete the establishment of the connection.
8. The method according to claim 7, characterized in that The vehicle and the mobile device are in the same local area network, including: The vehicle is connected to a first Wi-Fi hotspot opened by the mobile device, or the mobile device is connected to a second Wi-Fi hotspot of the vehicle, or the mobile device and the vehicle are connected to a third-party Wi-Fi hotspot.
9. The method according to claim 8, characterized in that The method further comprises: When the current network of the vehicle is connected to a WI-FI hotspot or the hotspot is turned on, sending a first UDP online message to the mobile device, wherein the first UDP online message indicates that the vehicle is online; When the UDP information sent by the mobile device is received, it is determined that the vehicle and the mobile device are in the same local area network, wherein the UDP information includes response information of the first UDP online information or second UDP online information, and the second UDP online information indicates that the mobile device is online.
10. The method according to claim 9, characterized in that Sending first UDP online information to the mobile device includes: The first UDP online information is sent to the mobile device in a broadcasting manner.
11. The method according to claim 9, characterized in that After establishing the TCP channel between the vehicle and the mobile device, the method further includes: Receiving an upgrade package message corresponding to a target vehicle upgrade package pushed by the mobile device; The download and save path corresponding to the target vehicle upgrade package is set according to the upgrade package message.
12. The method according to claim 11, characterized in that The receiving, by the mobile device, an upgrade package message corresponding to the target vehicle upgrade package, includes: An upgrade package message corresponding to the target vehicle upgrade package pushed by the mobile device is received through a thread for receiving TCP messages, wherein the thread is started when the vehicle receives UDP information sent by the mobile device.
13. The method according to claim 11, characterized in that Before receiving the upgrade package message corresponding to the target vehicle upgrade package pushed by the mobile device, the method further includes: Start a heartbeat packet sending thread and send a TCP heartbeat packet message to the mobile device, triggering the mobile device to determine that a TCP channel has been established between the vehicle and the mobile device upon receiving the TCP heartbeat packet message, and send the upgrade package message to the vehicle.
14. The method according to claim 11, characterized in that The step of setting a download and save path corresponding to the target vehicle upgrade package according to the upgrade package message includes: Determining the upgrade package type of the target vehicle upgrade package according to the upgrade package message; The download save path is set according to the upgrade package type.
15. The method according to any one of claims 1 to 14, characterized in that: The step of obtaining a target vehicle upgrade package from the mobile device through connection between the vehicle and the mobile device includes: Based on the connection, create a Socket channel for transmitting file stream; Based on the Socket channel, the target vehicle upgrade package is downloaded from the second device application of the mobile device.
16. The method according to claim 15, characterized in that The step of creating a Socket channel for transmitting a file stream includes: Create a socket channel for transmitting file streams based on the preset protocol port.
17. The method according to claim 15, characterized in that The downloading of the target vehicle upgrade package from the second device application of the mobile device based on the Socket channel includes: Writing file stream information to a second device application of the mobile device through the Socket channel, and reading file bytes corresponding to the target vehicle upgrade package based on the file stream information; When the reading of the file bytes corresponding to the target vehicle upgrade package is completed, it is determined that the downloading of the target vehicle upgrade package is completed.
18. The method according to any one of claims 1 to 14, characterized in that: The target vehicle upgrade package includes an OTA upgrade package.
19. A method for obtaining a vehicle upgrade package, characterized in that: Applied to a mobile device, the method includes: Downloading a target vehicle upgrade package for the vehicle from the first server; The target vehicle upgrade package is transmitted to the vehicle through connection with the vehicle.
20. The method according to claim 19, characterized in that The downloading of the target vehicle upgrade package from the first server includes: When an upgrade package message corresponding to the target vehicle upgrade package is received, the target vehicle upgrade package of the vehicle is downloaded from the first server based on the upgrade package message.
21. The method according to claim 20, characterized in that The upgrade package message is pushed to the mobile device by the second server upon receiving the upgrade package message sent by the first server.
22. The method according to claim 21, characterized in that The upgrade package message is sent to the second server when the first server detects that there is a target vehicle upgrade package matching the vehicle.
23. The method according to claim 20, characterized in that The downloading of the target vehicle upgrade package of the vehicle from the first server based on the upgrade package message includes: When the mobile device receives the upgrade package message and meets the upgrade package download conditions, the target vehicle upgrade package is downloaded from the first server to the local device of the mobile device through the second device application of the mobile device according to the upgrade package message.
24. The method according to claim 19, wherein The upgrade package download conditions include that the APP corresponding to the mobile device is in a network connection state and the storage space of the mobile device is larger than the storage space of the target vehicle upgrade package.
25. The method according to claim 19, wherein The upgrade package message includes a URL address corresponding to the target vehicle upgrade package; and downloading the target vehicle upgrade package from the first server to the local device of the mobile device according to the upgrade package message includes: The target vehicle upgrade package is downloaded to the local device of the mobile device according to the URL address.
26. The method according to claim 19, wherein After downloading the target vehicle upgrade package from the first server to the local device of the mobile device according to the upgrade package message, the method further includes: When the target vehicle upgrade package is downloaded completely, a user interface is displayed through a second device application of the mobile device, where the user interface is used to inquire whether to send the target vehicle upgrade package to the vehicle.
27. A vehicle upgrade package acquisition system, characterized in that: The system includes a vehicle, a first server cloud and a mobile device, wherein the first server is communicatively connected to the vehicle and the mobile device respectively; The mobile device is used to download the target vehicle upgrade package of the vehicle from the first server; The vehicle is used to obtain the target vehicle upgrade package from the mobile device through connection with the vehicle.
28. The system according to claim 27, wherein: The system further includes a second server, the second server being communicatively connected to the first server and the mobile device respectively; The second server is configured to push the upgrade package information to the mobile device upon receiving the upgrade package message sent by the first server.
29. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the vehicle upgrade package acquisition method according to any one of claims 1 to 26 is implemented.
30. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the vehicle upgrade package acquisition method according to any one of claims 1 to 26 is implemented.
31. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the vehicle upgrade package acquisition method described in any one of claims 1 to 26.
32. A vehicle, characterized in that: It includes the vehicle upgrade package acquisition system as described in claim 27 or 28, or the electronic device as described in claim 31, or executes the vehicle upgrade package acquisition method as described in any one of claims 1 to 26.