Upgrading system for dynamically adjusting STmin based on vehicle-mounted UDS
By dynamically adjusting the STmin value in the vehicle UDS upgrade system, the flash write failure caused by high bus load in the prior art is solved, and stable upgrade and upgrade time are achieved under high load conditions.
Patent Information
- Application Number
- CN202420059861.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-10
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2034-01-10
AI Technical Summary
The prior art uses a fixed STmin value when upgrading an on-board MCU, which may cause flash write failure under high bus load and affect the upgrade success rate.
Design an upgrade system that dynamically adjusts the STmin value based on vehicle UDS. The current load condition is obtained through the bus load rate judgment module and adjust the STmin value to avoid the bus load rate reaching 100%.
Under high load conditions of CAN bus, the on-board MCU can be upgraded stably, and the appropriate STmin value setting can be set to shorten the time required for the upgrade program.
Smart Images

Figure CN222439949U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the technical field of data transmission, and in particular relates to an upgrade system based on a vehicle-mounted UDS dynamically adjusting STmin. Background Art
[0002] In order to solve the faults that occur during the development and use of automobiles, it is necessary to upgrade the functions, that is, to upgrade the program of the on-board MCU. In the prior art, the on-board MCU is upgraded through the CAN bus and based on the UDS protocol. When upgrading the on-board MCU, the prior art uses a fixed STmin value, which represents the minimum sending interval of two consecutive frames. If the bus load rate is very high before the on-board MCU is flashed, and the bus load cannot be effectively reduced through the 0x28 service of the UDS protocol, and after the message is flashed, it is easy to cause the bus load rate to reach 100%.
[0003] After the bus load rate reaches 100%, CAN messages will compete for bus resources and the flash message has the lowest priority, so it will take a long time to wait, causing continuous frames to time out, which will cause flash failure, affect the upgrade success rate, and fail to meet the production needs of the OEM.
[0004] Therefore, it is urgent to develop a new upgrade system based on on-board UDS to dynamically adjust STmin to solve the above problems. Utility Model Content
[0005] The utility model aims to provide an upgrade system based on vehicle-mounted UDS dynamic adjustment STmin.
[0006] In order to solve the above technical problems, the utility model provides an upgrade system based on the dynamic adjustment of STmin by a vehicle-mounted UDS, which comprises: a host computer, a bus load rate judgment module, an STmin value adjustment module, a bus transmission module and a microprocessor; wherein the bus load rate judgment module, the STmin value adjustment module and the bus transmission module are electrically connected to the host computer, and the bus transmission module is electrically connected to the microprocessor; the host computer is suitable for obtaining the load of the bus transmission module through the bus load rate judgment module; the host computer is suitable for adjusting the STmin value through the STmin value adjustment module; and the host computer is suitable for sending a data packet to the microprocessor through the bus transmission module.
[0007] Specifically, the bus transmission module includes: a first CANoe interface, a second CANoe interface and a CAN bus; the first CANoe interface is connected to a host computer, the second CANoe interface is connected to a microprocessor, and the first CANoe interface is connected to the second CANoe interface via the CAN bus.
[0008] Specifically, when the host computer obtains through the bus load rate judgment module that the load of the bus transmission module is greater than the first load setting value, the host computer increases the STmin value by the first base value through the STmin value adjustment module.
[0009] Specifically, the first load setting value is 95%, and the first base value is 50us.
[0010] Specifically, when the host computer obtains through the bus load rate judgment module that the load of the bus transmission module is between the first load setting value and the second load setting value, the host computer maintains the current STmin value through the STmin value adjustment module.
[0011] Specifically, when the host computer obtains through the bus load rate judgment module that the load of the bus transmission module is less than the second load setting value and the current STmin value is greater than the STmin preset value, the host computer reduces the STmin value by the second base value through the STmin value adjustment module.
[0012] Specifically, the second load setting value is 90%.
[0013] Specifically, the STmin preset value is 230us, and the second base value is 10us.
[0014] The beneficial effect of the utility model is that the utility model can stably upgrade the vehicle-mounted MCU under the condition of high load of the CAN bus, and by setting a suitable STmin value, while stably upgrading, the time required for the upgrade program is shortened to the maximum extent.
[0015] Other features and advantages of the present invention will be set forth in the following description, and in part will become apparent from the description, or may be understood by implementing the present invention.
[0016] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the specific implementation methods of the utility model or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a principle block diagram of the upgrade system of the utility model based on the vehicle-mounted UDS dynamic adjustment of STmin;
[0019] Figure 2 It is a work flow chart of the upgrade system of the utility model based on the vehicle-mounted UDS dynamic adjustment STmin. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the embodiments of the utility model clearer, the technical solution of the utility model will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0021] Embodiment 1, in this embodiment, as Figure 1 to Figure 2 As shown, this embodiment provides an upgrade system based on the dynamic adjustment of STmin by the vehicle-mounted UDS, which includes: a host computer, a bus load rate judgment module, an STmin value adjustment module, a bus transmission module and a microprocessor; wherein the bus load rate judgment module, the STmin value adjustment module, and the bus transmission module are electrically connected to the host computer, and the bus transmission module is electrically connected to the microprocessor; the host computer is suitable for obtaining the load of the bus transmission module through the bus load rate judgment module; the host computer is suitable for adjusting the STmin value through the STmin value adjustment module; and the host computer is suitable for sending data packets to the microprocessor through the bus transmission module.
[0022] In this embodiment, the utility model can stably upgrade the vehicle-mounted MCU under high load conditions of the CAN bus, and by setting a suitable STmin value, while stabilizing the upgrade, the time required for the upgrade program is shortened to the maximum extent.
[0023] In this embodiment, the bus load rate determination module and the STmin value adjustment module may be a CPU, and the bus load rate determination module and the STmin value adjustment module respectively execute different instructions of the host computer.
[0024] In this embodiment, the microprocessor is a vehicle-mounted MCU.
[0025] In order to meet the transmission requirements of CAN bus and UDS protocol, the bus transmission module includes: a first CANoe interface, a second CANoe interface and a CAN bus; the first CANoe interface is connected to the host computer, the second CANoe interface is connected to the microprocessor, and the first CANoe interface is connected to the second CANoe interface through the CAN bus.
[0026] Specifically, the host computer obtains the load status of the CAN bus through the first CANoe interface, and the host computer outputs the data packet to the microprocessor via the first CANoe interface, the CAN bus, and the second CANoe interface.
[0027] In this embodiment, the host computer packages the program data and sends it to the microprocessor through the first CANoe interface, the CAN bus, and the second CANoe interface. After receiving the data, the microprocessor flashes the program into the Flash.
[0028] In order to avoid crash during upgrading, when the host computer obtains through the bus load rate judgment module that the load of the bus transmission module is greater than the first load setting value, the host computer increases the STmin value by the first base value through the STmin value adjustment module.
[0029] Specifically, increasing the STmin value can reduce the bus load rate, thereby alleviating the pressure of data transmission.
[0030] As an optional implementation of the first load setting value and the first base value, the first load setting value is 95% and the first base value is 50 us.
[0031] Specifically, the host computer obtains the current CAN bus load. If the current load is greater than 95%, the current upgrade has a crash risk, and the STmin value is increased by 50us to reduce the bus load rate.
[0032] In order to ensure the stability of data packet transmission, when the host computer obtains that the load of the bus transmission module is between the first load setting value and the second load setting value through the bus load rate judgment module, the host computer maintains the current STmin value through the STmin value adjustment module.
[0033] In order to make full use of transmission resources, when the host computer obtains through the bus load rate judgment module that the load of the bus transmission module is less than the second load setting value and the current STmin value is greater than the STmin preset value, the host computer reduces the STmin value by the second base value through the STmin value adjustment module.
[0034] As an optional implementation of the second load setting value, the second load setting value is 90%.
[0035] As an optional implementation of the STmin preset value and the second base value, the STmin preset value is 230us and the second base value is 10us.
[0036] Specifically, if the current load is between 90% and 95%, the STmin value is maintained unchanged; if the CAN bus load rate is less than 90% and the STmin value is greater than 230us (CAN communication rate 500Kbps), the STmin value is reduced by 10us to increase the data transmission rate; after the current data packet is sent successfully, if it is the last packet of data, the current upgrade process is exited, otherwise, the upgrade process is run again.
[0037] In summary, the utility model can stably upgrade the vehicle-mounted microprocessor under the condition of high load of the CAN bus, and by setting a suitable STmin value, while stably upgrading, the time required for the upgrade program is shortened to the maximum extent.
[0038] All devices (parts without specific structure) selected in this application are universal standard parts or parts known to those skilled in the art, and their structures and principles are known to those skilled in the art through technical manuals or conventional experimental methods. In addition, the software programs involved in this application are all prior art, and this application does not involve any improvement to the software programs.
[0039] In the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0040] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0041] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0042] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0043] In addition, each functional unit in each embodiment of the present utility model may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0044] Based on the above ideal embodiments of the utility model, the relevant staff can make various changes and modifications without deviating from the technical concept of the utility model through the above description. The technical scope of the utility model is not limited to the content of the specification, and its technical scope must be determined according to the scope of the claims.
Claims
1. An upgrade system based on vehicle-mounted UDS dynamic adjustment of STmin, characterized in that: include: Host computer, bus load rate judgment module, STmin value adjustment module, bus transmission module and microprocessor; in The bus load rate judgment module, the STmin value adjustment module, and the bus transmission module are electrically connected to the host computer, and the bus transmission module is electrically connected to the microprocessor; The host computer is suitable for obtaining the load of the bus transmission module through the bus load rate judgment module; The host computer is suitable for adjusting the STmin value through the STmin value adjustment module; and The host computer is suitable for sending data packets to the microprocessor through the bus transmission module.
2. The upgrade system based on vehicle-mounted UDS dynamic adjustment STmin as claimed in claim 1 is characterized in that: The bus transmission module includes: a first CANoe interface, a second CANoe interface and a CAN bus; The first CANoe interface is connected to a host computer, the second CANoe interface is connected to a microprocessor, and the first CANoe interface is connected to the second CANoe interface via a CAN bus.
3. The upgrade system based on vehicle-mounted UDS dynamic adjustment STmin as claimed in claim 1 is characterized in that: When the load of the bus transmission module obtained by the host computer through the bus load rate judgment module is greater than the first load setting value, the host computer increases the STmin value by the first base value through the STmin value adjustment module.
4. The upgrade system based on vehicle-mounted UDS dynamic adjustment of STmin as claimed in claim 3 is characterized in that: The first load setting value is 95%, and the first base value is 50us.
5. The upgrade system based on vehicle-mounted UDS dynamic adjustment of STmin as claimed in claim 3 is characterized in that: When the host computer obtains through the bus load rate judgment module that the load of the bus transmission module is between the first load setting value and the second load setting value, the host computer maintains the current STmin value through the STmin value adjustment module.
6. The upgrade system based on vehicle-mounted UDS dynamic adjustment STmin as claimed in claim 5 is characterized in that: When the host computer obtains through the bus load rate judgment module that the load of the bus transmission module is less than the second load setting value and the current STmin value is greater than the STmin preset value, the host computer reduces the STmin value by the second base value through the STmin value adjustment module.
7. The upgrade system based on vehicle-mounted UDS dynamic adjustment of STmin as claimed in claim 5 or 6, characterized in that: The second load setting value is 90%.
8. The upgrade system based on vehicle-mounted UDS dynamic adjustment of STmin as claimed in claim 6 is characterized in that: The STmin preset value is 230 us, and the second base value is 10 us.