CN-114026537-B - Method for talking to a computer on a bus on board a vehicle
Abstract
In order to talk from a first vehicle bus in a vehicle to a first computer connected to a second vehicle bus, which is connected to the first bus by a second computer, wherein a main command for the first computer is processed, the method comprises the steps of-a third computer connected to the first vehicle bus generating (102) a write command writing a description of the main command in a first dedicated area of the second computer, then sending (104) the write command to the second computer when the second computer is detected (103) as ready to respond to the write command, -the second computer sending (114) one or more auxiliary commands to the first computer after receiving (111) the write command in response to the main command, -the first computer sending (122) a response (121) to each received auxiliary command, the second computer storing (116) the response in a second dedicated area, -the second computer sending (107) a read command to the second computer when the second computer is detected (107) as ready to respond to the write command, and-the second computer reading (124) the read command to the first computer receiving (124) the read command to the second computer.
Inventors
- E. Abadi
Assignees
- 雷诺股份公司
- 日产自动车株式会社
Dates
- Publication Date
- 20260508
- Application Date
- 20200529
- Priority Date
- 20190625
Claims (14)
- 1.A method for conducting a conversation from a first vehicle bus (1) in a vehicle, the method comprising: -connecting a first computer (12, 13, 14) directly to a second vehicle bus (2) in the vehicle, the first computer not being directly connected to the first vehicle bus (1) in the vehicle; -connecting the first vehicle bus in the vehicle to the second vehicle bus in the vehicle by means of a second computer (11), the second computer (11) being directly connected to the first vehicle bus in the vehicle and the second vehicle bus in the vehicle; -connecting a third computer (10) in the vehicle directly to the first vehicle bus in the vehicle, the third computer (10) processing a master command for the first computer (12, 13, 14), and the third computer not being directly connected to the second vehicle bus in the vehicle; -generating (102), via the third computer (10) in the vehicle and directly connected to the first on-board bus in the vehicle, a write command to write a description (27) of said master command into the first dedicated data area (61) of the second computer (11); -upon detecting (103) that the second computer (11) is ready to respond to said write command, sending (104) said write command to the second computer (11) via the third computer (10) in the vehicle and directly connected to the first on-board bus in the vehicle; -after the second computer (11) receives (111) said write command, sending (114) one or more auxiliary commands to the first computer (12, 13, 14) via the second computer in order to respond to the main command; -sending (122) a response to each received auxiliary command (121) via the first computer (12, 13, 14); -storing (116) at least one received response (115) in a second dedicated data area (62) via the second computer (11); -upon detecting (107) that the second computer (11) is ready to respond to a read command for reading said second dedicated data area (62) of the second computer, sending (108) said read command via the third computer (10) in the vehicle and directly connected to the first vehicle bus in the vehicle to read said second dedicated data area of the second computer; -sending (124) a response to the received read command (119) via the second computer (11), and -Upon at least one receipt (109) of a response to a read command to read a second dedicated data area of the second computer (11), in which the response sent by the first computer (12, 13, 14) is stored, responding (126) to the master command via the third computer in the vehicle and directly connected to the first vehicle bus in the vehicle.
- 2. The method of claim 1, wherein signals comprising both ready and not ready states are periodically sent by the second computer (11) over the first vehicle bus (1), and this comprises the steps of: -the second computer (11) sets (112) the signal to an occupied state upon receipt (111) of a write command originating from the third computer (10); -the second computer (11) sets (116) the signal to a ready state upon receiving (115) a response originating from the first computer (12, 13, 14).
- 3. The method of claim 2, comprising the step of the third computer (10), after receiving (105) said signal set to the occupied state, entering a standby (106) to wait for the signal to be set to the ready state.
- 4. A method according to any one of claims 2 and 3, characterized in that the signal further comprises the extent of progress of one or more of the auxiliary commands sent by the second computer (11).
- 5. A method as claimed in any one of claims 1 to 3, characterized in that the write command comprises a first frame (21) comprising a first identifier field (31) for the write command, a first identifier field (32) for the first dedicated data area (61) and at least one field (33, 34, 35) of the description (27) of the master command.
- 6. A method according to any one of claims 1 to 3, characterized in that the description (27) of the master command comprises a standard field (33) for the master command, an identification field (34) for the second computer (12, 13, 14) and a parameter field (35) useful for the second computer (12, 13, 14) to establish the transmitted response.
- 7. A method according to any one of claims 1 to 3, characterized in that the method comprises the step of the second computer (11) sending (112) an acknowledgement to the first computer (10) upon receipt (111) of said write command.
- 8. The method of claim 7, wherein the acknowledgement comprises a second frame (22) comprising an acknowledgement identifier field (37) and a second identifier field (38) for the first dedicated data area (61).
- 9. A method according to any one of claims 1 to 3, characterized in that said read command sent by the third computer (10) comprises a third frame (23) comprising a second command identification field (39) and a first identifier field (40) for the second dedicated data area (62).
- 10. A method as claimed in any one of claims 1 to 3, characterized in that said response to the read command comprises a fourth frame (24) comprising a fourth identifier field (41) for the response to the read command, a second identifier field (42) for the second dedicated data area (62), at least one description annotation field (43, 44, 45) for the main command and a content field (47) for the response to the main command.
- 11. A method as claimed in any one of claims 1 to 3, characterized in that the read commands and the write commands are commands conforming to the unified diagnostic service protocol.
- 12. A method according to any one of claims 1 to 3, comprising the steps of: -the second computer (11) checking (112) upon receipt (111) of said write command whether the description of said master command is complete; -the second computer (11) sending (114) one or more auxiliary commands to the first computer (12, 13, 14) only when the description of said main command is complete (113) in order to respond to the main command; -if the description of the master command is incomplete, the second computer (11) stores (118) a warning (117) in the second dedicated data area.
- 13. A method according to any one of claims 1 to 3, wherein the primary command is a command for reading resident data in the first computer, wherein the secondary command comprises a fifth frame (25) comprising an identification field (48) for a read command and an identification field (49) for the resident data, and wherein the response sent by the first computer (12, 13, 14) comprises a sixth frame (26) comprising an identification field (50) for a response to the read command, an identification field (51) for the resident data and a field (52) containing a value of the resident data.
- 14. A method according to any one of claims 1 to 3, wherein the master command is a command for installing a digital component in the first computer.
Description
Method for talking to a computer on a bus on board a vehicle Technical Field The invention relates to a method for dialogue with a computer on an onboard bus of a vehicle. More particularly, the invention relates to a method for dialogue from a first vehicle bus in a vehicle with a first computer connected to a second vehicle bus of the vehicle. The method according to the invention is particularly useful for updating an on-board computer while allowing a real-time program to be executed for operating the vehicle. Background Updating of the on-board computer and execution of real-time programs typically requires transmission of commands on one or more on-board buses. A timer is typically implemented to control the duration between sending a command and receiving a response to the command, which has the disadvantage that the duration increases with an increasing number of commands. For example, document EP 1434129 A2 discloses a device for controlling the overwriting of a vehicle program, wherein the switching command is based on a signal originating from a timer. The disclosed apparatus controls two modes of operation, a normal mode, which may correspond to a diagnostic mode, and a rewrite mode for rewriting the onboard program, which may be used for computer updating. The disclosed apparatus switches from a normal mode to a overwrite mode upon receiving a program overwrite command from a server, and switches from the overwrite mode to the normal mode upon receiving a command to switch to the normal mode during the overwrite mode. Each switching operation has the disadvantage of exiting the current mode. Disclosure of Invention In order to overcome the drawbacks of the prior art, the object of the present invention is a method for dialogue from a first vehicle bus in a vehicle with a first computer connected to a second vehicle bus of the vehicle, the first bus being connected to the second bus by a second computer, wherein a third computer connected to the first vehicle bus processes a master command for the first computer, the method comprising the steps of: -the third computer generating a write command to write a description of the master command into a first dedicated area of the second computer; -upon detecting that the second computer is ready to respond to said write command, the third computer sending said write command to the second computer; -the second computer sending one or more auxiliary commands to the first computer after receiving said write command in response to the main command; -the first computer sending a response to each received auxiliary command; -the second computer storing each received response in a second dedicated area; -upon detecting that the second computer is ready to respond to a read command for reading said second dedicated area, the third computer sends said read command to the second computer; -the second computer sending a response to the received read command; -the third computer is responsive to the master command upon at least one receipt of a response to a read command reading a second area of the second computer in which the response sent by the first computer is stored. In particular, the second computer periodically transmits signals in both a ready and an unprepared state, for which the method comprises the steps of: -the second computer setting the signal to an occupied state upon receipt of a write command from the third computer; -the second computer setting the signal to a ready state upon receipt of a response from the first computer. Advantageously, the method comprises the step of the third computer, after receiving said signal set to the occupied state, entering standby to wait for the signal to be set to the ready state. In particular, the write command comprises a first frame comprising a first identifier field for the command, a first identifier field for the first dedicated area and at least one description field for the master command. Still more particularly, the description of the master command includes a standard field for the master command, an identification field for the second computer, and a data identification field useful for the second computer to establish the transmitted response. Still more particularly, the method comprises the step of the second computer sending an acknowledgement to the first computer upon receipt of said write command. More specifically, the acknowledgement includes a second frame that includes an acknowledgement identifier field and a second identifier field for the first dedicated area. More specifically, the read command transmitted by the third computer includes a third frame including a second command identification field and a first identifier field for the second dedicated area. Still more particularly, the response to the read command includes a fourth frame including a fourth identifier field for the response to the command, a second identifier field for the second dedicated area, at least one descrip