CN112448889B - Gateway controller route configuration method, device, equipment and automobile - Google Patents

Gateway controller route configuration method, device, equipment and automobile Download PDF

Info

Publication number
CN112448889B
CN112448889B CN201910801838.3A CN201910801838A CN112448889B CN 112448889 B CN112448889 B CN 112448889B CN 201910801838 A CN201910801838 A CN 201910801838A CN 112448889 B CN112448889 B CN 112448889B
Authority
CN
China
Prior art keywords
message
threshold
bus
gateway controller
box
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
CN201910801838.3A
Other languages
Chinese (zh)
Other versions
CN112448889A (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.)
Beijing Electric Vehicle Co Ltd
Original Assignee
Beijing Electric Vehicle 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 Beijing Electric Vehicle Co Ltd filed Critical Beijing Electric Vehicle Co Ltd
Priority to CN201910801838.3A priority Critical patent/CN112448889B/en
Publication of CN112448889A publication Critical patent/CN112448889A/en
Application granted granted Critical
Publication of CN112448889B publication Critical patent/CN112448889B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • H04L45/306Route determination based on the nature of the carried application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems

Abstract

The invention provides a gateway controller route configuration method, device, equipment and an automobile, and relates to the technical field of automobiles. The gateway controller route configuration method comprises the following steps: acquiring a message cycle threshold value on a pre-configured T-BUS; acquiring a message period of a T-BOX message to be forwarded to a T-BUS; judging the relation between the message period and the message period threshold value; if the message period is greater than or equal to the message period threshold, forwarding the T-BOX message according to the message period; and if the message period is smaller than the message period threshold, forwarding the T-BOX message according to the message period threshold. The embodiment of the invention ensures that the T-BOX message period forwarded to the T-BUS is more than or equal to the message period threshold value by pre-configuring the message period threshold value on the T-BUS, thereby reducing the load rate on the T-BUS and ensuring the function of the T-BOX.

Description

Gateway controller route configuration method, device, equipment and automobile
Technical Field
The invention relates to the technical field of automobiles, in particular to a gateway controller routing configuration method, a device, equipment and an automobile.
Background
With the development of science and technology, automobiles are endowed with more functions as indispensable vehicles in human life. The main functions of the intelligent remote control terminal (T-BOX) are uploading in-vehicle information to the control platform and storing important information in the vehicle, such as fault information and the like, the current T-BOX uploads and stores messages according to a period of 100ms, the gateway controller is used for forwarding signals required by the T-BOX to the remote control high-speed BUS T-BUS for processing by the T-BOX, the current gateway controller forwards related messages in the vehicle to the T-BUS in a message routing mode, and due to the fact that the number of the messages forwarded to the T-BUS is large, and a part of the messages have short period of 10ms, 20ms and the like, the liability rate on the T-BUS reaches about 70%, the T-BUS exceeds the carrying capacity of normal BUS communication, and the T-BOX function is influenced.
Therefore, it is highly desirable to provide a method for effectively reducing the BUS load rate and avoiding the limitation of the function of the T-BOX caused by the too high BUS load rate while ensuring the normal uploading and storage of the T-BOX on the T-BUS.
Disclosure of Invention
The embodiment of the invention provides a gateway controller route configuration method, device, equipment and automobile, which are used for solving the problem of high load rate on a T-BUS.
In order to solve the foregoing technical problem, an embodiment of the present invention provides a method for configuring a gateway controller route, including:
acquiring a message cycle threshold value on a pre-configured remote control high-speed BUS T-BUS;
acquiring a message cycle of a remote vehicle-mounted terminal T-BOX message to be forwarded to the T-BUS;
judging the relation between the message period and the message period threshold value;
if the message period is greater than or equal to the message period threshold, forwarding the T-BOX message according to the message period; and if the message period is smaller than the message period threshold, forwarding the T-BOX message according to the message period threshold.
Further, before the obtaining of the message cycle threshold on the pre-configured T-BUS, the method further includes:
and setting the message cycle threshold value on the T-BUS according to a message sent by a Unified Diagnosis Service (UDS).
Further, the setting the message cycle threshold on the T-BUS according to a message sent by a unified diagnostic service UDS includes:
entering an extension mode and feeding back a message which enters the extension mode according to the message which enters the extension mode and is sent by the UDS;
and receiving a write-in threshold message sent by the UDS, setting a message period threshold according to configuration word information in the write-in threshold message, and feeding back the successfully written-in threshold message.
Further, when the T-BOX message is forwarded, the T-BOX message is forwarded in a signal routing mode or a message routing mode.
An embodiment of the present invention further provides a device for configuring a gateway controller, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a message cycle threshold value on a pre-configured remote control high-speed BUS T-BUS;
the second acquisition module is used for acquiring the message cycle of the remote vehicle-mounted terminal T-BOX message to be forwarded to the T-BUS;
the judging module is used for judging the relation between the message period and the message period threshold value;
a forwarding module, configured to forward the T-BOX packet according to the packet cycle if the packet cycle is greater than or equal to the packet cycle threshold; and if the message period is smaller than the message period threshold, forwarding the T-BOX message according to the message period threshold.
Further, the gateway controller route configuration device further includes:
and the setting module is used for setting the message cycle threshold value on the T-BUS according to the message sent by the UDS.
Further, the setting module includes:
the first processing unit is used for entering an extension mode and feeding back a message which enters the extension mode according to the message which enters the extension mode and is sent by the UDS;
and the second processing unit is used for receiving the writing threshold message sent by the UDS, setting a message period threshold according to configuration word information in the writing threshold message and feeding back the successfully written threshold message.
Further, when the T-BOX message is forwarded, the T-BOX message is forwarded in a signal routing mode or a message routing mode.
An embodiment of the present invention further provides a gateway controller route configuration device, including: the gateway controller routing configuration method comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the gateway controller routing configuration method.
The embodiment of the invention also provides an automobile which comprises the gateway controller route configuration device.
The invention has the beneficial effects that:
according to the scheme, the message cycle threshold value on the T-BUS is configured in advance, so that the message cycles forwarded to the T-BUS are all larger than or equal to the message cycle threshold value when the T-BOX message is forwarded, the load rate on the T-BUS is reduced, and the function of the T-BOX is ensured. When the T-BOX uploading and storage period are changed, only the configuration word of the gateway controller is required to be modified, and the gateway controller software is not required to be modified, so that the cost and period of software modification and test are reduced, the OEM can be autonomously configured, higher initiative is provided, and meanwhile, the strategy information of providing the T-BOX for a supplier is reduced, so that the effect of confidentiality is achieved to a certain extent.
Drawings
Fig. 1 is a flowchart illustrating a method for configuring a gateway controller according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a gateway controller route configuration apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
The invention provides a gateway controller route configuration method, a device, equipment and an automobile, aiming at the problem of high load rate on a T-BUS.
As shown in fig. 1, an embodiment of the present invention provides a method for configuring a gateway controller route, including:
and 11, acquiring a message cycle threshold value on a pre-configured remote control high-speed BUS T-BUS.
And step 12, acquiring the message cycle of the remote vehicle-mounted terminal T-BOX message to be forwarded to the T-BUS.
And step 13, judging the relation between the message period and the message period threshold value.
Step 14, if the message period is greater than or equal to the message period threshold, forwarding the T-BOX message according to the message period; and if the message period is smaller than the message period threshold, forwarding the T-BOX message according to the message period threshold.
The embodiment of the invention enables the message cycle forwarded to the T-BUS to be more than or equal to the message cycle threshold when the T-BOX message is forwarded by pre-configuring the message cycle threshold on the T-BUS, thereby reducing the load rate on the T-BUS and ensuring the function of the T-BOX. When the T-BOX uploading and storage period are changed, only the configuration word of the gateway controller is required to be modified, and the gateway controller software is not required to be modified, so that the cost and period of software modification and test are reduced, the OEM can be autonomously configured, higher initiative is provided, and meanwhile, the strategy information of providing the T-BOX for a supplier is reduced, so that the effect of confidentiality is achieved to a certain extent.
It should be noted that, a preconfigured message cycle threshold on the T-BUS may be dynamically adjusted by receiving, by the gateway controller, a message sent by the UDS, so before step 11, the method further includes:
and setting the message cycle threshold value on the T-BUS according to a message sent by a Unified Diagnosis Service (UDS).
Specifically, the setting of the message cycle threshold on the T-BUS according to a message sent by a unified diagnostic service UDS includes:
entering an extension mode and feeding back a message which enters the extension mode according to the message which enters the extension mode and is sent by the UDS;
and receiving a write-in threshold message sent by the UDS, setting a message period threshold according to configuration word information in the write-in threshold message, and feeding back the successfully written-in threshold message.
It should be noted that a preset number may be pre-stored in the gateway controller as a DID, for example, the number is 0C04, and the UDS sends the DID to the gateway to execute a corresponding operation, specifically including a write operation, a read operation, and the like, for example, 2E is the write operation, and 22 is the read operation, so that when a message includes 2E 0C04 XX, it indicates that a cycle threshold in a message sent by the UDS is written, and when a message includes 220C 04 XX, it indicates an operation of reading the cycle threshold of the message, where XX is a specific value of the cycle threshold of the message.
It should be further noted that, when it is required to set the message period threshold to be 100ms, the following messages may be set according to the above method, where the data width of the configuration word may be set to be 1 byte:
the UDS sends a first message to a gateway controller: 0x7DF 021003 XX, particularly for controlling gateway controller function addressing into an extension mode.
The gateway controller sends a second message to the UDS: the 0x7BE 025003 XX is specifically used for responding to entering an extension mode after the gateway controller enters the extension mode according to a first message sent by the UDS.
The UDS sends a third message to the gateway controller: 0x7B 6052E 0C 0404000000, specifically configured to control the gateway controller to write a message period threshold of 100 ms.
The UDS sends a fourth message to the gateway controller: 0x7BE 036E 0C04 XX, which is specifically used for responding to a successful writing of a message cycle threshold after the gateway controller writes the cycle threshold according to a third message sent by the UDS.
It should be noted that X is any hexadecimal data, where it is determined to enter the extension mode is 021003, and since the length of the message byte is 8, the role of X is to fill the placeholder, which is not practical.
Specifically, for the configuration word information, the access right thereof may also be set, and specifically, the access right may include that the security level right is not needed, the security level right needs to be extended, the security level right needs to be programmed, the response service is not supported, and the like.
The embodiment of the invention dynamically controls the period of the gateway controller for forwarding the message by the mode of modifying the configuration word, and can obtain the optimal period threshold value through testing, thereby not only ensuring the T-BOX function, but also optimizing the baud rate to the maximum extent.
It should be noted that, the message routing refers to a routing form of forwarding a data field of a frame of message from a source network segment to a target network segment without any change; the signal routing is a routing form for recombining the signals in one or more frames of messages of the source network segment and then transmitting the signals to the target network segment.
Specifically, when the T-BOX packet is forwarded, forwarding is performed in a signal routing manner or a packet routing manner.
As shown in fig. 2, an embodiment of the present invention further provides a device for configuring a gateway controller route, including:
the first obtaining module 21 is configured to obtain a message cycle threshold on a preconfigured remote control high-speed BUS T-BUS.
And a second obtaining module 22, configured to obtain a message cycle of a remote vehicle-mounted terminal T-BOX message to be forwarded to the T-BUS.
And the judging module 23 is configured to judge a relationship between the message period and the message period threshold.
A forwarding module 24, configured to forward the T-BOX packet according to the packet cycle if the packet cycle is greater than or equal to the packet cycle threshold; and if the message period is smaller than the message period threshold, forwarding the T-BOX message according to the message period threshold.
Specifically, the apparatus further comprises:
and the setting module is used for setting the message cycle threshold value on the T-BUS according to the message sent by the UDS.
Specifically, the setting module includes:
the first processing unit is used for entering an extension mode and feeding back a message which enters the extension mode according to the message which enters the extension mode and is sent by the UDS;
and the second processing unit is used for receiving the writing threshold message sent by the UDS, setting a message period threshold according to configuration word information in the writing threshold message and feeding back the successfully written threshold message.
Specifically, when the T-BOX packet is forwarded, forwarding is performed in a signal routing manner or a packet routing manner.
An embodiment of the present invention further provides a gateway controller route configuration device, including: the gateway controller routing configuration method comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the gateway controller routing configuration method.
The embodiment of the invention also provides an automobile which comprises the gateway controller route configuration device.
It should be noted that, the car provided with the gateway controller route configuration device can make the message cycle forwarded to the T-BUS be more than or equal to the message cycle threshold when the T-BOX message is forwarded by configuring the message cycle threshold on the T-BUS in advance, thereby reducing the load rate on the T-BUS and ensuring the function of the T-BOX. When the T-BOX uploading and storage period are changed, only the configuration word information of the gateway controller is required to be modified, and the gateway controller software is not required to be modified, so that the cost and period of software modification and test are reduced, the OEM can be autonomously configured, higher initiative is provided, and meanwhile, the strategy information of providing the T-BOX for a supplier is reduced, so that the effect of confidentiality is achieved to a certain extent.
While the preferred embodiments of the present invention have been described, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the following claims.

Claims (8)

1. A method for configuring a gateway controller route, comprising:
acquiring a message cycle threshold value on a pre-configured remote control high-speed BUS T-BUS;
acquiring a message cycle of a remote vehicle-mounted terminal T-BOX message to be forwarded to the T-BUS;
judging the relation between the message period and the message period threshold value;
if the message period is greater than or equal to the message period threshold, forwarding the T-BOX message according to the message period; if the message period is smaller than the message period threshold, forwarding the T-BOX message according to the message period threshold;
before the obtaining of the message cycle threshold on the pre-configured T-BUS, the method further includes:
and setting the message cycle threshold value on the T-BUS according to a message sent by a Unified Diagnosis Service (UDS).
2. The gateway controller routing configuration method of claim 1, wherein the setting the packet cycle threshold on the T-BUS according to a packet sent by a unified diagnostic service UDS comprises:
entering an extension mode and feeding back a message which enters the extension mode according to the message which enters the extension mode and is sent by the UDS;
and receiving a write-in threshold message sent by the UDS, setting a message period threshold according to configuration word information in the write-in threshold message, and feeding back the successfully written-in threshold message.
3. The gateway controller routing configuration method of claim 1, wherein when forwarding the T-BOX packet, forwarding is performed in a signal routing manner or a packet routing manner.
4. A gateway controller route configuration apparatus, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a message cycle threshold value on a pre-configured remote control high-speed BUS T-BUS;
the second acquisition module is used for acquiring the message cycle of the remote vehicle-mounted terminal T-BOX message to be forwarded to the T-BUS;
the judging module is used for judging the relation between the message period and the message period threshold value;
a forwarding module, configured to forward the T-BOX packet according to the packet cycle if the packet cycle is greater than or equal to the packet cycle threshold; if the message period is smaller than the message period threshold, forwarding the T-BOX message according to the message period threshold;
and the setting module is used for setting the message cycle threshold value on the T-BUS according to the message sent by the UDS.
5. The gateway controller routing configuration apparatus of claim 4, wherein the setting module comprises:
the first processing unit is used for entering an extension mode and feeding back a message which enters the extension mode according to the message which enters the extension mode and is sent by the UDS;
and the second processing unit is used for receiving the writing threshold message sent by the UDS, setting a message period threshold according to configuration word information in the writing threshold message and feeding back the successfully written threshold message.
6. The gateway controller routing configuration apparatus of claim 4, wherein when forwarding the T-BOX packet, forwarding is performed in a signal routing manner or a packet routing manner.
7. A gateway controller route configuration device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the gateway controller route configuration method according to any of claims 1 to 3 when executing the computer program.
8. An automobile comprising the gateway controller route configuration apparatus of any one of claims 4 to 6.
CN201910801838.3A 2019-08-28 2019-08-28 Gateway controller route configuration method, device, equipment and automobile Active CN112448889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910801838.3A CN112448889B (en) 2019-08-28 2019-08-28 Gateway controller route configuration method, device, equipment and automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910801838.3A CN112448889B (en) 2019-08-28 2019-08-28 Gateway controller route configuration method, device, equipment and automobile

Publications (2)

Publication Number Publication Date
CN112448889A CN112448889A (en) 2021-03-05
CN112448889B true CN112448889B (en) 2022-04-19

Family

ID=74740674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910801838.3A Active CN112448889B (en) 2019-08-28 2019-08-28 Gateway controller route configuration method, device, equipment and automobile

Country Status (1)

Country Link
CN (1) CN112448889B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119281A (en) * 2007-08-24 2008-02-06 中国科学院计算技术研究所 Method for controlling network congestion of sensor
WO2016101646A1 (en) * 2014-12-22 2016-06-30 华为技术有限公司 Access method and apparatus for ethernet virtual network
CN106603736A (en) * 2015-10-20 2017-04-26 中兴通讯股份有限公司 MAC address processing method and device
WO2017156908A1 (en) * 2016-03-14 2017-09-21 中兴通讯股份有限公司 Method and device for forwarding packet
CN109005175A (en) * 2018-08-07 2018-12-14 腾讯科技(深圳)有限公司 Network protection method, apparatus, server and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119281A (en) * 2007-08-24 2008-02-06 中国科学院计算技术研究所 Method for controlling network congestion of sensor
WO2016101646A1 (en) * 2014-12-22 2016-06-30 华为技术有限公司 Access method and apparatus for ethernet virtual network
CN106603736A (en) * 2015-10-20 2017-04-26 中兴通讯股份有限公司 MAC address processing method and device
WO2017156908A1 (en) * 2016-03-14 2017-09-21 中兴通讯股份有限公司 Method and device for forwarding packet
CN109005175A (en) * 2018-08-07 2018-12-14 腾讯科技(深圳)有限公司 Network protection method, apparatus, server and storage medium

Also Published As

Publication number Publication date
CN112448889A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN111930407B (en) Vehicle ECU software upgrading method and system, vehicle TBOX microcontroller and SOC terminal
US20180126864A1 (en) Power management in electric vehicles
US20180352512A1 (en) Method for transmitting and receiving wake-up signal in vehicle network
US10861258B2 (en) Method for preventing diagnostic errors in vehicle network and apparatus therefor
US20170302462A1 (en) Method for supplying power in network and apparatus therefor
US20200057628A1 (en) Control apparatus, transfer method, and computer program
US20230004381A1 (en) Software version rollback method, apparatus, and system
CN110597229A (en) Vehicle diagnosis mutual exclusion method and device, vehicle and storage medium
CN109144545B (en) Data flashing method, device and equipment and computer readable storage medium
CN112000083A (en) ECU data flashing method, flashing device, flashing equipment and storage medium
US11005680B2 (en) Reprogramming apparatus for vehicle, reprogramming method thereof, and vehicle including the same
CN112596447B (en) Method and device for determining length of ECU (electronic control Unit) flash data, electronic equipment and medium
CN112448889B (en) Gateway controller route configuration method, device, equipment and automobile
CN112835598B (en) Automobile ECU (electronic control Unit) refreshing method and system and computer readable storage medium thereof
CN111988194B (en) Method and device for diagnosing automobile line
CN107783771B (en) Diagnostic refreshing method and system
CN106412657B (en) A kind of method and system of set-top box programming sequence code
CN113347272B (en) Message processing method, device, storage medium and equipment
US20230269111A1 (en) Controller area network transceiver and method for the transceiver
US20220326931A1 (en) System and method for managing update of electronic control unit of vehicle
CN109635504B (en) Heat pump control system software design method
CN116932445A (en) Communication test method and device, electronic equipment and storage medium
CN117354079A (en) Automobile CAN communication method, device, equipment and storage medium
CN117499447A (en) Android vehicle-mounted terminal system and vehicle remote control system
CN116373758A (en) Control method, storage medium and controller for engineering vehicle electric control unit

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