Shared vehicle upgrade method, device, electronic device and storage medium
By performing location clustering on shared electric vehicles and delivering OTA upgrade packages to target vehicles, and broadcasting to other vehicles using Bluetooth, the problem of high traffic costs during OTA upgrades of shared electric vehicles is solved, the upgrade efficiency is improved and traffic consumption is reduced.
Patent Information
- Application Number
- CN202410294153.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-14
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-03-14
AI Technical Summary
Shared electric vehicles require large traffic costs when performing OTA upgrades, because all vehicles need to download the upgrade package, resulting in high traffic costs.
By obtaining the location information of operating vehicles for clustering, the target vehicle is determined and an OTA upgrade package is delivered to it. After completion, the target vehicle broadcasts it to the remaining vehicles in the cluster via Bluetooth to avoid all vehicles having to issue upgrade packages.
It reduces traffic cost, improves vehicle upgrade efficiency, and reduces traffic consumption while ensuring upgrade efficiency.
Smart Images

Figure CN118055378B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a shared vehicle upgrading method, device, electronic device and storage medium. Background Art
[0002] Due to the relatively complex functions and mobility of shared electric vehicles, in order to facilitate upgrades, Over-The-Air (OTA) is generally used. At present, since the operating vehicles are distributed in a wide area, the OTA method is usually to send OTA upgrade packages from the server to all devices to complete the device upgrade.
[0003] However, in the above solution, all vehicles need to use traffic to download OTA upgrade packages, which consumes a large amount of traffic costs. Summary of the invention
[0004] The embodiments of the present application provide a shared vehicle upgrade method, device, electronic device and storage medium to solve the problem that a large traffic cost is required when upgrading a shared vehicle.
[0005] In a first aspect, an embodiment of the present application provides a shared vehicle upgrade method, comprising:
[0006] Obtain the location information of the operating vehicle;
[0007] Clustering vehicles based on the location information of each operating vehicle to obtain at least one cluster;
[0008] Determine a target vehicle from the clusters, and send an over-the-air (OTA) upgrade package to the target vehicle;
[0009] Upon detecting a response signal returned by the target vehicle after completing the upgrade based on the OTA upgrade package, after controlling all operating vehicles in the cluster to start Bluetooth, the target vehicle is controlled to broadcast the OTA upgrade package to the remaining operating vehicles in the cluster based on Bluetooth.
[0010] In one embodiment, after controlling the target vehicle to broadcast the OTA upgrade package to other operating vehicles in the cluster based on Bluetooth for a preset time, it also includes:
[0011] Collect upgrade information of all operating vehicles;
[0012] If it is determined based on the upgrade information of all operating vehicles that the number of non-upgraded operating vehicles is less than a preset threshold, an OTA upgrade package is sent to each non-upgraded operating vehicle respectively.
[0013] In one embodiment, after controlling the target vehicle to broadcast the OTA upgrade package to other operating vehicles in the cluster based on Bluetooth, the method further includes:
[0014] When any other operating vehicles in the cluster where the target vehicle is located are detected, based on a response signal returned after the OTA upgrade package completes the upgrade, any other operating vehicle is controlled to broadcast the OTA upgrade package to the operating vehicles in the cluster where the target vehicle is located that have not completed the upgrade based on Bluetooth.
[0015] In one embodiment, obtaining the location information of the operating vehicle includes:
[0016] Determine the current moment;
[0017] If the current time is within the preset time range, the location information of the operating vehicles in the non-order state is obtained.
[0018] In one embodiment, after determining that the current time is within the preset time range, the method further includes:
[0019] Send OTA upgrade packages to operating vehicles in order status.
[0020] In one embodiment, determining the target vehicle from the clusters includes:
[0021] Determine the center point of the cluster;
[0022] An operating vehicle located at or closest to the center point is determined as a target vehicle.
[0023] In one embodiment, after sending the OTA upgrade package to the target vehicle, the method further includes:
[0024] If the upgrade indication information reported by the target vehicle based on the OTA upgrade package is received, the service of the target vehicle is suspended.
[0025] In a second aspect, an embodiment of the present application provides a shared vehicle upgrading device, comprising:
[0026] An acquisition module is used to obtain the location information of the operating vehicle;
[0027] A clustering module, used for clustering vehicles based on the location information of each operating vehicle to obtain at least one cluster;
[0028] A sending module, used for determining a target vehicle from the cluster, and sending an over-the-air upgrade OTA upgrade package to the target vehicle;
[0029] The control module is used to detect the response signal returned by the target vehicle after completing the upgrade based on the OTA upgrade package, and after controlling all operating vehicles in the cluster to start Bluetooth, control the target vehicle to broadcast the OTA upgrade package to the remaining operating vehicles in the cluster based on Bluetooth.
[0030] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory storing a computer program, wherein when the processor executes the program, the shared vehicle upgrade method described in the first aspect is implemented.
[0031] In a fourth aspect, an embodiment of the present application provides a storage medium, which is a computer-readable storage medium and includes a computer program. When the computer program is executed by a processor, the shared vehicle upgrade method described in the first aspect is implemented.
[0032] The shared vehicle upgrade method, device, electronic device and storage medium provided by the embodiment of the present application can obtain the location information of the operating vehicle, so that the vehicle can be clustered based on the location information of each operating vehicle to obtain at least one clustering cluster; and then after the target vehicle is determined from the clustering cluster, an over-the-air upgrade OTA upgrade package can be sent to the target vehicle, so that the target vehicle can be upgraded based on the OTA upgrade package; and when the response signal returned by the target vehicle after the upgrade is completed based on the OTA upgrade package is detected, all the operating vehicles in the clustering cluster are controlled to start Bluetooth, and then the target vehicle is controlled to broadcast the OTA upgrade package to the remaining operating vehicles in the clustering cluster based on Bluetooth, so that the remaining operating vehicles in the clustering cluster can be upgraded after receiving the OTA upgrade package. By clustering the vehicles and sending the OTA upgrade package to the target vehicle determined from the clustering cluster, after the target vehicle is upgraded, the target vehicle is controlled to broadcast the OTA upgrade package to the remaining operating vehicles in the clustering cluster, thereby avoiding the problem of consuming a large amount of traffic cost caused by sending the OTA upgrade package to all operating vehicles, and clustering can improve the efficiency of vehicle upgrades, so that the consumption of traffic costs can be reduced on the basis of ensuring the upgrade efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 It is a flowchart of a shared vehicle upgrade method provided in an embodiment of the present application; Figure 2 This is a functional module diagram of an embodiment of a shared vehicle upgrade device of the present application; Figure 3It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are 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 ordinary technicians in this field without creative work are within the scope of protection of this application. The shared vehicle upgrade method, device, electronic device and storage medium provided by the present application are described in detail below in conjunction with the embodiments. The following embodiments are used to illustrate the present application, but cannot be used to limit the scope of the present application.
[0036] In the description of the embodiments of the present application, it should be noted that the terms "center", "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right",
[0037] The orientations or positional relationships indicated by "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the embodiments of the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0038] In the description of the embodiments of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments of the present application can be understood according to specific circumstances.
[0039] In the embodiments of the present application, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0040] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiments of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0041] Figure 1 A flow chart of a shared vehicle upgrade method provided in an embodiment of the present application.
[0042] Reference Figure 1 , an embodiment of the present application provides a shared vehicle upgrade method, which may include:
[0043] Step 100, obtaining the location information of the operating vehicle;
[0044] It should be noted that the execution subject of the shared vehicle upgrade method provided in the embodiment of the present application may be a server or a computer device, such as a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. In the present application, the server may be used as the execution subject for example, but it does not mean that the execution subject in the present application can only be a server.
[0045] A shared vehicle upgrading device may be provided or connected to the server of the present application, so as to implement the shared vehicle upgrading method of the present application by controlling the shared vehicle upgrading device.
[0046] The operating vehicle in the present application may be a shared vehicle, and in a specific embodiment, may be a shared electric vehicle.
[0047] It will be appreciated that the server can communicate with all operating vehicles under its jurisdiction.
[0048] Furthermore, currently, when it is necessary to upgrade the software function, firmware version or system security patch of each operating vehicle, it is achieved by the server sending OTA upgrade packages to all operating vehicles respectively.
[0049] However, when the server sends OTA upgrade packages to all operating vehicles separately, all operating vehicles need to use data traffic to download the OTA upgrade packages and then upgrade, which will consume data traffic and increase operating costs.
[0050] In order to solve the above problems, in the present application, the server can obtain the location information of all operating vehicles under its jurisdiction, wherein the location information may be the coordinate information uploaded by the operating vehicle after positioning through its built-in positioning function.
[0051] It should be noted that in this application, the server can obtain the status information of all operating vehicles under its jurisdiction, and can judge whether the operating vehicle is in an order state or a non-order state through the status information. Among them, the order state is the state in which the operating vehicle is in use, and the non-order state is the state in which the operating vehicle is not in use.
[0052] Furthermore, in the present application, only the location information of operating vehicles that are not in an order status can be obtained.
[0053] Step 200, clustering vehicles based on the location information of each operating vehicle to obtain at least one cluster;
[0054] In the present application, all operating vehicles (in non-order status) can be classified according to the location information of each operating vehicle; for example, a pre-set clustering algorithm can be used to cluster the operating vehicles according to the location information of each operating vehicle, and the operating vehicles parked in the same area can be divided into the same cluster cluster, thereby all operating vehicles can be divided into at least one cluster cluster according to the parking area.
[0055] Step 300, determining a target vehicle from the clusters, and sending an OTA upgrade package to the target vehicle;
[0056] In the present application, for each cluster, an operating vehicle can be determined from the cluster as a target vehicle, where the target vehicle can also be called a seed device.
[0057] Seed devices are the first batch of devices (vehicles) to undergo OTA upgrades.
[0058] Furthermore, the server can send an OTA upgrade package to the target vehicle. The OTA upgrade package is a data package containing version information, upgrade data and other information generated according to actual needs. If there are multiple clusters, the server will send the OTA upgrade package to the target vehicle corresponding to each cluster.
[0059] It should be noted that after the server sends the OTA upgrade package to the target vehicle, the target vehicle needs to receive and upgrade the upgrade package through the traffic of the vehicle's built-in IoT card.
[0060] It should be noted that after receiving the OTA upgrade package, the target vehicle enters the upgrade process and reports an upgrade indication message to the server.
[0061] Furthermore, the target vehicle can determine whether the version information in the OTA upgrade package is higher than the current version. If not, the upgrade process is terminated; if so, the upgrade is performed and a response signal is returned to the server after the upgrade is completed.
[0062] Step 400, after detecting the response signal returned by the target vehicle after completing the upgrade based on the OTA upgrade package, after controlling all operating vehicles in the cluster to start Bluetooth, control the target vehicle to broadcast the OTA upgrade package to the remaining operating vehicles in the cluster based on Bluetooth.
[0063] If the server detects a response signal returned by the target vehicle after completing the upgrade based on the OTA upgrade package, it can first send a command to start Bluetooth to all operating vehicles in the cluster where the target vehicle is located, thereby controlling all operating vehicles in the cluster where the target vehicle is located to start Bluetooth.
[0064] Furthermore, the server can send a broadcast instruction of the OTA upgrade package to the target vehicle, and at the same time broadcast an instruction to start the Bluetooth upgrade mode to the remaining operating vehicles in the cluster where the target vehicle is located, thereby controlling the target vehicle to broadcast the OTA upgrade package to the remaining operating vehicles in the cluster based on Bluetooth. It should be noted that after starting the Bluetooth upgrade mode, the remaining operating vehicles in the cluster where the target vehicle is located will respond according to the information broadcast by the seed device. After the response, the two parties will establish a connection and obtain the OTA upgrade package from the seed device through Bluetooth. After obtaining the OTA upgrade package, the upgrade process of the remaining operating vehicles in the cluster where the target vehicle is located is the same as that of the seed device, and the server is reported to start the upgrade, and the server suspends its service. The original seed device will continue to broadcast after completing an OTA upgrade package transmission until no other device responds within the specified time. It should be noted that each of the remaining operating vehicles in the cluster where the target vehicle is located will return a response signal to the server after completing the upgrade based on the received OTA upgrade package.
[0065] The shared vehicle upgrade method provided in the embodiment of the present application obtains the location information of the operating vehicle, so that the vehicle can be clustered based on the location information of each operating vehicle to obtain at least one clustering cluster; and then after the target vehicle is determined from the clustering cluster, an over-the-air upgrade OTA upgrade package can be sent to the target vehicle, so that the target vehicle can be upgraded based on the OTA upgrade package; and when the response signal returned by the target vehicle after the upgrade is completed based on the OTA upgrade package is detected, all the operating vehicles in the clustering cluster are controlled to start Bluetooth, and then the target vehicle is controlled to broadcast the OTA upgrade package to the remaining operating vehicles in the clustering cluster based on Bluetooth, so that the remaining operating vehicles in the clustering cluster can be upgraded after receiving the OTA upgrade package. By clustering the vehicles and sending the OTA upgrade package to the target vehicle determined from the clustering cluster, after the target vehicle is upgraded, the target vehicle is controlled to broadcast the OTA upgrade package to the remaining operating vehicles in the clustering cluster, thereby avoiding the problem of consuming a large amount of traffic cost caused by sending the OTA upgrade package to all operating vehicles. Clustering can improve the efficiency of vehicle upgrades, so the consumption of traffic costs can be reduced on the basis of ensuring the upgrade efficiency.
[0066] In one embodiment, obtaining the location information of the operating vehicle includes:
[0067] Step 101, determining the current time;
[0068] Step 102: If the current time is within the preset time range, the location information of the operating vehicles in the non-order state is obtained.
[0069] Generally, shared electric vehicles may be in operation or at a station. In addition, fewer shared electric vehicles are used during the late night hours, so shared electric vehicles are generally concentrated in multiple stations in the operating area during the late night hours.
[0070] Therefore, the present application may pre-set a time range as the late night period.
[0071] Based on this, the server can obtain the current time and determine whether to start the vehicle upgrade process by comparing the current time with the preset time range.
[0072] Furthermore, if it is determined that the current time is within a preset time range, it is determined that the vehicle can be upgraded, so the status information of all operating vehicles can be obtained, and the location information of operating vehicles in a non-ordered state can be further obtained.
[0073] Further, after determining that the current time is within the preset time range, the method further includes:
[0074] Step 103: Send an OTA upgrade package to the operating vehicles in the order status.
[0075] After determining that the vehicle can be upgraded and obtaining the status information of all operating vehicles, this application can directly send OTA upgrade packages to operating vehicles in order status. The operating vehicles that receive the OTA upgrade package will first cache the OTA upgrade package and enter the upgrade mode after the order is completed. Among them, after the operating vehicle receives the OTA upgrade package, it can determine the integrity and legitimacy of the file based on the digital fingerprint obtained from the server, and upgrade after the integrity and legitimacy of the file are passed.
[0076] In this application, by performing vehicle upgrades in the late night and using different methods for order status vehicles and non-order status vehicles, on the one hand, it can avoid business problems caused by upgrade failures, and on the other hand, it can save more traffic. Therefore, it can effectively reduce network congestion, optimize bandwidth utilization, improve success rate, and save costs.
[0077] In one embodiment, determining a target vehicle from a cluster includes:
[0078] Step 301, determining the center point of the cluster;
[0079] Step 302: determine the operating vehicle located at the center point or closest to the center point as the target vehicle.
[0080] After obtaining at least one cluster, the present application can calculate the average value of the position information of all operating vehicles in each cluster, and further determine the center point of the cluster according to the calculated average value.
[0081] Furthermore, among all the operating vehicles in the cluster, the operating vehicle located at the center or closest to the center can be determined as the target vehicle, i.e., the seed device. This allows the OTA upgrade package to be sent to the target vehicle, and when the response signal returned by the target vehicle after completing the upgrade based on the OTA upgrade package is detected, after all the operating vehicles in the cluster are controlled to start Bluetooth, the target vehicle is controlled to broadcast the OTA upgrade package to the remaining operating vehicles in the cluster based on Bluetooth, thereby completing the vehicle upgrade.
[0082] The present application determines the operating vehicle located at the center point or closest to the center point in the cluster as the target vehicle. Since the distance between the target vehicle and the other operating vehicles is short, the speed and success rate of the target vehicle broadcasting the OTA upgrade package to the other operating vehicles can be improved, thereby helping to improve the efficiency of vehicle upgrades.
[0083] In one embodiment, after sending the OTA upgrade package to the target vehicle, the method further includes:
[0084] Step A: If the upgrade indication information reported by the target vehicle based on the OTA upgrade package is received, the service of the target vehicle is suspended.
[0085] In this application, if the server receives upgrade indication information reported by the target vehicle based on the OTA upgrade package, it can determine that the target vehicle is being upgraded, and therefore can suspend the service of the target vehicle being upgraded. After suspending the service of the target vehicle, if the user requests to use the vehicle, the server will reject the request and can output a prompt message that "the vehicle is being upgraded and is temporarily unavailable."
[0086] The present application suspends the vehicle service during the vehicle upgrade process to avoid upgrade failure due to vehicle operation or vehicle malfunction due to upgrade, thereby improving the success rate of vehicle upgrades and user experience.
[0087] In one embodiment, after controlling the target vehicle to broadcast the OTA upgrade package to other operating vehicles in the cluster based on Bluetooth, the method further includes:
[0088] Step 500, if any other operating vehicle in the cluster where the target vehicle is located is detected, based on the response signal returned after the OTA upgrade package completes the upgrade, any other operating vehicle is controlled to broadcast the OTA upgrade package to the operating vehicles in the cluster that have not completed the upgrade based on Bluetooth.
[0089] This application can also adopt a dissemination strategy, that is, after completing the OTA upgrade, all operating vehicles will enter the broadcast mode. For example, after the seed device is upgraded and the upgrade package is broadcast so that another operating vehicle also completes the upgrade, both operating vehicles are broadcasting the OTA upgrade package.
[0090] Specifically, after controlling the target vehicle to broadcast the OTA upgrade package to the remaining operating vehicles in the cluster where it is located based on Bluetooth, it is also possible to detect whether there is any other operating vehicle in the cluster where the target vehicle is located that has returned a response signal after completing the upgrade based on the OTA upgrade package. If it is detected that any other operating vehicle in the cluster where the target vehicle is located has returned a response signal after completing the upgrade based on the OTA upgrade package, then the operating vehicle (i.e., any other operating vehicle mentioned above) can also be used as a seed device. Therefore, the operating vehicle can be controlled to broadcast the OTA upgrade package to the operating vehicles in the cluster where it is located that have not completed the upgrade via Bluetooth.
[0091] In this application, by adopting a propagation strategy, the vehicle upgrade efficiency can be effectively improved.
[0092] In one embodiment, after controlling the target vehicle to broadcast the OTA upgrade package to other operating vehicles in the cluster based on Bluetooth for a preset time, it also includes:
[0093] Step 600, collecting statistics on the upgrade information of all operating vehicles;
[0094] Step 700: If it is determined based on the upgrade information of all operating vehicles that the number of non-upgraded operating vehicles is less than a preset threshold, an OTA upgrade package is sent to each non-upgraded operating vehicle.
[0095] After controlling the target vehicle to broadcast the OTA upgrade package to the other operating vehicles in the cluster based on Bluetooth for a preset period of time, the server of this application can count the upgrade information of all operating vehicles under its jurisdiction, thereby determining the number of operating vehicles that have not been upgraded.
[0096] Furthermore, the number of the non-upgraded operating vehicles may be compared with a preset number threshold, thereby determining the magnitude relationship between the number of the non-upgraded operating vehicles and the preset threshold.
[0097] If it is determined through comparison that the number of non-upgraded operating vehicles is less than the preset threshold, it can be determined that only a small number of operating vehicles have not completed the upgrade. Therefore, the OTA upgrade package can be directly sent to each non-upgraded operating vehicle, so that each non-upgraded operating vehicle can download the OTA upgrade package and upgrade.
[0098] It should be noted that if it is determined that the number of operating vehicles that have not been upgraded is greater than or equal to the preset threshold, it is determined that there is still a large proportion of operating vehicles that have not completed the upgrade. Therefore, the server can re-cluster according to the location information of the operating vehicles that have not been upgraded to obtain the corresponding clustering cluster, and determine a new target vehicle for each clustering cluster, and send the OTA upgrade package to the target vehicle. When the response signal returned by the new target vehicle after the upgrade is completed based on the OTA upgrade package is detected, after all the operating vehicles in the cluster are controlled to start Bluetooth, the new target vehicle is controlled to broadcast the OTA upgrade package to the remaining operating vehicles in the cluster based on Bluetooth, and so on, until all operating vehicles have completed the upgrade. It should be noted that in the process of re-clustering and upgrading, each operating vehicle that has completed the upgrade can also be controlled to broadcast the OTA upgrade package to the operating vehicles in the cluster that have not completed the upgrade.
[0099] This application can use different methods to upgrade non-upgraded operating vehicles according to the vehicle upgrade status within a preset time, thereby improving the vehicle upgrade efficiency.
[0100] Furthermore, the present application also provides a shared vehicle upgrading device.
[0101] Reference Figure 2 , Figure 2 This is a schematic diagram of the functional modules of an embodiment of a shared vehicle upgrading device of the present application.
[0102] The shared vehicle upgrading device comprises:
[0103] An acquisition module 210 is used to acquire the location information of the operating vehicle;
[0104] A clustering module 220, configured to cluster vehicles based on the location information of each operating vehicle to obtain at least one cluster;
[0105] A sending module 230, configured to determine a target vehicle from the clusters and send an over-the-air upgrade OTA upgrade package to the target vehicle;
[0106] The control module 240 is used to detect the response signal returned by the target vehicle after completing the upgrade based on the OTA upgrade package. After controlling all operating vehicles in the cluster to start Bluetooth, the target vehicle is controlled to broadcast the OTA upgrade package to the remaining operating vehicles in the cluster based on Bluetooth.
[0107] The shared vehicle upgrade device provided in the embodiment of the present application can cluster vehicles based on the location information of each operating vehicle by acquiring the location information of the operating vehicle, and obtain at least one clustering cluster; and then after determining the target vehicle from the clustering cluster, an over-the-air upgrade OTA upgrade package can be sent to the target vehicle, so that the target vehicle can be upgraded based on the OTA upgrade package; and when detecting the response signal returned by the target vehicle after completing the upgrade based on the OTA upgrade package, all operating vehicles in the clustering cluster are controlled to start Bluetooth, and then the target vehicle is controlled to broadcast the OTA upgrade package to the remaining operating vehicles in the clustering cluster based on Bluetooth, so that the remaining operating vehicles in the clustering cluster can be upgraded after receiving the OTA upgrade package. By clustering the vehicles and sending the OTA upgrade package to the target vehicle determined from the clustering cluster, after the target vehicle completes the upgrade, the target vehicle is controlled to broadcast the OTA upgrade package to the remaining operating vehicles in the clustering cluster, thereby avoiding the problem of consuming a large amount of traffic cost caused by sending the OTA upgrade package to all operating vehicles, and clustering can improve the efficiency of vehicle upgrades, so that the consumption of traffic costs can be reduced on the basis of ensuring the upgrade efficiency.
[0108] In one embodiment, the acquisition module 210 is specifically used for:
[0109] Determine the current moment;
[0110] If the current time is within the preset time range, the location information of the operating vehicles in the non-order state is obtained.
[0111] In one embodiment, the acquisition module 210 is further configured to:
[0112] Send OTA upgrade packages to operating vehicles in order status.
[0113] In one embodiment, the sending module 230 is specifically used for:
[0114] Determine the center point of the cluster;
[0115] An operating vehicle located at or closest to the center point is determined as a target vehicle.
[0116] In one embodiment, the sending module 230 is further used to:
[0117] If the upgrade indication information reported by the target vehicle based on the OTA upgrade package is received, the service of the target vehicle is suspended.
[0118] In one embodiment, the control module 240 is further configured to:
[0119] Collect upgrade information of all operating vehicles;
[0120] If it is determined based on the upgrade information of all operating vehicles that the number of non-upgraded operating vehicles is less than a preset threshold, an OTA upgrade package is sent to each non-upgraded operating vehicle respectively.
[0121] In one embodiment, the control module 240 is further configured to:
[0122] When any other operating vehicles in the cluster where the target vehicle is located are detected, based on a response signal returned after the OTA upgrade package completes the upgrade, any other operating vehicle is controlled to broadcast the OTA upgrade package to the operating vehicles in the cluster where the target vehicle is located that have not completed the upgrade based on Bluetooth.
[0123] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call a computer program in the memory 330 to execute the steps of the shared vehicle upgrade method, for example including:
[0124] Obtain the location information of operating vehicles;
[0125] Clustering vehicles based on the location information of each operating vehicle to obtain at least one cluster;
[0126] Determine a target vehicle from the clusters, and send an over-the-air (OTA) upgrade package to the target vehicle;
[0127] Upon detecting a response signal returned by the target vehicle after completing the upgrade based on the OTA upgrade package, after controlling all operating vehicles in the cluster to start Bluetooth, the target vehicle is controlled to broadcast the OTA upgrade package to the remaining operating vehicles in the cluster based on Bluetooth.
[0128] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0129] On the other hand, an embodiment of the present application further provides a storage medium, wherein the storage medium is a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program is used to enable a processor to execute the steps of the methods provided in the above embodiments, for example, including:
[0130] Obtain the location information of operating vehicles;
[0131] Clustering vehicles based on the location information of each operating vehicle to obtain at least one cluster;
[0132] Determine a target vehicle from the clusters, and send an over-the-air (OTA) upgrade package to the target vehicle;
[0133] Upon detecting a response signal returned by the target vehicle after completing the upgrade based on the OTA upgrade package, after controlling all operating vehicles in the cluster to start Bluetooth, the target vehicle is controlled to broadcast the OTA upgrade package to the remaining operating vehicles in the cluster based on Bluetooth.
[0134] The computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0135] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application. Ordinary technicians in this field can understand and implement them without creative work.
[0136] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A shared vehicle upgrade method, characterized in that: include: Obtain the location information of operating vehicles; Performing vehicle clustering based on the location information of each operating vehicle to obtain at least one cluster; Determine a target vehicle from the cluster, and send an over-the-air (OTA) upgrade package to the target vehicle; After detecting a response signal returned by the target vehicle after completing the upgrade based on the OTA upgrade package, after controlling all operating vehicles in the cluster to activate Bluetooth, control the target vehicle to broadcast the OTA upgrade package to the remaining operating vehicles in the cluster based on Bluetooth; After controlling the target vehicle to broadcast the OTA upgrade package to other operating vehicles in the cluster based on Bluetooth, the method further includes: Upon detecting any other operating vehicles in the cluster where the target vehicle is located, based on the response signal returned after the OTA upgrade package is completed, the any other operating vehicles are controlled to broadcast the OTA upgrade package to the operating vehicles in the cluster that have not completed the upgrade based on Bluetooth.
2. The shared vehicle upgrade method according to claim 1, characterized in that: After controlling the target vehicle to broadcast the OTA upgrade package to other operating vehicles in the cluster based on Bluetooth for a preset time period, the method further includes: Collect upgrade information of all operating vehicles; If it is determined based on the upgrade information of all operating vehicles that the number of non-upgraded operating vehicles is less than a preset threshold, an OTA upgrade package is sent to each non-upgraded operating vehicle respectively.
3. The shared vehicle upgrade method according to claim 1, characterized in that: The obtaining of the location information of the operating vehicle includes: Determine the current moment; If the current time is within the preset time range, the location information of the operating vehicles in the non-order state is obtained.
4. The shared vehicle upgrade method according to claim 3, characterized in that: After determining that the current time is within the preset time range, it also includes: Send OTA upgrade packages to operating vehicles in order status.
5. The shared vehicle upgrade method according to claim 1, characterized in that: Determining a target vehicle from the clusters includes: Determining the center point of the cluster; An operating vehicle located at or closest to the center point is determined as a target vehicle.
6. The shared vehicle upgrade method according to any one of claims 1 to 5, characterized in that: After sending the OTA upgrade package to the target vehicle, the method further includes: If the upgrade indication information reported by the target vehicle based on the OTA upgrade package is received, the service of the target vehicle is suspended.
7. A shared vehicle upgrade device, characterized in that: include: Acquisition module, used to obtain the location information of operating vehicles; A clustering module, configured to cluster vehicles based on the location information of each operating vehicle to obtain at least one cluster; A sending module, configured to determine a target vehicle from the cluster and send an over-the-air (OTA) upgrade package to the target vehicle; a control module configured to detect a response signal returned by the target vehicle after completing the upgrade based on the OTA upgrade package, and then control all operating vehicles in the cluster to activate Bluetooth, and then control the target vehicle to broadcast the OTA upgrade package to the remaining operating vehicles in the cluster based on Bluetooth; The control module is also used to detect any other operating vehicles in the cluster where the target vehicle is located, and based on the response signal returned after the OTA upgrade package is completed, control any other operating vehicle to broadcast the OTA upgrade package to the operating vehicles in the cluster that have not completed the upgrade based on Bluetooth.
8. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the shared vehicle upgrading method according to any one of claims 1 to 6 is implemented.
9. A storage medium, which is a computer-readable storage medium and includes a computer program, characterized in that: When the computer program is executed by a processor, the shared vehicle upgrading method according to any one of claims 1 to 6 is implemented.
