Resource package updating method and device for shared vehicle, computer device and medium

By managing the riding fence area of ​​shared vehicles through a server, the updated resource package is sent only to the first vehicle. The second vehicle downloads the resource package from the updated vehicle, which solves the problem of high update costs for shared vehicles and achieves stable and low-cost resource package updates.

CN115640031BActive Publication Date: 2025-10-21NINGBO XIAOLIU SHARING INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211357089.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-01
Publication Date
2025-10-21
Estimated Expiration
2042-11-01

AI Technical Summary

Technical Problem

Updating resource packages for shared vehicles involves a large amount of data changes, resulting in high mobile data traffic consumption and high update costs.

Method used

By managing the shared vehicle riding fence area through the server, the latest resource package is only sent to the first vehicle. After the first vehicle completes the update, the second vehicle communicates with nearby updated vehicles to download the latest resource package, reducing server load and traffic costs.

Benefits of technology

This reduced the traffic and communication costs of resource package updates, ensured stable updates for shared vehicles, and reduced server load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115640031B_ABST
    Figure CN115640031B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a resource package updating method and device for shared vehicles, computer equipment and a medium, and relate to the field of shared vehicles. The method comprises the following steps: receiving a communication request of a first vehicle, reading a first resource package version number, and determining a riding fence area to which the first vehicle belongs; if the first resource package version number is outdated, sending the latest resource package to the first vehicle; receiving a communication request of a second vehicle, reading a second resource package version number, and determining a second riding fence area to which the second vehicle belongs; if the first vehicle in the second riding fence area has been updated and the second resource package version number is outdated, determining vehicles within a preset range according to the position of the second vehicle; taking a vehicle with a target resource package version number, an idle state and belonging to the second riding fence area as a target vehicle, and sending connection information of the target vehicle to the second vehicle. Thus, all shared vehicles do not need to download resource packages from the server, and the resource package updating cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of shared vehicles, and in particular to a method, device, computer equipment and medium for updating a resource package of a shared vehicle. Background Art

[0002] Due to changes in customer needs, the firmware data, voice data and other data in the shared vehicle also need to be updated accordingly.

[0003] However, because current shared vehicles need to be equipped with more functional modules, each update of the resource package involves a large amount of data changes. As a result, updating the resource packages of all shared vehicles will consume a large amount of mobile data traffic, and the cost of updating is relatively high. Summary of the Invention

[0004] In view of this, the present invention provides a resource package update method, device, computer equipment and medium for shared vehicles to improve the current situation where each update of the resource package involves a large number of data changes, and thus the update of the resource packages of all shared vehicles will consume a large amount of mobile data traffic, and the cost required for the update is high.

[0005] In a first aspect, an embodiment of the present invention provides a resource package update method for a shared vehicle, which is applied to a server, wherein the server stores the latest resource package corresponding to each riding fence area and the target resource package version number of the latest resource package. Each shared vehicle within the riding fence area includes a first vehicle and a second vehicle. The method includes:

[0006] When receiving a first communication request sent by the first vehicle, reading a first resource package version number in the first communication request, and determining a first riding fence area to which the first vehicle belongs;

[0007] If the version number of the first resource package is lower than the target resource package version number corresponding to the first riding fence area, sending the latest resource package corresponding to the first riding fence area to the first vehicle, wherein the first vehicle is configured to update the local resource package and resource package version number according to the received latest resource package;

[0008] When receiving the second communication request sent by the second vehicle, reading the second resource package version number in the second communication request, and determining the second riding fence area to which the second vehicle belongs;

[0009] If the second riding fence area is the same as the first riding fence area, and the second resource package version number is lower than the target resource package version number corresponding to the second riding fence area, then obtaining the position of the second vehicle, and determining optional vehicles within a preset range of the second vehicle based on the position;

[0010] The optional vehicle having a resource pack version number corresponding to the second riding fence area, an idle state, and belonging to the second riding fence area is used as the target vehicle;

[0011] The connection information of the target vehicle is sent to the second vehicle, wherein the second vehicle is used to establish a communication connection with the target vehicle based on the connection information, and download the latest resource package corresponding to the second riding fence area from the target vehicle after the communication connection is established, and use the downloaded latest resource package to update the local resource package and resource package version number.

[0012] In the resource package update method for a shared vehicle provided by an embodiment of the present invention, the server first reads the first resource package version number in the first communication request received from the first vehicle, and determines the riding fence area to which the first vehicle belongs; then, if it is determined that the first resource package version number is lower than the target resource package version number corresponding to the first riding fence area based on the latest resource package corresponding to each riding fence area and the target resource package version number of the latest resource package that have been acquired and stored in advance, the latest resource package corresponding to the first riding fence area is sent to the first vehicle, so that the first vehicle completes the update of the local resource package and resource package version number; subsequently, when the server receives the second communication request sent by the second vehicle, it will read the second resource package version number in the second communication request and determine the second riding fence area to which the second vehicle belongs; thereafter, if the first vehicle in the second riding fence area Updated, that is, the updated first vehicle and the second vehicle belong to the same riding fence area, and the server determines that the second resource package version number is lower than the target resource package version number corresponding to the second riding fence area based on the pre-stored latest resource package and the version number of the latest resource package, then obtains and determines the vehicles near the second vehicle based on the position of the second vehicle, that is, the optional vehicles within the preset range of the second vehicle; then, from all the optional vehicles, select an optional vehicle whose resource package version number is the target resource package version number corresponding to the second riding fence area, whose status is idle and belongs to the second riding fence area, and use it as the target vehicle corresponding to the second vehicle; finally, send the connection information of the target vehicle to the second vehicle, so that the second vehicle knows the target vehicle and establishes a connection with the second vehicle, thereby completing the update according to the latest resource package in the second vehicle.

[0013] Based on this, the embodiment of the present invention is based on the first vehicle communicating with the server and completing the resource package update first, and the second vehicle then communicates with any other vehicle that has completed the resource package update and completes the resource package update, thereby avoiding the situation where all shared vehicles need to download the resource package from the server, which in turn leads to high traffic costs / communication costs, and reduces the resource package update cost; at the same time, because the server only needs to send the resource package to the first vehicle, the probability of the server needing to send resource packages to multiple shared vehicles in a short period of time is reduced, thereby reducing the server load.

[0014] Optionally, in an implementation manner provided by an embodiment of the present invention, when receiving the first communication request sent by the first vehicle, before reading the first resource package version number in the first communication request and determining the first riding fence area to which the first vehicle belongs, the method further includes:

[0015] Determine the Internet of Things card traffic quota for each of the shared vehicles within the vehicle riding fence area;

[0016] For each of the vehicle riding fence areas, a shared vehicle whose IoT card traffic quota in the vehicle riding fence area is greater than or equal to a preset value is set as the first vehicle in the vehicle riding fence area, and the remaining shared vehicles in the vehicle riding fence area are set as the second vehicle in the vehicle riding fence area.

[0017] Under this implementation mode, the beneficial effects that can be achieved by the embodiment of the present invention include: ensuring that the Internet of Things card traffic of the first vehicle can support the first vehicle to download more resource packages from the server, ensuring the normal update of the resource package of the first vehicle, and thus ensuring that the subsequent update of the second vehicle can also proceed normally.

[0018] Optionally, in an implementation manner provided by an embodiment of the present invention, after sending the connection information of the target vehicle to the second vehicle, the method further includes:

[0019] If a connection failure message sent by the second vehicle is received, marking the target vehicle;

[0020] The optional vehicle whose resource pack version number is the target resource pack version number corresponding to the second riding fence area, whose status is idle, belongs to the second riding fence area and is not marked is used as a new target vehicle;

[0021] The connection information of the new target vehicle is sent to the second vehicle.

[0022] Under this implementation mode, the beneficial effects that can be achieved by the embodiment of the present invention include: even if the target vehicle cannot establish a communication connection with the second vehicle due to geographical factors / environmental factors, the server enables the second vehicle to be updated through other optional vehicles, ensuring that the resource package of the second vehicle is effectively updated.

[0023] Optionally, in an implementation manner provided by an embodiment of the present invention, the server stores the resource package version number of each shared vehicle and the resource update status bit corresponding to each riding fence area, and the server is further used to update the locally stored resource package version number according to the first resource package version number in the first communication request or the second resource package version number in the second communication request;

[0024] When receiving the first communication request sent by the first vehicle, before reading the first resource package version number in the first communication request and determining the first riding fence area to which the first vehicle belongs, the method further includes:

[0025] Setting the resource update status bit corresponding to each riding fence area to a first value;

[0026] When receiving the second communication request sent by the second vehicle, reading the second resource package version number in the second communication request and determining the second riding fence area to which the second vehicle belongs, the method includes:

[0027] If the resource package version numbers of all shared vehicles in the second riding fence area are updated to the target resource package version number, the resource update status bit corresponding to the second riding fence area is set to a second value;

[0028] If the resource update status bit corresponding to the second riding fence area is a first value, and the second riding fence area is the same as the first riding fence area, and the second resource package version number is lower than the target resource package version number corresponding to the second riding fence area, then the position of the second vehicle is obtained, and the optional vehicles within the preset range of the second vehicle are determined according to the position.

[0029] In this implementation manner, the beneficial effects that can be achieved by the embodiment of the present invention include: enabling the resource package update status of each shared vehicle to be monitored, and ensuring the stable update of the resource package of the second vehicle.

[0030] Optionally, in an implementation manner provided in an embodiment of the present invention, the method further includes:

[0031] For each riding fence area, the low-peak usage period of all shared vehicles in the riding fence area is determined according to the usage time of all shared vehicles in the riding fence area, and the low-peak usage period is set as the resource package update period corresponding to the riding fence area.

[0032] In this implementation manner, the beneficial effects that can be achieved by the embodiment of the present invention include: enabling the downloading of the resource package of the second vehicle to proceed stably, thereby ensuring stable updating of the resource package of the second vehicle.

[0033] Optionally, in an implementation manner provided by an embodiment of the present invention, the first vehicle receives the latest resource package sent by the server based on mobile communication technology, and the second vehicle establishes a communication connection with the target vehicle based on short-range wireless communication technology.

[0034] In this implementation manner, the beneficial effects that can be achieved by the embodiment of the present invention include: further reducing the traffic cost required for resource package updates.

[0035] Optionally, in an implementation manner provided by an embodiment of the present invention, the short-range wireless communication technology is Bluetooth technology, and the connection information includes the Bluetooth address and Bluetooth password of the target vehicle.

[0036] In this implementation mode, the beneficial effects that can be achieved by the embodiments of the present invention include: enabling communication between vehicles to be carried out based on the widely used and mature Bluetooth technology, thereby ensuring stable communication between vehicles and stable transmission of resource packages.

[0037] In a second aspect, an embodiment of the present invention provides a resource package update device for a shared vehicle, which is applied to a server. The server stores the latest resource package corresponding to each riding fence area and the target resource package version number of the latest resource package. Each shared vehicle within the riding fence area includes a first vehicle and a second vehicle. The device includes:

[0038] a first reading module, configured to, upon receiving a first communication request sent by the first vehicle, read a first resource package version number in the first communication request and determine a first riding fence area to which the first vehicle belongs;

[0039] A first sending module is configured to send the latest resource package corresponding to the first riding fence area to the first vehicle if the version number of the first resource package is lower than the target resource package version number corresponding to the first riding fence area, wherein the first vehicle is configured to update the local resource package and resource package version number according to the received latest resource package;

[0040] a second reading module, configured to, upon receiving a second communication request sent by the second vehicle, read a second resource package version number in the second communication request and determine a second riding fence area to which the second vehicle belongs;

[0041] a vehicle determination module, configured to obtain a position of the second vehicle if the second riding fence area is the same as the first riding fence area and the second resource package version number is lower than the target resource package version number corresponding to the second riding fence area, and determine optional vehicles within a preset range of the second vehicle based on the position;

[0042] A vehicle selection module is configured to select as a target vehicle a vehicle whose resource package version number is the target resource package version number corresponding to the second riding fence area, whose status is idle and which belongs to the second riding fence area;

[0043] The second sending module is used to send the connection information of the target vehicle to the second vehicle, wherein the second vehicle is used to establish a communication connection with the target vehicle based on the connection information, and download the latest resource package corresponding to the second riding fence area from the target vehicle after the communication connection is established, and use the downloaded latest resource package to update the local resource package and resource package version number.

[0044] In a third aspect, an embodiment of the present invention provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, it executes a resource package update method for a shared vehicle as disclosed in any one of the first aspects.

[0045] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program runs on a processor, it executes a resource package update method for a shared vehicle as disclosed in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.

[0047] Figure 1 A schematic flow chart showing a first method for updating a resource package of a shared vehicle provided by an embodiment of the present invention is shown;

[0048] Figure 2 A schematic flow chart showing a second method for updating a resource package of a shared vehicle provided by an embodiment of the present invention is shown;

[0049] Figure 3 A schematic flow chart showing a third method for updating a resource package of a shared vehicle provided in an embodiment of the present invention is shown;

[0050] Figure 4 A schematic structural diagram of a resource package updating device for a shared vehicle provided in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0052] The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the figures is not intended to limit the scope of the claimed invention, but rather merely represents selected embodiments of the present invention. All other embodiments derived by those skilled in the art based on the embodiments of the present invention without inventive effort are intended to be within the scope of protection of the present invention.

[0053] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or the possibility of adding one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.

[0054] Furthermore, the terms “first,” “second,” “third,” etc., are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

[0055] Unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by those skilled in the art to which the various embodiments of the present invention pertain. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meaning as in the context of the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning unless clearly defined in the various embodiments of the present invention.

[0056] Reference Figure 1 , Figure 1A flow chart of the first shared vehicle resource package update method provided by an embodiment of the present invention is shown. The shared vehicle resource package update method provided by an embodiment of the present invention is applied to a server, and the server stores the latest resource package corresponding to each riding fence area and the target resource package version number of the latest resource package. Each shared vehicle within the riding fence area includes a first vehicle and a second vehicle.

[0057] It is understandable that in the prior art, when a shared vehicle is located within the riding fence area, the shared vehicle can be unlocked, locked, ridden, etc. normally by the user, but when the shared vehicle is located outside the riding fence area, the shared vehicle cannot respond to any requests / operations of the user.

[0058] Furthermore, the server in the embodiment of the present invention is used to manage the upgrade of shared vehicles in multiple riding fence areas.

[0059] It can also be understood that the resource package in the embodiment of the present invention refers to the central control firmware resources, voice package resources and other resources carried by the shared vehicle.

[0060] It is conceivable that there are differences in the firmware resources and / or voice resources of shared vehicles in different riding fence areas. If the two riding fence areas belong to two provincial capitals respectively, then due to the differences in local dialects, the shared vehicles in the two riding fence areas are equipped with voice resources of different dialects.

[0061] Therefore, to ensure that the server can correctly execute resource pack updates, the server in this embodiment of the present invention will store the correspondence between riding fence areas, resource packs, and resource pack version numbers. In other words, the server may store the resource pack corresponding to each riding fence area and the resource pack version number of the resource pack. In particular, one riding fence area corresponds to multiple resource packs, and each resource pack has a resource pack version number.

[0062] Therefore, before updating the resource packages of the riding fence areas, the server in the embodiment of the present invention will store the latest resource package corresponding to each riding fence area and the target resource package version number of the latest resource package.

[0063] It should be noted that in an embodiment of the present invention, shared vehicles within any riding fence area will be divided into the first vehicle or the second vehicle, wherein the resource package update time of the first vehicle within any riding fence area will be earlier than the resource package update time of the second vehicle.

[0064] Based on this, the method for updating the resource package of a shared vehicle provided by an embodiment of the present invention includes:

[0065] Step S110 : When a first communication request sent by the first vehicle is received, a first resource package version number in the first communication request is read, and a first riding fence area to which the first vehicle belongs is determined.

[0066] It should be noted that when the shared vehicle in the embodiment of the present invention communicates with the server, it will inform the server of its own vehicle number and the version number of the resource package it carries. That is, the communication request sent by the shared vehicle to the server carries its own vehicle number and the version number of the resource package it carries.

[0067] Therefore, when the server receives a communication request sent by any shared vehicle, such as receiving the first communication request sent by the first vehicle, it will read the vehicle number in the first communication request to determine the first vehicle, and read the first resource package version number in the first communication request to determine the resource package version of the first vehicle.

[0068] At the same time, since each shared vehicle belongs to a different riding fence area, and the resource packages / latest resource packages corresponding to different riding fence areas may be inconsistent, the embodiment of the present invention will also determine the riding fence area to which the first vehicle belongs, so as to determine its corresponding latest resource package according to the riding fence area to which it belongs.

[0069] It is understandable that the method / steps for determining the riding fence area to which a shared vehicle belongs can be set according to actual conditions, and the embodiments of the present invention do not impose any limitations on this.

[0070] Furthermore, it should be understood that a communication request is a data packet sent by a shared vehicle when it needs to perform any function or action with a server. The present invention does not limit the timing of when a shared vehicle generates and sends a communication request. For example, in one embodiment, a shared vehicle may send a communication request to the server upon receiving a user-triggered vehicle unlock or lock. In another embodiment, a shared vehicle may periodically send a communication request containing its own location information to the server to facilitate positioning.

[0071] Step S120: If the version number of the first resource package is lower than the target resource package version number corresponding to the first riding fence area, the latest resource package corresponding to the first riding fence area is sent to the first vehicle, wherein the first vehicle is used to update the local resource package and resource package version number according to the received latest resource package.

[0072] That is, after the server determines the first resource package version number of the first vehicle and the first riding fence area to which it belongs, it will judge whether the version of the resource package carried by the first vehicle is too low based on the target resource package version number of the latest resource package corresponding to the first riding fence area stored in itself.

[0073] If so, the server will not only execute the service operation corresponding to the first communication request, but also send the latest resource package corresponding to the first riding fence area to the first vehicle, so that the first vehicle can update the resource package and the resource package version number.

[0074] If not, the server only executes the service operation corresponding to the first communication request.

[0075] In addition, it should be noted that the server in the embodiment of the present invention only sends the latest resource package to the first vehicle, so that the first vehicle updates the resource package and the resource package version number.

[0076] Step S130: When the second communication request sent by the second vehicle is received, the second resource package version number in the second communication request is read, and the second riding fence area to which the second vehicle belongs is determined.

[0077] That is, when the second vehicle sends a second communication request to the server, the server reads the vehicle ID and resource pack version number in the second communication request to determine the second vehicle and the version of the resource pack installed on the second vehicle. Simultaneously, the server also determines the second riding fence area to which the second vehicle belongs.

[0078] Step S140: If the second riding fence area is the same as the first riding fence area, and the second resource package version number is lower than the target resource package version number corresponding to the second riding fence area, the position of the second vehicle is obtained, and the optional vehicles within the preset range of the second vehicle are determined according to the position.

[0079] That is, the server sends the latest resource package to the first vehicle in the first riding fence area so that after the first vehicle completes the update, if it receives a communication request sent by the second vehicle in the first riding fence area, it will determine whether the target resource package version number of the latest resource package corresponding to the second riding fence area stored in itself is higher than the second resource package version number.

[0080] If yes, it indicates that the resource package carried by the second vehicle is outdated and needs to be updated. If no, it indicates that the resource package carried by the second vehicle is the latest resource package and does not need to be updated.

[0081] It can be understood that since the second vehicle in the embodiment of the present invention will obtain the latest resource package from other vehicles to complete the update, and the resource packages in different riding fence areas are different / common, the update of the second vehicle in the embodiment of the present invention needs to depend on the completion of the update of the first vehicle in the same riding fence area.

[0082] It can also be understood that if all shared vehicles need to download resource packages from the server to update the resource packages, the update of the resource packages of all shared vehicles will consume higher mobile data traffic / IoT traffic, that is, the update cost is higher; at the same time, if a large number of shared vehicles download the latest resource packages from the server at the same time, it will cause the server to bear a large load at the same time, and there is a risk of downtime.

[0083] Based on this scenario, in an embodiment of the present invention, only the first vehicle can download the resource package from the server, while the second vehicle will complete the resource package download and update based on inter-vehicle communication. Specifically, when the server determines that the first vehicle in a vehicle riding fence has completed the update and the resource package on the second vehicle needs to be updated, it will search for other vehicles nearby / within a preset range based on the acquired location of the second vehicle. Subsequently, the server will control the second vehicle to communicate with nearby vehicles to download the latest resource package from them.

[0084] Step S150: A selectable vehicle having a resource package version number corresponding to the second riding fence area, an idle state, and belonging to the second riding fence area is used as a target vehicle.

[0085] That is, after determining the available vehicles near the second vehicle based on the second vehicle's position, the server obtains the resource package version number, status, and riding fence area of ​​each available vehicle. Then, the available vehicle whose resource package version number is the target resource package version number corresponding to the second riding fence area, whose status is idle, and which belongs to the second riding fence area is used as the target vehicle for the second vehicle.

[0086] It is understood that in the prior art, shared vehicle states typically include Idle and Occupied. Idle indicates that the vehicle is available for use by any user at any time, while Occupied indicates that the vehicle is malfunctioning or currently in use by another user. Therefore, when the status is Idle, it indicates that the shared vehicle will not move in the immediate future. Consequently, communication between the second vehicle and the target vehicle will not be affected by changes in the distance between the vehicles. Therefore, in this embodiment of the present invention, an Idle vehicle is selected as the target vehicle.

[0087] Step S160: Send the connection information of the target vehicle to the second vehicle, wherein the second vehicle is used to establish a communication connection with the target vehicle based on the connection information, and download the latest resource package corresponding to the second riding fence area from the target vehicle after the communication connection is established, and use the downloaded latest resource package to update the local resource package and resource package version number.

[0088] That is, the server sends the connection information of the target vehicle to the second vehicle, so that the second vehicle establishes a communication connection with the target vehicle according to the connection information. After the communication connection is established, the second vehicle downloads the latest resource package corresponding to the second riding fence area from the target vehicle, and completes the update of the local / self-owned resource package and resource package version number based on the downloaded latest resource package.

[0089] It is understandable that the specific process of determining the target vehicle in the embodiment of the present invention can be set according to actual conditions. Exemplarily, in a feasible method provided by the embodiment of the present invention, the specific process of determining the target vehicle includes: after the server determines the optional vehicle, it sends an information reporting instruction to all optional vehicles; after the optional vehicle receives the information reporting instruction, it sends its own location, status, vehicle number, version number of the resource package carried, and the riding fence area to which it belongs to to the server; the server at each level calculates the location, resource package version number, and riding fence area of ​​each optional vehicle, selects the optional vehicle whose resource package version number is the target resource package version number corresponding to the second riding fence area, whose status is idle, and belongs to the second riding fence area, and then uses it as the target vehicle.

[0090] In a feasible method provided by an embodiment of the present invention, the server stores the real-time status, vehicle number, real-time location, riding fence area to which it belongs, and resource package version number of the resource package carried by each shared vehicle. After the server determines the optional vehicle, it will select the optional vehicle that meets the above conditions as the target vehicle based on the data stored in itself.

[0091] Optionally, in a preferred embodiment, to ensure stable communication between vehicles, the target vehicle is an optional vehicle that is closest to the second vehicle, has a resource package version number corresponding to the target resource package version number of the second riding fence area, is in an idle state, and belongs to the second riding fence area.

[0092] In addition, it can be understood that the connection information in the embodiment of the present invention is used to enable the second vehicle to know and connect to the target vehicle. For example, if the vehicle-to-vehicle communication is implemented based on the Bluetooth communication protocol / technology, the connection information is the Bluetooth address and Bluetooth password of the target vehicle, and then the second vehicle establishes communication with the target vehicle based on the Bluetooth address and Bluetooth password.

[0093] In addition, it can also be understood that the resource package update of the first vehicle and the second vehicle in any vehicle riding fence in the embodiment of the present invention can be completed through the aforementioned steps S110 to S160, that is, for each vehicle in the vehicle riding fence, after the server establishes communication with the first vehicle and completes the update, the server sends connection information to the second vehicle, so that the second vehicle establishes communication with the updated vehicle to complete the update, thereby completing the resource package update / upgrade of all shared vehicles in the vehicle riding fence.

[0094] It is conceivable that the vehicle resource pack updates of any two vehicle riding fences will be performed independently, and the two will not affect each other. For example, assuming there are vehicle riding fences A and vehicle riding fences B, and there are multiple first vehicles C in vehicle riding fence A. A1 and multiple second vehicles C A2 , there are multiple first vehicles C in the vehicle riding fence B B1 and multiple second vehicles C B2 , then: C A1 After the update is complete, C A2 Update resource pack, C B2 No resource pack update operation is performed; in C A1 and C B1 After the update is completed, C A2 Updates to C A1 or C that has completed the update A2 , C B2 Updates to C B1 or C that has completed the update B2 .

[0095] Based on this, the embodiment of the present invention is based on the first vehicle communicating with the server and completing the resource package update first, and the second vehicle then communicates with any other vehicle that has completed the resource package update and completes the resource package update, thereby avoiding the situation where all shared vehicles need to download the resource package from the server, which in turn leads to high traffic costs / communication costs, and reduces the resource package update cost; at the same time, because the server only needs to send the resource package to the first vehicle, the probability of the server needing to send resource packages to multiple shared vehicles in a short period of time is reduced, thereby reducing the server load.

[0096] Optionally, in a feasible method provided in an embodiment of the present invention, please refer to Figure 2 , which shows a flow chart of a second method for updating a resource package of a shared vehicle provided by an embodiment of the present invention. In this feasible manner, before step S110, the method further includes:

[0097] Step S170, determining the Internet of Things card traffic quota of each of the shared vehicles within the vehicle riding fence area;

[0098] Step S180, for each of the vehicle riding fence areas, set the shared vehicle in the vehicle riding fence area whose IoT card traffic quota is greater than or equal to a preset value as the first vehicle in the vehicle riding fence area, and set the remaining shared vehicles in the vehicle riding fence area as the second vehicle in the vehicle riding fence area.

[0099] It should be noted that each shared vehicle in this feasible method is equipped with an IoT card, so each shared vehicle can communicate with the server and obtain relevant data from the server. However, the data packages of the IoT cards installed in different shared vehicles vary. The data packages corresponding to some shared vehicles support more data usage, while the data packages corresponding to other vehicles support less data usage.

[0100] It should also be noted that if the traffic package corresponding to the shared vehicle supports more traffic usage, it means that the shared vehicle can not only complete daily business communications with the server, but also download data packets from the server multiple times; if the corresponding traffic package only supports less traffic usage, it means that the shared vehicle can only complete daily business communications with the server, or can only download data from the server fewer times.

[0101] In addition, it is understandable that the traffic package corresponding to each shared vehicle will change according to the adjustments made by the operator. For example, a shared vehicle may have a large traffic package last month, but may change to a small traffic package next month.

[0102] Based on the above situation, the server in the embodiment of the present invention will first divide the shared vehicle into the first vehicle or the second vehicle according to the traffic package corresponding to the shared vehicle before performing the update operation, that is, the shared vehicle will be divided according to the traffic quota of the shared vehicle's Internet of Things card.

[0103] It is not difficult to understand that if the Internet of Things card traffic quota of a shared vehicle is higher, the shared vehicle should be classified as the first vehicle, and if the Internet of Things card traffic quota is lower, it should be classified as the second vehicle.

[0104] Therefore, for each vehicle riding fence area, the embodiment of the present invention will determine whether the IoT card data quota of each shared vehicle in the vehicle riding fence area is greater than or equal to a preset value. If so, the shared vehicle is classified as a first vehicle; if not, it is classified as a second vehicle.

[0105] Based on this, the embodiment of the present invention ensures that the Internet of Things card traffic of the first vehicle can support the first vehicle to download more resource packages from the server, ensuring the normal update of the resource package of the first vehicle, thereby ensuring that the subsequent update of the second vehicle can also proceed normally.

[0106] In addition, it is conceivable that the server records the vehicle numbers of all shared vehicles. Therefore, after the shared vehicle corresponding to any vehicle number is set as the first vehicle, the server will determine whether the sender of the received communication request is the first vehicle based on the numbers of all first vehicles.

[0107] Optionally, in an implementation manner provided in an embodiment of the present invention, specific reference may be made to Figure 3 , which shows a flow chart of a third method for updating a resource package of a shared vehicle provided by an embodiment of the present invention. In this feasible manner, after step S160, the method further includes:

[0108] Step S190: if the connection failure information sent by the second vehicle is received, the target vehicle is marked;

[0109] Step S200: taking as a new target vehicle an optional vehicle whose resource package version number is the target resource package version number corresponding to the second riding fence area, whose status is idle, belongs to the second riding fence area, and is not marked;

[0110] Step S210: Send the connection information of the new target vehicle to the second vehicle.

[0111] It is understandable that when the second vehicle in the embodiment of the present invention attempts to establish a connection with the target vehicle based on the connection information, if the target vehicle cannot respond for a long time, resulting in a connection failure, or the connection fails due to other reasons, the second vehicle will generate a connection failure message and send the connection failure message to the server.

[0112] After receiving the connection failure information sent by the second vehicle, the server marks the target vehicle corresponding to the second vehicle so that it cannot be used as the target vehicle of the second vehicle again. It is easy to understand that all shared vehicles are defaulted to being unmarked.

[0113] Subsequently, the server again selects an optional vehicle from the optional vehicles near the second vehicle whose resource package version, status, riding fence area and marking status all meet the above conditions, and uses it as the new target vehicle for the second vehicle, and sends the connection information of the new target vehicle to the second vehicle, so that the second vehicle can execute communication establishment and resource package download according to the new connection information.

[0114] Therefore, even if the target vehicle cannot establish a communication connection with the second vehicle due to geographical / environmental factors, the server enables the second vehicle to be updated through other optional vehicles, ensuring that the resource package of the second vehicle is effectively updated.

[0115] Optionally, in order to further reduce the load on the server, an embodiment of the present invention provides a preferred method in which the second vehicle will attempt to establish a communication connection with the target vehicle using the connection information for a preset number of times. If the preset number of attempts fail, the second vehicle will generate a connection failure message and send the connection failure message to the server.

[0116] Optionally, in a feasible manner provided by an embodiment of the present invention, the server stores the resource package version number of each shared vehicle and the resource update status bit corresponding to each riding fence area, and the server is further used to update the locally stored resource package version number according to the first resource package version number and the second resource package version number in the first communication request or the second communication request;

[0117] Furthermore, before step S110, the method further includes:

[0118] Setting the resource update status bit corresponding to each riding fence area to a first value;

[0119] Furthermore, after step S130, the method includes:

[0120] If the resource package version numbers of all shared vehicles in the second riding fence area are updated to the target resource package version number, the resource update status bit corresponding to the second riding fence area is set to a second value;

[0121] If the resource update status bit corresponding to the second riding fence area is a first value, and the second riding fence area is the same as the first riding fence area, and the second resource package version number is lower than the target resource package version number corresponding to the second riding fence area, then the position of the second vehicle is obtained, and the optional vehicles within the preset range of the second vehicle are determined according to the position.

[0122] That is, the server in the embodiment of the present invention is also used to record the resource package version number of each shared vehicle in real time to determine the resource package version of each shared vehicle, and then the staff can determine the resource package version of each shared vehicle by checking the server.

[0123] Furthermore, since the communication request in the embodiment of the present invention carries the resource package version number of the resource package carried by the shared vehicle, the server will also use the resource package version number and vehicle number carried in the communication request to update the resource package version number of the initiator of the communication request when receiving the first communication request or the second communication request.

[0124] For example, assume that before the first vehicle B1 is updated, the resource package version number is P0. After the update, the resource package version number is P1. The first vehicle B1 then sends a first communication request to the server, carrying the vehicle number N1 and the resource package version number P1. The server previously records / stores the vehicle number N1 and the resource package version number P0 of the first vehicle B1. When the server receives the first communication request sent by the first vehicle B1 after the update, it updates the previously recorded resource package version number P0 to P1 based on the vehicle number N1 and the resource package version number P1 in the first communication request.

[0125] Therefore, the embodiment of the present invention enables the resource package version of each shared vehicle to be recorded, so that the staff can obtain the resource package update status based on background query.

[0126] Furthermore, in this feasible approach, when the server stores the latest resource package corresponding to a certain riding fence area, the server will set the resource update status bit corresponding to this riding fence area to the first value, indicating that the resource package carried by the shared vehicle in this riding fence area is available for updating. Therefore, if a communication request is received from a second vehicle in this riding fence area at the current moment, the server will read the resource package version number in the communication request to perform version comparison and send connection information.

[0127] It is conceivable that if the resource update status bit corresponding to this riding fence area is the second value, when the server receives a communication request sent by the second vehicle in this riding fence area, the server will not perform operations / steps related to resource package update.

[0128] Based on this, the embodiment of the present invention enables the resource package update status of each shared vehicle to be monitored, and ensures the stable update of the resource package of the second vehicle.

[0129] Optionally, in a feasible method, the resource package update step of the first vehicle also needs to be executed when the resource update status bit corresponding to the first riding fence area is the first value, that is, in step S120, the server will also determine whether the resource update status bit corresponding to the first riding fence area is the first value. If so, and the version number of the first resource package is lower than the target resource package version number corresponding to the first riding fence area, the server will send the latest resource package to the first vehicle, thereby ensuring the effectiveness and rationality of the resource package update of the first vehicle.

[0130] In another feasible method, since the first vehicle needs to be updated before the second vehicle, that is, the update of the first vehicle is a necessary condition for the update of the second vehicle, in order to ensure the timeliness of the resource package update, the server in the embodiment of the present invention will execute the corresponding update logic after receiving the first communication request sent by the first vehicle to ensure that the latest resource package can be transmitted to other second vehicles through the first vehicle.

[0131] Optionally, in a feasible manner provided by an embodiment of the present invention, the method further includes:

[0132] For each riding fence area, the low-peak usage period of all shared vehicles in the riding fence area is determined according to the usage time of all shared vehicles in the riding fence area, and the low-peak usage period is set as the resource package update period corresponding to the riding fence area.

[0133] That is, in order to ensure that each shared vehicle can be updated correctly and orderly, the present invention enables the server to set the vehicle update time for each region according to the vehicle usage in each region, so that the local shared vehicles will be updated within the vehicle update time.

[0134] Specifically, for each riding fence area, the server will determine the low-peak usage period of all vehicles based on the usage time of all shared vehicles in the riding fence area; then, the server will use this low-peak usage period as the resource package update period for this riding fence area.

[0135] It's easy to imagine that under this feasible approach, the server will only update vehicles within the riding fence area during the resource package update period. For example, if the resource package update period is from midnight to 2:00 a.m. daily, the server will only perform version comparison and send resource packages / connection information when receiving communication requests between midnight and 2:00 a.m. If the server receives a communication request after 2:00 a.m. and before midnight daily, it will only perform the business operations corresponding to the communication request and will not trigger the operations / logic related to the resource package update.

[0136] It is understandable that the probability of a vehicle being used during a low-peak period is lower, and the probability of being moved / changed is lower, that is, the distance between the second vehicle and other shared vehicles will remain stable. Therefore, the resource package download of the second vehicle can be carried out stably, ensuring the stable update of the resource package of the second vehicle.

[0137] Optionally, in a feasible method provided by an embodiment of the present invention, the first vehicle receives the latest resource package sent by the server based on mobile communication technology, and the second vehicle establishes a communication connection with the target vehicle based on short-range wireless communication technology.

[0138] Under this scenario, only the first vehicle will establish a communication connection with the server and download the latest resource package from the server, using devices such as an IoT card and a network interface card. The second vehicle and other vehicles will establish communication connections with each other via short-range wireless communication technologies such as WiFi, Bluetooth, and infrared communication, without the need for mobile data to download or transmit data.

[0139] It is not difficult to imagine that since the update of the second vehicle does not require the use of mobile communication technology / mobile traffic data, this feasible method can further reduce the traffic cost required for resource package updates.

[0140] Optionally, since Bluetooth technology is widely used and mature, in a feasible method provided in an embodiment of the present invention, in order to stabilize the communication between vehicles and ensure the effective and smooth update of the second vehicle, the short-range wireless communication technology is Bluetooth technology, and the connection information includes the Bluetooth address and Bluetooth password of the target vehicle.

[0141] Corresponding to the resource package updating method for a shared vehicle provided in an embodiment of the present invention, an embodiment of the present invention further provides a resource package updating device for a shared vehicle, referring to Figure 4 , Figure 4 A schematic diagram of the structure of a resource package update device for a shared vehicle provided in an embodiment of the present invention is shown. The resource package update device 300 for a shared vehicle provided in an embodiment of the present invention is applied to a server. The server stores the latest resource package corresponding to each riding fence area and the target resource package version number of the latest resource package. Each shared vehicle within the riding fence area includes a first vehicle and a second vehicle device. The device includes:

[0142] A first reading module 310 is configured to, upon receiving a first communication request sent by the first vehicle, read a first resource package version number in the first communication request and determine a first riding fence area to which the first vehicle belongs;

[0143] A first sending module 320 is configured to send the latest resource package corresponding to the first riding fence area to the first vehicle if the version number of the first resource package is lower than the target resource package version number corresponding to the first riding fence area, wherein the first vehicle is configured to update the local resource package and resource package version number according to the received latest resource package;

[0144] The second reading module 330 is configured to, upon receiving a second communication request sent by the second vehicle, read the second resource package version number in the second communication request and determine the second riding fence area to which the second vehicle belongs;

[0145] The vehicle determination module 340 is configured to obtain a position of the second vehicle if the second riding fence area is the same as the first riding fence area and the second resource package version number is lower than the target resource package version number corresponding to the second riding fence area, and determine optional vehicles within a preset range of the second vehicle based on the position;

[0146] The vehicle selection module 350 is configured to select a selectable vehicle having a resource package version number corresponding to the second riding fence area, an idle state, and belonging to the second riding fence area as a target vehicle;

[0147] The second sending module 360 ​​is used to send the connection information of the target vehicle to the second vehicle, wherein the second vehicle is used to establish a communication connection with the target vehicle based on the connection information, and download the latest resource package corresponding to the second riding fence area from the target vehicle after the communication connection is established, and use the downloaded latest resource package to update the local resource package and resource package version number.

[0148] Optionally, in a feasible manner provided by an embodiment of the present invention, the device further includes:

[0149] A quota determination module is used to determine the Internet of Things card traffic quota of each shared vehicle in each vehicle riding fence area;

[0150] A determination module is set up to set, for each of the vehicle riding fence areas, a shared vehicle whose Internet of Things card traffic quota in the vehicle riding fence area is greater than or equal to a preset value as the first vehicle in the vehicle riding fence area, and set the remaining shared vehicles in the vehicle riding fence area as the second vehicle in the vehicle riding fence area.

[0151] Optionally, in a feasible manner provided by an embodiment of the present invention, the device further includes:

[0152] a marking module, configured to mark the target vehicle upon receiving connection failure information sent by the second vehicle;

[0153] a secondary selection module, configured to select as a new target vehicle a vehicle whose resource package version number is the target resource package version number corresponding to the second riding fence area, whose status is idle, belongs to the second riding fence area, and which is not marked;

[0154] The secondary sending module is used to send the connection information of the new target vehicle to the second vehicle.

[0155] Optionally, in a feasible manner provided by an embodiment of the present invention, the server stores the resource package version number of each shared vehicle and the resource update status bit corresponding to each riding fence area, and the server is further used to update the locally stored resource package version number according to the first resource package version number in the first communication request or the second resource package version number in the second communication request;

[0156] The device further comprises:

[0157] A first status bit setting module, configured to set the resource update status bit corresponding to each riding fence area to a first value;

[0158] A second status bit setting module is configured to set the resource update status bit corresponding to the second riding fence area to a second value if the resource package version numbers of all shared vehicles in the second riding fence area are updated to the target resource package version number;

[0159] The vehicle determination module is also used to obtain the position of the second vehicle if the resource update status bit corresponding to the second riding fence area is a first value, and the second riding fence area is the same as the first riding fence area, and the second resource package version number is lower than the target resource package version number corresponding to the second riding fence area, and determine the optional vehicles within a preset range of the second vehicle according to the position.

[0160] Optionally, in a feasible manner provided by an embodiment of the present invention, the device further includes:

[0161] The time period setting module is used to determine the low-peak usage period of all shared vehicles in each riding fence area according to the usage time of all shared vehicles in the riding fence area, and set the low-peak usage period as the resource package update period corresponding to the riding fence area.

[0162] Optionally, in a feasible method provided by an embodiment of the present invention, the first vehicle receives the latest resource package sent by the server based on mobile communication technology, and the second vehicle establishes a communication connection with the target vehicle based on short-range wireless communication technology.

[0163] Optionally, in a feasible manner provided in an embodiment of the present invention, the short-range wireless communication technology is Bluetooth technology, and the connection information includes the Bluetooth address and Bluetooth password of the target vehicle.

[0164] The resource package updating device 300 for shared vehicles provided in the embodiment of the present application can achieve Figure 1 The various processes of the resource package updating method for a shared vehicle in the corresponding method embodiment can achieve the same technical effect. To avoid repetition, they will not be described here.

[0165] An embodiment of the present invention further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is run on the processor, the computer program executes the following Figure 1 The resource package updating method for a shared vehicle disclosed in the corresponding method embodiment.

[0166] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run on a processor, the computer program executes the following steps: Figure 1 The resource package updating method for a shared vehicle disclosed in the corresponding method embodiment.

[0167] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or flowchart, and the combination of boxes in the structure diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.

[0168] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0169] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a smart phone, 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 invention. 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 magnetic disk, or an optical disk.

[0170] The above description is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed by the present invention, which should be covered by the scope of protection of the present invention.

Claims

1. A method for updating a resource package of a shared vehicle, characterized in that: The method is applied to a server, wherein the server stores the latest resource package corresponding to each riding fence area and the target resource package version number of the latest resource package, and each shared vehicle in the riding fence area includes a first vehicle and a second vehicle. When receiving a first communication request sent by the first vehicle, reading a first resource package version number in the first communication request, and determining a first riding fence area to which the first vehicle belongs; If the version number of the first resource package is lower than the target resource package version number corresponding to the first riding fence area, sending the latest resource package corresponding to the first riding fence area to the first vehicle, wherein the first vehicle is configured to update the local resource package and resource package version number according to the received latest resource package; When receiving the second communication request sent by the second vehicle, reading the second resource package version number in the second communication request, and determining the second riding fence area to which the second vehicle belongs; If the second riding fence area is the same as the first riding fence area, and the second resource package version number is lower than the target resource package version number corresponding to the second riding fence area, then obtaining the position of the second vehicle, and determining optional vehicles within a preset range of the second vehicle based on the position; The optional vehicle having a resource pack version number corresponding to the second riding fence area, an idle state, and belonging to the second riding fence area is used as the target vehicle; The connection information of the target vehicle is sent to the second vehicle, wherein the second vehicle is used to establish a communication connection with the target vehicle based on the connection information, and download the latest resource package corresponding to the second riding fence area from the target vehicle after the communication connection is established, and use the downloaded latest resource package to update the local resource package and resource package version number.

2. The method for updating a resource package of a shared vehicle according to claim 1, characterized in that: When receiving the first communication request sent by the first vehicle, before reading the first resource package version number in the first communication request and determining the first riding fence area to which the first vehicle belongs, the method further includes: Determine the Internet of Things card traffic quota for each of the shared vehicles within each of the riding fence areas; For each of the riding fence areas, the shared vehicles whose IoT card traffic quota in the riding fence area is greater than or equal to a preset value are set as the first vehicles in the riding fence area, and the remaining shared vehicles in the riding fence area are set as the second vehicles in the riding fence area.

3. The method for updating a resource package of a shared vehicle according to claim 1, characterized in that: After sending the connection information of the target vehicle to the second vehicle, the method further includes: If a connection failure message sent by the second vehicle is received, marking the target vehicle; The optional vehicle whose resource pack version number is the target resource pack version number corresponding to the second riding fence area, whose status is idle, belongs to the second riding fence area and is not marked is used as a new target vehicle; The connection information of the new target vehicle is sent to the second vehicle.

4. The method for updating a resource package of a shared vehicle according to claim 1, characterized in that: The server stores the resource package version number of each shared vehicle and the resource update status bit corresponding to each riding fence area, and the server is further configured to update the locally stored resource package version number according to the first resource package version number in the first communication request or the second resource package version number in the second communication request; When receiving the first communication request sent by the first vehicle, before reading the first resource package version number in the first communication request and determining the first riding fence area to which the first vehicle belongs, the method further includes: Setting the resource update status bit corresponding to each riding fence area to a first value; When receiving the second communication request sent by the second vehicle, reading the second resource package version number in the second communication request and determining the second riding fence area to which the second vehicle belongs, the method includes: If the resource package version numbers of all shared vehicles in the second riding fence area are updated to the target resource package version number, the resource update status bit corresponding to the second riding fence area is set to a second value; If the resource update status bit corresponding to the second riding fence area is a first value, and the second riding fence area is the same as the first riding fence area, and the second resource package version number is lower than the target resource package version number corresponding to the second riding fence area, then the position of the second vehicle is obtained, and the optional vehicles within the preset range of the second vehicle are determined according to the position.

5. The method for updating a resource package of a shared vehicle according to claim 1, characterized in that: The method further comprises: For each riding fence area, the low-peak usage period of all shared vehicles in the riding fence area is determined according to the usage time of all shared vehicles in the riding fence area, and the low-peak usage period is set as the resource package update period corresponding to the riding fence area.

6. The method for updating a resource package of a shared vehicle according to claim 1, characterized in that: The first vehicle receives the latest resource package sent by the server based on mobile communication technology, and the second vehicle establishes a communication connection with the target vehicle based on short-range wireless communication technology.

7. The method for updating a resource package of a shared vehicle according to claim 6, characterized in that: The short-range wireless communication technology is Bluetooth technology, and the connection information includes the Bluetooth address and Bluetooth password of the target vehicle.

8. A resource package updating device for a shared vehicle, characterized in that: Applied to a server, the server stores the latest resource package corresponding to each riding fence area and the target resource package version number of the latest resource package, each shared vehicle in the riding fence area includes a first vehicle and a second vehicle device, and the device includes: a first reading module, configured to, upon receiving a first communication request sent by the first vehicle, read a first resource package version number in the first communication request and determine a first riding fence area to which the first vehicle belongs; A first sending module is configured to send the latest resource package corresponding to the first riding fence area to the first vehicle if the version number of the first resource package is lower than the target resource package version number corresponding to the first riding fence area, wherein the first vehicle is configured to update the local resource package and resource package version number according to the received latest resource package; a second reading module, configured to, upon receiving a second communication request sent by the second vehicle, read a second resource package version number in the second communication request and determine a second riding fence area to which the second vehicle belongs; a vehicle determination module, configured to obtain a position of the second vehicle if the second riding fence area is the same as the first riding fence area and the second resource package version number is lower than the target resource package version number corresponding to the second riding fence area, and determine optional vehicles within a preset range of the second vehicle based on the position; A vehicle selection module is configured to select as a target vehicle a vehicle whose resource package version number is the target resource package version number corresponding to the second riding fence area, whose status is idle and which belongs to the second riding fence area; The second sending module is used to send the connection information of the target vehicle to the second vehicle, wherein the second vehicle is used to establish a communication connection with the target vehicle based on the connection information, and download the latest resource package corresponding to the second riding fence area from the target vehicle after the communication connection is established, and use the downloaded latest resource package to update the local resource package and resource package version number.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, the method for updating a resource package of a shared vehicle as described in any one of claims 1 to 7 is executed.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is run on a processor, the method for updating a resource package of a shared vehicle according to any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • Cloud configuration updating method and system for setting items of vehicle-mounted entertainment host

    CN113434164A

  • Vehicle voice image replacement method and device

    CN114327352A