CN103248564A - Automobile-used gateway system - Google Patents
Automobile-used gateway system Download PDFInfo
- Publication number
- CN103248564A CN103248564A CN2013101741995A CN201310174199A CN103248564A CN 103248564 A CN103248564 A CN 103248564A CN 2013101741995 A CN2013101741995 A CN 2013101741995A CN 201310174199 A CN201310174199 A CN 201310174199A CN 103248564 A CN103248564 A CN 103248564A
- Authority
- CN
- China
- Prior art keywords
- signal
- bus
- gateway
- controller
- 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.)
- Pending
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
本发明公开了一种车用网关系统,包括:第一总线,第二总线,与所述第一总线及所述第二总线相连接的网关,至少一个与所述第一总线相连接的第一控制器,以及,至少一个与所述第二总线相连接的第二控制器;所述网关设置成,从所述第一总线上接收第一信号,并判断所述第一信号是否来自预设的第一控制器,是则继续验证所述第一信号的有效性和实时性,否则发出错误提醒信号到所述第一总线以及所述第二总线上;当验证结果为信号正确时将所述第一信号通过第二总线路由给所述第二控制器,否则发出错误提醒信号到所述第一总线以及所述第二总线上。
The invention discloses a vehicle gateway system, comprising: a first bus, a second bus, a gateway connected to the first bus and the second bus, at least one first bus connected to the first bus A controller, and at least one second controller connected to the second bus; the gateway is configured to receive a first signal from the first bus and determine whether the first signal is from a preset If the first controller is set, it will continue to verify the validity and real-time performance of the first signal, otherwise it will send an error warning signal to the first bus and the second bus; when the verification result is that the signal is correct, it will The first signal is routed to the second controller through the second bus, otherwise an error warning signal is sent to the first bus and the second bus.
Description
技术领域technical field
本发明涉及汽车技术领域,具体涉及一种车用网关系统。The invention relates to the technical field of automobiles, in particular to a vehicle gateway system.
背景技术Background technique
随着现代汽车电子的飞速发展,控制器在整车上的数量日益增加,传统的硬线通讯方式已经不能满足如此庞大的通讯需求,因此大多数控制器已采用总线通讯的方式进行信号传输。一条总线上可传输的信号并非是无限的,当总线负载率达到一定程度之后,只能增加总线的数量,因此需要网关来作为总线间信号传递的媒介。With the rapid development of modern automotive electronics, the number of controllers in the vehicle is increasing day by day. The traditional hard-wire communication method can no longer meet such a huge communication demand. Therefore, most controllers have adopted bus communication for signal transmission. The signals that can be transmitted on a bus are not unlimited. When the bus load rate reaches a certain level, the number of buses can only be increased. Therefore, a gateway is needed as a medium for signal transmission between buses.
传统网关的主要功能为信号的传递和路由,车辆的控制器接收到信号后对信号进行分析。随着车辆上控制器数量的增多,不同车型的信号定义有所不同,因此控制器无法在多种车型间通用,针对不同车型需要重新设计控制器。The main function of the traditional gateway is the transmission and routing of signals, and the controller of the vehicle analyzes the signals after receiving them. With the increase of the number of controllers on the vehicle, the signal definitions of different models are different, so the controller cannot be used in a variety of models, and the controller needs to be redesigned for different models.
发明内容Contents of the invention
针对上述问题,本发明提供一种车用网关系统,通过在网关实现信号有效性和实时性的判断,从而控制器可无需再对信号进行实时性有效性判断,因此针对不同车型仅需更改网关部分,无需重新设计控制器,能够提高控制器的通用性。In view of the above problems, the present invention provides a gateway system for vehicles. By realizing the judgment of signal validity and real-time performance at the gateway, the controller no longer needs to judge the real-time validity of the signal, so only the gateway needs to be changed for different vehicle models. Part, without redesigning the controller, can improve the versatility of the controller.
本发明提供的车用网关系统包括:第一总线,第二总线,与所述第一总线及所述第二总线相连接的网关,至少一个与所述第一总线相连接的第一控制器,以及,至少一个与所述第二总线相连接的第二控制器;其特征在于,The vehicle gateway system provided by the present invention includes: a first bus, a second bus, a gateway connected to the first bus and the second bus, and at least one first controller connected to the first bus , and at least one second controller connected to the second bus; characterized in that,
所述网关设置成,从所述第一总线上接收第一信号,并判断所述第一信号是否来自预设的第一控制器,是则继续验证所述第一信号的有效性和实时性,否则发出错误提醒信号到所述第一总线以及所述第二总线上;当验证结果为信号正确时将所述第一信号通过第二总线路由给所述第二控制器,否则发出错误提醒信号到所述第一总线以及所述第二总线上。The gateway is configured to receive a first signal from the first bus, and judge whether the first signal comes from a preset first controller, and if so, continue to verify the validity and real-time performance of the first signal , otherwise an error reminder signal is sent to the first bus and the second bus; when the verification result is that the signal is correct, the first signal is routed to the second controller through the second bus, otherwise an error reminder is sent signals to the first bus and the second bus.
所述网关预存有所述第一信号的有效数据信息、发送周期信息以及控制器信息。The gateway pre-stores valid data information, sending cycle information and controller information of the first signal.
所述有效数据信息至少包括:数据范围、大小、数据精度、信号长度、偏移量和符号。The valid data information at least includes: data range, size, data precision, signal length, offset and sign.
所述网关还设置成,在验证结果为信号失效时,记录所述第一信号的错误信息;The gateway is also configured to record the error information of the first signal when the verification result is that the signal fails;
其中,所述错误信息至少包括:第一信号失效的持续时间、网关所处的状态、第二控制器的反应和/或电源状态。Wherein, the error information at least includes: the duration of the failure of the first signal, the status of the gateway, the response of the second controller and/or the power status.
所述网关首先判断所述第一信号的实时性,当实时性判断结果为信号正确时再判断所述第一信号的有效性,否则不再判断所述第一信号的有效性,直接发出错误提醒信号到所述第一总线以及所述第二总线上。The gateway first judges the real-time performance of the first signal, and then judges the validity of the first signal when the real-time judgment result is that the signal is correct; otherwise, it no longer judges the validity of the first signal, and directly sends an error A reminder signal is sent to the first bus and the second bus.
所述网关预设有与第一信号相对应的第一默认值,在发出所述错误提醒信号时,还将所述第一默认值发送到所述第一总线和所述第二总线上。The gateway is preset with a first default value corresponding to the first signal, and sends the first default value to the first bus and the second bus when the error alert signal is sent.
所述第二控制器设置成,接收所述第一信号后不再判断所述第一信号的有效性和实时性。The second controller is configured not to judge the validity and real-time performance of the first signal after receiving the first signal.
所述系统还可以包括与所述网关相连接的报警提示灯,所述报警提示灯接收报警信号并闪亮;所述网关设置成当所述判断结果为信号失效时,发出所述报警信号。The system may also include an alarm indicator light connected to the gateway, the alarm indicator light receives the alarm signal and flashes; the gateway is configured to send out the alarm signal when the judgment result is that the signal fails.
采用本发明提供的车用网关系统,通过在网关处实现对总线信号的分析、有效性、实时性判断,从而控制器端在接收到网关转发的信号后无需再进行类似的分析判断了。这样针对不同车型而言,即使信号定义有所差别,仅需更改对网关的软件进行更改即可,从而数量众多的控制器就无需做过多更改就可以适应多种车型,因此能够提高控制器的通用性,降低了车辆研发的综合成本。另外,相比于传统的车用网关系统中,由控制器基于网关重新打包路由的信号进行分析判断,而并非对原始信号进行分析判断,本发明中提供的车用网关系统中,由网关针对控制器发出的原始信号进行分析判断,能够提高判断的准确性。By adopting the vehicle gateway system provided by the present invention, by realizing the analysis, validity and real-time judgment of the bus signal at the gateway, the controller does not need to perform similar analysis and judgment after receiving the signal forwarded by the gateway. In this way, for different car models, even if the signal definitions are different, only the software of the gateway needs to be changed, so that a large number of controllers can be adapted to various car models without making too many changes, so the controller can be improved. The versatility of the vehicle reduces the overall cost of vehicle research and development. In addition, compared with the traditional vehicle gateway system, the controller analyzes and judges the signal based on the repackaged routing of the gateway, instead of analyzing and judging the original signal. In the vehicle gateway system provided in the present invention, the gateway The original signal sent by the controller is analyzed and judged, which can improve the accuracy of judgment.
附图说明Description of drawings
图1示出了本发明一实施例的网关系统结构示意图;Fig. 1 shows a schematic structural diagram of a gateway system according to an embodiment of the present invention;
图2示出了本发明另一实施例的网关系统结构示意图;FIG. 2 shows a schematic structural diagram of a gateway system according to another embodiment of the present invention;
图3示出了本发明上述实施例的网关系统工作流程示意图。Fig. 3 shows a schematic diagram of the workflow of the gateway system in the above-mentioned embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图及具体实施例对本发明进行详细描述。附图中相同结构给予相同标号。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. The same structures are given the same reference numerals in the drawings.
作为本发明一实施例,如图1所示的车用网关系统至少包括网关103,与网关103相连接的第一总线和第二总线,与第一总线相连接的第一控制器101,以及与第二总线相连接的第二控制器102。当然,所述网关103上还可以连接有第三总线、第四总线(图1中未示出)等多个总线,本实施例中仅示意性的以第一总线和第二总线进行说明。同样地,每条总线上连接的控制器数量也可以是多个,本实施例中仅以第一控制器101和第二控制器102进行示意性说明。As an embodiment of the present invention, the vehicle gateway system shown in Figure 1 at least includes a
第一控制器101发送的第一信号依次通过第一总线、网关103以及第二总线传递到第二控制器102上。在传统的车用网关系统中,网关103接收到来自第一总线的第一信号后,对其进行数据路由和重新打包后发送到第二总线上以传递给第二控制器102,由第二控制器102实现对第一信号的数据有效性和实时性进行判断。在本实施例中,通过网关103来判断第一信号是否来自第一控制器101、第一信号的实时性和有效性,从而在判断结果为第一信号来自第一控制器101、具有实时性和有效性时才将第一信号重新打包并数据路由到第二控制器102。这样第二控制器102在接收到第一信号后,可以不再判断第一信号是否来自第一控制器、以及第一信号的实时性和有效性。网关103的判断结果为信号失效时,直接发送错误提醒信号到第一总线和第二总线上。The first signal sent by the
通过在网关103中预存第一信号的有效数据信息、发送周期信息以及控制器信息,以用于在接收到第一信号后,通过判断第一信号中包含的信息与预存的信息是否相匹配从而完成对第一信号有效性和实时性的判断。具体地,通过判断第一信号中包含的控制器信息是否为预设的控制器信息,在本实施例中即判断第一信号包含的控制器信息是否为第一控制器101,是则正确,否则信号失效。通过所述发送周期信息获知第一信号的发送周期,根据接收到第一信号的时间来判断第一信号是否具有实时性。例如发送周期信息为20秒,若隔30s接收到第一信号则表明第一信号不具有实时性,即信号失效。所述有效数据信息至少包括:数据范围、大小、数据精度、信号长度、偏移量和符号。通过判断第一信号中包含的数据信息是否与预设的有效数据信息相匹配来获知第一信号是否有效。例如,预设的第一信号数据范围是5~7,而实际接收到的第一信号数据值为8,显然不在预设的数据范围内,则判断第一信号失效。By pre-storing the valid data information, transmission cycle information and controller information of the first signal in the
更进一步地,在网关103上预设有第一默认值,该第一默认值是在第一信号发生错误时用于发送到第一总线和第二总线上,使得相应的控制器能根据第一默认值工作,以防引起系统错误。因此,在网关103发送错误提醒信号时还将发送所述第一默认值到第一总线和第二总线上,以防车辆因第一信号发生错误时出现失控状态。例如,第一信号代表车辆的大灯开启信号,可以设定第一默认值是1,即开启;当用户开灯的组合开关坏掉时,网关103接收到的第一信号是错误的,这样网关103就在第一总线和第二总线上发送第一默认值1;这样做的结果就会导致车辆大灯保持开启,即使车辆是在白天行驶或者用户主观不想开启大灯时,车辆大灯都将保持开启状态,以保证车辆安全。Furthermore, a first default value is preset on the
作为本发明另一实施例,如图2所示,车用网关系统在图1基础上还包含报警提示灯104。网关103在判断结果为信号失效时,还发出报警信号给报警提示灯104。报警提示灯104接收到报警信号后闪亮,以提示测试人员有错误发生。As another embodiment of the present invention, as shown in FIG. 2 , the vehicle gateway system further includes an
图2所示的网关103具体工作流程如图3中所示,包括如下步骤:The specific workflow of the
步骤201,接收来自第一总线的第一信号。Step 201, receiving a first signal from a first bus.
步骤202,判断第一信号是否来自第一控制器,是则继续步骤203,否则继续步骤206。网关103中预存有第一信号的控制器信息,例如为第一控制器,通过判断第一信号中携带的控制器信息与预存的控制器信息是否相同,相同则意味着第一信号来自于第一控制器。Step 202, judging whether the first signal is from the first controller, if yes, proceed to step 203, otherwise proceed to step 206. The controller information of the first signal is pre-stored in the
步骤203,判断第一信号是否具有实时性,是则继续步骤204,否则继续步骤206。Step 203, judging whether the first signal is real-time, if yes, proceed to step 204, otherwise proceed to step 206.
步骤204,判断第一信号是否具有有效性,是则继续步骤205,否则继续步骤206。Step 204, judging whether the first signal is valid, if yes, proceed to step 205, otherwise proceed to step 206.
步骤205,将第一信号重新打包通过第二总线发送给第二控制器,结束。Step 205, repackaging the first signal and sending it to the second controller through the second bus, and the end.
步骤206,发送错误提醒信号到第一总线和第二总线上,以告知第一控制器其发送的第一信号错误,告知第二控制器第一控制器处于错误状态。Step 206, sending an error warning signal to the first bus and the second bus to inform the first controller that the first signal sent by it is wrong, and inform the second controller that the first controller is in an error state.
步骤207,记录并存储第一信号的错误信息,具体可以包括:第一信号失效的持续时间、网关所处的状态、第二控制器的反应和/或电源状态。网关103可将该错误信息记录在EEPROM中,优选以诊断仪可读取的形式进行存储,以便于后期故障检测分析。Step 207, record and store the error information of the first signal, which may specifically include: the duration of failure of the first signal, the state of the gateway, the response of the second controller and/or the power state. The
步骤208,发出报警信号给报警提示灯,以提示测试人员有错误发生。Step 208, send an alarm signal to the alarm indicator light, to remind the tester that an error occurs.
以上实施例仅用于说明本发明的技术方案,并不用于限制本发明的保护范围。本领域技术人员可以对本发明的技术方案进行的修改或者同等替换,而不脱离本发明技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit the protection scope of the present invention. Those skilled in the art may make modifications or equivalent replacements to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2013101741995A CN103248564A (en) | 2013-05-10 | 2013-05-10 | Automobile-used gateway system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2013101741995A CN103248564A (en) | 2013-05-10 | 2013-05-10 | Automobile-used gateway system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN103248564A true CN103248564A (en) | 2013-08-14 |
Family
ID=48927792
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2013101741995A Pending CN103248564A (en) | 2013-05-10 | 2013-05-10 | Automobile-used gateway system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103248564A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104378272A (en) * | 2014-10-28 | 2015-02-25 | 奇瑞汽车股份有限公司 | Information transmission method and device |
| CN106080439A (en) * | 2014-07-17 | 2016-11-09 | 杭州飞生科技有限公司 | Onboard system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1417980A (en) * | 2002-11-07 | 2003-05-14 | 吕京建 | Intelligent gateway device for vehicle controller LAN |
| US20080148374A1 (en) * | 2003-01-28 | 2008-06-19 | Cellport Systems, Inc. | Secure telematics |
| CN101778027A (en) * | 2009-01-12 | 2010-07-14 | 华创车电技术中心股份有限公司 | Vehicle-mounted computer system with gateway |
| CN201761454U (en) * | 2010-07-20 | 2011-03-16 | 浙江吉利汽车研究院有限公司 | Network system of hybrid vehicle |
-
2013
- 2013-05-10 CN CN2013101741995A patent/CN103248564A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1417980A (en) * | 2002-11-07 | 2003-05-14 | 吕京建 | Intelligent gateway device for vehicle controller LAN |
| US20080148374A1 (en) * | 2003-01-28 | 2008-06-19 | Cellport Systems, Inc. | Secure telematics |
| CN101778027A (en) * | 2009-01-12 | 2010-07-14 | 华创车电技术中心股份有限公司 | Vehicle-mounted computer system with gateway |
| CN201761454U (en) * | 2010-07-20 | 2011-03-16 | 浙江吉利汽车研究院有限公司 | Network system of hybrid vehicle |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106080439A (en) * | 2014-07-17 | 2016-11-09 | 杭州飞生科技有限公司 | Onboard system |
| CN106114410A (en) * | 2014-07-17 | 2016-11-16 | 杭州飞生科技有限公司 | Onboard system |
| CN106080439B (en) * | 2014-07-17 | 2018-04-17 | 杭州飞生科技有限公司 | Onboard system |
| CN106114410B (en) * | 2014-07-17 | 2018-04-20 | 杭州飞生科技有限公司 | Onboard system |
| CN104378272A (en) * | 2014-10-28 | 2015-02-25 | 奇瑞汽车股份有限公司 | Information transmission method and device |
| CN104378272B (en) * | 2014-10-28 | 2019-01-25 | 奇瑞汽车股份有限公司 | Message transmission method and device |
| US10389549B2 (en) | 2014-10-28 | 2019-08-20 | Chery Automobile Co., Ltd. | Method and apparatus for message transmission |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11469921B2 (en) | Security device, network system, and fraud detection method | |
| US9613471B2 (en) | Apparatus and method for diagnosing actuators in vehicle | |
| US10055903B2 (en) | Vehicle health check via noise and vibration level | |
| CN110406485B (en) | Illegal detection method and vehicle network system | |
| KR101936891B1 (en) | Method and device for generating driving behavior guidance information | |
| US10723361B2 (en) | Monitoring apparatus, communication system, vehicle, monitoring method, and non-transitory storage medium | |
| CN110774993B (en) | Vehicle fault detection method and device and vehicle | |
| WO2017187997A1 (en) | Vehicle control system verification device, vehicle control system, and vehicle control system verification method | |
| CN103439961B (en) | Automobile electronic control unit diagnostic function test method and system | |
| CN112367318A (en) | Security processing method and computer | |
| KR20190119514A (en) | On-board cybersecurity diagnostic system for vehicle, electronic control unit, and operating method thereof | |
| JPWO2013171829A1 (en) | Communication management apparatus and communication management method for vehicle network | |
| CN102594594A (en) | On-vehicle gateway device, method for controlling an on-vehicle gateway device, connection device and connection control method | |
| US20210089018A1 (en) | Method for controlling a motor vehicle remotely | |
| JP6555559B1 (en) | Electronic control device, monitoring method, program, and gateway device | |
| KR20160137411A (en) | Method for monitoring a motor vehicle | |
| JP2016055673A (en) | Failure diagnosis device and electronic control device | |
| CN115248036A (en) | Safety System for Carrier Rack Sensors | |
| JP2013101426A (en) | On-vehicle communication device | |
| CN103248564A (en) | Automobile-used gateway system | |
| JP7007697B2 (en) | Equipment and programs | |
| KR101297024B1 (en) | Method and apparatus for fault diagnosis network of car using can communication | |
| US20150226778A1 (en) | Method for Measuring the Presence of a High-Voltage and Establishing the Absence of Voltage | |
| JP4286721B2 (en) | Vehicle diagnosis information acquisition device and vehicle diagnosis information acquisition method | |
| JP2006253921A (en) | Network system for vehicle |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130814 |
|
| RJ01 | Rejection of invention patent application after publication |