Method to write requests on a vehicle diagnostic bus
11381422 · 2022-07-05
Assignee
Inventors
Cpc classification
G06F13/374
PHYSICS
H04L12/4015
ELECTRICITY
International classification
Abstract
A method carried out in a system, the system comprising at least a diagnosis plug-in device (1) connected to the diagnosis plug (8) of a vehicle, a host server (2), one or more on-board ECUs (3), the method comprising the following steps: /a/ detect a Bus Active condition, either via an electrical pin on the diagnosis plug or via an analysis of activity level on at least one Diagnosis bus accessible at the diagnosis plug, /b/ cause the diagnosis plug-in device to listen only on the at least one Diagnosis bus after the Bus Active condition is detected, /c/ determine a write enable condition, according to evolution of bus load level on the at least one diagnosis bus and/or after a certain time elapsed since Bus Active condition was true, /e/ whenever the write enable condition becomes true, carry out the request/answer services to write requests on the diagnosis bus and retrieve, in the corresponding answers, various data from the board ECUs (3), to be decoded and forwarded to a client fleet management system, /e1/ determining, a cyclic pattern of messages circulating on the bus, with at least busy instants (IB) and quiet instants (IQ), /e2/ place write requests on the diagnosis bus at quiet instants (IQ).
Claims
1. A method carried out in a system, the system comprising at least a diagnosis plug-in device connected to the diagnosis plug of a vehicle, a host server, one or more on-board Electronic Control Units coupled to the diagnosis plug, wherein the diagnosis plug-in device is wirelessly coupled to the host server, the method comprising the following steps: /a/ detect, at the diagnosis plug-in device, a Bus Active condition, either via an electrical pin on the diagnosis plug or via an analysis of activity level on at least one Diagnosis bus accessible at the diagnosis plug, /b/ cause the diagnosis plug-in device to listen only on the at least one Diagnosis bus after the Bus Active condition is detected, /c/ determine, at the diagnosis plug-in device, a write enable condition, according to evolution of bus load level on the at least one diagnosis bus and/or after a certain time elapsed since the Bus Active condition was true, wherein the write enable condition is set to not become true before a listen-only period of time since the Bus Active condition was true, and the listen-only period of time DT1 is predefined and comprises between 1 second and 20 seconds, wherein no request is sent on the Diagnosis bus by the diagnosis plug-in device during the listen-only period of time, /e/ whenever the write enable condition becomes true, carry out, at the diagnosis plug-in device, firstly a Vehicle Identification Number query request (Q-VIN) and then one or more request/answer services to write requests on the diagnosis bus and retrieve, in the corresponding answers, various data from the one or more on-board Electronic Control Units, to be decoded and forwarded to a client fleet management system, via the host server.
2. The method of claim 1, further comprising: /e1/ determining a cyclic pattern of messages circulating on the bus, with at least busy instants (IB) and quiet instants (IQ), where at busy instants the bus load is above a bus load threshold and at quiet instants the bus load is below the bus load threshold, /e2/ place write requests on the diagnosis bus at quiet instants (IQ).
3. The method of claim 1, wherein requests from the diagnosis plug-in device are put on hold whenever a current speed of the vehicle exceeds a predefined threshold.
4. The method of any of claim 1, further comprising: /d1/ determining vehicle type, and defining therefrom a firewall filter, said firewall filter being subsequently used at step /e/ to inhibit certain request/answer services.
5. The method of claim 1, further comprising the step of /d2/ determining vehicle type, wherein for certain particular vehicle type, the write enable condition is disabled.
6. The method of claim 1, further comprising: /d3/ determine vehicle type, namely Make/Model/Year/Powertrain, /d4/ provide a database of overall bus load reference overall timecharts per vehicle type, each timechart exhibiting eras of low bus load and eras of high bus load, where the high bus load is defined as being above a bus load threshold and the low bus load defined as being below the bus load threshold, /d5/ write requests at moments when the bus load is of low bus load.
7. The method of claim 5, wherein the step of determining vehicle type is made either from a Vehicle Identification Number retrieved from the bus and/or from a frame profile determined according to characteristics of the received frame-IDs on the diagnosis bus.
8. The method of any of claim 1, wherein the diagnosis bus of interest is a Controller Area Network-type bus, at a bit rate of 250 kbits/s or 500 kbits/s.
9. The method of any of claim 1, wherein a Bus Active condition is determined to be true when, on at least one accessible bus, a mean number of frames per time unit increases more than a first predefined threshold.
10. The method of claim 9, wherein a Bus Active condition is determined to become false, wherein a mean number of frames per time unit is lower than a second predefined threshold.
11. A plug-in device configured to: /a/ detect a Bus Active condition, either via an electrical pin on the diagnosis plug or via an analysis of activity level on at least one Diagnosis bus accessible at the diagnosis plug, /b/ cause the diagnosis plug-in device to listen only on the at least one Diagnosis bus after the Bus Active condition is detected, /c/ determine a write enable condition, according to evolution of bus load level on the at least one diagnosis bus and/or after a certain time elapsed since the Bus Active condition was true, wherein the write enable condition is set to not become true before a listen-only period of time since the Bus Active condition was true, and the listen-only period of time DT1 is predefined and comprises between 1 second and 20 seconds, wherein no request is sent on the Diagnosis bus by the diagnosis plug-in device during the listen-only period of time, /e/ whenever the write enable condition becomes true, carry out, at the diagnosis plug-in-device, firstly a Vehicle Identification Number query request (Q-VIN) and then one or more request/answer services to write requests on the diagnosis bus and retrieve, in the corresponding answers, various data from one or more on-board Electronic Control Units, to be decoded and forwarded to a client fleet management system, via a host server.
12. A system comprising at least a diagnosis plug-in device connected to the diagnosis plug of a vehicle, a host server, one or more on-board Electronic Control Units coupled to the diagnosis plug, wherein the diagnosis plug-in device is wireless coupled to the host server where the system configured to: /a/ cause detection, at the diagnosis plug-in device, of a Bus Active condition, either via an electrical pin on the diagnosis plug or via an analysis of activity level on at least one Diagnosis bus accessible at the diagnosis plug, /b/ cause the diagnosis plug-in device to listen only on the at least one Diagnosis bus after the Bus Active condition is detected, /c/ determine, at the diagnosis plug-in device, a write enable condition, according to evolution of bus load level on the at least one diagnosis bus and/or after a certain time elapsed since Bus Active condition was true, wherein the write enable condition is set to not become true before a listen-only period of time since the Bus Active condition was true, and the listen-only period of time DT1 is predefined and comprises between 1 second and 20 seconds, wherein no request is sent on the Diagnosis bus by the diagnosis plug-in device during the listen-only period of time, /e/ whenever the write enable condition becomes true, carry out, at the diagnosis plug-in device, firstly a Vehicle Identification Number query request (Q-VIN) and then the request/answer services to write requests on the diagnosis bus and retrieve, in the corresponding answers, various data from the one or more on-board Electronic Control Units, to be decoded and forwarded to a client fleet management system, via the host server.
13. The system of claim 12, further comprising: /e1/ determining, on a short term basis, a cyclic pattern of messages circulating on the bus, with at least busy instants (IB) and quiet instants (IQ), where at busy instants the bus load is above a bus load threshold and at quiet instants the bus load is below the bus load threshold, /e2/ place write requests on the diagnosis bus at quiet instants (IQ).
14. The method of claim 1, wherein requests from the diagnosis plug-in device exhibit a rate which is slowed down with an increase of vehicle speed.
15. A method carried out in a system, the system comprising at least a diagnosis plug-in device connected to the diagnosis plug of a vehicle, a host server, one or more on-board Electronic Control Units coupled to the diagnosis plug, wherein the diagnosis plug-in device is wireless coupled to the host server, the method comprising the following steps: /a/ detect, at the diagnosis plug-in device, a Bus Active condition, either via an electrical pin on the diagnosis plug or via an analysis of activity level on at least one Diagnosis bus accessible at the diagnosis plug, /b/ cause the diagnosis plug-in device to listen only on the at least one Diagnosis bus after the Bus Active condition is detected, /c/ determine, at the diagnosis plug-in device, a write enable condition, according to evolution of bus load level on the at least one diagnosis bus and/or after a certain time elapsed since Bus Active condition was true, wherein the write enable condition is set to not become true before a listen-only period of time since the Bus Active condition was true, and the listen-only period of time DT1 is predefined and comprises between 1 second and 20 seconds, wherein no request is sent on the Diagnosis bus by the diagnosis plug-in device during the listen-only period of time, /e/ whenever the write enable condition becomes true, carry out, at the diagnosis plug-in device, firstly a Vehicle Identification Number query request (Q-VIN) and then one or more request/answer services to write requests on the diagnosis bus and retrieve, in the corresponding answers, various data from the board Electronic Control Units, to be decoded and forwarded to a client fleet management system, via the host server, further comprising the step of /d2/ determining vehicle type, wherein for certain particular vehicle type, the write enable condition is disabled, wherein the step of determining vehicle type is made from a frame profile determined according to characteristics of the received frame-IDs on the diagnosis bus.
16. The method of claim 15, wherein the frame profile is defined as a collection of datasets: (frame-ID, frequency, DLC) where DLC is a Data Length Code.
17. The method of claim 15, wherein the frame profile comprises a first sub profile prevailing with IGNITION ON and Engine OFF condition, and a second sub profile prevailing with Engine Running condition.
18. The method of claim 1 wherein, when the vehicle is moving at a current speed, a rate of requests from the diagnosis plug-in device is caused to be dependent on the current speed.
19. The method of claim 15 wherein requests from the diagnosis plug-in device exhibit a rate which is slowed down with an increase of vehicle speed.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Other features and advantages of the invention appear from the following detailed description of one of its embodiments, given by way of non-limiting example, and with reference to the accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
DETAILED DESCRIPTION OF THE DISCLOSURE
(14) In the figures, the same references denote identical or similar elements.
(15)
(16) A large number of vehicles 50 are to be equipped with such plug-in devices; in practice one diagnosis plug-in device is installed on one targeted vehicle. All plug-in devices are identical before being installed on one particular vehicle. They are also referred to as “universal dongle”.
(17) Targeted vehicles include any type of usual vehicles, namely sedans, trucks, convertibles, heavyweight vehicles, station wagons and so on. Any brand/make is taken in consideration. Also motorcycles are taken in consideration.
(18) In addition, any type of powertrain solution is considered such as ICE (internal combustion engine), hybrid, full electric . . . .
(19) With reference to
(20) In many configurations, particularly the up-to-date configurations, the bus used by the diagnosis tool to access onboard ECUs is a bus where prevail many free running frames FR broadcasted by various onboard ECUs whenever they are active. This free running broadcasted frames FR represent a significant load on the bus.
(21) Practically, CAN bus is the foremost bus serving as diagnosis bus.
(22) However, it is admitted that a load of 50% for CAN bus is the limit beyond which collision rate become significant and can entail delays in the transmission of some messages.
(23) At one moment in the service life of the vehicle 50, a Diagnosis PlugIn device 1 is plugged onto the OBD port 8.
(24) Each Diagnosis PlugIn device 1 has wireless communication capability, with 3G, 4G, LTE, GPRS standards or any like solution. There is provided a wireless coupler 12, a microcontroller 15, a male connector 18. In most passenger vehicles, the connector 18 is a complementary counterpart of the OBD port defined by SAE J1962. For heavyweight vehicles, since there is no standard for the diag connector, there is provided another method to establish the communication between the Diagnosis PlugIn device 1 and the vehicle diagnosis bus, namely a coil/wire coupling. Therefore, coupling Diagnosis PlugIn device 1 to vehicle diagnosis bus can be done either by a conventional electrical contact fashion, or by a contactless coil/wire coupling.
(25) This wireless communication 12 enables the Diagnosis PlugIn device 1 to exchange data with a host server 2 which is located in one location remote from the vehicle, thanks to the wireless network flexibility.
(26) In addition, the host server 2 is connected on the internet network, denoted by 5. There may be wired and wireless portions in the internet network.
(27) Each Diagnosis PlugIn device 1 has at least a CAN bus interface 16, enabling to listen to at least one CAN bus 9 of the vehicle.
(28) In a particular case of the powertrain Can bus, there are two lines CAN-High 9H and CAN-Low 9L (cf
(29) Instead of CAN high speed, the interface between Diag PlugIn device 1 and on-board ECUs 3 can be made through J1939, CAN 250 k, CAN single Line, K line ISO 9141, J1850 or Ethernet or other equivalent means. There may be provided two or more communication interfaces 16, 16a.
(30) Since the Diagnosis PlugIn device 1 is intended to be ‘universal’, it contains cumulatively hardware/firmware/protocol handler for all the possible cases namely, CAN High speed, J1939, CAN 250 k, CAN single Line, K line ISO 9141, J1850, Ethernet, etc.
(31) For CAN High speed, it is referred to ISO 15765-4; for K-line, it is referred to the so called KWP2000.
(32) In addition, optionally, each Diagnosis PlugIn device 1 may have a geolocation functionality 13, based on signal acquisition from GPS satellites 7 or the like, and calculation of geo position, as known per se.
(33) Each Diag PlugIn device 1 may have an accelerometer 14, in complement to GPS in order to sense the vehicle movement.
(34) Each Diag PlugIn device 1 may comprise a backup battery 19 to allow storage of essential data whenever the vehicle battery is disconnected or whenever the Diagnosis PlugIn device 1 is disconnected momentarily. The Diagnosis PlugIn device 1 is intended to generally stay connected to the OBD plug 8, unlike the garage scan tool, which is plugged on the OBD plug only momentarily.
(35) Each vehicle 50 comprises one or more on-board ECUs 3 with diagnostics functionality. One ECU (Electronic Control Unit) 31 may be in charge of ICE control including gases emissions control, another ECU may be in charge of braking/ABS/ESP functions, another ECU may be in charge of passive safety functions including airbags, another ECU may be the instrument panel with odometer and gauges, another ECU may be in charge of various body functions etc. . . . .
(36) For Hybrid/electric vehicles, the engine ECU is substituted by an enlarged concept, namely a “powertrain” ECU.
(37) Each vehicle 50 has a unique VIN number 70. This number consists of 17 symbols, namely 17 characters, letter or numeral, as illustrated on
(38) Normally the VIN number complies with ISO 3779 standard. However, there may be deviations or even errors in the VIN. Retrieval of VIN requires asking on the bus, namely placing a write request on the bus. VIN is not available on the free running broadcasted frames.
(39) First section 71 (3 char.) denotes the vehicle manufacturer. Second section 72 (6 char.) denotes the body type and the powertrain type. Third section 73 (8 char.) is less rigid and may denote a serial incremental number.
(40) In the system 10, there are also provided one or more diagnostics database suppliers 4, connected to the Internet 5.
(41) Diagnostics database suppliers 4 can be private specialized companies, diagnostics database suppliers 4 can also be one service provided by the vehicle manufacturer itself like Ford, VW, Toyota, Nissan, GM, Renault, FIAT, BMW, Volvo, etc. . . . .
(42) Diagnostics database suppliers 4 knows, for each technical platform from several manufacturers, the set of available diag services, which are otherwise designated by “Diagnosis stacks dataset”. The host server 2 may have recourse to several diagnostics database suppliers whenever the data is not available on one of them, the host server 2 turns to another one.
(43) Diagnosis stacks dataset define access methods, useful bus(es) and available diag services, with their respective codes, controls, expected answers with decoding scheme. ISO 15031 defines the minimum services and questions/answers that have to be supported.
(44) Said otherwise, Diagnosis stacks dataset comprises all available request/answer services for this particular “vehicle type” (see definition below), and the hardware access method.
(45) Vehicle type can be discovered with the help of the VIN number; however, vehicle type VT can also be discovered with the help of a “diag frame profile” otherwise called “frame profile” that will be explained later.
(46) There is defined a “vehicle type” VT being defined at least by the following information: Make, Model, Year, Powertrain of the vehicle of interest. Practically, this information substantially corresponds to a manufacturer technical platform and substantially corresponds to the 9 first characters of the VIN number.
(47) “Make” is the manufacturer like FORD. “Mode” 1 is the vehicle model like FOCUS. “Year” is the manufacturing date of this vehicle like 2015. “Powertrain” is a code for the engine type and the transmission type (either manual, automatic, hybrid) like DV4 MP6 for instance. Regarding “engine” field, it encompasses engine type, ICE displacement, fuel type, etc. . . . .
(48) Generally speaking, various information collected thanks to the plug-in devices 1 are transmitted to one or more client fleet management server 6.
(49) Preferably all the following items are connected together through the internet network 5: host server 2, diagnostics database suppliers 4, client fleet management server 6, a VIN decoder service 29.
(50) More precisely, various information collected thanks to the plug-in devices 1 are transmitted wirelessly to the host server 2, in raw or decoded fashion. For some cases, decoding has to be done in the server(s) of the diagnostics database suppliers 4.
(51) The decoded information is then transmitted to the client fleet management server 6. The fleet manager can therefrom perform various tasks of management of operation/maintenance/deliveries & missions; whenever the fleet manager is an insurance company, the proposed method also enables accurate collection of actual use for insurance financial charges.
(52) According to one option, geolocation information is not transmitted to diagnostics database suppliers.
(53) As apparent from
(54) Small dimensions of the OBD plug-in device 1 can be D1<50 mm, D2<25 mm, D3<50 mm.
(55) Diagnosis plug-in device 1 has preferably no display, no user interface, preferably no switch. Diagnosis plug-in device 1 may bear an identification label for quality and traceability purposes. Diagnosis plug-in device 1 may have a Bluetooth or NFC interface. Diagnosis plug-in device 1 may have a micro USB port.
(56) Detection of Bus Active and Diag Frame ID Determination (Frame Profile)
(57) After installation of the plug-in device 1, i.e. coupling to the onboard buses, the plug-in device listens all possible sources/pins and receives frames broadcasted by onboard ECUs on at least one Diagnosis bus.
(58) If the vehicle is not used (engine stopped, doors locked, . . . ), the communication bus(es) are inactive. When the vehicle is on use, (engine usually running, motion, etc. . . . ) communication bus(es) are active. There are transitions, one from inactive to active when starting a cycle of use of the vehicle, one from active to inactive when ending the cycle of use of the vehicle; there may be intermediate states in the transitions eras; there mays be different type of active states according to some operating conditions.
(59) In the example illustrated on
(60) More generally speaking, the “Ignition ON” can be broadened to a “Bus Active” condition. On some vehicles, activation of one or more bus(es) may coincide with door unlocking, driver door opening, or other condition. Therefore, the “Bus Active” condition is more relevant than simply Key On.
(61) Engine crank and engine effective start can cause electric disturbances for which the bus may undergo some disturbances, due to possible reset of some ECUSs.
(62) Generally speaking a Bus Active condition can be determined when, on at least one bus, a mean number of frames per time unit increases more than a predefined threshold.
(63) For instance, this predefined threshold can be set to 20 messages/sec/sec or 50 messages/sec/sec.
(64) Determination of “Frame Profile”
(65) Each broadcasted message is characterized by a header named “Frame-ID”; each message is repeated periodically at a predefined frequency; each message is characterized by a length (up to 8 bytes for CAN standard), which is characterized by a number called DLC (Data Length Code).
(66) Each vehicle manufacturer has its own messages definition. Practically, even each technical platform have its own messages definition (several commercials variants may be derived from one technical platform).
(67) An entity named “frame profile” characterizes each technical platform. Listen to all frames circulating on the bus helps to define such frame profile entity.
(68) Note: “frame profile” can also be called “diag frame signature” or “diag fingerprint”.
(69) An example of basic frame profile can be a collection of pairs (frame ID, frequency, DLC).
(70) One example is given here: (7B hexa, 20 ms, 6), (A3 hexa, 100 ms, 8), (92 hexa, 100 ms, 8), (11A hexa, 60 ms, 5).
(71) Payloads and other information can also be taken into account in a refined upgraded frame profile entity, otherwise called complementary frame profile.
(72) Particularly payload for each frame, ordered sequence of frames, time interval between some particulars frames, are used to define an upgraded frame profile.
(73) Additionally, “invariant” portions in payloads may be identified and stored in an upgraded frame profile; also toggling between two discrete values can be added to such upgraded frame profile.
(74) There may be provided a hybrid definition of frame profile which includes a first sub profile with IGN On (but engine Off), and a second sub profile with Engine On.
(75) Advantageously, in the proposed method, sporadic frames are discarded and disregarded in the overall analysis
(76) On Can bus, Frame ID is encoded on 11 bits in the basic address scheme, and on 29 bits on the extended address scheme. In the case of J1850, there are also Frame IDs and header of the frames. Similar header characteristics are defined for other types of bus.
(77) As long as the diag plug-in device 1 remains silent on the bus (listen only mode), this phase is called “passive time”; the duration of this passive phase is DT1.
(78) According to one option, the predefined period of time DT1 is comprised between 1 s and 20 s, preferably between 3 s and 10 s, ideally around 6 s.
(79) According to one option, the period of time DT1 is adjusted according to collected Frame IDs on the bus.
(80) VIN Retrieval
(81) After first Bus active condition is verified, and optionally after some time in listen only mode, the OBD plug-in device 1 writes a request on the bus to retrieve the VIN number. This service is called “Q-VIN” in the present specification.
(82) Normally, the VIN number is returned by one of the on-board ECUs 3. The diag plug-in device 1 then forwards the retrieved VIN number to the Host server 2.
(83) At this point, the host server 2 checks the checksum of the retrieved the VIN number.
(84) If the VIN format is OK, particularly the first section 71 and the second section 72, the host server determines vehicle type. The host server 2 may determine vehicle type internally according to a look-up table if this entry available is available therein. In the other case, the host server 2 may use the service of a VIN decoder server 9.
(85) If the VIN is lacking, the host server determines vehicle type according to the above mentioned frame profile.
(86) Then, the Host server 2 sends issues a request with Make/Model/Year/Powertrain to the diagnostics database supplier 4 to get back in return the diagnosis stacks dataset, as defined above.
(87) Repetitive Requests (“Cruise” Operation)
(88) When the diagnosis stacks dataset is available to the diagnosis plug-in device 1, the latter issue repeated requests QU to retrieve interesting data the like mileage, fuel level, instant speed, average speed, geo location, various vehicle status information, etc. . . . .
(89) The raw answers are denoted by “ANS” on
(90) Fleet manager 6 gathers information from the great number of vehicles, the fleet manager 6 handles various applications relating to the vehicle operation.
(91) According to a particular case, the plug-in device 1 sends raw data to the Host server 2 which in turn forwards this raw data to the diagnostics database suppliers 4, which decodes raw data and sends back decoded data to the Host server 2 which in turn forwards this decoded data to the fleet manager server 6.
(92) Passive Mode after Bus Active
(93)
(94) /a/ detect a Bus Active condition, either via an electrical pin on the diagnosis plug (‘Key On’) or via an analysis of activity level on at least one Diagnosis bus accessible at the diagnosis plug,
(95) /b/ cause the diagnosis plug-in device to listen only on the Diagnosis bus after the Bus Active condition is detected, (‘passive mode’) starting at time T1,
(96) /c/ determine a write enable condition, according to evolution of bus load level on the diagnosis bus and/or time elapsed since Bus Active condition was true.
(97) Thereafter, one of the following process /dx/ is carried out:
(98) /d1/ determining vehicle type, and defining therefrom a firewall filter, said firewall being subsequently used at step /e/ to inhibit certain request/answer services as described in detail below.
(99) /d2/ determining vehicle type, wherein for certain particular vehicle type, the write enable condition is disabled.
(100) /d3/ determine vehicle type, then /d4/ provide a database of overall bus load reference overall timecharts per vehicle type, each timechart exhibiting eras of low bus load and eras of high bus load, then /d5/ write requests at moments when the bus load is of low bus load.
(101) Thereafter, the following process is carried out:
(102) /e/ whenever the write enable condition becomes true (at time T2), carry out the request/answer services to write requests on the diagnosis bus and retrieve, in the corresponding answers, various data from the board ECUs 3, to be decoded and forwarded to a client fleet management system 6.
(103) At step /e/, the process can be refined as follows:
(104) /e1/ determining, on a short term basis, a cyclic pattern of messages circulating on the bus, with at least busy instants IB and quiet instants IQ,
(105) /e2/ place write requests on the diagnosis bus at quiet instants IQ.
(106) Regarding steps /a/ to /c/, stated otherwise, the diagnosis plug-in device remains silent after Bus Active condition becomes true. Additionally, the diagnosis plug-in device may remain silent after engine crank to avoid writing request during the disturbed period under cranking.
(107) As illustrated at
(108) Bus Load Reference Timecharts and Bus Occupation
(109) As shown on
(110)
(111) Considering the short term perspective, it is preferred to place write requests on the diagnosis bus at quiet instants IQ (step /e2/) at moments denoted TW1.
(112) Considering the ‘long’ term perspective, it is preferred to choose write instants, denoted TW, that correspond to the lower bus load.
(113) Of course, a refined process can be carried out which takes into account both long-term and short-term perspectives.
(114) Use of a short-term cyclic patterns and/or a long term bus load reference timechart helps placing the write requests, for example, just after a real-time detected transition [busy instant IB to quiet instant IQ], or if relevant, after a real-time detected transition [high bus load BL2 to lower bus load BL1].
(115) Short-term cyclic patterns, as well as long term bus load reference timecharts, can be established for the particular considered vehicle, after the first driving cycle with the diagnosis plug-in device connected, or after some initial driving cycles with the diagnosis plug-in device connected. There is provided an incremental learning process.
(116) In order to minimize the risk of disturbance on the diagnosis bus, the frequency of request from the diagnosis plug-in device can be advantageously adjusted.
(117) The rate can be slowed down with the increase of vehicle speed.
(118) Alternately, the request from the diagnosis plug-in device can be put on hold whenever the vehicle speed exceeds a predefined threshold. This threshold can be chosen for example in the range 40 Km/h-90 Km/h.
(119) As shown at
(120) Usually the bus load BL3 is reduced as from instant T4.
(121) The bus activity ceases completely at time T5.
(122) Frame Profiles Incremental Database
(123) The host server 2 houses a lookup table 22 that contains many items of frame profiles concerning a great number of vehicle manufacturer technical platforms, another lookup table, which is called here a diagnosis stacks dataset database 23 at the host server, which comprises, for each recorded vehicle type VT, a diagnosis stacks dataset or a link thereto. Each time one plug In device encounters a new vehicle (with a correct VIN), and get the OBD stacks dataset, the corresponding frame profile is appended to the incremental lookup table 22, and possibly a new record is added to the diagnosis stacks dataset database 23.
(124) Availability of Key on Signal, Bus Active Condition ON and OFF
(125) Sometimes, an electrical signal reflecting “ignition on” is available at the OBD port.
(126) However, in most cases, such electrical signal is not available, the OBD plug-in device 1 compensate by monitoring the number of messages circulating on the bus; for example, it can be decided that when a mean number of CAN frames per time unit increases more than a predefined threshold, then ignition has been set.
(127) Said otherwise, a Bus Active condition is determined to be true when, on at least one accessible bus (the bus of interest in practice), a mean number of frames per time unit increases more than a first predefined threshold.
(128) Conversely, a Bus Active condition is determined to become false, wherein a mean number of frames per time unit becomes lower than a second predefined threshold.
(129) Firewall Filter
(130) A firewall filter may be used at step /e/ to inhibit certain request/answer services define in the diagnosis stacks dataset. The reason for this is that some vehicle types may suffer some functional troubles whenever certain requests are placed on the bus. The purpose of the firewall filter is to prevent such troubles.
(131) Therefore, a firewall filter is defined with regard to a vehicle type and contains the list of requests that must not be used on this vehicle type.
(132) Said otherwise, a “total” firewall filter corresponds to disabling all requests.
(133) Contextual use of request(s) can be combined with the use of firewall filter
(134) Power Supply Interruption
(135) The power supply of the diagnosis plug-in device 1 may be interrupted if the diag plug-in device 1 is physically disconnected from the diag port 8 (for example in case of Scan Tool momentary connection), or if the battery of the vehicle happens to be disconnected.
(136) Whenever the power supply of the diagnosis plug-in device 1 has been interrupted, the frame profile determination and/or the VIN request sequence is carried out again at the next Bus Active condition. If the VIN/frame profile is not different from the previously stored VIN/frame profile then the previously used diagnosis stacks dataset is taken again, and optionally, the firewall filter also.
(137) Otherwise, if there is a difference, the whole process of determining the vehicle type is carried out from the VIN and/or from the frame profile; and then the process of determining the diagnosis stacks dataset is carried out as mentioned above.
(138) Besides, it may be decided that if the power supply of the diagnosis plug-in device has been maintained, the frame profile determination is not done repeatedly at each Bus Active condition.