CN109412959B - Vehicle OTA (over the air) upgrading current-limiting control method, system and device - Google Patents

Vehicle OTA (over the air) upgrading current-limiting control method, system and device Download PDF

Info

Publication number
CN109412959B
CN109412959B CN201811048646.1A CN201811048646A CN109412959B CN 109412959 B CN109412959 B CN 109412959B CN 201811048646 A CN201811048646 A CN 201811048646A CN 109412959 B CN109412959 B CN 109412959B
Authority
CN
China
Prior art keywords
downloading
download
windows
available
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811048646.1A
Other languages
Chinese (zh)
Other versions
CN109412959A (en
Inventor
戴志辉
陈焕文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Original Assignee
Guangzhou Xiaopeng Motors Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xiaopeng Motors Technology Co Ltd filed Critical Guangzhou Xiaopeng Motors Technology Co Ltd
Priority to CN201811048646.1A priority Critical patent/CN109412959B/en
Publication of CN109412959A publication Critical patent/CN109412959A/en
Application granted granted Critical
Publication of CN109412959B publication Critical patent/CN109412959B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The invention discloses a vehicle OTA upgrade current-limiting control method, a system and a device, wherein the method comprises the following steps: the upgrading service module receives a vehicle end version query request and initiates a downloading window request to the flow control unit when an updated version exists; the upgrading service module receives a request result returned by the flow control unit according to the number of the current idle available downloading windows and determines whether to send a confirmation updating result to the vehicle end; the upgrading service module receives an updating package downloading request of the vehicle end, pushes updating package information to the vehicle end, and sends the downloading state of the vehicle end to the flow control unit for updating and calculating the number of available downloading windows. The invention limits the quantity of concurrent downloads according to the current idle window, and simultaneously updates and adjusts the dynamic window, thereby avoiding the silent user occupying the download window to influence the whole throughput. The OTA upgrade current-limiting control method, system and device for the vehicle can be widely applied to the field of data processing.

Description

Vehicle OTA (over the air) upgrading current-limiting control method, system and device
Technical Field
The invention relates to the field of data processing, in particular to a vehicle OTA upgrading current-limiting control method, system and device.
Background
OTA (over The air) is a remote upgrading technology, and is widely applied to firmware upgrading of vehicle ECU equipment units, with The popularization of intelligent automobiles, ECU firmware packages are also larger, especially The sizes of vehicle-mounted large screens and instrument firmware packages are usually hundreds of megas, and if a large number of vehicles are not controlled to request a server side to download at The same time, huge flow and bandwidth pressure are caused to The server side; in addition, the cloud generally adopts a Content Delivery Network (CDN) technology to increase the download speed of the upgrade package, and the flow of the CDN generally adopts bandwidth charging, where a monthly peak is used as the charging bandwidth, and if flow control is not performed, the instantaneous peak is very large under the condition of large concurrent download, thereby increasing the flow cost.
The current limit for vehicle OTA upgrading is different from the current limit for traditional Internet access, and for OTA, once a certain user is opened and updated, the user can not be limited to download and access, otherwise, the user experience can be seriously influenced, but the users who are opened and updated can not trigger downloading, and the accurate statistics and current limit are more difficult to realize through CDN server downloading.
Disclosure of Invention
In order to solve the technical problems, the invention aims to: the current-limiting control method for realizing smooth flow control and reducing peak pressure of the server side in OTA (over the air) upgrading of the vehicle is provided.
In order to solve the above technical problems, another object of the present invention is: the current-limiting control system for realizing smooth flow control and reducing peak pressure of the server side in OTA (over the air) upgrading of the vehicle is provided.
In order to solve the above technical problems, another object of the present invention is: the current-limiting control device realizes smooth flow control and reduces peak pressure of a server side in OTA (over the air) upgrading of the vehicle.
The technical scheme adopted by the invention is as follows: a vehicle OTA upgrading current-limiting control method comprises the following steps:
the upgrading service module receives a version query request of a vehicle end and initiates a downloading window request to the flow control unit when an updated version exists;
the upgrading service module receives a downloading window request result returned by the flow control unit according to the number of the current idle available downloading windows and determines whether to send a confirmation updating result to the vehicle end or not according to the downloading window request result;
the upgrading service module receives an updating package downloading request of the vehicle end, pushes updating package information to the vehicle end after receiving the updating package downloading request, and sends the downloading state of the vehicle end to the flow control unit for updating and calculating the number of available downloading windows by the flow control unit.
Further, the upgrade service module receives a download window request result returned by the flow control unit according to the number of available download windows which are idle currently, and determines whether to send a confirmation update result to the vehicle end according to the download window request result, wherein the number of the available download windows is default to be set as the preset maximum number W of the available download windows;
the upgrade service module receives an update package downloading request of a vehicle end, pushes update package information to the vehicle end after receiving the update package downloading request, and sends a downloading state of the vehicle end to the flow control unit, wherein the updating calculation formula of the flow control unit for the number Wm of the available download windows is as follows:
Wm=W/Xn
Xn=Vn/Tn
wherein, Tn is the total number issued in the last N days, Vn is the number of vehicle ends which have finished downloading in the last N days, Xn is the downloading rate in the last N days, and W is the preset maximum available downloading window number.
Further, the preset maximum available download window number is set through a management unit.
The other technical scheme adopted by the invention is as follows: a vehicle OTA upgrading current-limiting control method comprises the following steps:
the flow control unit receives a download window request sent by the upgrade service module when an update version is detected according to the version query request of the vehicle end;
the flow control unit returns a downloading window request result to the upgrading service module according to the number of the current idle available downloading windows;
and the flow control unit updates and calculates the number of available downloading windows according to the downloading state of the vehicle end acquired after the upgrading service module pushes the updating package information to the vehicle end after the vehicle end confirms upgrading according to the downloading window request result.
Further, in the step that the flow control unit returns the request result of the download window to the upgrade service module according to the number of the currently idle available download windows, the number of the available download windows is default to be set as the preset maximum number W of the available download windows;
in the step that the flow control unit updates and calculates the number of available download windows according to the download state of the vehicle end acquired after the upgrade service module pushes the update package information to the vehicle end after the vehicle end confirms upgrade according to the download window request result, the update calculation formula of the flow control unit on the number Wm of the available download windows is as follows:
Wm=W/Xn
Xn=Vn/Tn
wherein, Tn is the total number issued in the last N days, Vn is the number of vehicle ends which have finished downloading in the last N days, Xn is the downloading rate in the last N days, and W is the preset maximum available downloading window number.
Further, the preset maximum available download window number is set through a management unit.
The invention adopts another technical scheme that: a vehicle OTA upgrading current-limiting control method comprises the following steps:
the upgrading service module receives a version query request of a vehicle end, queries whether the version is updated or not, and initiates a downloading window request to the flow control unit when the version is updated;
the flow control unit receives the download window request and returns a download window request result to the upgrading service module according to the number of the current idle available download windows;
the upgrading service module receives the downloading window request result and determines whether to send a confirmation updating result to the vehicle end according to the downloading window request result;
the upgrading service module receives an updating package downloading request of the vehicle end, pushes updating package information to the vehicle end after receiving the updating package downloading request, and sends a downloading state of the vehicle end to the flow control unit;
the flow control unit updates and calculates the number of available downloading windows.
Further, in the step that the flow control unit receives the download window request and returns the download window request result to the upgrade service module according to the number of the currently idle available download windows, the number of the available download windows is default set to be the preset maximum number W of the available download windows;
in the step of updating and calculating the number of available download windows by the flow control unit, an update calculation formula of the flow control unit for the number Wm of available download windows is as follows:
Wm=W/Xn
Xn=Vn/Tn
wherein, Tn is the total number issued in the last N days, Vn is the number of vehicle ends which have finished downloading in the last N days, Xn is the downloading rate in the last N days, and W is the preset maximum available downloading window number.
Further, the preset maximum available download window number is set through a management unit.
The other technical scheme adopted by the invention is as follows: a vehicle OTA upgrade current-limiting control system comprises
The upgrading service module is used for receiving a version query request of the vehicle end, initiating a downloading window request to the flow control unit when an updated version exists, determining whether to send a confirmed updating result to the vehicle end according to a downloading window request result returned by the flow control unit, pushing updating package information to the vehicle end after receiving an updating package downloading request of the vehicle end, and sending a downloading state of the vehicle end to the flow control unit;
and the flow control unit is used for receiving a download window request of the upgrade service module, returning a download window request result to the upgrade service module according to the number of the current idle available download windows, and updating and calculating the number of the available download windows according to the download state of the vehicle end acquired by the upgrade service module after the vehicle end confirms upgrade.
Further, the number of available download windows in the flow control unit is default set to a preset maximum number W of available download windows;
the updating calculation formula of the flow control unit for the number Wm of the available downloading windows is as follows:
Wm=W/Xn
Xn=Vn/Tn
wherein, Tn is the total number issued in the last N days, Vn is the number of vehicle ends which have finished downloading in the last N days, Xn is the downloading rate in the last N days, and W is the preset maximum available downloading window number.
Furthermore, the system also comprises a management unit used for setting the number of the preset maximum available downloading windows.
The other technical scheme adopted by the invention is as follows: a vehicle OTA upgrade current-limiting control device comprises
At least one processor; and
a memory including processor-executable instructions that, when executed by the processor, are configured to perform a vehicle OTA upgrade current limit control method as described above.
The invention has the beneficial effects that: the invention controls whether to send the update package information according to the current idle window, limits the quantity of concurrent downloads while opening the OTA upgrade, and avoids overlarge peak flow; meanwhile, the number of available downloading windows is dynamically updated and adjusted through the downloading state of the vehicle end, so that the user request can be ensured to be responded in time, and the influence on the whole throughput caused by the fact that silent users occupy the downloading windows can be avoided.
Drawings
FIG. 1 is a flow chart of the steps of a first embodiment of the method of the present invention;
FIG. 2 is a flow chart of the steps of a second embodiment of the method of the present invention;
FIG. 3 is a flowchart illustrating the steps of a third embodiment of the method of the present invention;
FIG. 4 is a schematic block diagram of an embodiment of a system of the present invention;
FIG. 5 is a schematic block diagram of another embodiment of the system of the present invention;
fig. 6 is a schematic diagram of the working principle of the system of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings:
referring to fig. 1, a first embodiment of the present invention is a vehicle OTA upgrade current limiting control method, including the following steps:
the upgrading service module receives a version query request of a vehicle end and initiates a downloading window request to the flow control unit when an updated version exists;
the upgrading service module receives a downloading window request result returned by the flow control unit according to the number of the current idle available downloading windows and determines whether to send a confirmation updating result to the vehicle end or not according to the downloading window request result;
the upgrading service module receives an updating package downloading request of the vehicle end, pushes updating package information to the vehicle end after receiving the updating package downloading request, and sends the downloading state of the vehicle end to the flow control unit for updating and calculating the number of available downloading windows by the flow control unit.
Further as a preferred embodiment, in the step of receiving a download window request result returned by the flow control unit according to the number of currently idle available download windows and determining whether to send a confirmation update result to the vehicle end according to the download window request result, the upgrade service module defaults to be set as the preset maximum available download window number W.
The number Wa of the current idle available download windows is Wm-Wu, Wm is the maximum number of the available download windows, and the default value is W; wu is the number of windows that have been delivered. The number Wm of available download windows is updated and adjusted according to the download status of the vehicle.
Further, as a preferred embodiment, the upgrade service module receives an update package download request from the vehicle end, pushes update package information to the vehicle end after receiving the update package download request, and sends a download state of the vehicle end to the flow control unit, where the update package information is pushed to the vehicle end through the CDN content distribution platform by the upgrade service module in the step of calculating the update of the number of available download windows by the flow control unit.
Further as a preferred embodiment, the upgrade service module receives an update package download request from the vehicle end, pushes update package information to the vehicle end after receiving the update package download request, and sends a download state of the vehicle end to the flow control unit, where in the step of calculating the number of available download windows by the flow control unit for updating, the update calculation formula of the number Wm of available download windows by the flow control unit is as follows:
Wm=W/Xn
Xn=Vn/Tn
wherein, Tn is the total number issued in the last N days, Vn is the number of vehicle ends which have finished downloading in the last N days, Xn is the downloading rate in the last N days, and W is the preset maximum available downloading window number.
According to the above updated calculation formula, the flow control unit controls the number of the download windows by using a dynamic sliding window mechanism, assuming that the size of the window is w, and maintaining the number of available download windows w in the process, referring to fig. 6, where D is the number of downloaded vehicle ends, E is the size of the sliding expansion window, and w is the number of dynamic available windows. Assuming that the 1-day download rate is X1, the 2-day download rate is X2, and the N-day download rate is Xn, theoretically, the larger the N value is, the higher the statistical accuracy of the download rate is, but the longer the time is, in order to obtain a relatively accurate download rate within an acceptable time, N is usually 2 ≦ N ≦ 3:
Y=W/Xn
y is the dynamic available window number, W is the preset maximum available download window number, Xn is the N-day download rate, the default value is 100%, and the N-day update is performed once. Taking the preset maximum available download window number as 1000 and the download rate of 3 days as 80% as an example, the dynamic available window number after three days will automatically expand to 1000/0.8-1250. The preset maximum available download window number W may be set by the management unit, and the management unit may also set a download rate calculation sampling interval, for example, the sampling interval in the above specific embodiment is N days.
The existing flow control technology is not suitable for OTA upgrading scenes, for the OTA scenes, after an upgrading updating task is issued, a server side can not control the time when the server side triggers downloading, and if the downloading stage is triggered again to perform flow control, the scene is equivalent to that a user can check updating but can not download or download slowly, so that the user experience is seriously influenced; if the flow control is carried out in the checking and updating stage, the problem of silent users occupying a downloading window exists, and bandwidth resources cannot be reasonably utilized; in the embodiment of the invention, whether update package information is sent or not is controlled according to the number of the current idle download windows, the OTA upgrading is opened, and the number of concurrent downloads is limited, so that overlarge peak flow is avoided; meanwhile, the number of available downloading windows is dynamically updated and adjusted through the downloading state of the vehicle end, so that the user request can be ensured to be responded in time, and the influence on the whole throughput caused by the fact that silent users occupy the downloading windows can be avoided.
Referring to fig. 2, a second embodiment of the present invention is a vehicle OTA upgrade current limiting control method, including the following steps:
the flow control unit receives a download window request sent by an upgrading service module when an updating version is detected according to a version query request of a vehicle end; if the upgrade service module checks that the version is not updated, directly returning the result without version update;
the flow control unit returns a downloading window request result to the upgrading service module according to the number of the current idle available downloading windows;
and the flow control unit updates and calculates the number of available downloading windows according to the downloading state of the vehicle end acquired after the upgrading service module pushes the updating package information to the vehicle end after the vehicle end confirms upgrading according to the downloading window request result.
Further as a preferred embodiment, in the step of returning the request result of the download window to the upgrade service module by the flow control unit according to the number of currently idle available download windows, the number of available download windows is default to be set as the preset maximum number W of available download windows.
The number Wa of the current idle available download windows is Wm-Wu, Wm is the maximum number of the available download windows, and the default value is W; wu is the number of windows that have been delivered. The number Wm of available download windows is updated and adjusted according to the download status of the vehicle.
Further, as a preferred embodiment, in the step of updating and calculating the number of available download windows according to the download state of the vehicle end obtained after the upgrade service module pushes the update package information to the vehicle end after the vehicle end confirms the upgrade according to the download window request result by the upgrade service module, the update package information is pushed to the vehicle end by the upgrade service module according to the update package download request of the vehicle end through the CDN content distribution platform.
Further as a preferred embodiment, in the step of updating and calculating, by the flow control unit, the number of available download windows according to the download state of the vehicle end acquired after the upgrade service module pushes the update package information to the vehicle end after the vehicle end confirms upgrade according to the download window request result by the upgrade service module, an update calculation formula of the flow control unit for the number Wm of available download windows is as follows:
Wm=W/Xn
Xn=Vn/Tn
wherein, Tn is the total number issued in the last N days, Vn is the number of vehicle ends which have finished downloading in the last N days, Xn is the downloading rate in the last N days, and W is the preset maximum available downloading window number.
According to the above updated calculation formula, the flow control unit controls the number of the download windows by using a dynamic sliding window mechanism, assuming that the size of the window is w, and maintaining the number of available download windows w in the process, referring to fig. 6, where D is the number of downloaded vehicle ends, E is the size of the sliding expansion window, and w is the number of dynamic available windows. Assuming that the 1-day download rate is X1, the 2-day download rate is X2, and the N-day download rate is Xn, theoretically, the larger the N value is, the higher the statistical accuracy of the download rate is, but the longer the time is, in order to obtain a relatively accurate download rate within an acceptable time, N is usually 2 ≦ N ≦ 3:
Y=W/Xn
y is the dynamic available window number, W is the preset maximum available download window number, Xn is the N-day download rate, the default value is 100%, and the N-day update is performed once. Taking the preset maximum available download window number as 1000 and the download rate of 3 days as 80% as an example, the dynamic available window number after three days will automatically expand to 1000/0.8-1250. The preset maximum available download window number W may be set by the management unit, and the management unit may also set a download rate calculation sampling interval, for example, the sampling interval in the above specific embodiment is N days.
Referring to fig. 3, a third embodiment of the present invention provides a vehicle OTA upgrade current limiting control method, which includes the following steps:
the upgrading service module receives a version query request of a vehicle end, queries whether the version is updated or not, and initiates a downloading window request to the flow control unit when the version is updated;
the flow control unit receives the download window request and returns a download window request result to the upgrading service module according to the number of the current idle available download windows;
the upgrading service module receives the downloading window request result and determines whether to send a confirmation updating result to the vehicle end according to the downloading window request result;
the upgrading service module receives an updating package downloading request of the vehicle end, pushes updating package information to the vehicle end after receiving the updating package downloading request, and sends a downloading state of the vehicle end to the flow control unit;
the flow control unit updates and calculates the number of available downloading windows.
Further as a preferred embodiment, in the step of receiving the download window request and returning the download window request result to the upgrade service module according to the number of currently idle available download windows, the number of available download windows is default to be the preset maximum number W of available download windows;
the number Wa of the current idle available download windows is Wm-Wu, Wm is the maximum number of the available download windows, and the default value is W; wu is the number of windows that have been delivered. The number Wm of available download windows is updated and adjusted according to the download status of the vehicle.
Further, as a preferred embodiment, in the step of receiving an update package download request from the vehicle end, the upgrade service module pushing update package information to the vehicle end after receiving the update package download request, and sending a download state of the vehicle end to the flow control unit, the update package information is pushed by the upgrade service module to the vehicle end through the CDN content distribution platform according to the update package download request from the vehicle end.
Further preferably, in the step of performing update calculation on the number of available download windows by the flow control unit, an update calculation formula of the number Wm of available download windows by the flow control unit is as follows:
Wm=W/Xn
Xn=Vn/Tn
wherein, Tn is the total number issued in the last N days, Vn is the number of vehicle ends which have finished downloading in the last N days, Xn is the downloading rate in the last N days, and W is the preset maximum available downloading window number.
According to the above updated calculation formula, the flow control unit controls the number of the download windows by using a dynamic sliding window mechanism, assuming that the size of the window is w, and maintaining the number of available download windows w in the process, referring to fig. 6, where D is the number of downloaded vehicle ends, E is the size of the sliding expansion window, and w is the number of dynamic available windows. Assuming that the 1-day download rate is X1, the 2-day download rate is X2, and the N-day download rate is Xn, theoretically, the larger the N value is, the higher the statistical accuracy of the download rate is, but the longer the time is, in order to obtain a relatively accurate download rate within an acceptable time, N is usually 2 ≦ N ≦ 3:
Y=W/Xn
y is the dynamic available window number, W is the preset maximum available download window number, Xn is the N-day download rate, the default value is 100%, and the N-day update is performed once. Taking the preset maximum available download window number as 1000 and the download rate of 3 days as 80% as an example, the dynamic available window number after three days will automatically expand to 1000/0.8-1250. The preset maximum available download window number W may be set by the management unit, and the management unit may also set a download rate calculation sampling interval, for example, the sampling interval in the above specific embodiment is N days.
The existing flow control technology is not suitable for OTA upgrading scenes, for the OTA scenes, after an upgrading updating task is issued, a server side can not control the time when the server side triggers downloading, and if the downloading stage is triggered again to perform flow control, the scene is equivalent to that a user can check updating but can not download or download slowly, so that the user experience is seriously influenced; if the flow control is carried out in the checking and updating stage, the problem of silent users occupying a downloading window exists, and bandwidth resources cannot be reasonably utilized; in the embodiment of the invention, whether update package information is sent or not is controlled according to the number of the current idle download windows, the OTA upgrading is opened, and the number of concurrent downloads is limited, so that overlarge peak flow is avoided; meanwhile, the number of available downloading windows is dynamically updated and adjusted through the downloading state of the vehicle end, so that the user request can be ensured to be responded in time, and the influence on the whole throughput caused by the fact that silent users occupy the downloading windows can be avoided.
Referring to fig. 4, a vehicle OTA upgrade current limiting control system according to a fourth embodiment of the present invention includes
The upgrading service module is used for receiving a version query request of the vehicle end, initiating a downloading window request to the flow control unit when an updated version exists, determining whether to send a confirmed updating result to the vehicle end according to a downloading window request result returned by the flow control unit, pushing updating package information to the vehicle end after receiving an updating package downloading request of the vehicle end, and sending a downloading state of the vehicle end to the flow control unit;
the flow control unit is used for receiving a download window request of the upgrade service module, returning a download window request result to the upgrade service module according to the number of the current idle available download windows, and updating and calculating the number of the available download windows according to the download state of the vehicle end acquired by the upgrade service module after the vehicle end confirms upgrade;
the management unit may set the preset maximum available download window number W, and may also set a download rate calculation sampling interval, for example, the sampling interval in the above specific embodiment is N days.
Further, as a preferred embodiment, specific ways of pushing the update package information to the vehicle side after receiving the update package download request of the vehicle side include a direct pushing way and an indirect pushing way. Referring to fig. 4, the direct push, i.e., upgrade, service module directly pushes update package information to the vehicle end according to an update package download request of the vehicle end; referring to fig. 5, the indirect pushing, i.e., upgrading service module pushes the update package information to the vehicle end through the CDN content delivery platform according to an update package download request of the vehicle end.
Further as a preferred embodiment, the number of available download windows in the flow control unit is set as a preset maximum number W of available download windows by default.
The current idle available download window number Wa is Wm-Wu, Wm is the maximum available download window number, the default value is W, the value of W can be preset through a server and synchronously sent to a flow control unit, namely the preset initial maximum available download window value Wm of the flow control unit, different maximum concurrent download vehicle end numbers can be preset according to the size of an update package file, and the value can be configured according to the flow limiting requirement; wu is the number of windows that have been delivered. The number Wm of available download windows is updated and adjusted according to the download status of the vehicle.
The upgrade service module initiates a download window application to the flow control unit, and requests the flow control unit to allocate the number of download windows to be 1, the flow control unit calculates according to the requested download window value 1, if Wm-Wu >1, the success is returned, at this time, the number of issued windows is added with 1, that is, Wu is Wu + 1. And the upgrading service module judges according to the downloading window request result returned by the flow control unit, if the downloading window request result is successful, the upgrading service module returns a downloading link of the new version firmware package, and if the downloading link of the new version firmware package is not successful, no available new version exists.
The upgrading service module checks the number N of local cache windows, the upgrading service unit checks the number N of the local cache windows, if N is greater than 0, the upgrading service unit directly returns to a downloading link of a new firmware package, and meanwhile, the number of cached windows is reduced, wherein N is N-1; if N is 0, initiating a download window application to a flow control unit, applying the flow control unit to distribute the number of download windows as N for a large concurrent scene, reducing the number of times of repeated application interaction of the windows, calculating by the flow control unit according to a requested download window value N, if Wm-Wu is greater than N, returning success, at the moment, Wu is Wu + N (Wu is the number of occupied windows), judging by an upgrade service unit according to a result of the window application request, if the result is successful, locally caching the number of windows N, returning a new version firmware package download link, simultaneously reducing the number of cached windows N as N-1, otherwise, having no available new version.
Further, as a preferred embodiment, the formula for updating the number Wm of available download windows in the flow control unit is as follows:
Wm=W/Xn
Xn=Vn/Tn
wherein, Tn is the total number issued in the last N days, Vn is the number of vehicle ends which have finished downloading in the last N days, Xn is the downloading rate in the last N days, and W is the preset maximum available downloading window number.
According to the above updated calculation formula, the flow control unit controls the number of the download windows by using a dynamic sliding window mechanism, assuming that the size of the window is w, and maintaining the number of available download windows w in the process, referring to fig. 6, where D is the number of downloaded vehicle ends, E is the size of the sliding expansion window, and w is the number of dynamic available windows. Assuming that the 1-day download rate is X1, the 2-day download rate is X2, and the N-day download rate is Xn, theoretically, the larger the N value is, the higher the statistical download rate accuracy is, but the longer the time is, in order to obtain a relatively accurate download rate within an acceptable time, N is usually 2 ≦ N ≦ 3:
Y=W/Xn
y is the dynamic available window number, W is the preset maximum available download window number, Xn is the N-day download rate, the default value is 100%, and the N-day update is performed once. Taking the preset maximum available download window number as 1000 and the download rate of 3 days as 80% as an example, the dynamic available window number after three days will automatically expand to 1000/0.8-1250. The preset maximum available download window number W may be set by the management unit, and the management unit may also set a download rate calculation sampling interval, for example, the sampling interval in the above specific embodiment is N days.
In a fifth embodiment of the present invention, an OTA upgrade current-limiting control device for a vehicle comprises
At least one processor; and
a memory including processor-executable instructions, the computer-executable instructions when executed by the processor being for performing a vehicle OTA upgrade current limit control method as described above.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. A vehicle OTA upgrading current-limiting control method is characterized by comprising the following steps:
the upgrading service module receives a version query request of a vehicle end and initiates a downloading window request to the flow control unit when an updated version exists;
the upgrading service module receives a downloading window request result returned by the flow control unit according to the number of the current idle available downloading windows and determines whether to send a confirmation updating result to the vehicle end or not according to the downloading window request result;
the upgrading service module receives an update package downloading request of the vehicle end, pushes update package information to the vehicle end after receiving the update package downloading request, and sends the downloading state of the vehicle end to the flow control unit for updating and calculating the number of available downloading windows by the flow control unit;
the number of the available downloading windows is set as the preset maximum number W of the available downloading windows by default; the flow control unit updates the calculation formula of the number Wm of the available download windows as follows:
Wm=W/Xn
Xn=Vn/Tn
wherein, Tn is the total number issued in the last N days, Vn is the number of vehicle ends which have finished downloading in the last N days, Xn is the downloading rate in the last N days, and W is the preset maximum available downloading window number.
2. The OTA upgrade current limit control method for the vehicle according to claim 1, wherein: the preset maximum available download window number is set through the management unit.
3. A vehicle OTA upgrading current-limiting control method is characterized by comprising the following steps:
the flow control unit receives a download window request sent by an upgrading service module when an updating version is detected according to a version query request of a vehicle end;
the flow control unit returns a downloading window request result to the upgrading service module according to the number of the current idle available downloading windows;
after the vehicle end confirms upgrading according to the request result of the download window by the upgrading service module, the flow control unit updates and calculates the number of available download windows according to the download state of the vehicle end obtained after the upgrading service module pushes the update package information to the vehicle end;
the number of the available downloading windows is set as the preset maximum number W of the available downloading windows by default; the flow control unit updates the calculation formula of the number Wm of the available download windows as follows:
Wm=W/Xn
Xn=Vn/Tn
wherein, Tn is the total number issued in the last N days, Vn is the number of vehicle ends which have finished downloading in the last N days, Xn is the downloading rate in the last N days, and W is the preset maximum available downloading window number.
4. The OTA upgrade current limit control method for the vehicle according to claim 3, wherein: the preset maximum available download window number is set through the management unit.
5. A vehicle OTA upgrading current-limiting control method is characterized by comprising the following steps:
the upgrading service module receives a version query request of a vehicle end, queries whether the version is updated or not, and initiates a downloading window request to the flow control unit when the version is updated;
the flow control unit receives the download window request and returns a download window request result to the upgrading service module according to the number of the current idle available download windows;
the upgrading service module receives the downloading window request result and determines whether to send a confirmation updating result to the vehicle end according to the downloading window request result;
the upgrading service module receives an updating package downloading request of the vehicle end, pushes updating package information to the vehicle end after receiving the updating package downloading request, and sends a downloading state of the vehicle end to the flow control unit;
the flow control unit updates and calculates the number of available downloading windows;
the number of the available downloading windows is set as the preset maximum number W of the available downloading windows by default; the flow control unit updates the calculation formula of the number Wm of the available download windows as follows:
Wm=W/Xn
Xn=Vn/Tn
wherein, Tn is the total number issued in the last N days, Vn is the number of vehicle ends which have finished downloading in the last N days, Xn is the downloading rate in the last N days, and W is the preset maximum available downloading window number.
6. The OTA upgrade current limit control method for the vehicle according to claim 5, wherein: the preset maximum available download window number is set through the management unit.
7. The utility model provides a vehicle OTA upgrading current-limiting control system which characterized in that: comprises that
The upgrading service module is used for receiving a version query request of the vehicle end, initiating a downloading window request to the flow control unit when an updated version exists, determining whether to send a confirmed updating result to the vehicle end according to a downloading window request result returned by the flow control unit, pushing updating package information to the vehicle end after receiving an updating package downloading request of the vehicle end, and sending a downloading state of the vehicle end to the flow control unit;
the flow control unit is used for receiving a download window request of the upgrade service module, returning a download window request result to the upgrade service module according to the number of the current idle available download windows, and updating and calculating the number of the available download windows according to the download state of the vehicle end acquired by the upgrade service module after the vehicle end confirms upgrade;
the number of the available downloading windows is set as the preset maximum number W of the available downloading windows by default; the flow control unit updates the calculation formula of the number Wm of the available download windows as follows:
Wm=W/Xn
Xn=Vn/Tn
wherein, Tn is the total number issued in the last N days, Vn is the number of vehicle ends which have finished downloading in the last N days, Xn is the downloading rate in the last N days, and W is the preset maximum available downloading window number.
8. The vehicle OTA upgrade current limit control system according to claim 7, wherein: the device also comprises a management unit used for setting the number of the preset maximum available downloading windows.
9. The utility model provides a vehicle OTA upgrading current-limiting controlling means which characterized in that: comprises that
At least one processor; and
a memory including processor-executable instructions which, when executed by the processor, are operable to perform a vehicle OTA upgrade current limit control method as claimed in any one of claims 1 to 6.
CN201811048646.1A 2018-09-10 2018-09-10 Vehicle OTA (over the air) upgrading current-limiting control method, system and device Active CN109412959B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811048646.1A CN109412959B (en) 2018-09-10 2018-09-10 Vehicle OTA (over the air) upgrading current-limiting control method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811048646.1A CN109412959B (en) 2018-09-10 2018-09-10 Vehicle OTA (over the air) upgrading current-limiting control method, system and device

Publications (2)

Publication Number Publication Date
CN109412959A CN109412959A (en) 2019-03-01
CN109412959B true CN109412959B (en) 2022-08-16

Family

ID=65463976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811048646.1A Active CN109412959B (en) 2018-09-10 2018-09-10 Vehicle OTA (over the air) upgrading current-limiting control method, system and device

Country Status (1)

Country Link
CN (1) CN109412959B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110311964A (en) * 2019-06-20 2019-10-08 厦门四信通信科技有限公司 Socket OTA upgrade method, device, system, user terminal and storage medium
CN112256310A (en) * 2020-11-13 2021-01-22 上海伟世通汽车电子系统有限公司 Vehicle instrument OTA upgrading system and method
CN113452553A (en) * 2021-06-18 2021-09-28 上海艾拉比智能科技有限公司 Content distribution network flow limiting method and system
CN114301843A (en) * 2021-12-29 2022-04-08 广东明创软件科技有限公司 Traffic scheduling method and device and storage medium
CN114615204B (en) * 2022-02-17 2023-09-19 三一汽车起重机械有限公司 Air-downloading upgrading method, system and crane

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056280A (en) * 2007-05-24 2007-10-17 中国联合通信有限公司 An upgrade management method and system for instant message client
CN102724308A (en) * 2012-06-13 2012-10-10 腾讯科技(深圳)有限公司 Software update method and software update system
CN105721889A (en) * 2015-05-15 2016-06-29 乐视云计算有限公司 P2P data download method and device
CN105873022A (en) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 Downloading method and device for mobile terminal
CN105975254A (en) * 2015-03-10 2016-09-28 国际商业机器公司 Intelligent mobile application update method and system
US9935999B1 (en) * 2015-09-28 2018-04-03 Snap Inc. File download manager
CN107920095A (en) * 2016-10-08 2018-04-17 阿里巴巴集团控股有限公司 A kind of method, apparatus of sender and recipient's flow restriction under P2P environment
CN107979644A (en) * 2017-11-30 2018-05-01 掌阅科技股份有限公司 Prevent packet method for down loading, electronic equipment, the storage medium of high concurrent

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6310925B2 (en) * 2012-10-18 2018-04-11 ジラフィック テクノロジーズ エルティーディー.Giraffic Technologies Ltd. A congestion control method for dynamically maximizing the throughput of a communication link.

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056280A (en) * 2007-05-24 2007-10-17 中国联合通信有限公司 An upgrade management method and system for instant message client
CN102724308A (en) * 2012-06-13 2012-10-10 腾讯科技(深圳)有限公司 Software update method and software update system
CN105975254A (en) * 2015-03-10 2016-09-28 国际商业机器公司 Intelligent mobile application update method and system
CN105721889A (en) * 2015-05-15 2016-06-29 乐视云计算有限公司 P2P data download method and device
US9935999B1 (en) * 2015-09-28 2018-04-03 Snap Inc. File download manager
CN105873022A (en) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 Downloading method and device for mobile terminal
CN107920095A (en) * 2016-10-08 2018-04-17 阿里巴巴集团控股有限公司 A kind of method, apparatus of sender and recipient's flow restriction under P2P environment
CN107979644A (en) * 2017-11-30 2018-05-01 掌阅科技股份有限公司 Prevent packet method for down loading, electronic equipment, the storage medium of high concurrent

Also Published As

Publication number Publication date
CN109412959A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109412959B (en) Vehicle OTA (over the air) upgrading current-limiting control method, system and device
CN108429701B (en) Network acceleration system
CN101635643B (en) Method and system for changing terminal service and network management platform
CN110825394A (en) Automatic application program initialization method and system for cloud mobile phone and storage medium
JP2007506296A (en) How to provide content to mobile web browsing devices
CN111597213B (en) Caching method, software server and storage medium
CN103888934B (en) A kind of mobile terminal cache management device and management method
CN102081650A (en) Method for rapidly displaying user interface of embedded type platform
CN102447688A (en) Webpage game resource accelerator and acceleration method
US20110202633A1 (en) Cache server control device, content distribution system, method of distributing content, and program
CN102594876A (en) Method and system for accelerating speed of mixing game real-time data and updated data
CN101472050A (en) Method and system for updating software, digital television receive terminal and server
CN1497439A (en) Self-copy installation method and system for operation system schooling
EP1762038A1 (en) System and method for distributing content via a shared network
EP1107132A3 (en) Method and apparatus for reducing network traffic for remote file append operations
EP2800387A1 (en) Caching of content
CN105763616B (en) Resource downloading method and device
CN108540400A (en) A kind of data transfer control method, control device, terminal and readable storage medium storing program for executing
DE102010029931A1 (en) Method for requesting data of vehicle, involves providing data of vehicle by server connected with network by using programming interface, and executing transparent access to data of vehicle over server based on request of data
WO2024022277A1 (en) Map update data downloading method and apparatus, device, and readable medium
CN105391712B (en) A kind of data rapid transmission method and device based on Transmission Control Protocol
CN114553855B (en) Plug-in gray level issuing method and device, electronic equipment and storage medium
KR100706399B1 (en) Apparatus and method for controlling contents download in the mobile communication terminal
CN115098128A (en) Software updating method, device, equipment and storage medium
CN110417850B (en) Software configuration acquisition method, system, server and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant