CN105334840B - Vehicle child node network configuration - Google Patents

Vehicle child node network configuration Download PDF

Info

Publication number
CN105334840B
CN105334840B CN201510584552.6A CN201510584552A CN105334840B CN 105334840 B CN105334840 B CN 105334840B CN 201510584552 A CN201510584552 A CN 201510584552A CN 105334840 B CN105334840 B CN 105334840B
Authority
CN
China
Prior art keywords
configuration information
gateway
diagnostic
password
read
Prior art date
Application number
CN201510584552.6A
Other languages
Chinese (zh)
Other versions
CN105334840A (en
Inventor
周其亮
王涛
付朝辉
Original Assignee
浙江吉利汽车研究院有限公司
浙江吉利控股集团有限公司
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 浙江吉利汽车研究院有限公司, 浙江吉利控股集团有限公司 filed Critical 浙江吉利汽车研究院有限公司
Priority to CN201510584552.6A priority Critical patent/CN105334840B/en
Publication of CN105334840A publication Critical patent/CN105334840A/en
Application granted granted Critical
Publication of CN105334840B publication Critical patent/CN105334840B/en

Links

Abstract

本发明公开了一种整车网络子节点配置方法,其包括以下步骤:S1、查看备份节点是否包含有子节点的配置信息,如果有,进入步骤S2,如果没有则进入步骤S3;S2、从备份节点读取子节点的配置信息并写入到子节点,配置过程结束;S3、从诊断设备读取子节点的配置信息并写入到子节点,配置过程结束。 The present invention discloses a vehicle child nodes of the network configuration method comprising the steps of: S1, to see if the backup node configuration information includes child nodes, if any, into the step S2, if not the process proceeds to step S3; S2, from backup node configuration information is read and written child node to the child node, the end of the configuration process; S3, the child node configuration information read from the diagnostic device and written to the child node, the end of the configuration process. 本发明中,网关中不再存储配置信息,这样可以减小对网关可靠性的要求,同时也避免了责任划分不清楚的问题。 In the present invention, a gateway no longer stored in the configuration information, which can reduce the requirements for the reliability of the gateway, while avoiding the problem of unclear division of responsibilities. 本方案适用于所有的汽车生产和维修领域。 The program applies to all automobile production and maintenance fields.

Description

整车网络子节点配置方法 Vehicle child node network configuration

技术领域 FIELD

[0001] 本发明涉及汽车生产维修领域,尤其是涉及一种可靠性较高的整车网络子节点配置方法。 [0001] The present invention relates to the production of auto repair, and more particularly relates to a high reliability of the vehicle sub-node network configuration.

背景技术 Background technique

[0002] 汽车CAN总线技术应用当前已经很成熟,但是由于对汽车的操稳性能,安全性能, 动力性能等要求不断提高,电子控制器不断增多,如在很多中高配车型上配置自适应巡航系统,泊车辅助系统,坐骑控制系统等提高驾驶安全性和舒适性的电子控制器,电子控制器之间的信号交互也必然增多,出于总线负载率的要求,CAN总线也由传统的1路,2路向5路甚至更多方向发展,而且单个电子控制器自己也有一个子网络总线系统。 [0002] Application of a current automotive CAN bus technology has matured, but due to the controllability and stability of the automobile, safety, power performance requirements continue to increase, increasing the electronic controller, such as adaptive cruise control arranged in many models with high , parking assist system, control system, and mounts improve driving safety and comfort electronic controller, signal interaction between the electronic controller are bound to increase, demand for bus load rate, CAN bus from the traditional one-way , 2 or more passage 5 to the development direction, and a single electronic controller themselves have a sub-network bus system.

[0003]为了减少整车开发成本和减少对电子控制器的管理,电子控制器软件在开发阶段开发了一版最大化的软件来适应各种配置的车型,诊断设备采用数据库或者其他手段获取的配置信息通过诊断服务写入电子控制器,电子控制器根据写入的整车配置信息来自适应当前车辆配置的软件参数。 [0003] In order to reduce vehicle development costs and reduce management of the electronic controller, electronic controller software has developed a version of the software during the development phase to maximize the vehicle to accommodate a variety of configurations, the use of diagnostic equipment or other means of access to the database configuration information is written to the electronic controller diagnostic services, electronic controller configuration information from the software to adapt to the current vehicle configuration parameters based on the vehicle written.

[0004] 在线配置开发功能很大程度上受整车网络诊断拓扑影响,有些车型诊断设备可以和电子控制器直接通信,配置信息可以通过诊断服务直接发送给电子控制器,但是很多车型诊断设备无法直接和子节点控制器通信,OBD诊断接口不和子节点控制器直接相连,配置信息往往都是先写入网关控制器并存储,然后网关控制器通过诊断服务或者其他手段激活转发到子节点控制器,这种配置方法的优点在于当售后电子控制器损坏更新新件时,只要用诊断设备激活网关重新转发配置信息即可,售后换件时诊断设备不需要重新获取配置信息,减少售后换件操作,但是这种配置方法的最大缺陷也是在网关这部分,有以下2种缺陷: [0005] 1)要求网关的可靠性很高,因为当网关损坏时,配置信息需要重新写入,另外当电子控制器损坏时,也需要重新激活网关转发配置信 [0004] Online Configuration feature heavily influenced by the development of vehicle diagnostic network topology influence, some models diagnostic equipment and an electronic controller can directly communicate configuration information can be sent to the electronic controller diagnostic services directly, but not a lot of cars diagnostic equipment direct child node and a communication controller, the OBD diagnostic interface is not directly connected to the controller and the sub-node, to write the configuration data are usually stored in gateway controller and then forwarded by the diagnostic service gateway controller or other means to activate the child node controller, the advantage of this configuration is that when the electronic controller damage sale updated with new parts, as long as the activated configuration information to the gateway retransmitted with a diagnostic device, the diagnostic device need not re-acquire the configuration information for parts sale, sale and reduced change operation member, However, the largest drawback of this method is also arranged in this part of the gateway, the following two drawbacks: high [0005] 1) requires the gateway to the reliability, because when the gateway is damaged, the configuration information needs to be rewritten, when the electronic control further when damaged, the gateway also needs to reactivate channel forwarding ,这也从另一角度增加了售后换件的操作。 , Which also increases operating from another point of sale for parts.

[0006] 2)从责任划分的角度,上述的在线配置方法仅限于电子控制器与网关相连的子系统,网关控制器的开发商可能会同意存储整车的配置信息并承担网关所连接的子系统配置的责任。 [0006] 2) from the point of division of responsibilities, the above method is limited to online configuration subsystem electronic controller connected to the gateway, the developer may agree gateway controller configuration information stored in the vehicle and bear subnet connected responsibility system configuration. 当网关换成其他电子控制器,并且该控制器下连接其他的电子控制单元子系统时, 该控制器开发商也就不会承担存储子系统的配置信息义务。 When the gateway into other electronic controllers, and other electronic control units connected to this subsystem controller developer will not assume the configuration information of the storage subsystem obligations.

发明内容 SUMMARY

[0007]本发明主要是解决现有技术所存在的对网关可靠性要求较高、责任划分不够明确等的技术问题,提供一种网关不存储配置信息、可靠性高、安全性好的整车网络子节点配置方法。 [0007] The present invention is to solve the prior art high reliability requirements exist for Gateway, is not clear division of responsibilities and other technical problems and provide a gateway does not store configuration information, high reliability, safety and good vehicle child node network configuration.

[0008]本发明针对上述技术问题主要是通过下述技术方案得以解决的:一种整车网络子节点配置方法,包括以下步骤: [0008] The present invention addresses the above technical problem is solved by the following technical solutions: one child node of the vehicle network configuration method comprising the steps of:

[0009] S1、查看备份节点是否包含有子节点的配置信息,如果有,进入步骤S2,如果没有则进入步骤S3; [0009] S1, to see if the backup node containing configuration information has child nodes, if any, into the step S2, the process proceeds to step S3 if not;

[0010] S2、从备份节点读取子节点的配置信息并写入到子节点,配置过程结束; [0010] S2, is read from the child node and the backup node configuration information is written to the child node configuration process is complete;

[0011] S3、从诊断设备读取子节点的配置信息并写入到子节点,配置过程结束。 [0011] S3, the child node configuration information read from the diagnostic device and written to the child node, the end of the configuration process.

[0012] 本方案中,网关/电子控制器不存储只负责转发配置信息给子节点控制器,网关/ 电子控制器与子节点控制器的连接方式不限于CAN总线,也可以是LIN,K或者其他串行总线。 [0012] In the present embodiment, the gateway / electronic controller is not only responsible for forwarding store configuration information to the sub-node controller, a gateway connection / electronic controller child node controller is not limited to the CAN bus, may be LIN, K or other serial bus. 诊断设备将配置信息通过网关/电子控制器的诊断地址和CAN诊断服务发送给网关/电子控制器,网关/电子控制器不存储将接收到的配置信息通过串行数据传输方式发给子系统。 Diagnostic equipment to send configuration information through the gateway / diagnostic address and the electronic controller CAN diagnostic services to the gateway / electronic controller, a gateway / electronic controller does not store the received configuration information to the subsystem via the serial data transmission.

[0013]网关/电子控制器不存储配置信息,也就不存在网关/电子控制器损坏时更新新件重新写入配置信息的要求,另外网关/电子控制器的开发压力也将减少。 [0013] Gateway / electronic controller does not store configuration information, there would be no requirement to update the new member gateway / damage to the electronic controller rewrites the configuration information, the gateway further development of the pressure / electronic controller will also be reduced.

[0014]作为优选,步骤S3具体为: [0014] Advantageously, in step S3 is specifically:

[0015] S301、连接诊断设备到车辆诊断口,打开车辆点火开关; [0015] S301, the diagnostic device is connected to a diagnostic socket of the vehicle, the vehicle ignition switch is open;

[0016] S302、请求网关进入扩展诊断模式; [0016] S302, a request to enter the gateway extended diagnostic mode;

[0017] S303、诊断设备请求安全进入网关; [0017] S303, the security gateway into diagnostic device requests;

[0018] S304、诊断设备将配置信息发送给网关并请求开始转发配置信息例程; [0018] S304, the diagnostic device configuration information to the gateway configuration information and forward the requests to start routine;

[0019] S305、网关接收到配置信息后通过LIN诊断写数据$2E服务向子节点写配置信息; [0019] S305, the write data $ 2E service gateway after receiving the configuration information through the configuration information to the LIN diagnostic write child node;

[0020] S306、诊断设备等待3秒,待网关将配置信息写入子节点成功; [0020] S306, wait 3 seconds diagnostic apparatus, the gateway configuration information to be written into the child node successfully;

[0021] S307、诊断设备请求开始网关读取子节点配置信息例程; [0021] S307, requests the start of the diagnostic device gateway node configuration information read sub-routine;

[0022] S308、网关接收到读取子节点配置信息的例程请求后,向子节点发送LIN诊断$22 读取配置信息服务,子节点将当前的配置信息通过Lin诊断服务反馈给网关,网关接收到子节点反馈的配置信息,将配置信息更新到响应诊断设备的读取子节点配置信息例程中; [0023] S3〇9、诊断设备读取到的配置信息和第S304步写入的配置信息相比较,如一致则子节点配置信息写入成功,进入第S310步;如不一致则子节点配置信息写入失败,排查原因从第S301步开始重新配置子节点; [0022] S308, the gateway after receiving the read sub-routine requesting node configuration information, the child node transmits to the LIN diagnostic $ 22 reads configuration information services, child node of the current configuration information back to the service diagnostics Lin gateway that received child node configuration information feedback, update the configuration information in response to the read sub-node configuration information of the diagnostic device routine; [0023] S3〇9, diagnostic equipment to read the configuration information and the configuration of the writing step S304 comparing information, such as the same sub-node configuration information successfully written into the first step S310; the inconsistencies as child node configuration information writing fails, the reason investigation reconfiguring step S301 from the first child node;

[0024] S310、诊断设备请求网关进入默认诊断模式,配置结束。 [0024] S310, the diagnostic device enters the default gateway request diagnostic mode, that configuration is completed.

[0025]作为优选,步骤S2具体为: [0025] Advantageously, the step S2 is specifically:

[0026] S201、连接诊断设备到车辆诊断口,打开车辆点火开关; [0026] S201, the diagnostic device is connected to a diagnostic socket of the vehicle, the vehicle ignition switch is open;

[0027] S2〇2、诊断设备发送读取指令至网关,网关依据读取指令从备份节点读取配置信息; [0027] S2〇2, the diagnostic device sends a read instruction to the gateway, which reads the configuration information according to the read command from the backup node;

[0028] S203、网关将读取到的配置信息写入到子节点; W029] S204、写入结束以后网关将读取到的配置信息发送到诊断设备; [0028] S203, the gateway to the read configuration information is written to the child node; W029] S204, after the end of the read writing gateway configuration information to the diagnostic device;

[0030] S2〇5、诊断设备接收完网关发送过来的配置信息以后请求开始网关读取子节点配置信息例程; [0030] S2〇5, diagnostic equipment sent from the gateway after receiving the request for starting the gateway configuration information after the sub-node configuration information read routine;

[0031] S206、网关接收到读取子节点配置信息的例程请求后,向子节点发送LIN诊断$22 读取配置信息服务,子节点将当前的配置信息通过Lin诊断服务反馈给网关,网关接收到子节点反馈的配置信息,将配置信息更新到响应诊断设备的读取子节点配置信息例程中; [0032] S207、诊断设备读取到的配置信息和第S204步接收到的配置信息相比较,如一致则子"P点配置彳目息与入成功,进入弟S2〇8步;如不一致则子节点配置信息写入失败,排查原因从第S201步开始重新配置子节点; [0031] S206, the gateway after receiving the read sub-routine requesting node configuration information, the child node transmits to the LIN diagnostic $ 22 reads configuration information services, child node of the current configuration information to the received feedback Lin diagnostic service gateway, child node configuration information feedback, update the configuration information in response to the read sub-node configuration information of the diagnostic device routine; [0032] S207, the read diagnostic device configuration information and step S204 with the received configuration information comparison, the same as the child "P-point configuration information and mesh into the left foot successfully, the brother S2〇8 step; the inconsistencies as child node configuration information writing fails, the reason investigation reconfiguring step S201 from the first child node;

[0033] S208、诊断设备请求网关进入默认诊断模式,配置结束。 [0033] S208, the diagnostic device enters the default gateway request diagnostic mode, that configuration is completed.

[0034]作为优选,步骤S202具体为: [0034] Advantageously, the step S202 is specifically:

[0035] S2021、用户通过诊断设备输入一级密码,诊断设备发送包含一级密码的读取指令至网关; [0035] S2021, the user inputs a password through the diagnostic device, the diagnostic device sends a read instruction containing a password to the gateway;

[0036] S2022、网关接收到读取指令以后发送包含一级密码的读取请求到备份节点; [0036] S2022, after the gateway receives a read command transmits a password request to read the backup node;

[0037] S2023、备份节点接收到包含一级密码的读取请求以后,将一级密码与自身的第一密码对比,如果一级密码与第一密码匹配,则将第一存储区的配置信息发送到网关,然后进入步骤S203;如果一级密码与第一密码不匹配,则将第一存储区的配置信息擦除,然后返回密码错误回应到网关; [0037] S2023, after receiving a read request comprising a password, a password with the first password itself contrast, if a password with the first password match, then the configuration of the first backup node information storage area sent to the gateway, and then proceeds to step S203; if a password with a first password does not match, then the first configuration information storage area erase, and then returns the error response code to the gateway;

[0038] S2024、网关接受到密码错误回应以后,将密码错误回应转发到诊断设备; [0038] S2024, the gateway after receiving the password error response, the password error response forwarded to the diagnostic equipment;

[0039] S2025、诊断设备接受到密码错误回应以后,由用户选择继续输入二级密码或结束配置过程,如果继续输入二级密码,则诊断设备发送包含二级密码的读取指令至网关; [0039] S2025, the diagnostic device after receiving the error response code, continue to enter the secondary password selected by a user or configuration process is complete, if it continues to a secondary password input, the diagnostic device sends a read instruction comprising a secondary password to the gateway;

[0040] S2026、网关接收到读取指令以后发送包含二级密码的读取请求到备份节点; After [0040] S2026, the gateway transmits a read command is received to read a secondary password request to the backup node;

[0041] S2027、备份节点接收到包含二级密码的读取请求以后,将二级密码与自身的第二密码对比,如果二级密码与第二密码匹配,则将第二存储区的配置信息发送到网关,然后进入步骤S203;如果二级密码与第二密码不匹配,则将第二存储区的配置信息擦除,然后返回失效回应到网关; [0041] S2027, the backup node after receiving the read request contains a secondary password, the password and the second password two comparison itself, and the second password if the two passwords match, the second storage area configuration information sent to the gateway, and then proceeds to step S203; if the two passwords do not match the second password, then the second storage area configuration information erasing, and then returns the failure response to the gateway;

[0042] S2028、网关接受到失效回应以后,将失效回应转发到诊断设备; [0042] S2028, after receiving the gateway fails to respond, the failure to respond is forwarded to the diagnostic equipment;

[0043] S2029、诊断设备接收到失效回应以后,结束配置过程。 [0043] S2029, the reception of the failure diagnosis device response, the configuration process ends.

[0044] 本方案对应的网关连接有一个备份节点,备份节点中包含有两个存储区,每个存储区对应一个独立的密码。 [0044] The present embodiment is connected to a corresponding gateway backup node, the backup node contains two storage areas, each storage area corresponding to a separate password. 在从备份节点中读取配置信息时,首先作对比的是对应第一存储区的第一密码,如果密码正确则允许读出第一存储区的配置信息,如果密码核对错误则立即擦除第一存储区的内容;再次进行密码验证时使用第二密码,如果密码正确则允许读出第二存储区中的配置信息,如果密码错误则立即擦除第二存储区中的内容,当用户身份不合法时,就不能采用暴力破解法来破解密码盗取配置信息。 When reading the configuration information from the backup node, the first compare the first password corresponding to the first memory area, if the correct password is allowed to read the configuration information of the first memory area, if the password collation error is first erased immediately the contents of a storage area; using password authentication again when the second password, if the password is correct then allowed to read the configuration information in the second storage area, if the wrong password is immediately erase the contents of the second storage area, when a user identity is not lawful, we can not use brute force to crack the password steal configuration information. 采用两个存储区可以避免合法用户输入密码错误直接导致备份节点失效的问题,并且第一存储区所包含的配置信息为完整的配置信息,第二存储区所包含的配置信息为不含有重要数据但是可以满足控制器基本需求的基本配置信息。 Using two memory areas to avoid errors legitimate user to enter a password directly to the backup node failure cause problems, and a first configuration information storage area is included in the complete configuration information, the configuration information contained in the second storage region does not contain critical data but the basic controller configuration information to meet basic needs.

[0045]本发明带来的实质性效果是,可靠性高,对网关要求较低,安全性好,信息不容易泄露,可以根据不同环境选用合适的配置流程,适用性广,各级开发商分工明确,不存在责任划分不清的问题。 [0045] The invention offers a substantial effect, high reliability, low gateway requirements, safety, and disclosure of information is not easy, you can choose the appropriate configuration process, wide applicability depending on the environment, the developers at all levels a clear division of responsibility unclear division does not exist.

附图说明 BRIEF DESCRIPTION

[0046]图1是本发明的一种对子节点进行配置时的连接结构示意图; [0046] FIG. 1 is a schematic view of the connection structure when one kind of the child node configuration according to the present invention;

[0047]图中:1、诊断设备,2、发动机控制器,3、备份节点,4、电池传感器。 [0047] FIG: 1, the diagnostic device 2, an engine controller 3, the backup node 4, a battery sensor.

具体实施方式 Detailed ways

[0048]下面通过实施例,并结合附图,对本发明的技术方案作进一步具体的说明。 [0048] The following Examples, in conjunction with the accompanying drawings, technical solutions of the present invention will be further specifically described.

[0049]实施例:以对电池传感器4进行配置为例,诊断设备1连接发动机控制器2 (网关), 发动机控制器2连接备份节点3和电池传感器4 (子节点)。 [0049] Example: In the battery sensor 4 is configured, for example, diagnostic apparatus 1 connected to the engine controller 2 (the gateway), the engine controller 2 connects to the backup battery sensor nodes 3 and 4 (a child node).

[0050]具体配置方法为:S1、查看备份节点3是否包含有子节点的配置信息,如果有,进入步骤S2,如果没有则进入步骤S3; [0050] The specific configuration method: S1, see the backup node 3 contains configuration information has child nodes, if any, into the step S2, the process proceeds to step S3 if not;

[0051] S2、从备份节点3读取子节点的配置信息并写入到子节点,配置过程结束; [0051] S2, the backup node configuration information 3 is read and written from the child node to the child node configuration process is complete;

[0052] S3、从诊断设备1读取子节点的配置信息并写入到子节点,配置过程结束。 [0052] S3, the configuration diagnostic apparatus 1 reads and writes from the child node to the child node, the end of the configuration process.

[0053] 步骤S3具体为: [0053] Step S3 is specifically:

[0054] S301、连接诊断设备1到车辆诊断口,打开车辆点火开关; [0054] S301, the diagnostic device is connected to a diagnostic socket of the vehicle, the vehicle ignition switch is open;

[0055] S302、请求网关进入扩展诊断模式; [0055] S302, a request to enter the gateway extended diagnostic mode;

[0056] 诊断设备1诊断请求消息:7E0 02 10 03 00 00 00 00 00 [0056] The diagnostic device diagnosis request message 1: 7E0 02 10 03 00 00 00 00 00

[0057] 电子控制器响应诊断消息:7E8 06 50 03 00 32 00 C8 00 [0057] The electronic controller in response to the diagnostic message: 7E8 06 50 03 00 32 00 C8 00

[0058] S303、诊断设备1请求安全进入网关; [0058] S303, the diagnostic device 1 requests the secure access gateway;

[0059] 诊断设备1 请求种子:7E0 02 27 01 〇〇〇〇〇〇〇〇00 [0059] diagnostic equipment 1 seeds request: 7E0 02 27 01 〇〇〇〇〇〇〇〇00

[0060] 网关反馈种子:7E8 06 67 01 种子#〇#1 #2 #3 00 00 [0060] Gateway feedback seeds: 7E8 06 67 01 billion seed # # 1 # 2 # 30000

[0061] 诊断设备1计算密钥:7E0 06 67 02密钥#0 #1 #2 #3 00 00 [0061] 1 diagnostic device to calculate the key: 7E0 06 67 02 Key # 0 # 1 # 2 # 30000

[0062] 网关反馈密钥:7E0 02 67 02 00 00 00 〇〇00 [0062] Gateway feedback key: 7E0 02 67 02 00 00 00 〇〇00

[0063] S304、诊断设备1将配置信息发送给网关并请求开始转发配置信息例程,转发配置信息标识符是0x02 0x01,xx为配置信息字节,yy为例程开始执行状态; [0063] S304, the diagnostic device 1 and configuration information to the gateway configuration information routine starts forwarding request, the forwarding configuration information identifier is 0x02 0x01, xx bytes for the configuration information, yy is the routine starts execution state;

[0064] 0x01 :例程开始成功; [0064] 0x01: routine starts successfully;

[0065] 0x02 :例程开始不成功。 [0065] 0x02: routine starts unsuccessful.

[0066] 诊断设备1诊断请求消息:7E0 05 31 01 02 01 xx 00 00 [0066] 1 diagnostic equipment diagnostic request message: 7E0 05 31 01 02 01 xx 00 00

[0067] 网关响应诊断消息:7E8 05 71 01 02 01 yy M AA [0067] Gateway diagnosis response message: 7E8 05 71 01 02 01 yy M AA

[0068] S305、网关接收到配置信息后通过LIN诊断写数据$2E服务向子节点写配置信息, 子节点的NAD (LIN诊断地址)为0x01; [0068] S305, the gateway after receiving the configuration information is written over the LIN diagnostic data services $ 2E write configuration information to the child node, the child node of the NAD (LIN diagnostic address) 0x01;

[0069] 网关请求写配置信息:3C 01 04 2E 00 B2 xx FF FF [0069] The gateway configuration information write request: 3C 01 04 2E 00 B2 xx FF FF

[0070] Lin子节点响应写配置信息:3D 01 03 6E 00 B2 FF FF FF [0070] Lin child node configuration information write response: 3D 01 03 6E 00 B2 FF FF FF

[0071] S3〇6、诊断设备1等待3秒,待网关将配置信息写入子节点成功; [0071] S3〇6, wait 3 seconds diagnostic apparatus 1, the gateway configuration information to be written into the child node successfully;

[0072] S3〇7、诊断设备1请求开始网关读取子节点配置信息例程,因发动机控制器2反馈配置信息给诊断设备1可能需要一段时间,因电子接收到读取配置的例程开始请求后还需要向电池传感器4请求读取配置信息; [0072] S3〇7, diagnostic apparatus 1 requests the start of the gateway node configuration information read sub-routine, the engine controller 2 because the feedback configuration information to the diagnostic device 1 may take some time, due to the electron accepting routine starts reading configuration the request need to read configuration information to request the battery sensor 4;

[0073] 诊断设备1诊断请求消息:7E0 05 31 01 02 02 00 00 00 [0073] 1 diagnostic equipment diagnostic request message: 7E0 05 31 01 02 02 00 00 00

[0074] 发动机控制器2响应诊断消息:7E8 05 71 01 02 02 xx AA AA [0074] The engine controller 2 in response to the diagnostic message: 7E8 05 71 01 02 02 xx AA AA

[0075] S3〇8、网关接收到读取子节点配置信息的例程请求后,向子节点发送LIN诊断$22 读取配置信息服务,子节点将当前的配置信息通过Lin诊断服务反馈给网关,网关接收到子节点反馈的配置信息,将配置信息更新到响应诊断设备1的读取子节点配置信息例程中; [0076]电子控制器请求读配置信息:3C 01 03 22 00 B2 FF FF FF [0075] S3〇8, the gateway receives the read sub-routine of the node configuration information request, the child node transmits to the LIN diagnostic $ 22 reads configuration information services, child node of the current configuration information back to the gateway by Lin diagnostic services, the gateway receiving the feedback information of the sub-node configuration, the configuration information is updated in response to the read sub-node configuration information diagnostic apparatus 1 routine; [0076] the electronic controller requests to read the configuration information: 3C 01 03 22 00 B2 FF FF FF

[0077] Lin子节点响应写配置信息:3D 01 04 62 00 B2 xx FF FF [0077] Lin child node configuration information write response: 3D 01 04 62 00 B2 xx FF FF

[0078] S3〇9、诊断设备1读取到的配置信息和第S304步写入的配置信息相比较,如一致则子节点配置信息写入成功,进入第S310步;如不一致则子节点配置信息写入失败,排查原因从第S301步开始重新配置子节点; [0078] S3〇9 configuration information to the read device configuration information and the diagnostic step S304 compared to writing, the same as the child node configuration information successfully written into the first step S310; the inconsistencies as child nodes arranged information writing fails, troubleshoot the cause of reconfiguring the child nodes from step S301;

[0079] S310、诊断设备1请求网关进入默认诊断模式,配置结束; [0079] S310, the diagnostic device 1 requests the default gateway enters the diagnostic mode, the end configuration;

[0080] 诊断设备1诊断请求消息:7E0 02 10 03 00 00 00 00 〇〇 [0080] The diagnostic device diagnosis request message 1: 7E0 02 10 03 00 00 00 00 thousand and

[0081] 发动机控制器2响应诊断消息:7E8 06 50 03 00 32 00 C8 00。 [0081] The engine controller 2 in response to the diagnostic message: 7E8 06 50 03 00 32 00 C8 00.

[0082] 步骤S2具体为: [0082] Step S2 is specifically:

[0083] S2〇l、连接诊断设备1到车辆诊断口,打开车辆点火开关; [0083] S2〇l, diagnostic apparatus 1 is connected to the diagnostic port of the vehicle, the vehicle ignition switch is open;

[0084] S202、诊断设备1发送读取指令至网关,网关依据读取指令从备份节点3读取配置fg息; [0084] S202, the diagnostic device 1 transmits a read instruction to the gateway, the gateway configured according to the read command fg information reading from the backup node 3;

[0085] S203、网关将读取到的配置信息写入到子节点; [0085] S203, the gateway to the read configuration information is written to the child node;

[0086] S204、写入结束以后网关将读取到的配置信息发送到诊断设备1; [0086] S204, after the end of the read writing gateway configuration information to the diagnostic device 1;

[0087] S2〇5、诊断设备1接收完网关发送过来的配置信息以后请求开始网关读取子节点配置信息例程; [0087] S2〇5, diagnostic apparatus 1 after receiving gateway configuration information sent from the subsequent request for starting the gateway node configuration information read sub-routine;

[0088] S206、网关接收到读取子节点配置信息的例程请求后,向子节点发送LIN诊断$22 读取配置信息服务,子节点将当前的配置信息通过Lin诊断服务反馈给网关,网关接收到子节点反馈的配置信息,将配置信息更新到响应诊断设备1的读取子节点配置信息例程中; [0089] S207、诊断设备1读取到的配置信息和第S2〇4步接收到的配置信息相比较,如一致则子节点配置信息写入成功,进入第S208步;如不一致则子节点配置信息写入失败,排查原因从第S201步开始重新配置子节点; [0088] S206, the gateway after receiving the read sub-routine requesting node configuration information, the child node transmits to the LIN diagnostic $ 22 reads configuration information services, child node of the current configuration information to the received feedback Lin diagnostic service gateway, child node configuration information feedback, update the configuration information in response to a diagnostic apparatus 1 reads the sub-node configuration information routine; [0089] S207, the read diagnostic apparatus 1 and the configuration information received S2〇4 steps comparing the configuration information, such as the same sub-node configuration information successfully written into the first step S208; the inconsistencies as child node configuration information writing fails, the reason investigation reconfiguring step S201 from the first child node;

[0090] S208、诊断设备1请求网关进入默认诊断模式,配置结束。 [0090] S208, the diagnostic device 1 requests the default gateway enters diagnostic mode, that configuration is completed.

[0091] 步骤S202具体为: [0091] Step S202 is specifically:

[0092] S2021、用户通过诊断设备1输入一级密码,诊断设备1发送包含一级密码的读取指令至网关; [0092] S2021, a user inputs a password diagnostic device, the diagnostic device 1 transmits a read command comprising a password to the gateway;

[0093] S2〇22、网关接收到读取指令以后发送包含一级密码的读取请求到备份节点3; After reading the [0093] S2〇22, the gateway receives a read command transmits a password request to the backup node 3;

[0094] S2023、备份节点3接收到包含一级密码的读取请求以后,将一级密码与自身的第一密码对比,如果一级密码与第一密码匹配,则将第一存储区的配置信息发送到网关,然后进入步骤S203;如果一级密码与第一密码不匹配,则将第一存储区的配置信息擦除,然后返回密码错误回应到网关; After [0094] S2023, the backup node 3 receives a read request comprises a password, a password with the first password itself contrast, if a password with the first password match, then the configuration of the first storage area information sent to the gateway, and then proceeds to step S203; if a password with a first password does not match, then the first configuration information storage area erase, and then returns the error response code to the gateway;

[0095] S2024、网关接受到密码错误回应以后,将密码错误回应转发到诊断设备1; [0095] S2024, the gateway after receiving the password error response, the password error response forwarded to the diagnostic device 1;

[0096] S2025、诊断设备1接受到密码错误回应以后,由用户选择继续输入二级密码或结束配置过程,如果继续输入二级密码,则诊断设备1发送包含二级密码的读取指令至网关; [0097] S2026、网关接收到读取指令以后发送包含二级密码的读取请求到备份节点3; [0096] S2025, after diagnostic apparatus 1 receives the error response code, selected by the user continues to enter a secondary password or the configuration process is complete, if the two continue to enter the password, the device 1 transmits a read command is a secondary password to the gateway diagnostic ; [0097] S2026, the gateway after receiving the read command transmits a read request to the secondary password backup node 3;

[0098] S2〇27、备份节点3接收到包含二级密码的读取请求以后,将二级密码与自身的第二密码对比,如果二级密码与第二密码匹配,则将第二存储区的配置信息发送到网关,然后进入步骤S2〇3;如果二级密码与第二密码不匹配,则将第二存储区的配置信息擦除,然后返回失效回应到网关; [0098] S2〇27, after the backup node 3 receives a read request comprises a secondary password, the password itself two second password comparison, if the two password and the second password match, then the second storage area send configuration information to the gateway, and then proceeds to step S2〇3; if the two passwords do not match the second password, then the configuration information stored in the second erase area, and then returns the failure response to the gateway;

[0099] S2028、网关接受到失效回应以后,将失效回应转发到诊断设备1; [0099] S2028, after receiving the gateway fails to respond, the failure to respond is forwarded to the diagnostic device 1;

[0100] S2029、诊断设备1接收到失效回应以后,结束配置过程。 [0100] S2029, after a failure diagnostic apparatus 1 receives response, the configuration process ends.

[0101 ]本文中所描述的具体实施例仅仅是对本发明精神作举例说明。 Specific Example [0101] described herein is merely illustrative for spirit of the invention. 本发明所属技术领域的技术人员可以对所描述的具体实施例做各种各样的修改或补充或采用类似的方式替代,但并不会偏离本发明的精神或者超越所附权利要求书所定义的范围。 Those skilled in the art of the present invention can be made to the specific embodiments described various modifications or additions, or a similar alternative embodiment, but without departing from the spirit of the invention or exceed defined in the appended claims range.

[0102]尽管本文较多地使用了网关、子节点等术语,但并不排除使用其它术语的可能性。 [0102] Although the terms are used herein, a gateway, child nodes, etc., but do not exclude the possibility of using other terminology. 使用这些术语仅仅是为了更方便地描述和解释本发明的本质;把它们解释成任何一种附加的限制都是与本发明精神相违背的。 These terms are only used to make it easier to describe and explain the essence of the present invention; interprets them into any additional restrictions are contrary to the spirit of the invention.

Claims (3)

1. 一种整车网络子节点配置方法,其特征在于,包括以下步骤: 51、 查看备份节点是否包含有子节点的配置信息,如果有,进入步骤S2,如果没有则进入步骤S3; 52、 从备份节点读取子节点的配置信息并写入到子节点,配置过程结束; 53、 从诊断设备读取子节点的配置信息并写入到子节点,配置过程结束; 步骤S3具体为: 5301、 连接诊断设备到车辆诊断口,打开车辆点火开关; 5302、 请求网关进入扩展诊断模式; 5303、 诊断设备请求安全进入网关; S3〇4、诊断设备将配置信息发送给网关并请求开始转发配置信息例程; 5305、 网关接收到配置信息后通过LIN诊断写数据$2E服务向子节点写配置信息; 5306、 诊断设备等待3秒,待网关将配置信息写入子节点成功; S3〇7、诊断设备请求开始网关读取子节点配置信息例程; S30S、网关接收到读取子节点配置信息 A vehicle child node network configuration method comprising the steps of: 51 to see if the backup node containing configuration information has child nodes, if any, into the step S2, if not the process proceeds to step S3; 52, read from the backup node configuration information is written to the child node and child node configuration process is complete; 53, configuration information is read from the child node and written into the diagnostic apparatus child node configuration process is complete; in step S3 is specifically: 5301 , diagnostic equipment is connected to the diagnostic port of the vehicle, the vehicle ignition switch is open; 5302, requesting the gateway into the extended diagnostic mode; 5303, secure access gateway requesting diagnostic device; S3〇4, the diagnostic device configuration information to the gateway and starts forwarding requests configuration information routine; 5305, write configuration information to the gateway child nodes after receiving the configuration information written by $ 2E LIN diagnostic data services; 5306, wait 3 seconds diagnostic apparatus, the gateway configuration information to be written into the child node successfully; S3〇7, diagnosis a gateway device requests the start node configuration information read sub-routine; S30S, the gateway receives the read sub-node configuration information 例程请求后,向子节点发送LIN诊断$22读取配置信息服务,子节点将当前的配置信息通过Lin诊断服务反馈给网关,网关接收到子节点反馈的配置信息,将配置信息更新到响应诊断设备的读取子节点配置信息例程中; S3〇9、诊断设备读取到的配置信息和第S304步写入的配置信息相比较,如一致则子节点配置信息写入成功,进入第S310步;如不一致则子节点配置信息写入失败,排查原因从第S301步开始重新配置子节点; S310、诊断设备请求网关进入默认诊断模式,配置结束。 After routine request, transmits to the child node LIN diagnostic $ 22 reads configuration information services, child node configuration information of the current feedback Lin diagnostic services to the gateway, the gateway receiving the feedback configuration information child node, update the configuration information in response to the diagnostic reading the configuration information of the child node device routine; S3〇9, reads the configuration information to the diagnostic device configuration information and the write step S304 is compared same as the sub-node configuration information successfully written into the first S310 step; the inconsistencies as child node configuration information writing fails, the reason investigation reconfiguring the child node from step S301; S310, requesting diagnostic device enters the default gateway diagnostic mode, the end configuration.
2.根据权利要求1所述的整车网络子节点配置方法,其特征在于,步骤S2具体为: 5201、 连接诊断设备到车辆诊断口,打开车辆点火开关; 5202、 诊断设备发送读取指令至网关,网关依据读取指令从备份节点读取配置信息; 5203、 网关将读取到的配置信息写入到子节点; 5204、 写入结束以后网关将读取到的配置信息发送到诊断设备; S2〇5、诊断设备接收完网关发送过来的配置信息以后请求开始网关读取子节点配置信息例程; S206、网关接收到读取子节点配置信息的例程请求后,向子节点发送LIN诊断$22读取配置信息服务,子节点将当前的配置信息通过Lin诊断服务反馈给网关,网关接收到子节点反馈的配置信息,将配置信息更新到响应诊断设备的读取子节点配置信息例程中; S2〇7、诊断设备读取到的配置信息和第S204步接收到的配置信息相比较,如一致则 The child vehicle network node configuration method according to claim 1, wherein the step S2 specifically: 5201, diagnostic equipment is connected to the vehicle diagnostic port, an ignition switch of the vehicle is opened; 5202, transmits a read command to the diagnostic apparatus the gateway, according to the read instruction read from the backup node configuration information; 5203, the gateway will read the configuration information is written to the child node; 5204, after the end of writing the gateway transmits the read configuration information to the diagnostic device; after S2〇5, diagnostic apparatus configuration information sent by the gateway after receiving the request for starting up the gateway node configuration information read sub-routine; after S206, the gateway node receives the read sub-routine configuration request information, transmits to the child node LIN diagnostic $ 22 reads the configuration information services, child node configuration information of the current feedback Lin diagnostic services to the gateway, the gateway receiving the feedback configuration information child node, read the updated configuration information to the child node in response to the diagnostic device configuration information routine ; S2〇7, diagnostic equipment to read the configuration information and step S204 the received configuration information is compared, the same as 子节点配置信息写入成功,进入第S208步;如不一致则子节点配置信息写入失败,排查原因从第S201步开始重新配置子节点; S208、诊断设备请求网关进入默认诊断模式,配置结束。 Child node configuration information successfully written into the first step S208; the inconsistencies as child node configuration information writing fails, the reason investigation reconfiguring child node from Step S201; S208, requesting diagnostic device enters the default gateway diagnostic mode, the end configuration.
3.根据权利要求2所述的整车网络子节点配置方法,其特征在于,步骤S2〇2具体为: S2021、用户通过诊断设备输入一级密码,诊断设备发送包含一级密码的读取指令至网关; S2〇22、网关接收到读取指令以后发送包含一级密码的读取请求到备份节点; S2〇23、备份节点接收到包含一级密码的读取请求以后,将一级密码与自身的第一密码对比,如果一级密码与第一密码匹配,则将第一存储区的配置信息友送巧网关,然后进入步骤S203;如果一级密码与第一密码不匹配,则将第一存储区的配置信息擦除,然后返回密码错误回应到网关; > > 52024、 网关接受到密码错误回应以后,将密码错误回应转发到诊断设备; 52025、 诊断设备接受到密码错误回应以后,由用户选择继续输入二级密码或结束配置过程,如果继续输入二级密码,则诊断设备发送包含二级密码的读 The child vehicle network node configuration method according to claim 2, wherein the step of S2〇2 specifically: S2021, the user inputs a password through the diagnostic device, the diagnostic device comprises transmitting a read instruction password to the gateway; S2〇22, the gateway transmits a read command after receiving a read request to the backup node password; S2〇23 later, backup node receiving a read request comprising a password, a password will be the first password itself contrast, if a password with the first password match, then the configuration information is sent to the first storage area Friends Qiao gateway, and then proceeds to step S203; if a password with a first password does not match, then the second a configuration information storage area erase, and then returns an error code to respond to the gateway;>> 52024, the gateway to respond after receiving the wrong password, the password error response forwarded to the diagnostic equipment; 52025, diagnostic equipment receives a response after the wrong password, the a secondary password input user chooses to continue or end the configuration process, if the two continue to enter the password, transmits the diagnostic device comprises two read password 指令至网关; 52026、 网关接收到读取指令以后发送包含二级密码的读取请求到备份节点; 52027、 备份节点接收到包含二级密码的读取请求以后,将二级密码与自身的第二密码对比,如果二级密码与第二密码匹配,则将第二存储区的配置信息发送到网关,然后进入步骤S203;如果二级密码与第二密码不匹配,则将第二存储区的配置信息擦除,然后返回失效回应到网关; S202S、网关接受到失效回应以后,将失效回应转发到诊断设备; S2029、诊断设备接收到失效回应以后,结束配置过程。 Instruction to the gateway; 52026, the gateway after receiving the read command transmits a read request to the secondary password backup node; After 52,027, backup node receives the read request contains a secondary password, the password of its two two password comparison, if the two password and the second password match, then the configuration information of the second storage area to the gateway, and then proceeds to step S203; if the two passwords do not match the second password, then the second storage area configuration information is erased, and then return failure to respond to the gateway; after S202S, gateway received a response failure, the failure to respond is forwarded to the diagnostic equipment; S2029, diagnostic equipment after receiving a response to the failure to end the configuration process.
CN201510584552.6A 2015-09-15 2015-09-15 Vehicle child node network configuration CN105334840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510584552.6A CN105334840B (en) 2015-09-15 2015-09-15 Vehicle child node network configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510584552.6A CN105334840B (en) 2015-09-15 2015-09-15 Vehicle child node network configuration

Publications (2)

Publication Number Publication Date
CN105334840A CN105334840A (en) 2016-02-17
CN105334840B true CN105334840B (en) 2018-01-30

Family

ID=55285448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510584552.6A CN105334840B (en) 2015-09-15 2015-09-15 Vehicle child node network configuration

Country Status (1)

Country Link
CN (1) CN105334840B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106444568B (en) * 2016-12-22 2019-05-07 北京汽车研究总院有限公司 A kind of data-updating method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6449715B1 (en) * 1999-10-04 2002-09-10 Fisher-Rosemount Systems, Inc. Process control configuration system for use with a profibus device network
CN1719782A (en) * 2005-03-24 2006-01-11 袁光辉 On vehicle network central control unit and its managing and controlling method for on-vehicle network
CN101927738A (en) * 2010-08-09 2010-12-29 奇瑞汽车股份有限公司 Whole vehicle network configuration system and configuration method thereof
CN103347063A (en) * 2013-06-25 2013-10-09 江铃汽车股份有限公司 Method for managing finished automobile configuration parameters
CN103873595A (en) * 2014-04-03 2014-06-18 奇瑞汽车股份有限公司 Multifunctional gateway used for vehicle and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6449715B1 (en) * 1999-10-04 2002-09-10 Fisher-Rosemount Systems, Inc. Process control configuration system for use with a profibus device network
CN1719782A (en) * 2005-03-24 2006-01-11 袁光辉 On vehicle network central control unit and its managing and controlling method for on-vehicle network
CN101927738A (en) * 2010-08-09 2010-12-29 奇瑞汽车股份有限公司 Whole vehicle network configuration system and configuration method thereof
CN103347063A (en) * 2013-06-25 2013-10-09 江铃汽车股份有限公司 Method for managing finished automobile configuration parameters
CN103873595A (en) * 2014-04-03 2014-06-18 奇瑞汽车股份有限公司 Multifunctional gateway used for vehicle and control method thereof

Also Published As

Publication number Publication date
CN105334840A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
US9557981B2 (en) Method and apparatus for automatic module upgrade
US9464905B2 (en) Over-the-air vehicle systems updating and associate security protocols
WO2009107349A1 (en) Information processing device
US20010032289A1 (en) Memory writing device for an electronic device
US7366888B2 (en) Booting to a recovery/maintenance environment
US7593344B2 (en) System and method for reprogramming nodes in an automotive switch fabric network
CN103095745B (en) Vehicle terminal, an electronic module, the electronic module upgrading apparatus, system and method
JP3954271B2 (en) Memory rewriting system for a vehicle controller
KR20100054805A (en) Remote access diagnostic device and methods thereof
CN103685214B (en) Secure access method for automotive electronic control units
KR100545131B1 (en) Control system
JP4692231B2 (en) Electronic control device for a vehicle
EP1582961B1 (en) Controlling data access to electronic control units in vehicles
CN101828158A (en) System and method for changing the state of vehicle components
JP4486812B2 (en) Method for providing a software to be used by the controller of the vehicle
US8245000B2 (en) System and method for managing security of a memory device
CA2646616C (en) Method and apparatus for secure management of debugging processes within communication devices
JP2012103181A (en) Online updating method of on-vehicle device
CN104580352B (en) Means remote from the vehicle module and related methods and systems programming
CN1776552A (en) System configuration and process in a control system for identifying nonequivalent functionality between the software of a device and the assigned device driver
WO2001085494A2 (en) Method for accessing a device belonging to a communications network in an automobile
JP2001263156A (en) Memory rewriting system for vehicle control device
JP5864510B2 (en) Modify program verification method, fix confirmation program, and information processing apparatus
JP2003229875A (en) Method for recognizing data transmission error in can controller, can controller, program, recording medium, and control device
WO2010017775A1 (en) Controller area network (can) bus based control method for refreshing codes of vehicle’s electronic controller

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01